Barbecue plugin and Linux Issue

Questions and answers on developing, deploying and using plugins and JavaBeans

Barbecue plugin and Linux Issue

Postby lhale » Tue Jun 05, 2012 2:42 pm

I am having serious issues getting the barbecue-1.5-beta1 to generate barcodes(JasperReports) on my linux 5.2.7 servoy app server using Basic_Servoy_JasperReports_Plugin_v.3.0.0. Everything works great on my windows developer and ireport, but will not run on linux (ubuntu 6.06) (Java 1.6). All jars are signed and look good. I have followed the tutorials and still have no success. Any and all help would be appreciated. Below is my servoy_jasperreports.jar.jnlp

<?xml version="1.0" encoding="UTF-8" ?>
<jnlp spec="1.0+" codebase="%%serverURL%%" href="/servoy-client/plugins/servoy_jasperreports.jar.jnlp">
<information>
<title>Servoy Client Plugins</title>
<vendor>Servoy and Others</vendor>
</information>
<resources>
<jar href="/plugins/servoy_jasperreports.jar" download="eager" version="%%version%%"/>
<jar href="/lib/commons-collections.jar" download="lazy" part="commons-collections" version="%%version%%"/>
<package name="org.apache.commons.collections.*" part="commons-collections" recursive="true"/>
<jar href="/lib/commons-logging.jar" download="lazy" part="commons-logging" version="%%version%%"/>
<package name="org.apache.commons.logging.*" part="commons-logging" recursive="true"/>
<jar href="/lib/commons-dbcp.jar" download="lazy" part="commons-dbcp" version="%%version%%"/>
<package name="org.apache.commons.dbcp.*" part="commons-dbcp" recursive="true"/>
<package name="org.apache.commons.jocl.*" part="commons-dbcp" recursive="true"/>
<jar href="/plugins/servoy_jasperreports/jasperreports-3.7.6.jar" download="eager"/>
<jar href="/plugins/servoy_jasperreports/commons-beanutils-1.8.2.jar" download="lazy" part="commons-beanutils" version="1.8.2"/>
<package name="org.apache.commons.beanutils.*" part="commons-beanutils" recursive="true"/>
<jar href="/plugins/servoy_jasperreports/commons-digester-1.7.jar" download="lazy" part="commons-digester" version="1.7"/>
<package name="org.apache.commons.digester.*" part="commons-digester" recursive="true"/>
<jar href="/plugins/servoy_jasperreports/iText-2.1.7.jar" download="lazy" part="itext" version="2.1.7"/>
<package name="com.lowagie.*" part="itext" recursive="true"/>
<jar href="/plugins/servoy_jasperreports/jdt-compiler-3.1.1.jar" download="lazy" part="jdt-compiler" version="3.1.1"/>
<package name="org.eclipse.jdt.*" part="jdt-compiler" recursive="true"/>
<jar href="/plugins/servoy_jasperreports/poi-3.6-20091214.jar" download="lazy" part="poi" version="3.6"/>
<package name="org.apache.poi.*" part="poi" recursive="true"/>
<jar href="/plugins/servoy_jasperreports/barbecue-1.5-beta1.jar" download="lazy" part="barbecue" version="1.5.1"/>
<package name="net.sourceforge.barbecue.*" part="barbecue" recursive="true"/>

</resources>
<component-desc></component-desc>
<security>
<all-permissions/>
</security>

</jnlp>
lhale
 
Posts: 108
Joined: Mon Mar 17, 2008 3:49 pm

Re: Barbecue plugin and Linux Issue

Postby rgansevles » Wed Jun 06, 2012 10:40 am

Hi,

Do you get an error message in the logs?
Or in the java webstart console?
To enable the console, type 'javaws -viewer' in a terminal window and select Advanced->Java console-> Show console on the Java Control Panel.

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: Barbecue plugin and Linux Issue

Postby lhale » Wed Jun 06, 2012 5:00 pm

here is the log message I get in the console when I run a barcode report on my linux server:

