sun

Changing HttpURLConnection in running jvm

允我心安 提交于 2019-12-07 16:10:00
问题 Is it possible to change the http handler in jax-ws? For example: from weblogic.net.http.HttpURLConnection to sun.net.www.protocol.http.HttpURLConnection. 回答1: you can try to using -DUseSunHttpHandler=true in the weblogic. manage weblogic by using WLST (non-clustered) add jvm arguments in the managered server env script under $WLS_DOMAIN_HOME/bin/setDomainEnv.sh JAVA_OPTIONS=-DUseSunHttpHandler=true export JAVA_OPTIONS manage weblogic by using Weblogic console (Clustered) Add

What is the cause of JVM exit code 1073807364?

送分小仙女□ 提交于 2019-12-07 06:28:54
问题 I've built a RCP-based application, and one of my users running on Windows XP, Sun JVM 1.6.0_12 had a full application crash. After the app was running for two days (and this is not a new version or anything), he got the nice gray JVM force exit box, with exit code=1073807364. He was away from the machine at the time, and the only thing I can find near that time in the application logs was some communication with the database (SQL Server by way of Hibernate). There's no hs_ files or anything

NetBeans IDE under Oracle

梦想与她 提交于 2019-12-06 07:08:24
问题 I'm a bit freaked about what I just read. I did some research, as I want to start programming in Java, and I came to the conclusion that NetBeans is the best IDE for me because of its capable Swing GUI Designer and powerful reporting with Jasper Reports (iReport). Yet Oracle (who will soon buy Sun) doesn't seem to care about NetBeans. As I will start building appz in Java no too long from now, I would like to know your opinion on the following matter: Shall I continue using NetBeans in spite

How to do thread dump on Out Of Memory Error [duplicate]

荒凉一梦 提交于 2019-12-06 06:10:16
This question already has answers here : how to generate thread dump java on out of memory error (6 answers) Closed 6 years ago . I know that -XX:+HeapDumpOnOutOfMemoryError will enable heap dump on OutOfMemoryError. Is there anything similar for thread dump? I need this in case when error happens on server - I don't have access to process itself when it happens zagyi The exact point of execution where an OutOfMemoryError is raised is very much random (unless you have a single threaded application), so I don't think it would make too much sense to get a thread dump upon OOM. At least this is

Changing HttpURLConnection in running jvm

霸气de小男生 提交于 2019-12-05 21:04:44
Is it possible to change the http handler in jax-ws? For example: from weblogic.net.http.HttpURLConnection to sun.net.www.protocol.http.HttpURLConnection. you can try to using -DUseSunHttpHandler=true in the weblogic. manage weblogic by using WLST (non-clustered) add jvm arguments in the managered server env script under $WLS_DOMAIN_HOME/bin/setDomainEnv.sh JAVA_OPTIONS=-DUseSunHttpHandler=true export JAVA_OPTIONS manage weblogic by using Weblogic console (Clustered) Add -DUseSunHttpHandler=true to Arguments in a or b. In Admin Console navigate to Home > Summary of Servers > <managed server

What is the cause of JVM exit code 1073807364?

£可爱£侵袭症+ 提交于 2019-12-05 10:19:00
I've built a RCP-based application, and one of my users running on Windows XP, Sun JVM 1.6.0_12 had a full application crash. After the app was running for two days (and this is not a new version or anything), he got the nice gray JVM force exit box, with exit code=1073807364. He was away from the machine at the time, and the only thing I can find near that time in the application logs was some communication with the database (SQL Server by way of Hibernate). There's no hs_ files or anything similar as far as I can tell. Web searching found a bunch of crash reports with that exit code in a

Subclassing sun.* class in same package gives IllegalAccessError

戏子无情 提交于 2019-12-05 06:27:05
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.channels.spi.SelectorProvider; class MySourceChannel extends SourceChannelImpl { public MySourceChannel

什么是J2EE、Java SE、Java EE、Java ME?

旧街凉风 提交于 2019-12-05 02:27:16
目前, Java 2 平台有 3 个版本,它们是适用于小型设备和智能卡的 Java 2 平台 Micro 版( Java 2 Platform Micro Edition , J2ME )、适用于桌面系统的 Java 2 平台标准版( Java 2 Platform Standard Edition , J2SE )、适用于创建服务器应用程序和服务的 Java 2 平台企业版( Java 2 Platform Enterprise Edition , J2EE )。 J2EE 是一种利用 Java 2 平台来简化企业解决方案的开发、部署和管理相关的复杂问题的体系结构。 J2EE 技术的基础就是核心 Java 平台或 Java 2 平台的标准版, J2EE 不仅巩固了标准版中的许多优点,例如 " 编写一次、随处运行 " 的特性、方便存取数据库的 JDBC API 、 CORBA 技术以及能够在 Internet 应用中保护数据的安全模式等等,同时还提供了对 EJB ( Enterprise JavaBeans )、 Java Servlets API 、 JSP ( Java Server Pages )以及 XML 技术的全面支持。其最终目的就是成为一个能够使企业开发者大幅缩短投放市场时间的体系结构。 J2EE 体系结构提供中间层集成框架用来满足无需太多费用而又需要高可用性

NetBeans IDE under Oracle

大兔子大兔子 提交于 2019-12-04 14:41:42
I'm a bit freaked about what I just read. I did some research, as I want to start programming in Java, and I came to the conclusion that NetBeans is the best IDE for me because of its capable Swing GUI Designer and powerful reporting with Jasper Reports (iReport). Yet Oracle (who will soon buy Sun) doesn't seem to care about NetBeans. As I will start building appz in Java no too long from now, I would like to know your opinion on the following matter: Shall I continue using NetBeans in spite of the rumours that Oracle will discontinue it or shall I make another the IDE of choice? PS: Basically

Lock analyser for Java application

倖福魔咒の 提交于 2019-12-03 16:49:48
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 runs on Sun JDK, except the lock analysis tool. The performance tool requires an IBM JDK." So can