Discussions

EJB programming & troubleshooting: Generating RMIC Code on WAS 5.0.2

  1. Generating RMIC Code on WAS 5.0.2 (1 messages)

    Hi,

    I get the following exception when trying to generate deploy code using wsejbdeploy.
    Same exception occurs in WSAD as well.

    Anybody got any ideas or faced this before ??



    [wsejbdeploy] Updating.
    [wsejbdeploy] [*Error] An unexpected exception was thrown. Halting execution.
    [wsejbdeploy] Shutting down workbench.

    [wsejbdeploy] Error during generation of deployment code: null.
    [wsejbdeploy] >com.ibm.etools.ejbdeploy.EJBDeploymentException (Error during generation of deployment code: null.)
    [wsejbdeploy] java.lang.NullPointerException
    [wsejbdeploy] at com.ibm.etools.ejbrdbmapping.impl.EjbRdbDocumentRootImpl.getRDBEnd(EjbRdbDocumentRootImpl.java:1255)
    [wsejbdeploy] at com.ibm.etools.ejbrdbmapping.impl.ForwardFlattenedFKComposerImpl.findMappedRole(ForwardFlattenedFKComposerImpl.ja
    va:280)
    [wsejbdeploy] at com.ibm.etools.ejbrdbmapping.impl.ForwardFlattenedFKComposerImpl.findColForSimpleAttribute(ForwardFlattenedFKComp
    oserImpl.java:182)
    [wsejbdeploy] at com.ibm.etools.ejbrdbmapping.impl.ForwardFlattenedFKComposerImpl.findColForAttribute(ForwardFlattenedFKComposerIm
    pl.java:192)
    [wsejbdeploy] at com.ibm.etools.ejbrdbmapping.impl.ForwardFlattenedFKComposerImpl.findColForAttribute(ForwardFlattenedFKComposerIm
    pl.java:174)
    [wsejbdeploy] at com.ibm.etools.ejbrdbmapping.impl.ForwardFlattenedFKComposerImpl.getAttributeMaps(ForwardFlattenedFKComposerImpl.
    java:297)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.gen20.jdbc.CMPAttributeMapHelper.createMapForRel(CMPAttributeMapHelper.java:244)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.gen20.jdbc.CMPAttributeMapHelper.populateLists(CMPAttributeMapHelper.java:458)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.gen20.jdbc.CMPAttributeMapHelper.initAttributeMapperList(CMPAttributeMapHelper.java:398)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.gen20.jdbc.QueryCacheHelper.<init>(QueryCacheHelper.java:29)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.gen20.jdbc.QueryCacheCache.initQueries(QueryCacheCache.java:69)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.gen20.jdbc.QueryCacheCache.init(QueryCacheCache.java:172)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.generateQueries(EJBDeployOperation.java:1633)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.getClassMapsForBackend(EJBDeployOperation.java:1581)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.doRun(EJBDeployOperation.java:1305)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.run(EJBDeployOperation.java:1172)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.plugin.EJBDeployOperation.doit(EJBDeployOperation.java:843)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.invokeDeploymentCodegen(BatchExtension.java:1477)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.internalJarProcess(BatchExtension.java:494)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.runEarDeploy(BatchExtension.java:336)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.access$000(BatchExtension.java:107)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension$RunDeploy.run(BatchExtension.java:236)
    [wsejbdeploy] at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension$RunDeploy.execute(BatchExtension.java:220)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(BatchExtension.java:183)
    [wsejbdeploy] at java.lang.reflect.Method.invoke(Native Method)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.run(BootLoaderLoader.java:255)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(BatchDeploy.java:133)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:80)
    [wsejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:307)
    [wsejbdeploy] EJBDeploy level: 20030608_1900-WB211-AD-V51D-GM
  2. Generating RMIC Code on WAS 5.0.2[ Go to top ]

    Hi Mary,

    From the exception it appears that your EJB-RDB mapping is "bohica"'d.

    Try deleting your mapping and re-mapping your EJBs to your RDB tables.