---
title: "java.nio.BufferOverflowException 异常"
author: "Stark_Summer"
date: "2012-09-14T12:36:00Z"
tags: ["Eclipse", "IDEA", "Java"]
categories: ["编程语言"]
slug: "java-nio-bufferoverflowexception"
draft: false
lastmod: "2012-09-14T12:36:00Z"
id: 1678423
url: "https://stark-summer.iteye.com/blog/1678423"
---

Failure executing javac, but could not parse the error:
 2 编译器 (1.6.0_07) 中出现异常。 如果在 Bug Parade 中没有找到该错误，请在 Java Dev
 3 eloper Connection (http://java.sun.com/webapps/bugreport)  对该错误进行归档。 请
 4 在报告中附上您的程序和以下诊断信息。谢谢您的合作。
 5 java.nio.BufferOverflowException
 6         at java.nio.Buffer.nextPutIndex(Buffer.java:495)
 7         at java.nio.HeapCharBuffer.put(HeapCharBuffer.java:145)
 8         at com.sun.tools.javac.util.DefaultFileManager.decode(DefaultFileManager
 9 .java:830)
10         at com.sun.tools.javac.util.DefaultFileManager.access$300(DefaultFileMan
11 ager.java:76)
12         at com.sun.tools.javac.util.DefaultFileManager$RegularFileObject.getChar
13 Content(DefaultFileManager.java:1353)
14         at com.sun.tools.javac.util.DefaultFileManager$RegularFileObject.getChar
15 Content(DefaultFileManager.java:1252)
16         at com.sun.tools.javac.main.JavaCompiler.readSource(JavaCompiler.java:48
17 3)


今天项目改了些东西 然后总是报这个错误 
解决方案：
通过 eclipse IDE 工具的 project -->clean 运行后，可以执行mvn install命令

通过 InteliJ IDEA 工具的 Bulid-->Make Project ,Rebulid Projdec 运行后，可以执行mvn install命令