• 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

ClassCast when launching - No exception when using LaunchClient

 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am facing a problem when launching an application client. This application is a Simple Java class which looks for ConnectionFactory. When I am launching this application using launchClient - it works perfectly fine. I am able to look up and narrow it to ConnectionFactory.
Now the problem is when I am using Java Webstart to start it on Windows Client or try launching the client using plain java option - (gave all params as what launchClient.sh gives except the class name). It fails to narrow- Gives ClassCastException. Printed the home object before narrowing down. It prints fine.
==========================================================================
Home object is
Reference Class Name: javax.jms.QueueConnectionFactory
Type: connectorName
Content: AC_QUEUE_CONNECTION_FACTORY
Type: classpath
Content: /opt/WebSphere/AppServer/installedConnectors/sib.api.jmsra.rar:/opt/WebSphere/AppServer/installedConnectors/sib.api.jmsra.rar
Type: FactoryJndiName
Content: jms/AC_QUEUE_CONNECTION_FACTORY-SIB
Address Type: dd
AddressContents: ffffffac ffffffed 0 5 73 72 0 25 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 52 65 73 6f 75 72 63 65 ...
Address Type: miscProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 14 6a 61 76 61 2e 75 74 69 6c 2e 50 72 6f 70 65 72 74 69 65 73 39 12 ffffffd0 7a ...
Address Type: poolProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 27 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 43 6f 6e 6e 65 63 74 6f ...
Address Type: configProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 23 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 43 6f 6e 6e 65 63 74 6f ...
Address Type: mmProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 14 6a 61 76 61 2e 75 74 69 6c 2e 50 72 6f 70 65 72 74 69 65 73 39 12 ffffffd0 7a ...
Address Type: mbeanProps
AddressContents: ffffffac ffffffed 0 5 73 72 0 1a 63 6f 6d 2e 69 62 6d 2e 65 6a 73 2e 6a 32 63 2e 4d 42 65 61 6e 50 72 6f ...


Home object Class - is javax.naming.Reference
java.lang.ClassCastException: javax.naming.Reference
at SessionManager.main(SessionManager.java:89)


==========================================================================

Please direct me if I am missing some class path --- But I gave all options that launchClient gives.

regards
Binu K Idicula
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic