Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Debuging Java Web start application

user8769643Feb 16 2017 — edited Feb 16 2017

Hello all - i am a newbie in java and recently working on troubleshooting a web start application running on Java 1.7. This is the exception below which i want to troubleshoot in eclipse.

Internal error occurred. It might be necessary to restart the application.

java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to com.services.projects.operations.GetUnitListResponse$UnitKey

  at com.designer.ui.actions.tasks.AirspaceUnitProjectListOfflineTask.doOffline

  at com.designer.ui.actions.tasks.AirspaceUnitProjectListOfflineTask.doOffline

  at com.designer.ui.actions.tasks.OfflineTaskDialog.run(OfflineTaskDialog.java)

  at java.lang.Thread.run(Unknown Source)

So i want to start attach a debugger and executed the following command from command line

javaws -verbose -J-Xdebug -J-Xnoagent -J-Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=8009 http://localhost:8080/saace/saa.jnlp

Also in eclipse i defined a new Remote java application with hostname : localhost and port 8009 and set my breakpoints. I see when i switch to debug mode the project seems to be connected.

But from my webstart application when i try to fetch the unitlist i was hoping the control would be switched to eclipse and will halt at the break point but it's not happening.

Can you please help if i am missing something.

thanks for your help in advance.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 16 2017
Added on Feb 16 2017
1 comment
5,091 views