Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Problems while debugging only ...
Problems while debugging only ... [message #13232] Sun, 04 May 2003 22:23 Go to next message
Eclipse UserFriend
Originally posted by: timothy.rmSolipsistic.net

Hello,

This may sound strange but I'm having a problem with my java application
that only occurs when I either run, or debug, the application through
Eclipse. The particular problem is
javax.crypto.SecretKeyFactory.getInstance("PBEWithMD5AndDES ") throwing a
NoSuchAlgorithmException.

If I use NetBeans, or run it though a Jar I export, it works fine. I'm using
Sun's 1.4.1_02 sdk under linux (the 'unlimited' crypto policies don't
change things).

To illustrate things, I took a process list when it was being debugged.
Eclipse executes the app like so (I'll try to format it so it's readable):

*** Cmd Line Start ***
/opt/sun-jdk-1.4.1.02/bin/java
-Xbootclasspath:/opt/sun-jdk-1.4.1.02/jre/lib/rt.jar:
/opt/sun-jdk-1.4.1.02/jre/lib/sunrsasign.jar:
/opt/sun-jdk-1.4.1.02/jre/lib/jsse.jar:
/opt/sun-jdk-1.4.1.02/jre/lib/jce.jar:
/opt/sun-jdk-1.4.1.02/jre/lib/charsets.jar:
/opt/sun-jdk-1.4.1.02/jre/lib/ext/dnsns.jar:
/opt/sun-jdk-1.4.1.02/jre/lib/ext/sunjce_provider.jar:
/opt/sun-jdk-1.4.1.02/jre/lib/ext/ldapsec.jar:
/opt/sun-jdk-1.4.1.02/jre/lib/ext/localedata.jar
-classpath /home/coder/projects/simplejab/:
/home/coder/projects/simplejab/cryptix-jce-provider.jar:
/home/coder/projects/simplejab/xercesImpl.jar:
/home/coder/projects/simplejab/xmlParserAPIs.jar

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp
transport=dt_socket,suspend=y,address=localhost:6440
net.solipsistic.simplejab.SimpleJabApplication
*** Cmd Line End ***

When debugging in Netbeans (which works) the command line is this:

*** Cmd Line Start ***
/opt/sun-jdk-1.4.1.02/bin/java

-ea -Xdebug -Xnoagent -Xrunjdwp
transport=dt_socket,address=rhinoplasty:32867,suspend=y
-Djava.compiler=NONE

-classpath /home/coder/.netbeans/3.4/system:
/home/coder/.netbeans/3.4/system:
/opt/netbeans/system:
/opt/netbeans/modules/ext/AbsoluteLayout.jar:
/opt/netbeans/beans/TimerBean.jar:
/home/coder/projects/simplejabcopy:
/home/coder/projects/simplejabcopy/cryptix-jce-provider.jar:
/home/coder/projects/simplejabcopy/xercesImpl.jar:
/home/coder/projects/simplejabcopy/xmlParserAPIs.jar

net.solipsistic.simplejab.SimpleJabApplication
*** Cmd Line End ***

At first glance it seems like maybe the -Xbootclass option eclipse provides
is doing something to this process ... but I really am at a loss here. I've
looked over all of the Debug options/preferences and cannot find anything
that helps.

Does anyone else have any ideas?

Thanks,

Tim
Re: Problems while debugging only ... [message #15968 is a reply to message #13232] Tue, 06 May 2003 19:22 Go to previous message
Eclipse UserFriend
Originally posted by: timothy.rmSolipsistic.net

Well, get this. Couldn't reproduce this on my Win2k partition, or my other
linux box. So I uninstalled all my jdk's and eclipse, wiped out my
workspace directory, and started from scratch. This time it works! I have
no clue what I managed to do, but it's working now ...

Timothy Bogdala wrote:

> Hello,
>
> This may sound strange but I'm having a problem with my java
> application
> that only occurs when I either run, or debug, the application through
> Eclipse. The particular problem is
> javax.crypto.SecretKeyFactory.getInstance("PBEWithMD5AndDES ") throwing a
> NoSuchAlgorithmException.
>
> If I use NetBeans, or run it though a Jar I export, it works fine. I'm
> using Sun's 1.4.1_02 sdk under linux (the 'unlimited' crypto policies
> don't change things).
>
> To illustrate things, I took a process list when it was being debugged.
> Eclipse executes the app like so (I'll try to format it so it's readable):
>
> *** Cmd Line Start ***
> /opt/sun-jdk-1.4.1.02/bin/java
> -Xbootclasspath:/opt/sun-jdk-1.4.1.02/jre/lib/rt.jar:
> /opt/sun-jdk-1.4.1.02/jre/lib/sunrsasign.jar:
> /opt/sun-jdk-1.4.1.02/jre/lib/jsse.jar:
> /opt/sun-jdk-1.4.1.02/jre/lib/jce.jar:
> /opt/sun-jdk-1.4.1.02/jre/lib/charsets.jar:
> /opt/sun-jdk-1.4.1.02/jre/lib/ext/dnsns.jar:
> /opt/sun-jdk-1.4.1.02/jre/lib/ext/sunjce_provider.jar:
> /opt/sun-jdk-1.4.1.02/jre/lib/ext/ldapsec.jar:
> /opt/sun-jdk-1.4.1.02/jre/lib/ext/localedata.jar
> -classpath /home/coder/projects/simplejab/:
> /home/coder/projects/simplejab/cryptix-jce-provider.jar:
> /home/coder/projects/simplejab/xercesImpl.jar:
> /home/coder/projects/simplejab/xmlParserAPIs.jar
>
> -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp
> transport=dt_socket,suspend=y,address=localhost:6440
> net.solipsistic.simplejab.SimpleJabApplication
> *** Cmd Line End ***
>
> When debugging in Netbeans (which works) the command line is this:
>
> *** Cmd Line Start ***
> /opt/sun-jdk-1.4.1.02/bin/java
>
> -ea -Xdebug -Xnoagent -Xrunjdwp
> transport=dt_socket,address=rhinoplasty:32867,suspend=y
> -Djava.compiler=NONE
>
> -classpath /home/coder/.netbeans/3.4/system:
> /home/coder/.netbeans/3.4/system:
> /opt/netbeans/system:
> /opt/netbeans/modules/ext/AbsoluteLayout.jar:
> /opt/netbeans/beans/TimerBean.jar:
> /home/coder/projects/simplejabcopy:
> /home/coder/projects/simplejabcopy/cryptix-jce-provider.jar:
> /home/coder/projects/simplejabcopy/xercesImpl.jar:
> /home/coder/projects/simplejabcopy/xmlParserAPIs.jar
>
> net.solipsistic.simplejab.SimpleJabApplication
> *** Cmd Line End ***
>
> At first glance it seems like maybe the -Xbootclass option eclipse
> provides is doing something to this process ... but I really am at a loss
> here. I've looked over all of the Debug options/preferences and cannot
> find anything that helps.
>
> Does anyone else have any ideas?
>
> Thanks,
>
> Tim
Previous Topic:can't format selections
Next Topic:Eclipse and Emacs - newbie
Goto Forum:
  


Current Time: Wed May 14 20:29:24 EDT 2025

Powered by FUDForum. Page generated in 0.03043 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top