问题标签 [jdk1.6]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - Random crashes of Java VM in ConcurrentGCThread
We have problems with JVMs running internet applications under changing load. This problem comes and goes. One day we see three VMs dying and after that, there is nothing for a week or two. We have not found a pattern yet, found nothing to reproduce or cause it. Also a search in the Sun bug database did not help.
We tried a suggested workaround (-XX:-CMSPermGenPrecleaningEnabled -XX:-CMSConcurrentMTEnabled) from http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6354939 Did not help. It seem to just change the thread that causes it... or at least make us believe so.
Also an upgrade to 1.6.0_13 did not help and the bug request to Sun never returned a response.
So my question is, has anyone seen that or has an idea what to look for? Could this be related to OS libraries?
Edited: OS is Linux, OpenSuse running on AMD cpus (Linux 2.6.18.8-0.1-dw #3 SMP Thu Mar 15 01:21:48 GMT 2007 x86_64 x86_64 x86_64 GNU/Linux)
java - 替代 javax.activation.MimetypesFileTypeMap().getContentType(filename);
我有一些代码:
似乎 javax.activation.MimetypesFileTypeMap 类在rt.jar
JRE 系统库(jdk1.6.0_10)中,但在 jdk1.5.0 中没有
我想避免使用 1.6 库。有人知道一个简单快捷的替代方案吗?
java - 如何关闭 com.sun.net.httpserver.HttpServer?
嵌入在 JDK 6 中的 Http Server 对开发 Web 服务有很大帮助,但是我遇到了一种情况,即我发布了一个 Endpoint,然后代码崩溃并让服务器继续运行。
一旦失去对嵌入式服务器的引用(或已发布的端点),如何关闭嵌入式服务器?
java - Running Two Versions of Java JDK
I primarily use JDeveloper 10 with JDK 1.4.2 on Vista. I would like to install Eclipse and have it run the latest JDK 6.
Is this possible without conflict?
Ideally I would like to just use JDeveloper and switch back/forth between JDK versions. Is this possible?
java - 使用 JDK 1.6.x G1(“垃圾优先”)的经验
我想知道最新JDK中G1垃圾收集器的经验是什么?我看到NullPointerException
在我的程序中抛出了异常,尽管代码在早期的 JDK 中并没有改变并且行为正确。
java - 用于 jdk 1.5 的系统托盘
我正在将代码从 jdk 1.6 转换为 jdk 1.5,代码是:
你们能告诉我兼容的代码是什么吗?
java - Java 1.6 Applet 和 Mac OS X,这里有官方问题吗?
我正在用 Java 1.6 开发一个小程序,它应该(当然)可以在 Mac 和 PC 上运行。
然而,使用 Mac 的人似乎都安装了 Java 1.5,即使他们使用 Mac 更新工具来更新他们的软件。
这对我来说似乎很奇怪,因为 2006 年发布了 Java 1.6,Apple 没有自动更新 Java。这有官方原因吗?
还; 如果我去http://www.java.com/en/download/help/testvm.xml,Mac OSX 没有列出?
java - 使用junit编译错误
我正在尝试从课程中获取一些代码来处理我当前的安装:eclipse 3.4.2,一个带有 jdk1.60_13、JUnit 4_4.3.1 的项目,但 JUnit 类型Theories
无法@DataPoint
解析。此外,例如replay()
和verify()
方法也无法识别。我做错了什么(除了使用Java)?
java - 为什么我们在 Java 1.6 中从 FileChannel.map 获得 ClosedByInterruptException?
我们的一位客户偶尔抱怨说,我们的电话FileChannel.map
以ClosedByInterruptException
. Javadoc并未将此列为合法的可能性。有谁知道这里可能会发生什么?
exception - PgSQL 异常:未找到列名
我在我的应用程序中使用带有 jdk 1.6 的 postgresql-8.3-603.jdbc4.jar 来执行数据库操作。我有时会遇到以下异常,重新启动有助于暂时避免这种异常。
org.postgresql.util.PSQLException:在此 ResultSet 中找不到列名 sender_id。在 org.postgresql.jdbc2.AbstractJdbc2ResultSet.findColumn(AbstractJdbc2ResultSet.java:2502) 在 org.postgresql.jdbc2.AbstractJdbc2ResultSet.getString(AbstractJdbc2ResultSet.java:2345) 在 org.apache.commons.dbcp.DelegatingResultSet.getString(DelegatingResultSet.java :225) 在 org.apache.commons.dbcp.DelegatingResultSet.getString(DelegatingResultSet.java:225) 在 com.netcore.bulkrequest.db.FeedDAO.setFeedDetails(FeedDAO.java:142) 在 com.netcore.bulkrequest.feed。 Feed.getInstance(Feed.java:37) 在 com.netcore.bulkrequest.core.BulkRequestTask.(BulkRequestTask.java:86) 在 com.netcore.bulkrequest.core.BulkRequestValidate.getBulkRequestTaskObject(BulkRequestValidate.java:104) 在 com。网核。
这是代码片段:
public class FeedDAO { /** * 数据库连接池对象 */ private final DBContext dbc;
公共无效 setFeedDetails() 抛出 SQLException {
}
谁能帮我找到永久修复?
谢谢,玛尼