0 Replies Latest reply on Jan 28, 2003 11:13 PM by Fendy

    JBoss 3.2  unknown-pk tag error

    Fendy Newbie

      I have tried to setup the JBoss 3.2 CMP Entity Beans. But whenever I insert the following unknown-pk, entity-command tags into the jbosscmp-jdbc.xml file, I will get an StringIndexOutOfBoundsException.

      <unknown-pk>
      <unknown-pk-class>java.lang.Integer</unknown-pk-class>
      <column-name>AddressId</column-name>
      <jdbc-type>INTEGER</jdbc-type>
      <sql-type>INTEGER</sql-type>
      </unknown-pk>
      <entity-command name="get-generated-keys"/>


      22:15:07,969 ERROR [EntityContainer] Starting failed
      java.lang.StringIndexOutOfBoundsException: String index out of range: 0
      at java.lang.String.charAt(String.java:460)
      at org.jboss.mx.loading.ClassLoaderUtils.getPackageName(ClassLoaderUtils
      .java:141)
      at org.jboss.mx.loading.UnifiedLoaderRepository3.getPackageClassLoaders(
      UnifiedLoaderRepository3.java:152)
      at org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:148)
      at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader
      3.java:161)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityCommandMetaData.<in
      it>(JDBCEntityCommandMetaData.java:58)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.(JDB
      CEntityMetaData.java:688)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.(JDBCApplicationMetaData.java:258)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXm
      lFileLoader.java:75)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaDat
      a(JDBCStoreManager.java:733)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBC
      StoreManager.java:436)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManage
      r.java:378)
      at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManag
      er.java:198)
      at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:359)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      97)
      at org.jboss.ejb.Container.invoke(Container.java:729)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1026)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:957)
      at $Proxy11.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:388)
      at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)