Tuesday, August 25, 2009

CWWBD0338E: The compilation of the Java code for the BPEL file '' failed

Error

[09/04/09 15:42:06:003 BST] 00000123 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\IBM\WID61\pf\ProcSrv04\logs\ffdc\server1_00000123_09.04.09_15.42.06_0.txt
[09/04/09 15:42:06:018 BST] 00000123 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\IBM\WID61\pf\ProcSrv04\logs\ffdc\server1_00000123_09.04.09_15.42.06_0.txt
[09/04/09 15:42:06:034 BST] 00000123 SystemErr R com.ibm.bpe.plugins.DeploymentCodeGenerationCompileFailedException: CWWBD0338E: The compilation of the Java code for the BPEL file '' failed. The Java compiler produced the following output: 'C:\IBM\WID61\pf\ProcSrv04\wstemp\app.bfm1208b54111a\ejb_ext\determine_clawback_charge\Clawback_Management20090213T145003EntityAbstractBase.java:2046: ';' expected
}
^
1 error
'
at com.ibm.bpe.deployment.BPEGeneratorForDeployment.compile(BPEGeneratorForDeployment.java:550)
at com.ibm.bpe.processarchive.SCDLProcessComponentConfigureTask.performTask(SCDLProcessComponentConfigureTask.java:242)
at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:262)
at java.lang.Thread.run(Thread.java:810)

Root Cause


The above error appears when the code contains extra braces, semicolons etc. But these error don't get caught at the compile time i,e when you do clean n build (probably a bug). 

So its difficult to identify the error in BPEL code.

Resolution



Go to the above mentioned java file and track the line number. Try to identify which snippet of BPEL contains the extra braces or semicolons.

Correct the code. Delete the generated modules, bounce the server and deploy the freshly build code.

It should resolve the issue.


No comments: