I am using birt 4.3.1 so by default spudsoft emitter is available in birt ,using that emitter i am generating xlsx document but below exception is raised, i am using birt 4.3.1 runtime jar .the problem mentioned in the below path also but i am not understand that one https://bugs.eclipse.org/bugs/show_bug.cgi?id=398774
org.eclipse.birt.report.engine.api.EngineException: Report engine fails to
initialize uk.co.spudsoft.birt.emitters.excel.XlsxEmitter emitter, please
make sure required libraries for this emitter are installed.
Caused by: java.lang.NoClassDefFoundError:org/apache/poi/ss/usermodel/Workbook
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
Related
Trying to build native quarkus and there's an error if I add json path https://github.com/json-path/JsonPath
Call path from entry point to java.lang.ClassLoader.defineClass(String, byte[], int, int, ProtectionDomain):
at java.lang.ClassLoader.defineClass(ClassLoader.java:1015)
at java.lang.ClassLoader.defineClass(ClassLoader.java:878)
at net.minidev.asm.DynamicClassLoader.defineClass(DynamicClassLoader.java:86)
at net.minidev.asm.BeansAccessBuilder.bulid(BeansAccessBuilder.java:313)
at net.minidev.asm.BeansAccess.get(BeansAccess.java:111)
at net.minidev.json.reader.BeansWriterASM.writeJSONString(BeansWriterASM.java:17)
or with option --report-unsupported-elements-at-runtime
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:603)
at java.base/java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1006)
at com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:480)
at com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:349)
at com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:508)
at com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:114)
at com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus.main(NativeImageGeneratorRunner.java:537)
Caused by: java.lang.NoClassDefFoundError: javax/security/jacc/EJBMethodPermission
Is there anything I can do about it or it's a bug?
using docker to compile, it's working in jvm mode
Hard to tell without looking into the library code.
Quarkus does its best to integrate libraries and make them work with native mode, by adding the pieces required by native mode. For native mode limitations, please check this link: https://www.graalvm.org/reference-manual/native-image/Limitations/.
Some libraries may work out of the box without additional configuration. Other require additional configuration to comply with the native image rules.
It seems that the library is trying to dynamically add classes into the ClassLoader, which is unsupported in GraalVM due to the closed world assumption, unless the classes are registered at build time.
I am developing a JAVAFX application which requires GoogleDrive connectivity inorder to store and retrieve data. Since Java11 doesn't include JAVAFX i have used to mergefx inorder to create a merged JDK with FX library. I am able to run the application in Eclipse latest version without any error and is able to connect with Googledrive via browser. In order to create a standalone version, I have used Jlink to create a JRE. Also to avoid the use of .bat file to execute the application, I have used Launch4j to create a .exe file of application. The .exe file has been created successfully,but while trying to connect with Googledrive, its showing the following error:
Caused by: java.lang.ClassNotFoundException:
com.sun.net.httpserver.HttpHandler at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
Please let me know your suggestions,which will be really helpful.
I have been developing a Spring project about 6 months. This project is built with maven and spring. Suddenly today i discovered that jdbc sections of the code throwing the error below. I made some changes to my web services in the project lately but I did not change any maven configurations or spring configurations since the last time the application worked stable. Where should I start to look for the error?
Any comment is appreciated.
Caused by: java.lang.NoClassDefFoundError: org/springframework/jdbc/core/SingleColumnRowMapper
at org.springframework.jdbc.core.JdbcTemplate.getSingleColumnRowMapper(JdbcTemplate.java:1184)
at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:744)
at com.pozitron.bkmtransfer.core.dao.AcsKeyAliasDaoImpl.findRsaPubKeyByBankId(AcsKeyAliasDaoImpl.java:43)
at com.pozitron.bkmtransfer.services.core.CipherActionImpl.verify(CipherActionImpl.java:97)
at com.pozitron.bkmtransfer.services.TransferActionImpl.transferMoney(TransferActionImpl.java:67)
at com.pozitron.bkmtransfer.ws.endpoints.TransferEndPoint.transferMoney(TransferEndPoint.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
At first make sure that you have this class (jar) on your classpath. If you do then make sure that you have only one version of this class in your classpath. It might be that new jar was included if you changed/added some dependencies.
Also, if you're starting your app from the eclipse then the only thing you might be needing is to do project->clean
P.S. Are you getting this error at compile time or runtime?
Hi
I am currently working on a project and basing my design proposal on a SOA architecture and am including GWT components for UI . I am new to GWT and after reading through a week of posts of GWT and SmartGWT and trying out samples i would like to introduce SmartGWT into my organization w/o the server-side integration. That is because we already have spring services and would like them to remain re-usable through the organization. So my main interest is in the ui components of Smart GWT and in some fashion (either gwt-rpc or REST ) connect to the backend exposed services.
I am developing on SmartGWT 2.4 and gwt2.2+ . I have gone through the posts on GWT-rpc and tried using the sample api presented. However i ran into a couple issues .
Running the ListGridSample 'as is' i get the following ERROR although the application runs.
Am using the sample from here
23:31:37.101 [ERROR] [listgridtest] 23:31:37.088:RDQ5:WARN:ResultSet:isc_ResultSet_0 (created by: isc_OID_1):get: invalid index -1
com.smartgwt.client.core.JsObject$SGWT_WARN: 23:31:37.088:RDQ5:WARN:ResultSet:isc_ResultSet_0 (created by: isc_OID_1):get: invalid index -1 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:619)
I next wanted to remove all the redundant jars present in the example project and update the smartgwt jars and gwt-servlet jar to see if it is still compatible. I received this
23:37:06.584 [ERROR] [listgridtest] Unable to load module entry point class mytest.client.YourEntryPoint (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError): Object [object Object] has no method 'getNextGlobalIDForClass'
stack: TypeError: Object [object Object] has no method 'getNextGlobalIDForClass'
at unknown source
at __gwt_jsInvoke (ttp://127.0.0.1:8888/listgridtest/hosted.html?listgridtest:76:35)
at ttp://127.0.0.1:8888/listgridtest/hosted.html?listgridtest:280:16
at z (ttp://127.0.0.1:8888/listgridtest/listgridtest.nocache.js:2:144)
at ttp://127.0.0.1:8888/listgridtest/listgridtest.nocache.js:8:589
arguments: getNextGlobalIDForClass,[object Object]
type: undefined_method
__gwt_ObjectId: 2
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.smartgwt.client.util.SC.generateID(SC.java)
at com.smartgwt.client.widgets.BaseWidget.<init>(BaseWidget.java:102)
at com.smartgwt.client.widgets.Canvas.<init>(Canvas.java:75)
at mytest.client.YourEntryPoint.onModuleLoad(YourEntryPoint.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:619)
I read somewhere on the smartclient forums not to mix the smartgwtee and smartgwt jars so i double checked (because i was evaluating the ee edition b4this but that required a learning in the datasource concept ). So i am using gwt2.2+ and smart-gwt2.4.
I have read through the quick start pdf (quickly) and decided that although the server side integration may have benefits for a quick introduction within my organization it would not work.
So from an system standpoint if i understand correctly you could define your datasource for your partricular widgets and then use the GenericGwtService to pass on to your business services before or after you send back the DSresponse.
Can you kindly point me to a quick sample which actually does this in the latest version or a document which specifies exactly how to do it ? or an api or a forum post which addresses this for the latest versions.
Hopefully that would help me springify the sample miniapp.. which would help me POC.
Any input appreciated.
Thanks,
Answered something similar here - Smartgwt DataSource with gwt requestfactory etc
You can also look at JSON datasources
http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/data/XJSONDataSource.html
I'm trying to deploy a couple of jar files in a code module for an event action in FileNet P8 4.0 (the FileNet server runs on WebSphere 6.1). One of these jars is my custom code, and the other jar is the thin driver for Oracle called ojdbc14.jar (I also tried with ojdbc15.jar), the custom code uses the oracle jar in order to connect to a data source and get a connection using the JNDI name.
When the event action is executed (after a subscription is invoked) the code in my custom module is called OK, the problem occurs when my code needs to load classes from the Oracle jar, I get this cause:
ERROR - Mon Sep 21 16:42:17 UTC 2009 - com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. [Root exception is java.lang.reflect.InvocationTargetException]
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:1000)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:705)
at com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:2093)
...
Caused by: java.lang.NoClassDefFoundError: oracle.jdbc.driver.OracleLog
at com.ibm.ws.rsadapter.dbutils.impl.OracleUtilityImpl.setLogVolume(OracleUtilityImpl.java:85)
at com.ibm.ws.rsadapter.spi.InternalOracleDataStoreHelper.setProperties(InternalOracleDataStoreHelper.java:142)
at com.ibm.ws.rsadapter.spi.WSRdbDataSource.(WSRdbDataSource.java:846)
at com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl.setDataSourceProperties(WSManagedConnectionFactoryImpl.java:1947)
... 43 more
...
Caused by: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleLog
at java.net.URLClassLoader.findClass(URLClassLoader.java:496)
at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:132)
at java.lang.ClassLoader.loadClass(ClassLoader.java:631)
at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
... 48 more
Since I'm deploying the oracle jar with the code module, shouldn't FileNet should be able to find the class? Do you think I need to configure something else?
Thanks in advance.
Is it possible for your application to use WebSphere's own JDBC connection pools? When you set up a pool for a particulr database you get all the vendor-specific drivers installed there.
Generally, all manner of classpath and classloader confisions ensue when you try to place infrastructure code in your own applications. I don't know for certain that this is the case for your situation, but I do find taht staying on the known path in WebSphere tends to give the smoothest results.
I found the problem... somehow the ojdbc14.jar file got corrupted, so even when the classpath was correct and no matter what I tried to fix the problem, the problem was always there.
Thanks for the comments!