• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.lang.ClassCastException: javax.naming.Reference

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I am trying to run my queuing application in my machine.but it is showing some exception.I have attached all the logs here please find the bug and let me know.It was running before i formate my machine after that it is not running.

this is the log

D:\live\JMSServer\ReceivingQ>java com/leader/chart/server/JMS/PriceUpdater -Xms5
12m -Xmx512m
After the org.jnp.interfaces
after the context creation
Error in PriceContainer :java.lang.ClassCastException: javax.naming.Reference
Error in PriceContainer in catch block :java.lang.NullPointerException

D:\live\JMSServer\ReceivingQ>pause
Press any key to continue . . .


these are all the jars i have set in the class path.


D:\live\JMSServer\ReceivingQ>set classpath=D:\jboss-3.2.6\driver\j2ee.jar;D:\jbo
ss-3.2.6\driver\pg73jdbc2.jar;C:\Program Files\Java\jdk1.5.0_12\lib;;C:\jboss-3.
2.6\client\jboss-common-client.jar;;C:\jboss-3.2.6\server\default\lib\jnpserver.
jar;;D:\jboss-3.2.6\driver\pg73jdbc2.jar;

thanks and regards
naresh
 
reply
    Bookmark Topic Watch Topic
  • New Topic