Jump to content
Changes to the Jaspersoft community edition download ×

duplicate local variable type table


2004 IR Help

Recommended Posts

By: Terry - terrywalsh

duplicate local variable type table

2005-11-10 09:57

Hi,

 

I get the following message when compiling reports on Unix.

The same report compiles fine on XP.

On adding a dummy method to the ProfitGroup object, it compiles fine.

Has anyone else seen something like this, and

is there some sort of resolution available besides putting in dummy methods.

 

Also, using a different method such a getId() within the report will allow the

report to compile.

 

Thanks for any help.

 

 

[jrc] File : /home/user/projects/internal/myapp/src/com/myorg/myapp/reports/DetailedMerchantReport.jrxml ... OK.

[jrc] File : /home/user/projects/internal/myapp/src/com/myorg/myapp/reports/merchant/MerchantDetails.jrxml ... FAILED.

[jrc] Error compiling report design : /home/user/projects/internal/myapp/src/com/myorg/myapp/reports/merchant/MerchantDetails.jrxml

[jrc] net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:

 

[jrc] Found 3 semantic errors compiling "MerchantDetails.java":

 

[jrc] 210. value = (java.lang.String)(((com.myorg.myapp.dataobject.rates.ProfitGroup)field_profitGroup.getValue()).getDescription());

[jrc] ^---------^

[jrc] *** Semantic Error: The class file "ProfitGroup.class" in "/home/user/projects/internal/myapp/build/WEB-INF/classes/com/myorg/myapp/dataobject/rates" has an invalid format (duplicate local variable type table).

 

 

[jrc] 513. value = (java.lang.String)(((com.myorg.myapp.dataobject.rates.ProfitGroup)field_profitGroup.getOldValue()).getDescription());

[jrc] ^--------------------------------------------^

[jrc] *** Semantic Error: Type "ProfitGroup" was not found.

 

 

[jrc] 816. value = (java.lang.String)(((com.myorg.myapp.dataobject.rates.ProfitGroup)field_profitGroup.getValue()).getDescription());

[jrc] ^--------------------------------------------^

[jrc] *** Semantic Error: Type "ProfitGroup" was not found.

 

[jrc] at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:164)

[jrc] at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:131)

[jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127)

[jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:109)

[jrc] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:398)

[jrc] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:252)

[jrc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

[jrc] at org.apache.tools.ant.Task.perform(Task.java:364)

[jrc] at org.apache.tools.ant.Target.execute(Target.java:341)

[jrc] at org.apache.tools.ant.Target.performTasks(Target.java:369)

[jrc] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)

[jrc] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)

[jrc] at org.apache.tools.ant.Main.runBuild(Main.java:673)

[jrc] at org.apache.tools.ant.Main.startAnt(Main.java:188)

[jrc] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)

[jrc] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

[jrc] File : /home/user/projects/internal/myapp/src/com/myorg/myapp/reports/MerchantReport.jrxml ... OK.

[jrc] File : /home/user/projects/internal/myapp/src/com/myorg/myapp/reports/MerchantReport2.jrxml ... OK.

 

 

 

 

 

 

By: Terry - terrywalsh

RE: duplicate local variable type table

2005-11-15 01:14

The resolution for this problem was to change to the net.sf.jasperreports.engine.design.JRJavacCompiler inplace of the net.sf.jasperreports.engine.design.JRJikesCompiler one. We had moved to Java 5 and started using javac for compiling the rest of the code.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...