Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Birt upgrade 4.3 to 4.5 Error in BirtStr.trim function
Migrateduser
<p>We use <span style="font-size:8pt;font-family:'courier new';">BirtStr.trim function in all our reports and it is failing on 4.5 (Eclipse Mars).</span></p>
<p> </p>
<p><span style="font-size:8pt;font-family:'courier new';">Stack trace:</span></p>
<p> </p>
<p><span style="font-size:8pt;font-family:'courier new';">BirtStr.trim(fname+" "+lname)</span></p>
<p><span style="font-family:'courier new';"><span style="font-size:8pt;">org.mozilla.javascript.ConsString cannot be cast to java.lang.String<br>
at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1245)<br>
at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1224)<br>
at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:96)<br>
at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:62)</span></span><br>
</p>
<p> </p>
<p>This code works fine in 4.3 version (luna eclipse)</p>
<p> </p>
<p> </p>
<p>When we change the code to use the BirtStr.concat function it works fine.</p>
<p><span style="font-family:'courier new';font-size:10.6667px;">BirtStr.trim(</span><span style="font-family:'courier new';font-size:10.6667px;">BirtStr.concat(</span><span style="font-family:'courier new';font-size:10.6667px;">fname," ",lname))</span></p>
<p> </p>
<p> </p>
<p><span style="font-size:10.6667px;">Effort of making code changes are really high. </span></p>
<p> </p>
<p>Any recommendations ?</p>
<p> </p>
<p> </p>
Find more posts tagged with
Comments
There are no comments yet