sun

Anyone tried submitting hs_err files to Sun?

只愿长相守 提交于 2020-01-24 10:49:46
问题 I run a lot of java code on my servers, and occasionally I get a JVM crash, accompanied by a crash dump hs_err_pid file. Lately I've decided to try to be a better netizen, so I examined the latest crash log, made sure it was indeed the latest JVM, and that the crash was not caused by an external library, and then I tried submitting the file to Sun's bug database. However, it seems that the entire submitting process is geared towards preventing you from submitting bug reports, making sure you

What impact, if any, does the -d64 switch have on Sun JVM resident memory usage?

有些话、适合烂在心里 提交于 2020-01-09 19:28:20
问题 I've got this webapp that needs some memory tuning. While I'm already profiling the application itself and trimming things down, the JVM itself seems overly bloated to me on our busiest instance. (The lower volume instances do not have this problem.) The details: Platform: RHEL4 64-bit ( Linux 2.6.9-78.0.5.ELsmp #1 SMP x86_64 ) Sun Java 6 ( Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode) ) Tomcat 6 with -d64 in startup.sh My webapp currently has some code that in production

java.lang.AssertionError thrown by compiler when adding generated method with parameters

Deadly 提交于 2020-01-03 09:05:26
问题 I am modifying an existing class using internal sun APIs ( com.sun.tools.javac ) with an annotation processor. I am able to generate and add a MethodDecl to a ClassDecl using the following code: JCTree.JCClassDecl classDecl = ... JCTree.JCMethodDecl methodDecl = ... JCTree[] trees = new JCTree[classDecl.defs.length() + 1]; trees[classDecl.defs.length()] = methodDecl; classDecl.defs = List.from(trees); This works fine until I try to add parameters to the method declaration. I use the following

How can I fix a “unable to find valid certification path to requested target” error using conda installed Java? [duplicate]

Deadly 提交于 2019-12-25 18:16:55
问题 This question already has answers here : Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error? (18 answers) Closed 4 months ago . I was using the command yesterday and it worked perfectly. I may have installed a different perl or ava but I'm not sure why this would cause the error. I've looked at the other examples of this on StackOverflow but it appears that they are applicable to web browsers. How can I fix this on a

Subclassing sun.* class in same package gives IllegalAccessError

自闭症网瘾萝莉.ら 提交于 2019-12-22 06:28:49
问题 Foreword: What am I going to show you is WRONG and I'm well aware of how bad I am for breaking encapsulation by doing such foolish thing. I'm not trying to solve any more general I/O problem. It's just an experiment. I'm trying to sub-class sun.nio.ch.SourceChannelImpl which is package private class with package private constructor present in JDK (in rt.jar) so I have to create it in sun.nio.ch package. Here is my sub-class: package sun.nio.ch; import java.io.FileDescriptor; import java.nio

Subclassing sun.* class in same package gives IllegalAccessError

做~自己de王妃 提交于 2019-12-22 06:27:07
问题 Foreword: What am I going to show you is WRONG and I'm well aware of how bad I am for breaking encapsulation by doing such foolish thing. I'm not trying to solve any more general I/O problem. It's just an experiment. I'm trying to sub-class sun.nio.ch.SourceChannelImpl which is package private class with package private constructor present in JDK (in rt.jar) so I have to create it in sun.nio.ch package. Here is my sub-class: package sun.nio.ch; import java.io.FileDescriptor; import java.nio

Lock analyser for Java application

余生颓废 提交于 2019-12-21 05:27:10
问题 I have two versions of a Java application which use different concurrency logic. I want to analyze and compare their performance (such amount of time a lock was acquired etc.) so that I can use the better one. I found out a tool IBM Lock Analyzer for Java but it is neither open source nor JDK version independent. It requires an IBM®-supplied Java™ SDK or JRE. Another tool also from IBM is Multicore Software Development Kit and has the following problem "The testing and analysis tool of MSDK

Is it safe to distribute tools.jar along with a Java application bundle?

蓝咒 提交于 2019-12-18 08:58:36
问题 Although tools.jar is not a component in JRE, but it comes with all major implementations of JDK such as Oracle JDK and OpenJDK. Not being standard component of JRE means that when I distribute a Java application which uses tools.jar , I have to distribute it along with the application bundle OR include it in classpath. My questions are: Does tools.jar contain platform-dependent components that prevent it from being distributed across different platforms (Windows/Linux/OSX)? We already know

Can standard Sun javac do incremental compiling?

不打扰是莪最后的温柔 提交于 2019-12-17 22:39:20
问题 Recently I started to use Eclipse's java compiler, because it is significantly faster than standard javac. I was told that it's faster because it performs incremental compiling. But I'm still a bit unsure about this since I can't find any authoritative documentation about both - eclispse's and sun's - compilers "incremental feature". Is it true that Sun's compiler always compiles every source file and Eclipse's compiler compile only changed files and those that are affected by such a change?

The following artifacts could not be resolved: javax.jms:jms:jar:1.1

隐身守侯 提交于 2019-12-17 15:14:14
问题 I am trying to compile a maven project, but I systematically get the following error message: [ERROR]Failed to execute goal on project ...: Could not resolve dependencies for project ...:war:1.0.0: The following artifacts could not be resolved: javax.jms:jms:jar:1.1, com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Failure to find javax.jms:jms:jar:1.1 in http://mirrors.ibiblio.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update