Trying to deploy a CMP bean with the stock set-up of the FINAL release, I
began running into this. The odd thing is that the indicated stack trace
should only NPE on a JAWS time-mapping with no name. I've checked the
jaws-related config files (I think, can't say I didn't miss one) and can't
find a type-mapping with no name.
I've tried this bean with and without jboss.xml and jaws.xml.
I've also downloaded and built this morning's CVS snapshot and I get the
same exception.
This is on NT - this bean has deployed on Linux against a PostgreSQL
database.
The line of code (last line in jboss specific code) that is triggering
this exception (JawsApplicationMetaData:146) is:
typeMappings.put(typeMapping.getName(),typeMapping);
since the actual exception comes from Hashtable, I assume that
typeMapping.getName() is returning null.
Stack Trace:
[Container factory] java.lang.NullPointerException
[Container factory] at java.util.Hashtable.put(Hashtable.java:385)
[Container factory] at
org.jboss.ejb.plugins.jaws.metadata.JawsApplicationMetaData.importXml(JawsApplicationMetaData.java:146)
[Container factory] at
org.jboss.ejb.plugins.jaws.metadata.JawsXmlFileLoader.load(JawsXmlFileLoader.java:61)
[Container factory] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommandFactory.<init>(JDBCCommandFactory.java:78)
[Container factory] at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.init(JAWSPersistenceManager.java:78)
[Container factory] at
org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java:103)
[Container factory] at
org.jboss.ejb.EntityContainer.init(EntityContainer.java:198)
[Container factory] at
org.jboss.ejb.Application.init(Application.java:158)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:733)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:272)
[Container factory] at java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory] at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:645)
[Container factory] at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:137)
[Container factory] at java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory] at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:332)
[Container factory] at
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:268)
[Container factory] at java.lang.Thread.run(Thread.java:484)
--
Dan Christopherson (danch)
nVisia Technical Architect (www.nvisia.com)