Configuring Jasper Reports on Sugar CRM - java

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

Related

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

ILazyInitProxy ClassNotFoundException in Wicket Websocket

The following error often shows up when a websocket connection is opened or closed in my wicket web application:
2016-07-11 10:53:07,874 ERROR [::] [qtp1484594489-42303] [] [||] - org.apache.wicket.protocol.ws.api.AbstractWebSocketProcessor - An error occurred during processing of a WebSocket message
net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:256)
at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:378)
at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:286)
at org.apache.wicket.proxy.LazyInitProxyFactory.createProxy(LazyInitProxyFactory.java:191)
at org.apache.wicket.proxy.LazyInitProxyFactory$ProxyReplacement.readResolve(LazyInitProxyFactory.java:270)
at sun.reflect.GeneratedMethodAccessor7815.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadResolve(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 java.util.ArrayList.readObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor7812.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 org.apache.wicket.serialize.java.JavaSerializer.deserialize(JavaSerializer.java:122)
at org.apache.wicket.pageStore.AbstractPageStore.deserializePage(AbstractPageStore.java:152)
at org.apache.wicket.pageStore.AbstractCachingPageStore.getPage(AbstractCachingPageStore.java:67)
at org.apache.wicket.page.PageStoreManager$SessionEntry.getPage(PageStoreManager.java:203)
at org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.getPage(PageStoreManager.java:357)
at org.apache.wicket.page.AbstractPageManager.getPage(AbstractPageManager.java:82)
at org.apache.wicket.page.PageManagerDecorator.getPage(PageManagerDecorator.java:50)
at org.apache.wicket.page.PageAccessSynchronizer$2.getPage(PageAccessSynchronizer.java:246)
at org.apache.wicket.protocol.ws.api.AbstractWebSocketProcessor.getPage(AbstractWebSocketProcessor.java:315)
at org.apache.wicket.protocol.ws.api.AbstractWebSocketProcessor.broadcastMessage(AbstractWebSocketProcessor.java:243)
at org.apache.wicket.protocol.ws.api.AbstractWebSocketProcessor.onClose(AbstractWebSocketProcessor.java:182)
at org.apache.wicket.protocol.ws.jetty.JettyWebSocketProcessor$JettyWebSocket.onClose(JettyWebSocketProcessor.java:56)
at org.eclipse.jetty.websocket.WebSocketConnectionRFC6455.closeIn(WebSocketConnectionRFC6455.java:332)
at org.eclipse.jetty.websocket.WebSocketConnectionRFC6455.handle(WebSocketConnectionRFC6455.java:257)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:395)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237)
... 59 more
Caused by: java.lang.NoClassDefFoundError: org/apache/wicket/proxy/ILazyInitProxy
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
... 64 more
Caused by: java.lang.ClassNotFoundException: org.apache.wicket.proxy.ILazyInitProxy
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 66 more
The AbstractWebSocketProcessor class tries to broadcast a message to notify listeners that the websocket closes.
In doing this, it tries to load a wicket page. That page contains multiple autowired fields and it needs to be deserialized, but that's where the classnotfoundexception of the proxy class occurs.
I suspect this issue to be the cause of a thread leak, but I can not reproduce the error consistently.
How could this error occur?

It is related to Javafx or fxml

Hello Friend's plz help me on this. When i run this code in my java file
code: Parent root=FXMLLoader.load(getClass().getResource("first.fxml"));
to get the fxml file that contain the Java Builder code, then i face these Problems. My code is not run. Problems are:
Exception in Application start method
java.lang.reflect.InvocationTargetException
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 com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(Unknown Source)
at com.sun.javafx.application.LauncherImpl.launchApplication(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 sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Location is required.
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.load(Unknown Source)
at firt.first.start(first.java:17)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(Unknown Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(Unknown Source)
... 1 more
Exception running application firt.first
Plz help me, guide me what to do ......
In your exception it says "Caused by: java.lang.NullPointerException: Location is required."
You have to set the correct location of your fxml file.
Parent root=FXMLLoader.load(getClass().getResource("first.fxml"));
According to your code, your fxml file is expected to be in the same folder like your .java file on the system.

Error while creating BranchType in Clearcase 7.1.2 using CM API through Web View

I am getting error while creating BranchType in Clearcase 7.1.2 using CM API through Web View
Following is my method for creating BranchType :
static void createBranchType(String branchTypeName, CcProvider provider, String repositoryName) throws WvcmException
{
CcBranchType newBr = provider.ccBranchType(provider.userFriendlySelector(Domain.CLEAR_CASE, Namespace.BRTYPE, branchTypeName, repositoryName));
newBr.doCreateCcBranchType(null, null);
}
After running this code I am getting following exception :
CRVAP0236E (not-allowed): Unable to perform operation makeCcResource (CcBranchType.doCreateCcBranchType) on 'cc.brtype:NewBRJava': operation not allowed.
...com.ibm.rational.stp.ws.schema.ErrorFault:
at com.ibm.rational.stp.cs.internal.util.StpExceptionImpl.realException(StpExceptionImpl.java:493)
at com.ibm.rational.stp.cs.internal.util.StpExceptionImpl.(StpExceptionImpl.java:572)
at com.ibm.rational.stp.client.internal.wsutil.DctMethod$WsException.stpException(DctMethod.java:2398)
at com.ibm.rational.stp.client.internal.wsutil.DctMethod.handleErrorFault(DctMethod.java:1763)
at com.ibm.rational.stp.client.internal.wsutil.DctMethod.invoke(DctMethod.java:1114)
at com.ibm.rational.stp.client.internal.wsutil.DctMethod.invoke(DctMethod.java:848)
at com.ibm.rational.stp.client.internal.wsutil.DctMethod.invoke(DctMethod.java:1241)
at com.ibm.rational.stp.client.internal.ccrc.CcMkResource.run(CcMkResource.java:67)
at com.ibm.rational.stp.client.internal.core.CoreResource.runProtocolOp(CoreResource.java:800)
at com.ibm.rational.stp.client.internal.core.CoreResource.runOp(CoreResource.java:746)
at com.ibm.rational.stp.client.internal.cc.CcResourceImpl.runCcMkResourceOpInternal(CcResourceImpl.java:669)
at com.ibm.rational.stp.client.internal.cc.CcResourceImpl.runCcMkResourceOp(CcResourceImpl.java:630)
at com.ibm.rational.stp.client.internal.cc.CcBranchTypeImpl.doCreateCcBranchType(CcBranchTypeImpl.java:52)
at Example.createBranchType(Example.java:327)
at Example.main(Example.java:271)
Caused by: CRVSV0130E No object could be found that allows the requested operation.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.axis.encoding.ser.BeanDeserializer.(BeanDeserializer.java:120)
at org.apache.axis.encoding.ser.BeanDeserializer.(BeanDeserializer.java:106)
at com.ibm.rational.stp.ws.schema.ErrorFault.getDeserializer(ErrorFault.java:345)
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.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)
at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)
at org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)
at org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547)
at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at com.ibm.rational.stp.ws.teamservice.TeamBindingStub.makeCcResource(TeamBindingStub.java:2956)
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 com.ibm.rational.stp.client.internal.wsutil.DctMethod.invoke(DctMethod.java:1020)
... 10 more
I am stuck with this error from lat 5 days. I searched a lot on IBM forum and on google also but still no success.
Thanks in advance.
I solved it finally. The error was because of incorrect repository tag. I was passing the repository name but it requires the repository tag name (VOB tag) in method userFriendlySelector(Domain.CLEAR_CASE, Namespace.BRTYPE, branchTypeName, repositoryName). This should be VOB tag.

Applet java.lang.NoClassDefFoundError - JVM Runtime Classes

I am using an applet that will be called by JavaScript in the background to access the clipboard and copy the contents. I am using the below code to load the applet in my JSP file.
var attributes = { id:'applet', code:'com.applet.Applet.class', archive:'/applet/applet.jar', width:1, height:1, style:'display:none' } ;
var parameters = { } ;
deployJava.runApplet(attributes, parameters, '1.4');
The applet is signed, loads and runs fine 99% of the time. But, sporadically I see errors stating that few runtime JAVA classes are not found which I don't use. Its purely runtime classes which is required to load the applet itself. Also, it does not fail for the same class. It fails for different classes. Is there something that I am missing?
Unfortunately, this happens only in higher environments where we don't have much control to enable the trace and logs.
Let me know if any additional information is required.
Example:
java.lang.NoClassDefFoundError: Could not initialize class sun.net.www.http.KeepAliveStream
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
at sun.plugin.PluginURLJarFileCallBack.downloadJAR(Unknown Source)
at sun.plugin.PluginURLJarFileCallBack.access$000(Unknown Source)
at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$1000(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Categories