`
xudongcsharp
  • 浏览: 477048 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

[ERROR] Failure executing javac, but could not parse the error: [ERROR] java

 
阅读更多
maven 打包编译异常
Compilation failure
Failure executing javac, but could not parse the error:
编译器 (1.6.0_21) 中出现异常。 
java.nio.BufferOverflowException
解决方案:
1、设置内存占用大小:MAVEN_OPTS=-Xmx512m。
2、设置编译编码
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
<!-- 增加字符编码,要与项目编码一致 -->
<encoding>UTF-8</encoding>
</configuration>
</plugin>

可能原因是由于字符集不统一,使用GBK、UTF-8或者UTF-16导致使用多字节存放字符,内存使用增加,堆(heap)的尺寸无法提供程序所需的空间,造成异常。更深入的分析还在进行中。
分享到:
评论

相关推荐

    maven settings.xml 解决在项目新建时报错,Error executing Maven. 2 problems

    maven settings.xml 解决在项目新建时报错 Error executing Maven. 2 problems were encountered while building the effective settings。下载这个,注意54行的目录,修改成自己的项目目录,直接覆盖原来的\conf...

    (241条消息)Python中报错“TypeError:‘list‘objectisnotcallable”的解决方法

    在Python编程过程中,可能会遇到一个常见的错误提示"TypeError: 'list' object is not callable"。这个错误通常是由于程序员不小心将内置的数据结构名称如`list`、`tuple`等作为变量名,导致后续尝试调用这些内置...

    erlang-script.rpm.sh

    erlang-script.rpm 安装mq前的依赖 来源:https://packagecloud.io/rabbitmq/erlang/install#bash-rpm

    Hibernate错误及解决办法集合

    在Java中,如果一个类没有显式地定义任何构造函数,则编译器会默认提供一个无参构造函数。但是,当显式定义了一个或多个构造函数后,编译器将不再提供默认的无参构造函数。因此,在Hibernate中,如果实体类只定义了...

    Python-FixIDAPython修复IDA加载IDAPython时出现的错误

    FixIDAPython - 修复IDA加载IDAPython时出现的错误

    Android Studio无法执行Java类的main方法问题及解决方法

    p1t59142d0xntgn799rt1c0000gn/T/TxtUtil_main__.gradle' line: 20* What went wrong:A problem occurred configuring project ':app'.&gt; Could not create task ':app:TxtUtil.main()'. &gt; SourceSet with name 'main...

    解决 github项目clone报错 Failed connect to github.com:443; 解决

    Error while executing: npm ERR! /usr/bin/git ls-remote -h -t https://github.com/nhn/raphael.git npm ERR! npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': Failed connect to ...

    acpi控制笔记本风扇转速

    ResourceTemplate, but cannot be disassembled as such because the EndTag does not appear at the very end of the buffer. AcpiExec - Added the "-t" command line option to enable the serialized mode of ...

    微软内部资料-SQL性能优化3

    For example, a second transaction traversing the doubly linked list mentioned above would see the list before or after the insert, but it will see only complete changes. Durability After a ...

    vc中error LNK2001 resolved external symbol _WinMain@16的解决方法

    - `error executing link.exe` - **现象**: - 在尝试编译并链接包含`WinMain`函数的代码时,链接器无法找到正确的入口点。 #### 二、产生这个问题可能的原因 该错误产生的原因主要有以下几点: 1. **使用了...

    jsp java access跨平台组件

    java是跨平台的,但是数据库不是, ...HXTT Access Version 3.2 For Evaluation Purpose allows executing not more than 50 queries once. You can order it from . 所以使用时请大家支持正版!自行购买!

    2009 达内Unix学习笔记

    集合了 所有的 Unix命令大全 ...telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss ... 各个 shell 可互相切换 ksh:$ sh:$ csh:guangzhou% bash:bash-3.00$ ... 命令和参数之间必需用空格隔...

    swingx包

    &lt;br&gt;If jUnit is not properly configured, you may get an error like this: BUILD FAILED c:\swingx\nbproject\build-impl.xml:407: Following error occured while executing this line c:\\...

    Java2核心技术卷I+卷2:基础知识(第8版) 代码

    Java 核心技术 卷1 Index Chapter 1: An Introduction to Java 1 Java As a Programming Platform 2 The Java “White Paper” Buzzwords 2 Java Applets and the Internet 7 A Short History of Java 9 ...

    hive on tez 常见报错问题收集

    4. 错误四:Hive Runtime Error while closing operators: null 当遇到此运行时异常时,可以尝试禁用向量化执行或者混合Grace Hash Join,设置`hive.vectorized.execution.enabled`为false,以及`hive.mapjoin....

    Executing SOA (执行SOA)2008

    《Executing SOA: A Practical Guide for the Service-Oriented Architect》是Norbert Bieberstein、Robert G. Laird、Dr. Keith Jones与Tilak Mitra四位资深SOA实践者共同编著的一本深入探讨服务导向架构(SOA)...

    pytorch dataloader 取batch_size时候出现bug的解决方式

    1. `RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 342 and 281 in dimension 3` 2. `RuntimeError: invalid argument 0: Sizes of tensors must match except in ...

    import-html-entry:HTML输入原始码

    HTML条目原始分析 文章发布于,通过对比JS Entry,... &lt;!... &lt;...-- mark the entry script with entry attribute --&gt; &lt; script src =" https://unpkg.com/mobx@5.0.3/lib/mobx.umd.js " entry &gt; &lt;/ sc

    Google C++ Style Guide(Google C++编程规范)高清PDF

    For example, if your header file uses the File class in ways that do not require access to the declaration of the File class, your header file can just forward declare class File; instead of having ...

Global site tag (gtag.js) - Google Analytics