Artifact Generator Cannot Parse ENUM JAVA 1.5 Variable Type (Doc ID 889442.1)

Last updated on OCTOBER 18, 2016

Applies to:

Oracle Utilities SDK - Version: 2.2.0.0 and later   [Release: 2.2 and later ]
Oracle Enterprise Taxation Management - Version: 2.2.0 and later ]
Information in this document applies to any platform.

Symptoms

When upgrading from ETM 2.1.5 to ETM 2.2.0, and compiling cm code using SDK 2.2.0.7, Artifact Generator cannot parse enum. Java 1.5 variable type used in cm code. This used to work before on SDK 2.1.5. The following error appears in the artifact generator log output file:

ERROR:
06:31:50,107 [main] ERROR (tools.artifactgen.ArtifactGenerator) Unable to create
processor(C:\etm\...\java\source\cm\com\splwg\cm\domain\admin\letterExtract\util\LetterUtil_Imp
l.java)
java.lang.RuntimeException: Unable to create source for file
'C:\etm\...\java\source\cm\com\splwg\cm\domain\admin\letterExtract\util\LetterUtil_Impl.java'
at com.splwg.tools.artifactgen.sourceparser.JavaSourceFile.<init>(JavaSourceFile.java:84)
at
com.splwg.tools.artifactgen.sourceparser.JavaSourceProcessor.createJavaSourceProcessor(JavaSourcePro
cessor.java:188)
at com.splwg.tools.artifactgen.sourceparser.SourceProcessor.createProcessor(SourceProcessor.java:66)
at com.splwg.tools.artifactgen.ArtifactGenerator.getProcessorsByType(ArtifactGenerator.java:650)
at com.splwg.tools.artifactgen.ArtifactGenerator.generateArtifacts(ArtifactGenerator.java:377)
at com.splwg.tools.artifactgen.ArtifactGenerator.privateGenerate(ArtifactGenerator.java:271)
at
com.splwg.tools.artifactgen.ArtifactGenerator.doGenerateFromCommandLine(ArtifactGenerator.java:1057)
at com.splwg.tools.artifactgen.ArtifactGenerator.main(ArtifactGenerator.java:1008)
Caused by: com.thoughtworks.qdox.parser.ParseException: syntax error @[60,21] in UNKNOWN SOURCE
at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:638)
at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:747)
at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:619)
at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:300)
at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:290)
at com.splwg.tools.artifactgen.sourceparser.JavaSourceFile.<init>(JavaSourceFile.java:82)
... 7 more

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms