java.lang.nullpointerException

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • isra123
    New Member
    • Dec 2008
    • 5

    java.lang.nullpointerException

    Hi All,

    hope every one feeling good.

    Can anyone help me on this:

    I am working on an "Alfresco Code" so I am taking the alfresco code from eclipse as a JAR file then add it to page which called "Login Page" library as external JAR file.

    Then II made import for the package and identify objects from that JAR Classes from the JAR file with no problems..

    But when I execute the code , it runs with no errors untill the code call an object from the JAR then I have the following exception:


    "java.lang.Null PointerExceptio n at com.deltamatics .crc.service.Al frescoServices. getServiceRegis try(AlfrescoSer vices.java:79)a tcom.deltamatic s.crc.services. AlfrescoService s.getAuthentica tionService(Alf rescoServices.j ava:113)at com.deltamatics .crc.services.A lfrescoServices .login(Alfresco Services.java:5 0)


    Please Can anyone help me on this as soon as possible!!!!
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by isra123
    "java.lang.Null PointerExceptio n at com.deltamatics .crc.service.Al frescoServices. getServiceRegis try(AlfrescoSer vices.java:79)a t
    com.deltamatics .crc.services.A lfrescoServices .getAuthenticat ionService(Alfr escoServices.ja va:113)at com.deltamatics .crc.services.A lfrescoServices .login(Alfresco Services.java:5 0)
    Read the stack trace: somewhere in the method com.deltamatics .crc.service.Al frescoServices. getServiceRegis try the JVM found out that something was equal to null. When you go back in the stack trace you'll find some of your own methods. Add System.out.prin tln statements in there to make sure what your're passing around to the methods that were mentioned more near to the stack top. Most likely you're passing a null value around.

    kind regards,

    Jos

    Comment

    • isra123
      New Member
      • Dec 2008
      • 5

      #3
      thanks alot ,I will try that and let you know

      Comment

      Working...