Java Web Start 1.6.0_31
Using JRE version 1.6.0_31-b05 Java HotSpot(TM) Client VM
User home directory =
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
Jun 6, 2012 9:59:26 AM com.servoy.j2db.util.Debug error
SEVERE: Throwable
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.io.InvalidClassException: javax.swing.JComponent; local class incompatible: stream classdesc serialVersionUID = -2514362798440941654, local class serialVersionUID = -1030230214076481435
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at com.servoy.plugins.jasperreports.JasperReportsServer_Stub.getJasperPrint(Unknown Source)
at com.servoy.plugins.jasperreports.JasperReportsProvider.runReport(JasperReportsProvider.java:381)
at com.servoy.plugins.jasperreports.JasperReportsProvider.js_runReport(JasperReportsProvider.java:305)
at com.servoy.plugins.jasperreports.JasperReportsProvider.js_runReport(JasperReportsProvider.java:302)
at com.servoy.plugins.jasperreports.JasperReportsProvider.js_runReport(JasperReportsProvider.java:298)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:179)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:353)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:81)
at org.mozilla.javascript.gen.c85._c0(test:157)
at org.mozilla.javascript.gen.c85.call(test)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:387)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3135)
at org.mozilla.javascript.gen.c85.call(test)
at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:476)
at com.servoy.j2db.FormController.executeFunction(FormController.java:3977)
at com.servoy.j2db.FormController.executeFunction(FormController.java:3865)
at com.servoy.j2db.FormController.executeFunction(FormController.java:3787)
at com.servoy.j2db.FormController$ScriptExecuter.executeFunction(FormController.java:3642)
at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:272)
at com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:217)
at com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:212)
at com.servoy.j2db.smart.dataui.AbstractScriptButton$2.actionPerformed(AbstractScriptButton.java:826)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.io.InvalidClassException: javax.swing.JComponent; local class incompatible: stream classdesc serialVersionUID = -2514362798440941654, local class serialVersionUID = -1030230214076481435
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.ArrayList.readObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.ArrayList.readObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.ArrayList.readObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.defaultReadObject(Unknown Source)
at net.sf.jasperreports.engine.JasperPrint.readObject(JasperPrint.java:831)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at sun.rmi.server.UnicastRef.unmarshalValue(Unknown Source)
... 63 more
JavaException: java.lang.Exception: error unmarshalling return; nested exception is:
java.io.InvalidClassException: javax.swing.JComponent; local class incompatible: stream classdesc serialVersionUID = -2514362798440941654, local class serialVersionUID = -1030230214076481435


this issue looks very similar to this post: viewtopic.php?f=15&t=17248
lhale
 
Posts: 108
Joined: Mon Mar 17, 2008 3:49 pm

Re: Barbecue plugin and Linux Issue

Postby rgansevles » Thu Jun 07, 2012 4:33 pm

Hi,

What seems to happen here is that the plugin creates a java ui component (JComponent) which can be serialized with java, but only with the same java versions on both sides (server/client).
If you make these versions the same, it may work, but I am surprised that the plugin creates a ui component in the report.

I don't know the workings of the barbecue plugin, maybe you can change the report so that it does not create such UI components?

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: Barbecue plugin and Linux Issue

Postby lhale » Thu Jun 07, 2012 10:52 pm

Thanks for all your help rob. I switched gears and worked with the barcode4j plugin. I used the console to determine which libraries the plugin needed. After a whole lot of time I have barcode4j configured and running on all systems.
Below is a clip from my servoy_jasperreprots.jnlp that allowed me to get barcode4j working. Also, all jars referenced can be located in the japsper "C:\Program Files (x86)\Jaspersoft\iReport-3.7.6\ireport\modules\ext" for windows. These need to be copied to the servoy_jaspererports folder. Finally, all jars must be signed with signtester.jar. There are tutorials out at the wiki for signing all your jars.

