Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JNDI lookk uo in WSAD5.1.2

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently migrating from WSAD4.0 to WASD5.1.2
I AM GETTING THE FOLLOWING EXCEPTION.
I tried to fing it out and I suppose the error is in JNDI look up for home object.
In the coding it is as follows:
Object ojb = initContext.lookup("ejb/com/messing/in/ins/sys/mass/sysservice/DataRetrieverHome");


Exception in thread "main" java.lang.NullPointerException
at com.metlife.us.ins.sys.mass.busnobjs.DocGenController.extractData(DocGenController.java:195)
at com.metlife.us.ins.sys.mass.busnobjs.DocGenController.processMessage(DocGenController.java:85)
at com.metlife.us.ins.sys.mass.busnobjs.DocGenController.main(DocGenController.java:616)
Pls let me know the solution
 
author & internet detective
Posts: 40035
809
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joel,
Welcome to JavaRanch!

According to that message something is null that is directly accessed by the extractData method on line 195. Try printing the values of all objects referenced on that line to see which is null.
 
Joel Kris
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My home object is null.
During migartion what should be done for the look up of ejbhome to be successful.
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joel,
Did you migrate the EJB Project from ejb1.1 to ejb 2.0 in your workspace?
Its as simple a right click on the ejb project and then select the Migrate option.

best regards,
 
Jeanne Boyarsky
author & internet detective
Posts: 40035
809
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joel,
Try the JNDI explorer in the universal test client to see if the bean is there. Also, check for a message about the EJB as the server starts up to make sure it exists.
 
I will open the floodgates of his own worst nightmare! All in a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic