Jasperserver source build error

0

Hi, 

I downloaded source code from jasper technical support site and started building it using the document. 

while doing the step  js-ant build-pro  I am getting the below error..  I am using Apache Maven 3.3.9  and java version 1.8.  Please help.

    [java] [ERROR] Internal compiler error

     [java] org.aspectj.apache.bcel.classfile.ClassFormatException: File: 'java/lang/CharSequence.class': Invalid byte tag in constant pool: 18
     [java]     at org.aspectj.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:192)
     [java]     at org.aspectj.apache.bcel.classfile.ClassParser.parse(ClassParser.java:131)
     [java]     at org.aspectj.weaver.bcel.BcelWorld.lookupJavaClass(BcelWorld.java:397)
     [java]     at org.aspectj.weaver.bcel.BcelWorld.resolveDelegate(BcelWorld.java:362)
     [java]     at org.aspectj.weaver.World.resolveToReferenceType(World.java:384)
     [java] org.aspectj.apache.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 18       at org.aspectj.weaver.World.resolve(World.java:278)
     [java]
     [java]     at org.aspectj.weaver.World.resolve(World.java:192)
     [java]     at org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(BcelGenericSignatureToTypeXConverter.java:95)
     [java]     at org.aspectj.apache.bcel.classfile.Constant.readConstant(Constant.java:135)   at org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(BcelGenericSignatureToTypeXConverter.java:41)
     [java]
     [java]     at org.aspectj.weaver.bcel.BcelObjectType.ensureGenericSignatureUnpacked(BcelObjectType.java:733)       at org.aspectj.apache.bcel.classfile.ConstantPool.<init>(ConstantPool.java:45)
     [java]
     [java]     at org.aspectj.weaver.bcel.BcelObjectType.getDeclaredInterfaces(BcelObjectType.java:226)
     [java]     at org.aspectj.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:186)
     [java]     at org.aspectj.weaver.ReferenceType.getDeclaredInterfaces(ReferenceType.java:569)
     [java]     at org.aspectj.weaver.ResolvedType.getDirectSupertypes(ResolvedType.java:66)    at org.aspectj.apache.bcel.classfile.ClassParser.parse(ClassParser.java:131)
     [java]
     [java]     at org.aspectj.weaver.ResolvedType.collectInterTypeMungers(ResolvedType.java:1191)      at org.aspectj.weaver.bcel.BcelWorld.lookupJavaClass(BcelWorld.java:397)
     [java]
     [java]     at org.aspectj.weaver.ResolvedType.getInterTypeMungersIncludingSupers(ResolvedType.java:1172)
     [java]     at org.aspectj.weaver.ResolvedType.checkInterTypeMungers(ResolvedType.java:1240)        at org.aspectj.weaver.bcel.BcelWorld.resolveDelegate(BcelWorld.java:362)
     [java]
     [java]     at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:691)       at org.aspectj.weaver.World.resolveToReferenceType(World.java:384)
     [java]
     [java]     at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:559)       at org.aspectj.weaver.World.resolve(World.java:278)
     [java]
     [java]     at org.aspectj.weaver.World.resolve(World.java:192)
     [java]     at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.doPendingWeaves(AjLookupEnvironment.java:404)  at org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(BcelGenericSignatureToTypeXConverter.java:95)
     [java]
     [java]     at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.completeTypeBindings(AjLookupEnvironment.java:200)     at org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(BcelGenericSignatureToTypeXConverter.java:41)
     [java]
     [java]     at org.aspectj.weaver.bcel.BcelObjectType.ensureGenericSignatureUnpacked(BcelObjectType.java:733)       at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:616)
     [java]
     [java]     at org.aspectj.weaver.bcel.BcelObjectType.getDeclaredInterfaces(BcelObjectType.java:226)
     [java]     at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:357)     at org.aspectj.weaver.ReferenceType.getDeclaredInterfaces(ReferenceType.java:569)
     [java]     at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:371)
     [java]     at org.aspectj.weaver.ResolvedType.getDirectSupertypes(ResolvedType.java:66)
     [java]
     [java]     at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:1003)
     [java]     at org.aspectj.weaver.ResolvedType.collectInterTypeMungers(ResolvedType.java:1191)      at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performBuild(AjBuildManager.java:267)
     [java]
     [java]     at org.aspectj.weaver.ResolvedType.getInterTypeMungersIncludingSupers(ResolvedType.java:1172)   at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:181)
     [java]
     [java]     at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112)     at org.aspectj.weaver.ResolvedType.checkInterTypeMungers(ResolvedType.java:1240)
     [java]
     [java]     at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:691)
     [java]     at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:559)       at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
     [java]
     [java]     at org.aspectj.tools.ajc.Main.run(Main.java:355)
     [java]     at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.doPendingWeaves(AjLookupEnvironment.java:404)  at org.aspectj.tools.ajc.Main.runMain(Main.java:234)
     [java]
     [java]     at org.codehaus.mojo.aspectj.AbstractAjcCompiler.execute(AbstractAjcCompiler.java:360)
     [java]     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
     [java]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
     [java]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
     [java]     at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.completeTypeBindings(AjLookupEnvironment.java:200)     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
     [java]
     [java]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)     at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:616)
     [java]
     [java]     at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:357)
     [java]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
     [java]     at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:371)
     [java]     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)        at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:1003)
     [java]
     [java]     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
     [java]     at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performBuild(AjBuildManager.java:267)  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
     [java]
     [java]     at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:181)    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
     [java]
     [java]     at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112)
     [java]     at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
     [java]     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.aspectj.tools.ajc.Main.run(Main.java:355)
     [java]     at org.aspectj.tools.ajc.Main.runMain(Main.java:234)
     [java]     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
     [java]
     [java]     at org.codehaus.mojo.aspectj.AbstractAjcCompiler.execute(AbstractAjcCompiler.java:360)
     [java]     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
     [java]     at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
     [java]     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
     [java]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     [java]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
     [java]
     [java]     at java.lang.reflect.Method.invoke(Method.java:498)     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
     [java]
     [java]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
     [java]     at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
     [java]
     [java] [ERROR] ABORT
     [java] [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project ji-common: Compiler errors :
     [java] [ERROR] error at (no source information available)
     [java] [ERROR] /opt/JasperReports-Server-6.3.0-src/jasperserver-pro/common/src/main/java/com/jaspersoft/ji/engine/ProEngineService.java:0::0 Internal compiler error
     [java] [ERROR] org.aspectj.apache.bcel.classfile.ClassFormatException: File: 'java/lang/CharSequence.class': Invalid byte tag in constant pool: 18
     [java] [ERROR] at org.aspectj.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:192)
     [java] [ERROR] at org.aspectj.apache.bcel.classfile.ClassParser.parse(ClassParser.java:131)
     [java] [ERROR] at org.aspectj.weaver.bcel.BcelWorld.lookupJavaClass(BcelWorld.java:397)
     [java] [ERROR] at org.aspectj.weaver.bcel.BcelWorld.resolveDelegate(BcelWorld.java:362)
     [java] [ERROR] at org.aspectj.weaver.World.resolveToReferenceType(World.java:384)
     [java] [ERROR] at org.aspectj.weaver.World.resolve(World.java:278)
     [java] [ERROR] at org.aspectj.weaver.World.resolve(World.java:192)
     [java] [ERROR] at org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(BcelGenericSignatureToTypeXConverter.java:95)
     [java] [ERROR] at org.aspectj.weaver.bcel.BcelGenericSignatureToTypeXConverter.classTypeSignature2TypeX(BcelGenericSignatureToTypeXConverter.java:41)
     [java] [ERROR] at org.aspectj.weaver.bcel.BcelObjectType.ensureGenericSignatureUnpacked(BcelObjectType.java:733)
     [java] [ERROR] at org.aspectj.weaver.bcel.BcelObjectType.getDeclaredInterfaces(BcelObjectType.java:226)
     [java] [ERROR] at org.aspectj.weaver.ReferenceType.getDeclaredInterfaces(ReferenceType.java:569)
     [java] [ERROR] at org.aspectj.weaver.ResolvedType.getDirectSupertypes(ResolvedType.java:66)
     [java] [ERROR] at org.aspectj.weaver.ResolvedType.collectInterTypeMungers(ResolvedType.java:1191)
     [java] [ERROR] at org.aspectj.weaver.ResolvedType.getInterTypeMungersIncludingSupers(ResolvedType.java:1172)
     [java] [ERROR] at org.aspectj.weaver.ResolvedType.checkInterTypeMungers(ResolvedType.java:1240)
     [java] [ERROR] at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:691)
     [java] [ERROR] at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.weaveInterTypeDeclarations(AjLookupEnvironment.java:559)
     [java] [ERROR] at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.doPendingWeaves(AjLookupEnvironment.java:404)
     [java] [ERROR] at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.completeTypeBindings(AjLookupEnvironment.java:200)
     [java] [ERROR] at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:616)
     [java] [ERROR] at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:357)
     [java] [ERROR] at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:371)
     [java] [ERROR] at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:1003)
     [java] [ERROR] at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performBuild(AjBuildManager.java:267)
     [java] [ERROR] at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:181)
     [java] [ERROR] at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112)
     [java] [ERROR] at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
     [java] [ERROR] at org.aspectj.tools.ajc.Main.run(Main.java:355)
     [java] [ERROR] at org.aspectj.tools.ajc.Main.runMain(Main.java:234)
     [java] [ERROR] at org.codehaus.mojo.aspectj.AbstractAjcCompiler.execute(AbstractAjcCompiler.java:360)
     [java] [ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
     [java] [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
     [java] [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
     [java] [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
     [java] [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
     [java] [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
     [java]     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)[ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
     [java]
     [java] [ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
     [java]     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
     [java] [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
     [java] [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
     [java] [ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
     [java] [ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
     [java] [ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
     [java] [ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
     [java] [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     [java]
     [java]     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
     [java] [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [java] [ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
     [java]     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
     [java]     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
     [java]
     [java]     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
     [java]     at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
     [java]
     [java] [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     [java]
     [java] [ERROR] at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[ERROR] -> [Help 1]
     [java]     at java.lang.reflect.Method.invoke(Method.java:498)
     [java]
     [java] [ERROR]
     [java] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)[ERROR] Re-run Maven using the -X switch to enable full debug logging.
     [java]
     [java] [ERROR]
     [java] [ERROR] For more information about the errors and possible solutions, please read the following articles:
     [java] [ERROR]
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)[ERROR] After correcting the problems, you can resume the build with the command
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
     [java]
     [java] [ERROR]   mvn <goals> -rf :ji-common
     [java]     at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
     [java]     at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
     [java] 07:47:19.084 main I Dumping to /opt/JasperReports-Server-6.3.0-src/jasperserver-pro/./ajcore.20170111.074719.084.txt
 

 

jsasidharan's picture
Joined: Oct 17 2016 - 12:34pm
Last seen: 1 year 11 months ago

2 Answers:

0
hozawa's picture
53202
Joined: Apr 24 2010 - 4:31pm
Last seen: 5 months 1 week ago
0

Yes.  I was using JDK 1.8. I changed to JDK 1.7 and it is working fine.

Thank you.

 

jsasidharan's picture
Joined: Oct 17 2016 - 12:34pm
Last seen: 1 year 11 months ago
Feedback