1 Reply Latest reply on Aug 28, 2002 4:23 PM by Dain Sundstrom

    org.jboss.ejb.plugins.cmp.jdbc.JDBCTypeFactory.createTypeSim

    Dzidas Newbie

      Hello,
      I tray deploy our CMP bean and get this error.
      I try find this error in your forum, but nothing...

      19:15:40,101 INFO [MainDeployer] Starting deployment of package: file:/C:/bean2
      /jboss/server/default/deploy/auction3.jar
      19:15:40,491 INFO [EjbModule] Creating
      19:15:40,521 INFO [EjbModule] Deploying AuctionBean
      19:15:44,958 INFO [EjbModule] Remove JSR-77 EJB Module: jboss.management.single
      :J2EEApplication= ,J2EEServer=Single,j2eeType=EJBModule,name=auction3.jar
      19:15:44,968 ERROR [EjbModule] Initialization failed
      java.lang.NullPointerException
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCTypeFactory.createTypeSimple(JDBCT
      ypeFactory.java:113)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCTypeFactory.getJDBCType(JDBCTypeFa
      ctory.java:75)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.<ini
      t>(JDBCAbstractCMPFieldBridge.java:61)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.(JDB
      CCMP2xFieldBridge.java:44)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.createCMPField
      (JDBCEntityBridge.java:281)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.loadCMPFields(
      JDBCEntityBridge.java:148)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEnt
      ityBridge.java:108)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create(JDBCStoreManag
      er.java:332)
      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)

      My ejb-jar

      <?xml version="1.0" encoding="UTF-8"?>


      <!--
      <?xml version="1.0"?>
      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
      -->

      <ejb-jar>
      <display-name>Auction Entity Bean</display-name>
      <enterprise-beans>


      Auction Entity Bean
      <ejb-name>AuctionBean</ejb-name>
      auction3.AuctionHome
      auction3.Auction
      <ejb-class>auction3.AuctionBean</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.Integer</prim-key-class>
      False
      <cmp-version>2.x</cmp-version>
      <abstract-schema-name>Auction</abstract-schema-name>

      <cmp-field><field-name>auc_id</field-name></cmp-field>
      <cmp-field><field-name>user_id</field-name></cmp-field>
      <cmp-field><field-name>auc_name</field-name></cmp-field>
      <cmp-field><field-name>auc_descr</field-name></cmp-field>
      <cmp-field><field-name>auc_start_price</field-name></cmp-field>
      <cmp-field><field-name>auc_end_price</field-name></cmp-field>
      <cmp-field><field-name>auc_start_date</field-name></cmp-field>
      <cmp-field><field-name>auc_end_date</field-name></cmp-field>

      <primkey-field>auc_id</primkey-field>


      </enterprise-beans>

      <assembly-descriptor>
      <container-transaction>

      <ejb-name>AuctionBean</ejb-name>
      <method-name>*</method-name>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      </assembly-descriptor>
      </ejb-jar>

      My jbosscmp-jdbc
      <?xml version="1.0" encoding="UTF-8"?>


      <jbosscmp-jdbc>
      <enterprise-beans>

      <ejb-name>AuctionBean</ejb-name>
      <table-name>Auction</table-name>
      <cmp-field>
      <field-name>auc_id</field-name>
      <column-name>auc_id</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>user_id</field-name>
      <column-name>user_id</column-name> <not-null/>
      </cmp-field>
      <cmp-field>
      <field-name>auc_name</field-name>
      <column-name>auc_name</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>auc_descr</field-name>
      <column-name>auc_descr</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>auc_start_price</field-name>
      <column-name>auc_start_price</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>auc_end_price</field-name>
      <column-name>auc_end_price</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>auc_start_date</field-name>
      <column-name>auc_start_date</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>auc_end_date</field-name>
      <column-name>auc_end_date</column-name>
      </cmp-field>

      </enterprise-beans>
      </jbosscmp-jdbc>
      Thanks