Skip to main content

alphaWorks  >  Forums  >  Security Workbench Development Environment for Java  >  developerWorks

Unable to use sword4j - Error when signing    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 3 - Pages: 1 - Last Post: Feb 5, 2008 12:22 PM Last Post By: habeck Threads: [ Previous | Next ]

Posts: 3
Registered: Jan 11, 2007 12:35:32 PM
Unable to use sword4j - Error when signing
Posted: Jan 12, 2007 01:14:58 PM
Click to report abuse...   Click to reply to this thread Reply
WinXP, JDK/JRE 1.6.0
Eclipse

"Signing or PhotoShare.jar
Error signing jar file. Cannot run program ""C:\Program": CreateProcess error=3, The system cannot find the path specified.

Signing of PhotoShare.jar scheduled.
Signing of PhotoShare.jar about to run.
Signing of PhotoShare.jar running.
Signing of PhotoShare.jar completed.

I am also unable to run an analysis, it says "canceled" in the details, and Callgraph-Completed-false in the monitor tab.

From the log:

Analyzing the program.
Total elapsed time: 2884ms. Interval time: 2884ms.
com.ibm.toad.utils.D$AssertionException:
Assertion failure:illegal LDC_W type7
at com.ibm.toad.utils.D.assert(Unknown Source)
at com.ibm.toad.utils.D.abort(Unknown Source)
at com.ibm.toad.jan.jbc.myIter.traverse(Unknown Source)
at com.ibm.toad.jan.jbc.cfgimpl.FindLeadersVisitor.findLeaders(Unknown Source)
at com.ibm.toad.jan.jbc.cfgimpl.myCFG.<init>(Unknown Source)
at com.ibm.toad.jan.jbc.cfgimpl.CFGFactory.makeNewGraph(Unknown Source)
at com.ibm.etools.saber.engine.cs.JCSMethodCFP.processByteCodes(Unknown Source)
at com.ibm.etools.saber.engine.cs.JCSMethodLP.processByteCodesAndResolve(Unknown Source)
at com.ibm.etools.saber.engine.cs.JCSMethodLP.getGetSites(Unknown Source)
at com.ibm.etools.saber.engine.cg.FirstActiveUse.getFirstActiveUse(Unknown Source)
at com.ibm.etools.saber.engine.cg.OldCallGraph.traverse(Unknown Source)
at com.ibm.etools.saber.engine.cg.OldCallGraph.makeCallGraph(Unknown Source)
at com.ibm.etools.saber.engine.main.Main.process(Unknown Source)
at com.ibm.etools.saber.engine.main.Main.start(Unknown Source)
at com.ibm.etools.saber.engine.main.Main.start(Unknown Source)
at com.ibm.security.handlers.j2sesa.AnalysisHandler.startNewAnalysis(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.ibm.security.j2sesa.jobs.JarAnalysisJob.run(JarAnalysisJob.java:248)
at java.lang.Thread.run(Unknown Source)

David Kircheis

Posts: 1
Registered: Jun 02, 2005 07:21:15 PM
Re: Unable to use sword4j - Error when signing
Posted: Oct 09, 2007 04:28:05 PM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
I'm getting the same errors in
Eclipse Platform
Version: 3.3.0
Build id: M20070921-1145

Security Workbench Development for Java (SWORD4J)
Version: 1.0.66
Build id: 200605221300

JarSigner
Version: 1.0.9
Build id: 200604281500

Main: Finding root nodes.
Analyzing the program.
Total elapsed time: 46337ms. Interval time: 46337ms.
com.ibm.toad.utils.D$AssertionException:
Assertion failure:illegal LDC_W type7
at com.ibm.toad.utils.D.assert(Unknown Source)
at com.ibm.toad.utils.D.abort(Unknown Source)
at com.ibm.toad.jan.jbc.myIter.traverse(Unknown Source)
at com.ibm.toad.jan.jbc.cfgimpl.FindLeadersVisitor.findLeaders(Unknown Source)
at com.ibm.toad.jan.jbc.cfgimpl.myCFG.<init>(Unknown Source)
at com.ibm.toad.jan.jbc.cfgimpl.CFGFactory.makeNewGraph(Unknown Source)
at com.ibm.etools.saber.engine.cs.JCSMethodCFP.processByteCodes(Unknown Source)
at com.ibm.etools.saber.engine.cs.JCSMethodLP.processByteCodesAndResolve(Unknown Source)
at com.ibm.etools.saber.engine.cs.JCSMethodLP.getReturnTypeFunctSet(Unknown Source)
at com.ibm.etools.saber.engine.cg.CGCallSiteSimpleImpl.doReturnValue(Unknown Source)
at com.ibm.etools.saber.engine.cg.CGCallSiteSimpleImpl.doAllCallSites(Unknown Source)
at com.ibm.etools.saber.engine.cg.CGCallSiteSimpleImpl.evaluateSite(Unknown Source)
at com.ibm.etools.saber.engine.cg.OldCallGraph.traverse(Unknown Source)
at com.ibm.etools.saber.engine.cg.OldCallGraph.makeCallGraph(Unknown Source)
at com.ibm.etools.saber.engine.main.Main.process(Unknown Source)
at com.ibm.etools.saber.engine.main.Main.start(Unknown Source)
at com.ibm.etools.saber.engine.main.Main.start(Unknown Source)
at com.ibm.security.handlers.j2sesa.AnalysisHandler.startNewAnalysis(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.ibm.security.j2sesa.jobs.JarAnalysisJob.run(JarAnalysisJob.java:248)
at java.lang.Thread.run(Unknown Source)
MirkoJahn

Posts: 1
Registered: Jun 19, 2007 04:49:30 PM
Re: Unable to use sword4j - Error when signing
Posted: Jan 03, 2008 08:19:15 PM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
I ran into the same problem and figured out, that the path to the jarsigner.exe mustn't have any spaces. Basically there are two fairly easy work arounds.

First, you install your JDK (!) in a folder without a space or second you copy the complete JRE (from the JDK) into the eclipse folder (which will force Eclipse to pic that one, instead of the system JRE), together with the bin folder of the JDK, which actually contains the jarsigner application. I hope that helps.

Regards,
Mirko
habeck

Posts: 10
Registered: Mar 05, 2004 10:43:14 AM
Re: Unable to use sword4j - Error when signing
Posted: Feb 05, 2008 12:22:50 PM   in response to: David Kircheis in response to: David Kircheis's post
Click to report abuse...   Click to reply to this thread Reply
Hello,

SWORD4J 2.0.120 (Posted Feb 5, 2008) should resolve the LDC_W type7 error you described in your posting.

Regards,

Ted

Point your RSS reader here for a feed of the latest messages in all forums