Topic
10 replies Latest Post - ‏2007-08-03T08:25:59Z by SystemAdmin
SystemAdmin
SystemAdmin
1215 Posts
ACCEPTED ANSWER

Pinned topic EJBDeploymentException (Error during generation of deployment code

‏2004-10-01T17:55:55Z |
Hi,
We have an websphere 4.0 application. We migrated to websphere 5 (J2ee1.2 migrated to J2ee 1.3). It works well. Later we add a new entity bean, and works fine in WSAD5.1.2 test enviroment. When we try deploy on WebShpere Application Server 5.0 We failed to install it due to following exception:
Error during generation of deployment code: Error generating Create
query for bean Ctrlflw (Abstract schema name=Ctrlflw).
Error=java.lang.NullPointerException.

>com.ibm.etools.ejbdeploy.EJBDeploymentException (Error during
generation of deployment code: Error generating Create query for bean
Ctrlflw (Abstract schema name=Ctrlflw).
Error=java.lang.NullPointerException.)

>com.ibm.etools.ejbdeploy.plugin.InternalErrorGenerationException (Error
generating Create query for bean Ctrlflw (Abstract schema name=Ctrlflw).
Error=java.lang.NullPointerException)

java.lang.NullPointerException

at
com.ibm.ObjectQuery.crud.schema.ColumnInfo.getTypeString(ColumnInfo.java
:81)

at
com.ibm.ObjectQuery.crud.catalogbuilder.TableMetadataBuilder.getColumnTy
pe(TableMetadataBuilder.java:159)

at
com.ibm.ObjectQuery.crud.catalogbuilder.TableMetadataBuilder.createColum
nDef(TableMetadataBuilder.java:124)

at
com.ibm.ObjectQuery.crud.catalogbuilder.TableMetadataBuilder.createSigna
ture(TableMetadataBuilder.java:95)

at
com.ibm.ObjectQuery.crud.catalogbuilder.TableMetadataBuilder.create(Tabl
eMetadataBuilder.java:48)

at
com.ibm.ObjectQuery.crud.catalogbuilder.BindingMetadataBuilder.createTab
lesAndAliases(BindingMetadataBuilder.java:52)

at
com.ibm.ObjectQuery.crud.catalogbuilder.MetadataBuilder.buildTablesAndAl
iases(MetadataBuilder.java:60)

at
com.ibm.ObjectQuery.crud.catalogbuilder.MetadataBuilder.build(MetadataBu
ilder.java:35)

at
com.ibm.ObjectQuery.crud.catalogbuilder.MOFConfig.buildMetadata(MOFConfi
g.java:48)

at
com.ibm.ObjectQuery.crud.catalogbuilder.MOFConfig.metadata(MOFConfig.jav
a:58)

at com.ibm.ObjectQuery.crud.catalogbuilder.MOFConfig.(MOFConfig.java:25)

at
com.ibm.ObjectQuery.crud.schema.DataStoreMap.oosqlConfig(DataStoreMap.ja
va:560)

at
com.ibm.ObjectQuery.crud.schema.DataStoreMap.objectQueryMetadata(DataSto
reMap.java:550)

at
com.ibm.ObjectQuery.crud.schema.DataStoreMap.getRuntimeMetadataOn(DataSt
oreMap.java:580)

at
com.ibm.ObjectQuery.crud.schema.DataStoreMap.getRuntimeMetadata(DataStor
eMap.java:575)

at
com.ibm.etools.ejbdeploy.gen20.jdbc.QueryCache.initCRUDQueries(QueryCach
e.java:129)

at
com.ibm.etools.ejbdeploy.gen20.jdbc.QueryCache.initQueryCache(QueryCache
.java:103)

at
com.ibm.etools.ejbdeploy.gen20.jdbc.QueryCacheHelper.(QueryCacheHelper.j
ava:30)

at
com.ibm.etools.ejbdeploy.gen20.jdbc.QueryCacheCache.initQueries(QueryCac
heCache.java:69)

at
com.ibm.etools.ejbdeploy.gen20.jdbc.QueryCacheCache.init(QueryCacheCache
.java:172)

at
com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.generateQueries(EJBDe
ployOperation.java:1719)

at
com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.getClassMapsForBacken
d(EJBDeployOperation.java:1667)

at
com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.doRun(EJBDeployOperat
ion.java:1391)

at
com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.run(EJBDeployOperatio
n.java:1258)

at
com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.doit(EJBDeployOperati
on.java:929)

at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.invokeDeploymentCod
egen(BatchExtension.java:1512)

at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.internalJarProcess(
BatchExtension.java:512)

at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.runEarDeploy(BatchE
xtension.java:354)

at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.access$0(BatchExten
sion.java:257)

at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension$RunDeploy.run(Batch
Extension.java:240)

at
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)

at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension$RunDeploy.execute(B
atchExtension.java:224)

at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(BatchExtension.
java:187)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:79)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:41)

at java.lang.reflect.Method.invoke(Method.java:386)

at
com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.run(BootLoaderLoade
r.java:255)

at
com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(BatchDeploy.java
:133)

at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:80)

at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:307)

EJBDeploy level: 20040210_1915-WB213-AD-V512D-W5

ADMA5008E: EJBDeploy failed on /tmp/app_ff510a5c05/dpl/dpl_Ipers.ear:
com.ibm.etools.ejbdeploy.EJBDeploymentException: Error executing
EJBDeploy

ADMA5011I: Cleanup of temp dir for app Ipers done.

ADMA5014E: Installation of application Ipers failed.
Installation of application Ipers failed.
Updated on 2007-08-03T08:25:59Z at 2007-08-03T08:25:59Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1215 Posts
    ACCEPTED ANSWER

    Re: EJBDeploymentException (Error during generation of deployment code

    ‏2005-03-17T19:04:36Z  in response to SystemAdmin
    I also need a solution for this error ASAP...

    Anybody please help us!!
  • sgarg
    sgarg
    1 Post
    ACCEPTED ANSWER

    Re: EJBDeploymentException (Error during generation of deployment code

    ‏2005-03-25T19:58:21Z  in response to SystemAdmin
    Did you figure out this issue.
    I started having similar issue after I installed the interim fix 6 for WSAD 5.1.2
    I don't get this error with the fix level of 5.
    • SystemAdmin
      SystemAdmin
      1215 Posts
      ACCEPTED ANSWER

      Re: EJBDeploymentException (Error during generation of deployment code

      ‏2005-04-19T00:07:52Z  in response to sgarg
      I didn't get the fix pack, but I found out a solution:
      just one error (a broken link in the xmi files, for example) may cause a NullPointerException.
      Great Websphere... Any other server would never do that.
      • SystemAdmin
        SystemAdmin
        1215 Posts
        ACCEPTED ANSWER

        Re: EJBDeploymentException (Error during generation of deployment code

        ‏2006-01-08T10:33:21Z  in response to SystemAdmin
        Hi Lorenzo,

        you mentioned a broken link in the xmi files. What did you exactly? Could you fix the link manually or did you re-map the ejb to rdb (we've about 100 EJB's, we want not re-map all EJB's)?
        What file had a broken link in your case (mapxmi, ejb-jar-bnd.xmi, tblxmi, dbxmi ...).

        We've got the same error, but no solution yet.

        Thanks for help.
        • SystemAdmin
          SystemAdmin
          1215 Posts
          ACCEPTED ANSWER

          Re: EJBDeploymentException (Error during generation of deployment code

          ‏2007-01-05T16:44:44Z  in response to SystemAdmin
          > Hi Lorenzo,
          >
          > you mentioned a broken link in the xmi files. What
          > did you exactly? Could you fix the link manually or
          > did you re-map the ejb to rdb (we've about 100 EJB's,
          > we want not re-map all EJB's)?
          > What file had a broken link in your case (mapxmi,
          > ejb-jar-bnd.xmi, tblxmi, dbxmi ...).
          >
          > We've got the same error, but no solution yet.
          >
          > Thanks for help.

          Does anyone have any new information on this problem?
      • SystemAdmin
        SystemAdmin
        1215 Posts
        ACCEPTED ANSWER

        Re: EJBDeploymentException (Error during generation of deployment code

        ‏2006-01-25T04:18:30Z  in response to SystemAdmin
        Hi all,

        I am doing inheritance between 3 ejbs.
        When I tryied to deploy that bean that giving the error

        please can you help me.
        Deployment from com.ibm.etools.ejbdeploy.EJBDeployer had errors: Error during generation of deployment code: Error generating Create query for bean Account (Abstract schema name=Account). Error=java.lang.RuntimeException: collections not the same length.

        com.ibm.etools.ejbdeploy.EJBDeploymentException: Error during generation of deployment code: Error generating Create query for bean Account (Abstract schema name=Account). Error=java.lang.RuntimeException: collections not the same length.
        at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.getException(Unknown Source)
        at com.ibm.etools.ejbdeploy.EJBDeployer.visit(Unknown Source)
        at com.ibm.etools.ejbdeploy.EJBDeployer.doExecute(Unknown Source)
        at com.ibm.etools.ejbdeploy.EJBDeployer.execute(Unknown Source)
        at com.ibm.wtp.j2ee.deploy.J2EEDeployOperation.deploy(Unknown Source)
        at com.ibm.wtp.j2ee.deploy.J2EEDeployOperation.execute(Unknown Source)
        at com.ibm.wtp.common.operation.WTPOperation.doRun(Unknown Source)
        at com.ibm.wtp.common.operation.WTPOperation$1.run(Unknown Source)
        at org.eclipse.core.internal.resources.Workspace.run(Unknown Source)
        at org.eclipse.core.internal.resources.Workspace.run(Unknown Source)
        at com.ibm.wtp.common.operation.WTPOperation.run(Unknown Source)
        at com.ibm.wtp.common.operation.WTPOperationJobAdapter.run(Unknown Source)
        at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
        Deployment from com.ibm.etools.ejbdeploy.EJBDeployer had errors: Error during generation of deployment code: Error generating Create query for bean Account (Abstract schema name=Account). Error=java.lang.RuntimeException: collections not the same length.

        com.ibm.etools.ejbdeploy.EJBDeploymentException: Error during generation of deployment code: Error generating Create query for bean Account (Abstract schema name=Account). Error=java.lang.RuntimeException: collections not the same length.
        at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.getException(Unknown Source)
        at com.ibm.etools.ejbdeploy.EJBDeployer.visit(Unknown Source)
        at com.ibm.etools.ejbdeploy.EJBDeployer.doExecute(Unknown Source)
        at com.ibm.etools.ejbdeploy.EJBDeployer.execute(Unknown Source)
        at com.ibm.wtp.j2ee.deploy.J2EEDeployOperation.deploy(Unknown Source)
        at com.ibm.wtp.j2ee.deploy.J2EEDeployOperation.execute(Unknown Source)
        at com.ibm.wtp.common.operation.WTPOperation.doRun(Unknown Source)
        at com.ibm.wtp.common.operation.WTPOperation$1.run(Unknown Source)
        at org.eclipse.core.internal.resources.Workspace.run(Unknown Source)
        at org.eclipse.core.internal.resources.Workspace.run(Unknown Source)
        at com.ibm.wtp.common.operation.WTPOperation.run(Unknown Source)
        at com.ibm.wtp.common.operation.WTPOperationJobAdapter.run(Unknown Source)
        at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
        Deployment from com.ibm.etools.webservice.was.deployer.WSDeployer completed successfully
        • SystemAdmin
          SystemAdmin
          1215 Posts
          ACCEPTED ANSWER

          Re: EJBDeploymentException (Error during generation of deployment code

          ‏2007-04-26T09:34:15Z  in response to SystemAdmin
          I had the same problem.
          I was able to fix it by removing the mapping for the inherited beans, remapping them and regenerating the deployed code. To be safe, I also removed the deployed code before doing all this.
      • SystemAdmin
        SystemAdmin
        1215 Posts
        ACCEPTED ANSWER

        Re: EJBDeploymentException (Error during generation of deployment code

        ‏2007-04-13T03:24:22Z  in response to SystemAdmin
        am also having this problem. Though it seems that my cause is slightly different the common denominator seems to be a change in the mapping. I like many have about 100 or more ejb's and would not like to try and remap each one. I was wondering if anyone knew a good way to locate such a link error in the xmi files.
  • SystemAdmin
    SystemAdmin
    1215 Posts
    ACCEPTED ANSWER

    Re: EJBDeploymentException (Error during generation of deployment code

    ‏2007-05-28T03:12:33Z  in response to SystemAdmin

    Hi,

    I also had the same issue but I found that remapping will resolve this.
    Clean the Map.mapxmi file. Right Click and open it using the system editor. Delete the contents by Ctrl + A and delete start from a clean empty file. Recreate the EJB and do the table mapping again. The new mapping entries will appear in the xmi file and do a clean and build, it should work.

    I beleive this is a caching issue , so you need to clean the file and start from creating the new EJB again. Hope this will help.
    • SystemAdmin
      SystemAdmin
      1215 Posts
      ACCEPTED ANSWER

      Re: EJBDeploymentException (Error during generation of deployment code

      ‏2007-08-03T08:25:59Z  in response to SystemAdmin
      I just open the Map.mapxmi and save it. the problem was gone.
      Thanks mike