athibanraj / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
0 stars 0 forks source link

Getting NullPointerException from Service class #420

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I wrote a wrapper/client to access provisioning API's of gdata-java-
   client, just like the sample that this sdk provided. 
2. I used the above mentioned client to write a TDI(Tivoli Directory 
   Integrator) connector, which is again another class internally calling 
   the methods exposed by the wrapper mentioned above.
3. And I am getting a null pointer exception when the wrapper tries to 
   create and instance of UserService class. It works if i call these 
   API's directly from eclipse, but under TDI runtime, it fails with the 
   below exception:

[
    java.lang.Exception: java.lang.ExceptionInInitializerError
    at com.ibm.di.server.AssemblyLineComponent.handleException(AssemblyLineComponent.java:2366)
    at com.ibm.di.server.AssemblyLineComponent.doInitialize(AssemblyLineComponent.java:1143)
    at com.ibm.di.server.AssemblyLineComponent.initialize(AssemblyLineComponent.java:1115)
    at com.ibm.di.server.AssemblyLine.initConnectors(AssemblyLine.java:1865)
    at com.ibm.di.server.AssemblyLine.msInitConn(AssemblyLine.java:3346)
    at com.ibm.di.server.AssemblyLine.executeMainStep(AssemblyLine.java:3168)
    at com.ibm.di.server.AssemblyLine.executeMainLoop(AssemblyLine.java:2829)
    at com.ibm.di.server.AssemblyLine.executeMainLoop(AssemblyLine.java:2812)
    at com.ibm.di.server.AssemblyLine.executeAL(AssemblyLine.java:2781)
    at com.ibm.di.server.AssemblyLine.run(AssemblyLine.java:1275)
Caused by: java.lang.ExceptionInInitializerError
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:218)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
    at com.gs.google.apps.client.GoogleAppsProvAPIClientConfig.getUserService(GoogleAppsProvAPIClientConfig.java:43)
    at com.gs.google.apps.client.GoogleAppsProvAPIClient.getUser(GoogleAppsProvAPIClient.java:36)
    at com.gs.google.apps.connector.GoogleAppsConnector.initialize(GoogleAppsConnector.java:36)
    at com.ibm.di.server.AssemblyLineComponent.doInitialize(AssemblyLineComponent.java:1140)
    ... 8 more
Caused by: java.lang.NullPointerException
    at com.google.gdata.client.Service.<clinit>(Service.java:97)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
    ... 15 more

]

What is the expected output? What do you see instead?
I should be able to successfully create an instance of UserService class. 

What version of the product are you using? On what operating system?
gdata client library version :  1.47.1
OS                           :  win 2k3 Enterprise x64

Please provide any additional information below.

Original issue reported on code.google.com by rajiv.s...@gslab.mygbiz.com on 12 Dec 2012 at 11:37