• Custom Call
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies

Hello,

When trying to generate jar from Partner wsdl - Version 54.0
I see Null Pointer Exception, I beleive from force-wsc-54.0.0

I am using following jars

  1. force-wsc-54.0.0
  2. ST-4.3.1
  3. rhino-1.7.14
  4. antlr-runtime-3.5.2
  5. tools.jar from jdk1.8.0_181

Moved all the jars to one folder and tried the following from command prompt. 

java -classpath tools.jar;force-wsc-54.0.0.jar;ST-4.3.1.jar;rhino-1.7.14.jar;antlr-runtime-3.5.2.jar com.sforce.ws.tools.wsdlc partner.wsdl sf-partner.jar
Output from command prompt
 
[WSC][wsdlc.main:72]Generating Java files from schema ...
[WSC][wsdlc.main:72]Generated 701 java files.
Exception in thread "main" java.lang.NullPointerException
        at com.sforce.ws.codegen.Compiler.<init>(Compiler.java:48)
        at com.sforce.ws.codegen.Generator.compileTypes(Generator.java:136)
        at com.sforce.ws.tools.wsdlc.run(wsdlc.java:129)
        at com.sforce.ws.tools.wsdlc.run(wsdlc.java:163)
        at com.sforce.ws.tools.wsdlc.main(wsdlc.java:72)

Thank you. 
 

 

Hello,

When trying to generate jar from Partner wsdl - Version 54.0
I see Null Pointer Exception, I beleive from force-wsc-54.0.0

I am using following jars

  1. force-wsc-54.0.0
  2. ST-4.3.1
  3. rhino-1.7.14
  4. antlr-runtime-3.5.2
  5. tools.jar from jdk1.8.0_181

Moved all the jars to one folder and tried the following from command prompt. 

java -classpath tools.jar;force-wsc-54.0.0.jar;ST-4.3.1.jar;rhino-1.7.14.jar;antlr-runtime-3.5.2.jar com.sforce.ws.tools.wsdlc partner.wsdl sf-partner.jar
Output from command prompt
 
[WSC][wsdlc.main:72]Generating Java files from schema ...
[WSC][wsdlc.main:72]Generated 701 java files.
Exception in thread "main" java.lang.NullPointerException
        at com.sforce.ws.codegen.Compiler.<init>(Compiler.java:48)
        at com.sforce.ws.codegen.Generator.compileTypes(Generator.java:136)
        at com.sforce.ws.tools.wsdlc.run(wsdlc.java:129)
        at com.sforce.ws.tools.wsdlc.run(wsdlc.java:163)
        at com.sforce.ws.tools.wsdlc.main(wsdlc.java:72)

Thank you. 
 

 

I am having the enterprise.wsdl file and i am trying to create a jar file using command 

 

java -classpath wsc-20.jar com.sforce.ws.tools.wsdlc enterprise.wsdl enterprise.jar

 

but getting an error "Error: Unable to find compiler. Make sure that tools.jar is in your classpath:

java.lang.ClassNotFoundException: com/sun/tools/javac/Main.class"

 

can anyone help me..............

 

thank you.......................