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

NoClassDefFoundError for class file in same jar

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I would appreciate any help on this.
I have deployed an ear file on websphere 5.1 running on Windows 2000.
This contains an ejb jar file which has a utility class called ConnectionFactory. An ejb bean inside the same ejb jar file is not able to access this ConnectionFactory class. I am getting the foll. error:

[12/2/04 16:39:37:033 IST] 49d45d8a LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.

[12/2/04 16:39:37:033 IST] 49d45d8a ExceptionUtil E CNTR0020E: Non-application exception occurred while processing method "authenticateUser" on bean "BeanId(Nucleus#user-management-ejb.jar#UserManagementFacadeBean, null)". Exception data: com.ibm.ejs.container.UnknownLocalException: ; nested exception is: com.ibm.ws.exception.WsEJBException: nested exception is: java.lang.NoClassDefFoundError: com/mastek/nucleus/ejb/util/sql/ConnectionFactory

Is this any issue with class-loader setting or module-visibility ?
What does the null inside the BeanId mean?

Thanks,
Kaustubh
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kaustubh,

When the second parameter, byte array, of the setBytes is Null,
the java.lang.NullPointerException is thrown from the Connection
Manager code. Excerpt of the exception stack trace:
11/10/03 20:33:37:991 CST] 73510c8e ExceptionUtil E CNTR0020E:
Non-application exception occurred while processing method
"importOrganization" on bean
"BeanId(IBM_WBI_Monitor#monitorserver.jar#ClientAgent, null)".
Exception data: java.lang.NullPointerException
at
com.ibm.ejs.cm.proxy.OraclePreparedStatementProxy.setBytes(Ora
clePreparedStatementProxy.java:39)
at
com.holosofx.monitor.server.database.DBPreparedStatement.setBy
tes(Unknown Source)
...


So before sending back always check the byte[] for null.


Regards

Sudhesh
 
The human mind is a dangerous plaything. This tiny ad is pretty safe:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic