I deployed a simple bean written with xdoclet-1.1.2.
Jboss 2.4.6 dumped this stack exception. Any help is
greatly appreciated.
[23:12:06,840,CacheKey] failed to initialize,
id=[.null.]
java.lang.NullPointerException
at test.interfaces.CustomerPK.hashCode(Unknown
Source)
at org.jboss.ejb.CacheKey.<init>(CacheKey.java:87)
at
org.jboss.ejb.plugins.EntityInstanceCache.createCacheKey(EntityInstanceCache.java:48)
at
org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:245)
at
org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:640)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:867)
at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:234)
at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:147)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:97)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:142)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:102)
at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:103)
at
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:429)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:458)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:237)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
at $Proxy4.create(Unknown Source)
at test.ejb.CustomerImplBean.createCustomer(Unknown
Source)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:542)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:82)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:412)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown
Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native
Method)
at sun.rmi.transport.Transport.serviceCall(Unknown
Source)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown
Source)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
/*
* Generated file - Do not edit!
*/
package test.interfaces;
import java.lang.*;
import javax.ejb.*;
import test.interfaces.*;
import java.util.Collection;
import java.util.Date;
/**
* Primary key for oro/Customer.
* @xdoclet-generated at Jul 5, 2002 11:09:03 PM
*/
public class CustomerPK
extends java.lang.Object
implements java.io.Serializable
{
static final long serialVersionUID =
-5190502349533170368L;
transient private int _hashCode =
Integer.MIN_VALUE;
transient private String value = null;
public java.lang.String customerCode;
public CustomerPK()
{
}
public CustomerPK( java.lang.String customerCode )
{
this.customerCode = customerCode;
}
public java.lang.String getCustomerCode()
{
return customerCode;
}
public void setCustomerCode(java.lang.String
customerCode)
{
this.customerCode = customerCode;
}
public int hashCode()
{
if( _hashCode == Integer.MIN_VALUE )
{
_hashCode += this.customerCode.hashCode();
}
return _hashCode;
}
public boolean equals(Object obj)
{
if( !(obj instanceof test.interfaces.CustomerPK)
)
return false;
test.interfaces.CustomerPK pk =
(test.interfaces.CustomerPK)obj;
boolean eq = true;
if( obj == null )
{
eq = false;
}
else
{
if( this.customerCode == null &&
((test.interfaces.CustomerPK)obj).getCustomerCode() ==
null )
{
eq = true;
}
else
{
if( this.customerCode == null ||
((test.interfaces.CustomerPK)obj).getCustomerCode() ==
null )
{
eq = false;
}
else
{
eq = eq && this.customerCode.equals(
pk.customerCode );
}
}
}
return eq;
}
public String toString()
{
if( value == null )
{
value = "[.";
value += this.customerCode+".";
value += "]";
}
return value;
}
}
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Got root? We do.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user