1 Reply Latest reply on Jun 25, 2002 1:31 PM by Dain Sundstrom

    NullPointerException with CMP & MySQL

    Mattias Johansson Newbie

      Hi,

      I'm trying to deploy three beans using CMP & MySQL.
      As far as I can see mySQL is up and running just fine with the right JNDI-name assigned. I'm running JBoss 3.0.0 and MySQL 3.23.49

      When I try to deploy the beans I get the following stack trace:

      15:40:39,656 INFO [EjbModule] Creating
      15:40:39,676 INFO [EjbModule] Deploying ECModule
      15:40:40,388 INFO [EjbModule] Deploying ECModuleRef
      15:40:40,408 INFO [EjbModule] Deploying ECResource
      15:40:40,698 ERROR [XmlFileLoader] java.lang.NullPointerException:-1:3
      java.lang.NullPointerException
      at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524)
      at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
      at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

      at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl
      .java:185)
      at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
      at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.jav
      a:226)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:211)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:200)
      at org.jboss.ejb.plugins.jaws.metadata.JawsXmlFileLoader.load(JawsXmlFil
      eLoader.java:70)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommandFactory.(JDBCCommand
      Factory.java:144)
      at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.create(JAWSPersiste
      nceManager.java:104)
      at org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceMana
      ger.java:155)
      at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)
      at org.jboss.ejb.Container.invoke(Container.java:789)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:894)
      at $Proxy6.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:272)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)


      I've changed the type-mapping to mysql in jaws.xml and doublechecked spelling and upper/lower cases.

      /Mattias