Anthill remoting API ClassDefNotFound error - java

I am trying to automate BUILDS with anthill3 using remoting API but am getting an error when i try to get the Workflows from a project.
It seems the jar commons-graph.jar which is required to run this is not provided in anthill3-devkit.
As per the below link it says to download the JAr from anthill 5 , but i get an error when i try to download any fixes or release of anthill5 .
So if anybody has a resolution or the required JAR it will be very helpfull.
http://www-01.ibm.com/support/docview.wss?uid=swg1PI43350
Exception in thread "main" java.lang.NoClassDefFoundError: Lcom/urbancode /commons/graph/TableDisplayableGraph;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredField(Unknown Source)
at java.io.ObjectStreamClass.getDeclaredSUID(Unknown Source)
at java.io.ObjectStreamClass.access$700(Unknown Source)
at java.io.ObjectStreamClass$2.run(Unknown Source)
at java.io.ObjectStreamClass$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.<init>(Unknown Source)
at java.io.ObjectStreamClass.lookup(Unknown Source)
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.readClass(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.readArray(Unknown Source)

From your question its hard to understand why you are getting the error and why you might need JAR from a newer version of Anthill. From what I know, even sending you the JAR won't do the job because of the different versions. Please try to explain what is exactly you try and maybe we can find another way of doing it without using upper version
Anyway how can I send it to you ? E-mail ?
Thanks,
Elyahu

Related

Gephi 0.10.1 'Unexpected exception' error during initialization of the Overview tab

I installed Gephi 0.10.1 for Windows from https://gephi.org/users/download/, but the initialization of the Overview tab takes forever and I cannot view any graphs (including the test ones like Les Miserables.gexf). The little 'no entry' sign in the lower right corner says 'Unexpected Exception' and 'java.lang.reflect.InvocationTargetException'.
The messages.log file located in your file:///C:/Users/ACER/AppData/Roaming/gephi/0.10/var/log/ is as follows:
' java.lang.UnsatisfiedLinkError: Cant load library: C:\Program Files\Gephi-0.10.1\natives\windows-amd64\\gluegen_rt.dll
at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.base/java.lang.Runtime.load0(Unknown Source)
at java.base/java.lang.System.load(Unknown Source)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:625)
at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:64)
at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:107)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:488)
at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:427)
at com.jogamp.common.os.Platform$1.run(Platform.java:321)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.jogamp.common.os.Platform.<clinit>(Platform.java:290)
at com.jogamp.opengl.GLProfile.<clinit>(GLProfile.java:154)
at org.gephi.visualization.swing.GLAbstractListener.getCaps(GLAbstractListener.java:179)
at org.gephi.visualization.swing.NewtGraphCanvas.initDrawable(NewtGraphCanvas.java:68)
at org.gephi.visualization.swing.GLAbstractListener.getGraphComponent(GLAbstractListener.java:548)
at org.gephi.visualization.component.GraphTopComponent$1.lambda$run$1(GraphTopComponent.java:131)
at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused: java.lang.reflect.InvocationTargetException
at java.desktop/java.awt.EventQueue.invokeAndWait(Unknown Source)
at java.desktop/java.awt.EventQueue.invokeAndWait(Unknown Source)
at java.desktop/javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
at org.gephi.visualization.component.GraphTopComponent$1.lambda$run$2(GraphTopComponent.java:128)
Caused: java.lang.RuntimeException
at org.gephi.visualization.component.GraphTopComponent$1.lambda$run$2(GraphTopComponent.java:136)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[catch] at java.base/java.lang.Thread.run(Unknown Source)`
The solutions proposed e.g. here (https://github.com/gephi/gephi/issues/2189) did not work for me, nor did reinstalling Gephi. How can I solve this issue?
Building gephi following the tutorial from https://github.com/gephi/gephi/wiki/How-to-build-Gephi (rather than downloading it directly) solved the problem.

Print JavaRDD on IDE console with Spark cluster deployed on remote machine

I Have a spark (1.6.2) standalone cluster deployed on a remote machine (1 master and 1 worker). I am connecting to this cluster using Java from IntelliJIdea on local machine. Find below java code for the same -
SparkConf conf = new SparkConf().setAppName("localApp").
setMaster("spark://remoteHostMaster_1:7077").
set("spark.ui.port","7077");
JavaSparkContext sc = new JavaSparkContext(conf);
Spark monitoring UI is launching fine at http://remoteHostMaster_1:8080/ and is displaying details of worker node.
I write a simple map-reduce and print JavaRDD on console.
If I use setMaster("local[x]") in SparkConf Object, everything works fine (console printing and file writing of JavaRDD).
Issue is whenever I print JavaRDD or write JavaRDD to a file, I am getting below exception -
Exception in thread "main" org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 0.0 failed 4 times, most recent failure: Lost task 0.3 in stage 0.0 (TID 6, remoteHostWorker_1): java.lang.ClassNotFoundException: com.til.socialData.SocialGraphDataSpark$1
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.spark.serializer.JavaDeserializationStream$$anon$1.resolveClass(JavaSerializer.scala:68)
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.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 org.apache.spark.serializer.JavaDeserializationStream.readObject(JavaSerializer.scala:76)
at org.apache.spark.serializer.JavaSerializerInstance.deserialize(JavaSerializer.scala:115)
at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:64)
at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:41)
at org.apache.spark.scheduler.Task.run(Task.scala:89)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:227)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Please guide regarding this. If anybody finds any duplicate or related question, please mention in comments.
Thanks and Regards,
Vibhav

Configuring Jasper Reports on Sugar CRM

I am using Sugar CRM version 6.5.16 and I installed the Zucker Reports module in order to generate reports. The demo reports that came with the Zucker Reports package had been generating reports without any issues (i.e the 'Opportunities' report) and so I have started to create my own custom reports to use within the application using iReports 5.6.0.
I developed a report using the same database as what my CRM application uses and the data was being displayed as I wanted and have therefore I've been trying to deploy the report onto the CRM application to use within the web page. After deploying I was getting the following error whn attempting to run the report.
cmdline: java -Djava.awt.headless=true -classpath "custom/ZuckerReports2/resources/;custom/ZuckerReports2/resources/CustomAccounts2.jasper_files/;modules/zr2_Report/jasper/ant-1.7.1.jar;modules/zr2_Report/jasper/antlr-2.7.5.jar;modules/zr2_Report/jasper/barbecue-1.5-beta1.jar;modules/zr2_Report/jasper/barcode4j-2.0.jar;modules/zr2_Report/jasper/batik-anim.jar;modules/zr2_Report/jasper/batik-awt-util.jar;modules/zr2_Report/jasper/batik-bridge.jar;modules/zr2_Report/jasper/batik-css.jar;modules/zr2_Report/jasper/batik-dom.jar;modules/zr2_Report/jasper/batik-ext.jar;modules/zr2_Report/jasper/batik-gvt.jar;modules/zr2_Report/jasper/batik-parser.jar;modules/zr2_Report/jasper/batik-script.jar;modules/zr2_Report/jasper/batik-svg-dom.jar;modules/zr2_Report/jasper/batik-svggen.jar;modules/zr2_Report/jasper/batik-util.jar;modules/zr2_Report/jasper/batik-xml.jar;modules/zr2_Report/jasper/bcel-5.2.jar;modules/zr2_Report/jasper/bsh-2.0b4.jar;modules/zr2_Report/jasper/commons-beanutils-1.8.0.jar;modules/zr2_Report/jasper/commons-collections-2.1.1.jar;modules/zr2_Report/jasper/commons-digester-1.7.jar;modules/zr2_Report/jasper/commons-javaflow-20060411.jar;modules/zr2_Report/jasper/commons-logging-1.0.4.jar;modules/zr2_Report/jasper/groovy-all-1.7.5.jar;modules/zr2_Report/jasper/hibernate3.jar;modules/zr2_Report/jasper/hsqldb-1.8.0-10.jar;modules/zr2_Report/jasper/iText-2.1.7.jar;modules/zr2_Report/jasper/jasperreports-4.0.0.jar;modules/zr2_Report/jasper/jasperreports-applet-4.0.0.jar;modules/zr2_Report/jasper/jasperreports-fonts-4.0.0.jar;modules/zr2_Report/jasper/jasperreports-javaflow-4.0.0.jar;modules/zr2_Report/jasper/jaxen-1.1.1.jar;modules/zr2_Report/jasper/jcommon-1.0.15.jar;modules/zr2_Report/jasper/jdt-compiler-3.1.1.jar;modules/zr2_Report/jasper/jfreechart-1.0.12.jar;modules/zr2_Report/jasper/jpa.jar;modules/zr2_Report/jasper/jxl-2.6.10.jar;modules/zr2_Report/jasper/log4j-1.2.15.jar;modules/zr2_Report/jasper/mondrian-3.1.1.12687.jar;modules/zr2_Report/jasper/mysql-connector-java-3.1.11-bin.jar;modules/zr2_Report/jasper/png-encoder-1.5.jar;modules/zr2_Report/jasper/poi-3.6.jar;modules/zr2_Report/jasper/rhino-1.7R1.jar;modules/zr2_Report/jasper/saaj-api-1.3.jar;modules/zr2_Report/jasper/serializer.jar;modules/zr2_Report/jasper/servlet.jar;modules/zr2_Report/jasper/spring-beans-2.5.5.jar;modules/zr2_Report/jasper/spring-core-2.5.5.jar;modules/zr2_Report/jasper/xalan-2.7.1.jar;modules/zr2_Report/jasper/xercesImpl-2.7.0.jar;modules/zr2_Report/jasper/xml-apis-ext.jar;modules/zr2_Report/jasper/xml-apis.jar;modules/zr2_Report/jasper/zuckerreports-1.0.jar;" at.go_mobile.zuckerreports.JasperBatchMain custom/ZuckerReports2/temp/dd12eded-b108-ac55-9905-57149d3cb021/cmd.properties 2>&1
JasperBatchMain :: loading jasper design custom/ZuckerReports2/resources/CustomAccounts2.jasper
Exception in thread "main" net.sf.jasperreports.engine.JRRuntimeException: java.lang.ClassNotFoundException: net.sf.jasperreports.engine.ReportContext
at net.sf.jasperreports.engine.base.JRBaseParameter.getValueClass(JRBaseParameter.java:147)
at at.go_mobile.zuckerreports.JasperBatchMain.main(JasperBatchMain.java:117)
Caused by: java.lang.ClassNotFoundException: net.sf.jasperreports.engine.ReportContext
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:175)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:115)
at net.sf.jasperreports.engine.base.JRBaseParameter.getValueClass(JRBaseParameter.java:143)
... 1 more
After reading http://techs.studyhorror.com/sugarcrm-how-install-zucker-reports-i-56 I thought the issue could be down to jar files so I moved all the Jasper jar files the report was using within the iReports application into the CRM application.
and this change was promising as it gave me a different error message:
cmdline: java -Djava.awt.headless=true -classpath "custom/ZuckerReports2/resources/;custom/ZuckerReports2/resources/CustomAccounts2.jasper_files/;modules/zr2_Report/jasper/ant-1.7.1.jar;modules/zr2_Report/jasper/antlr-2.7.5.jar;modules/zr2_Report/jasper/barbecue-1.5-beta1.jar;modules/zr2_Report/jasper/barcode4j-2.0.jar;modules/zr2_Report/jasper/batik-anim.jar;modules/zr2_Report/jasper/batik-awt-util.jar;modules/zr2_Report/jasper/batik-bridge.jar;modules/zr2_Report/jasper/batik-css.jar;modules/zr2_Report/jasper/batik-dom.jar;modules/zr2_Report/jasper/batik-ext.jar;modules/zr2_Report/jasper/batik-gvt.jar;modules/zr2_Report/jasper/batik-parser.jar;modules/zr2_Report/jasper/batik-script.jar;modules/zr2_Report/jasper/batik-svg-dom.jar;modules/zr2_Report/jasper/batik-svggen.jar;modules/zr2_Report/jasper/batik-util.jar;modules/zr2_Report/jasper/batik-xml.jar;modules/zr2_Report/jasper/bcel-5.2.jar;modules/zr2_Report/jasper/bsh-2.0b4.jar;modules/zr2_Report/jasper/commons-beanutils-1.8.0.jar;modules/zr2_Report/jasper/commons-collections-2.1.1.jar;modules/zr2_Report/jasper/commons-digester-1.7.jar;modules/zr2_Report/jasper/commons-javaflow-20060411.jar;modules/zr2_Report/jasper/commons-logging-1.0.4.jar;modules/zr2_Report/jasper/groovy-all-1.7.5.jar;modules/zr2_Report/jasper/hibernate3.jar;modules/zr2_Report/jasper/hsqldb-1.8.0-10.jar;modules/zr2_Report/jasper/iText-2.1.7.jar;modules/zr2_Report/jasper/jasperreports-4.0.0.jar;modules/zr2_Report/jasper/jasperreports-5.6.0.jar;modules/zr2_Report/jasper/jasperreports-applet-4.0.0.jar;modules/zr2_Report/jasper/jasperreports-chart-themes-5.6.0.jar;modules/zr2_Report/jasper/jasperreports-core-renderer.jar;modules/zr2_Report/jasper/jasperreports-extensions-3.5.3.jar;modules/zr2_Report/jasper/jasperreports-fonts-4.0.0.jar;modules/zr2_Report/jasper/jasperreports-fonts-5.6.0.jar;modules/zr2_Report/jasper/jasperreports-functions-5.6.0.jar;modules/zr2_Report/jasper/jasperreports-htmlcomponent-4.7.1.jar;modules/zr2_Report/jasper/jasperreports-htmlcomponent-5.0.1.jar;modules/zr2_Report/jasper/jasperreports-javaflow-4.0.0.jar;modules/zr2_Report/jasper/jasperreports-json.jar;modules/zr2_Report/jasper/jasperreports-jtidy-r938.jar;modules/zr2_Report/jasper/jaxen-1.1.1.jar;modules/zr2_Report/jasper/jcommon-1.0.15.jar;modules/zr2_Report/jasper/jdt-compiler-3.1.1.jar;modules/zr2_Report/jasper/jfreechart-1.0.12.jar;modules/zr2_Report/jasper/joda-time-2.1.jar;modules/zr2_Report/jasper/jpa.jar;modules/zr2_Report/jasper/jxl-2.6.10.jar;modules/zr2_Report/jasper/log4j-1.2.15.jar;modules/zr2_Report/jasper/mondrian-3.1.1.12687.jar;modules/zr2_Report/jasper/mysql-connector-java-3.1.11-bin.jar;modules/zr2_Report/jasper/png-encoder-1.5.jar;modules/zr2_Report/jasper/poi-3.6.jar;modules/zr2_Report/jasper/rhino-1.7R1.jar;modules/zr2_Report/jasper/saaj-api-1.3.jar;modules/zr2_Report/jasper/serializer.jar;modules/zr2_Report/jasper/servlet.jar;modules/zr2_Report/jasper/spring-beans-2.5.5.jar;modules/zr2_Report/jasper/spring-core-2.5.5.jar;modules/zr2_Report/jasper/xalan-2.7.1.jar;modules/zr2_Report/jasper/xercesImpl-2.7.0.jar;modules/zr2_Report/jasper/xml-apis-ext.jar;modules/zr2_Report/jasper/xml-apis.jar;modules/zr2_Report/jasper/zuckerreports-1.0.jar;" at.go_mobile.zuckerreports.JasperBatchMain custom/ZuckerReports2/temp/c6f07bf4-1681-db5e-5243-5714c3143fe4/cmd.properties 2>&1
JasperBatchMain :: loading jasper design custom/ZuckerReports2/resources/CustomAccounts2.jasper
Exception in thread "main" java.lang.ClassCastException: cannot assign instance of net.sf.jasperreports.engine.base.JRBaseTextField to field net.sf.jasperreports.engine.base.JRBaseParagraph.paragraphContainer of type net.sf.jasperreports.engine.JRParagraphContainer in instance of net.sf.jasperreports.engine.base.JRBaseParagraph
at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(Unknown Source)
at java.io.ObjectStreamClass.setObjFieldValues(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.defaultReadObject(Unknown Source)
at net.sf.jasperreports.engine.base.JRBaseTextElement.readObject(JRBaseTextElement.java:1366)
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 java.util.ArrayList.readObject(Unknown Source)
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.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.readArray(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.defaultReadObject(Unknown Source)
at net.sf.jasperreports.engine.base.JRBaseReport.readObject(JRBaseReport.java:823)
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 net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:97)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:73)
at at.go_mobile.zuckerreports.JasperBatchMain.main(JasperBatchMain.java:108)
EDIT Removed issue with demo report that has been resolved after adding the joda-time jar
EDIT New error message pasted after moving the subreports into the root directory of the Reports directory

java.lang.NoSuchFieldError: completionKey

When I'm trying to start my Derby Network Server, I'm getting this exception. This has never happened before and I don't now what's the cause of problem. Any ideas?
Exception in thread "main" java.lang.NoSuchFieldError: completionKey
at sun.nio.fs.WindowsNativeDispatcher.initIDs(Native Method)
at sun.nio.fs.WindowsNativeDispatcher.<clinit>(Unknown Source)
at sun.nio.fs.WindowsLinkSupport.getRealPath(Unknown Source)
at sun.nio.fs.WindowsPath.toRealPath(Unknown Source)
at sun.nio.fs.WindowsPath.toRealPath(Unknown Source)
at sun.util.calendar.ZoneInfoFile$1.run(Unknown Source)
at sun.util.calendar.ZoneInfoFile$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.util.calendar.ZoneInfoFile.<clinit>(Unknown Source)
at sun.util.calendar.ZoneInfo.getTimeZone(Unknown Source)
at java.util.TimeZone.getTimeZone(Unknown Source)
at java.util.TimeZone.setDefaultZone(Unknown Source)
at java.util.TimeZone.getDefaultRef(Unknown Source)
at java.util.TimeZone.getDefault(Unknown Source)
at java.text.SimpleDateFormat.initializeCalendar(Unknown Source)
at java.text.SimpleDateFormat.<init>(Unknown Source)
at java.text.DateFormat.get(Unknown Source)
at java.text.DateFormat.getDateInstance(Unknown Source)
at org.apache.derby.iapi.tools.i18n.LocalizedResource.init(Unknown Source)
at org.apache.derby.iapi.tools.i18n.LocalizedResource.<init>(Unknown Source)
at org.apache.derby.impl.drda.NetworkServerControlImpl.init(Unknown Source)
at org.apache.derby.impl.drda.NetworkServerControlImpl.<init>(Unknown Source)
at org.apache.derby.drda.NetworkServerControl.main(Unknown Source)
This is an Error (!) that is due to running code that was compiled against a class with a field and executing it with another (compiled) version without that field.
Go back and check installed versions, recompile everything, etc. etc-

Incompatible magic value 1010792557 for 1 client only

I have one client getting this error whilst the applet is working properly for a number of other users.
java.lang.ClassFormatError: Incompatible magic value 1010792557 in class file %className%
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.SecurityException: class "%className%"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(Unknown Source)
at java.lang.ClassLoader.preDefineClass(Unknown Source)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I believe that the magic value represents the start of an xml tag (based on this Incompatible magic value 1010792557 when trying to run applet embedded in Facelets). The security error occurs after the magic value error and I suspect its a byproduct of the first problem.
What I can't fathom is why this is happening to one client only.
All clients are using JRE version 1.6.0_24-b07 and IE 8.0.6001.18702.
On the clients machine I have tried clearing the cache, deleting temporary internet files, and deleting temporary internet files via the java control panel. I have also tried deleting the certificate from the javacpl 'trusted certificates' list and even turning off verification from javacpl>Advanced>Security>Mixed Code.
I'm out of ideas and would love to hear any suggestions on what the problem/solution might be.
Oh, the applet is hosted in a java wicket project running on tomcat 7.0.19 via apache 2.2 (on windows server 2008).

Categories