Code: Select all
      <jar href="/plugins/servoy_jasperreports/barcode4j-2.0.jar" download="lazy" part="barcode4j" version="2.0"/>
                   <package name="org.krysalis.barcode4j.*" part="barcode4j" recursive="true"/>

      <jar href="/plugins/servoy_jasperreports/batik-bridge.jar" download="lazy" part="batik-bridge" version="%%version%%"/>
                   <package name="org.apache.batik.bridge.*" part="batik-bridge" recursive="true"/>

      <jar href="/plugins/servoy_jasperreports/batik-dom.jar" download="lazy" part="batik-dom" version="%%version%%"/>
                   <package name="org.apache.batik.dom.*" part="batik-dom" recursive="true"/>

      <jar href="/plugins/servoy_jasperreports/batik-svg-dom.jar" download="lazy" part="batik-svg-dom" version="%%version%%"/>
                   <package name="org.apache.batik.dom.*" part="batik-svg-dom" recursive="true"/>


      <jar href="/plugins/servoy_jasperreports/batik-ext.jar" download="lazy" part="batik-ext" version="%%version%%"/>
                   <package name="org.w3c.dom.*" part="batik-ext" recursive="true"/>

      <jar href="/plugins/servoy_jasperreports/batik-awt-util.jar" download="lazy" part="batik-awt-util" version="%%version%%"/>
                   <package name="org.apache.batik.ext.*" part="batik-awt-util" recursive="true"/>

      <jar href="/plugins/servoy_jasperreports/batik-util.jar" download="lazy" part="batik-util" version="%%version%%"/>
                   <package name="org.apache.batik.*" part="batik-util" recursive="true"/>


      <jar href="/plugins/servoy_jasperreports/xml-apis-ext.jar" download="lazy" part="xml-apis-ext" version="%%version%%"/>
                   <package name="org.w3c.css.sac.*,org.w3c.dom.smil.*,org.w3c.dom.svg.*" part="xml-apis-ext" recursive="true"/>

      <jar href="/plugins/servoy_jasperreports/batik-xml.jar" download="lazy" part="batik-xml" version="%%version%%"/>
                   <package name="org.apache.batik.xml.*" part="batik-xml" recursive="true"/>

      <jar href="/plugins/servoy_jasperreports/batik-parser.jar" download="lazy" part="batik-parser" version="%%version%%"/>
                   <package name="org.apache.batik.parser.*" part="batik-parser" recursive="true"/>

      <jar href="/plugins/servoy_jasperreports/batik-anim.jar" download="lazy" part="batik-anim" version="%%version%%"/>
                   <package name="org.apache.batik.anim.*" part="batik-anim" recursive="true"/>

      <jar href="/plugins/servoy_jasperreports/batik-gvt.jar" download="lazy" part="batik-gvt" version="%%version%%"/>
                   <package name="org.apache.batik.gvt.*" part="batik-gvt" recursive="true"/>

      <jar href="/plugins/servoy_jasperreports/batik-script.jar" download="lazy" part="batik-script" version="%%version%%"/>
                   <package name="org.apache.batik.script.*" part="batik-script" recursive="true"/>

      <jar href="/plugins/servoy_jasperreports/batik-svggen.jar" download="lazy" part="batik-svggen" version="%%version%%"/>
                   <package name="org.apache.batik.svggen.*" part="batik-svggen" recursive="true"/>

      <jar href="/plugins/servoy_jasperreports/batik-css.jar" download="lazy" part="batik-css" version="%%version%%"/>
                   <package name="org.apache.batik.css.*" part="batik-css" recursive="true"/>
lhale
 
Posts: 108
Joined: Mon Mar 17, 2008 3:49 pm

Re: Barbecue plugin and Linux Issue

Postby andysecondday2 » Tue Feb 03, 2015 9:03 am

Hi guys
I have a lot of reports made in Jasper Reports (iReport), but now I have necessity to add a barcode in iReport and every report. With advanced plugin I have a problem (as explained in an other topic ). Also I have notice that barbecue is a beta plugin (barbecue-1.5-beta1.jar) made in 2007. I ask, now it's still used this plugin? Why there is not a final release of its?
So I wanna ask you if there are others solutions to print barcodes (I've read about Velocity but this means that add another program for reports...) or Jasper Plugin is the right way.
Thanks in advance!
andysecondday2
 
Posts: 1
Joined: Tue Feb 03, 2015 8:54 am

Re: Barbecue plugin and Linux Issue

Postby lwjwillemsen » Tue Feb 03, 2015 9:29 am

Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 680
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 1 guest