Discussion:
weblogic.utils.compiler.CodeGenerationException
(too old to reply)
Jari Rantala
2004-11-17 10:31:46 UTC
Permalink
Hi,
can anybody tell me what this is about? And what could I do about it? I had a working J2EE-application with 2 ejb-mobules, one entity-module and one session-module. I just wanted to change the package names and added com.sonera in front of every package. EJBC works fine, no errors but when deploying on WL81sp2 and WL81sp3 I get the exception below. Any help is greatly appreciated.

thanks,
Jari Rantala

---8<---8<----8<----8<----8<-----8<----8<----8<
Exception:weblogic.management.ApplicationException: prepare failed for emove-core-entity-ejb.jar Module: emove-core-entity-ejb.jar Error: Exception preparing module: EJBModule(emove-core-entity-ejb.jar,status=NEW) Unable to deploy EJB: emove-core-entity-ejb.jar from emove-core-entity-ejb.jar: Exception: 'weblogic.utils.compiler.CodeGenerationException: Error in RDBMSCodeGenerator.generateCmrGetterMethod: weblogic.utils.compiler.CodeGenerationException: [EJB:012017]Error while generating One to Many Collection. java.io.FileNotFoundException: D:\bea\user_projects\domains\emovedomain\.\emoveserver\.wlnotdelete\EJBCompilerCache\-1svbe30157euf\com\sonera\emove\ejb\entity\cardfailure\cardunit\receiverinfo\CardUnitReceiverInfoCMP_7w4yja__WebLogic_CMP_RDBMS_cardUnitBean_cardUnitReceiverInfo_Iterator.java (The system cannot find the path specified) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at java.io.FileWriter.<init>(FileWriter.java:73) at weblogic.utils.compiler.CodeGenerator.makeOutputStream(CodeGenerator.java:352) at weblogic.ejb20.ejbc.EjbCodeGenerator.makeOutputStream(EjbCodeGenerator.java:2558) at weblogic.ejb20.cmp.rdbms.codegen.OneToManyGenerator.makeOutputStream(OneToManyGenerator.java:648) at weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:337) at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:238) at weblogic.ejb20.cmp.rdbms.codegen.RDBMSCodeGenerator.generateOneToManyCollection(RDBMSCodeGenerator.java:4842) at weblogic.ejb20.cmp.rdbms.codegen.RDBMSCodeGenerator.generateCmrGetterMethod(RDBMSCodeGenerator.java:4785) at weblogic.ejb20.cmp.rdbms.codegen.RDBMSCodeGenerator.declareCmrGettersAndSetters(RDBMSCodeGenerator.java:4637) at sun.reflect.GeneratedMethodAccessor699.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:648) at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:562) at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:519) at weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:336) at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:238) at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:197) at weblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSources(EJB20CMPCompiler.java:88) at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:245) at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476) at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407) at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493) at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:762) at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:700) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1317) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3101) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1560) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1208) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1051) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2444) at....
---8<---8<----8<----8<----8<-----8<----8<----8<

Message was edited by jari at Nov 17, 2004 2:32 AM
RaviKumar Chiguruvada
2004-11-18 06:17:58 UTC
Permalink
Hi
I think this is caching problem. You will get this problem if server is not able to clear the cache.

Remove cache from server
D:\bea\user_projects\domains\emovedomain\.\emoveserver\.wlnotdelete\EJBCompilerCache
And restart the server deploy it again.
I think this will solve the problem.

Reg
Ravi
Jari Rantala
2004-11-18 07:19:52 UTC
Permalink
Ravi,
thanks for your suggestion, but that's not the case. I tried your suggestion and I also tried to deploy the application on a fresh installation of WL Server, but with same exception.

regards,
Jari

Message was edited by jari at Nov 17, 2004 11:20 PM
Naveen Bothra
2004-12-24 13:26:06 UTC
Permalink
Did you get a solution? I am getting similar error on 8.1 when I am deploying my application on windows. It works fine on solaris.

[wldeploy] Exception: 'weblogic.utils.compiler.CodeGenerationException: Error in RDBMSCodeGenerator.generateCmrGetterMe
thod: weblogic.utils.compiler.CodeGenerationException: [EJB:012017]Error while generating One to Many Collection.
[wldeploy] java.io.FileNotFoundException: D:\Java\Websites\br_websites_020603\implementation\weblogic\.\192.168.138.235
-9491\.wlnotdelete\EJBCompilerCache\-mdfw42vqwjrx\com\cobaltgroup\products\webengine\ejb\EffectSettingsEntityRO_8ym0he__
WebLogic_CMP_RDBMS_imageStyleItemColorEntityEJB_effectSettings_Set.java (The system cannot find the path specified)
Naveen Bothra
2004-12-29 10:16:50 UTC
Permalink
The path in question is too large for Microsoft operating system. So reduce the path length to be within 2048 characters.
Loading...