Need help on java.lang.reflect
Hi,
I want to use the java.lang.reflect package's member classes for my program. Is there any place on web where I can get complete details of these packages including, classes, methods, functions and their arguements etc.
Thanks.
Hi jasper,
It serves my purpose. But it is available as web page with links. Is there any downloadable version available?
Can anybody help me, because I won't be online all the time.
Similar Messages
-
Need help with java.lang.UnsatisfiedLink Error
hello,
i'm trying to access a channel using Java Channel Access(JCA) on HP UX
[please ref for documentation: http://www.aps.anl.gov/xfd/SoftDist/swBCDA/jca/doc/index.html]. I set the java.library.path to the directory where my JCA libraries are. But I get the following error and finally core dump when I try to load the library, libjca.sl or even when I comment out the lines that load the library.
Any help would be appreciated. Thanks, Srik.
My Source code looks like this:
try{
System.out.println(System.getProperty("java.library.path"));
try{
//System.loadLibrary("libjca.a");
System.loadLibrary("libjca.sl");
}catch(UnsatisfiedLinkError ule){
ule.printStackTrace();
Ca chanAcc = new Ca();
chanAcc.init();
System.out.println("Hello: Connected to Channel");
PV procvar = new PV("ioc:heartbeat");
chanAcc.flushIO();
String host = procvar.hostName();
System.out.println("Host: "+host);
procvar.clear();
chanAcc.exit();
}catch(Exception e){
e.printStackTrace();
Error:
java.lang.UnsatisfiedLinkError: no libjca.sl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1419)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:832)
at ChAccess.main(ChAccess.java:12)
aCC runtime: Error 215 from shl_findsym(/cs/prohome/lib/libcsue.sl.v5,_shlInit)
/usr/lib/dld.sl: Unresolved symbol: typeid__XTQ2_3std9exception_ (data) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: Cclassic_table__Q2_3std5ctypeXTc_ (data) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: __nullref__Q2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__ (data) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: __ct__Q3_3std8ios_base4InitFv_1 (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: Cfire_event__Q2_3std8ios_baseFQ3_3std8ios_base5eventb (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: __dt__Q2_3std9exceptionFv (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: Cinitfacet__Q2_3std5ctypeXTc_FRCQ2_3std6locale (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: Cvformat__Q2_3std14__rw_exceptionFiPd (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: do_out__Q2_3std14codecvt_bynameXTwTcT9mbstate_t_CFR9mbstate_tPCwT2RPCwPcT5RPc (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: __dt__15_HPMutexWrapperFv (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: do_in__Q2_3std14codecvt_bynameXTwTcT9mbstate_t_CFR9mbstate_tPCcT2RPCcPwT5RPw (code) from /cs/prohome/lib/libcsue.sl.v5
/usr/lib/dld.sl: Unresolved symbol: __dt__Q3_3std8ios_base4InitFv (code) from /cs/prohome/lib/libcsue.sl.v5
ABORT instruction (core dumped)hi jonas..
thanks for the reply. actually I set SHLIB_PATH on HP UX which is the equivalent of LD_LIBRARY_PATH and i'm trying to load the library using
System.loadLibrary(..) and i type out the path using System.getProperty to make sure that the path to the library is included.
but still i'm getting the error.
i'd appreciate any suggestions.
thanks in advance. -
What this error mean. Help! I dont understand. The program is running when I try to run it but when I try to deploy it using JNLP it wont work.
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.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: Cutout$1
at Cutout.<init>(Cutout.java:45)
at Cutout.main(Cutout.java:175)
... 11 more
It seems like the error is at line 45 of my code. My code starting from line 45 is this...
capture.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
try {
java.awt.Point pos = jFrame.getLocationOnScreen();
javax.imageio.ImageIO.write(shot.getSubimage(pos.x + 3, pos.y + 27, jFrame.getWidth() - 7, jFrame.getHeight() - 30), "jpg", new java.io.File("image.jpg"));
} catch(java.io.IOException ioe) {
ioe.printStackTrace();
popup.add(capture);
refresh = new javax.swing.JMenuItem("Refresh");
refresh.setMnemonic('R');
refresh.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
refresh();
popup.add(refresh);
exit = new javax.swing.JMenuItem("Exit");
exit.setMnemonic('x');
exit.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jFrame.setVisible(false);
jFrame.dispose();
System.exit(0);
popup.add(exit);
addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseReleased(java.awt.event.MouseEvent evt) {
popup.show(evt.getComponent(), evt.getX(), evt.getY());
});Is there something wrong with this one?Hi,
I get the same error and i am not really sure what your explanation says... This problem below is the latest of a series of problems i started getting after i updated my BIRT version in Eclipse 3.3.1 and RAD 6.0... I troubleshooted and resolved most of them however i am not sure and it is not obvious to me what is required for this particular one below
In the problems tab there is nothing to give me a clue. The exception below appears in the Websphere console and also on the page when trying to access my jsp file normally. I am not sure what is causing it, but here it is:
JSP Processing Error
HTTP Error Code: 500
Error Message:JSPG0227E: Exception caught while translating /directory/init.jsp: java.lang.reflect.InvocationTargetException
Root Cause:com.ibm.ws.jsp.translator.JspTranslationException: JSPG0227E: Exception caught while translating /directory/init.jsp: java.lang.reflect.InvocationTargetException at com.ibm.ws.jsp.translator.JspTranslator.processVisitors(JspTranslator.java:133) at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:168) at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:81) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.translateJsp(JSPExtensionServletWrapper.java:298) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.checkForTranslation(JSPExtensionServletWrapper.java:265) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:137) at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:230) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220) at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
One of the funny things here, is that this is happening only when i start websphere in debug mode!
Does anyone have any idea of what may be causing this or how we can find what's causing it or how to resolve it??
Thanks in advance
& Best Regards
Spiros P. -
I am reading a .dbf file and then...parse it and insert the parsed data into MYSQL Database.After inserting 50 records..iam calling the sleep method on the class...to give time for the jrun to release the ports for further..inserts.The code inserts the first 50 records and when it comes back after the sleep method..this null pointer exception is being thrown..when i check the Jrun Server log file.
This is the final stage of my project...where iam having to transfer live data from DBase to MYSQL.Any help...is highly appreciated guys..
This is the error that it is throwing (Scroll down to see the code as well):
07/28 10:59:58 error null; nested exception is:
java.lang.reflect.InvocationTargetException
[2]java.lang.NullPointerException
at jrun.sql.JRunResultSet.clearUpdates(JRunResultSet.java:1873)
at jrun.sql.JRunResultSet.next(JRunResultSet.java:1100)
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:324)
at jrunx.comp.sql.SQLInvokerBean.invokeResultSet(SQLInvokerBean.java:217)
at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at jrun.ejb.interceptors.InvokerInterceptor.invokeObjectMethod(InvokerInterceptor.java:153)
at jrun.ejb.interceptors.ContainerManagedTransactionInterceptor.invokeTransactedMethod(ContainerManagedTransactionInterceptor.java:148)
at jrun.ejb.interceptors.TransactionInterceptor.invokeObjectMethod(TransactionInterceptor.java:130)
at jrun.ejb.interceptors.StatefulSessionInstanceInterceptor.invokeObjectMethod(StatefulSessionInstanceInterceptor.java:242)
at jrun.ejb.interceptors.EJBSecurityInterceptor.invokeObjectMethod(EJBSecurityInterceptor.java:81)
at jrun.ejb.EJBContainer.invokeObjectMethod(EJBContainer.java:193)
at jrun.ejb.invocation.RemoteInvocationProxyImpl.invoke(RemoteInvocationProxyImpl.java:111)
at jrunx.rmi.RMIBroker.invokeEJB(RMIBroker.java:235)
at jrunx.rmi.RMIBroker.invoke(RMIBroker.java:142)
at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:536)
[1]java.lang.reflect.InvocationTargetException
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:324)
at jrunx.comp.sql.SQLInvokerBean.invokeResultSet(SQLInvokerBean.java:217)
at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at jrun.ejb.interceptors.InvokerInterceptor.invokeObjectMethod(InvokerInterceptor.java:153)
at jrun.ejb.interceptors.ContainerManagedTransactionInterceptor.invokeTransactedMethod(ContainerManagedTransactionInterceptor.java:148)
at jrun.ejb.interceptors.TransactionInterceptor.invokeObjectMethod(TransactionInterceptor.java:130)
at jrun.ejb.interceptors.StatefulSessionInstanceInterceptor.invokeObjectMethod(StatefulSessionInstanceInterceptor.java:242)
at jrun.ejb.interceptors.EJBSecurityInterceptor.invokeObjectMethod(EJBSecurityInterceptor.java:81)
at jrun.ejb.EJBContainer.invokeObjectMethod(EJBContainer.java:193)
at jrun.ejb.invocation.RemoteInvocationProxyImpl.invoke(RemoteInvocationProxyImpl.java:111)
at jrunx.rmi.RMIBroker.invokeEJB(RMIBroker.java:235)
at jrunx.rmi.RMIBroker.invoke(RMIBroker.java:142)
at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NullPointerException
at jrun.sql.JRunResultSet.clearUpdates(JRunResultSet.java:1873)
at jrun.sql.JRunResultSet.next(JRunResultSet.java:1100)
... 27 more
[0]java.rmi.RemoteException: null; nested exception is:
java.lang.reflect.InvocationTargetException
at jrunx.comp.sql.SQLInvokerBean.handleException(SQLInvokerBean.java:340)
at jrunx.comp.sql.SQLInvokerBean.invokeResultSet(SQLInvokerBean.java:225)
at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at jrun.ejb.interceptors.InvokerInterceptor.invokeObjectMethod(InvokerInterceptor.java:153)
at jrun.ejb.interceptors.ContainerManagedTransactionInterceptor.invokeTransactedMethod(ContainerManagedTransactionInterceptor.java:148)
at jrun.ejb.interceptors.TransactionInterceptor.invokeObjectMethod(TransactionInterceptor.java:130)
at jrun.ejb.interceptors.StatefulSessionInstanceInterceptor.invokeObjectMethod(StatefulSessionInstanceInterceptor.java:242)
at jrun.ejb.interceptors.EJBSecurityInterceptor.invokeObjectMethod(EJBSecurityInterceptor.java:81)
at jrun.ejb.EJBContainer.invokeObjectMethod(EJBContainer.java:193)
at jrun.ejb.invocation.RemoteInvocationProxyImpl.invoke(RemoteInvocationProxyImpl.java:111)
at jrunx.rmi.RMIBroker.invokeEJB(RMIBroker.java:235)
at jrunx.rmi.RMIBroker.invoke(RMIBroker.java:142)
at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.reflect.InvocationTargetException
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:324)
at jrunx.comp.sql.SQLInvokerBean.invokeResultSet(SQLInvokerBean.java:217)
... 22 more
Caused by: java.lang.NullPointerException
at jrun.sql.JRunResultSet.clearUpdates(JRunResultSet.java:1873)
at jrun.sql.JRunResultSet.next(JRunResultSet.java:1100)
... 27 more
Here is the code how iam doing it:
public class MainTable extends Thread implements Runnable
private static MyBeans.ConnectionBean cb = new MyBeans.ConnectionBean();
private static Connection connection = cb.getConnection();
private static PreparedStatement ps=null;
private static PreparedStatement pst=null;
private static ResultSet rs=null;
public static void main(String[] args){
MainTable mt = new MainTable();
int empId=0;
String supervisor ="";
String startTime="";
String endTime="";
String sdate="";
double hours = 0.0;
String stype="";
String empType="";
try {
String sql = "SELECT eg.EmployeeId, sg.Supervisor, sg.StartTime, sg.EndTime, sg.SupervisionDate, sg.SupervisionHours, sg.SupervisionType FROM EmployeeGoldmine AS eg, SupervisionGoldmine AS sg WHERE eg.AccountNo=sg.AccountNo ORDER BY eg.EmployeeId";
ps=connection.prepareStatement(sql);
rs = ps.executeQuery();
int count =0;
while (rs.next()){
count++;
empId=rs.getInt("EmployeeId");
empType = mt.getEmployeeType(empId);
supervisor = rs.getString("Supervisor");
startTime = rs.getString("StartTime");
endTime = rs.getString("EndTime");
sdate = rs.getString("SupervisionDate");
hours = rs.getDouble("SupervisionHours");
stype = rs.getString("SupervisionType");
System.out.println(empId + "=>" + supervisor + "=>" + startTime + "=>" + endTime + "=>" + sdate + "=>" + hours + "=>" + stype + "=>" + empType );
try {
String mysql = "INSERT INTO Supervision(Supervisor,StartTime,EndTime,SupervisionDate,SupervisionHours,EmployeeId,Type,supervisionType) VALUES(?,?,?,?,?,?,?,?)";
pst=connection.prepareStatement(mysql);
pst.setString(1, supervisor);
pst.setString(2, startTime);
pst.setString(3, endTime);
pst.setString(4, sdate);
pst.setDouble(5, hours);
pst.setInt(6, empId);
pst.setString(7, empType);
pst.setString(8, stype);
pst.executeUpdate();
} catch (Exception exp) {
System.out.println(exp);
if (count==50){
mt.sleep(120000);
connection = cb.getConnection();
count=0;
}//end of while
System.out.println(count);
try {
rs.close();
ps.close();
pst.close();
connection.close();
} catch (Exception e) {
System.out.println(e);
} catch (Exception ex) {
System.out.println(ex.getMessage());
}Well i sorted out the things..i had to change the way i was accessing the datasource object..so no more problems of "running out of ports " and stuff.
-
Help:java.lang.reflect
Dear every one,
I have a class as following:
public class classA implements interfaceA{.....}
,but when I use the class.forName() method to open the classA as following:
Class c=Class.forName("classA");
it generate java.lang.NoClassDefFoundError, could you please tell me why, and
how can solve the problem. Thanks a lot.
Yours LeonThank you very much for your reply, but it is not the point , at least not what i want, assumed the 3 classes are following:
//class1: classA.class
public class classA{
public static void main(String args[]){System.out.println("OK");}
public void m1(){}
public String m2(String mst){System.out.println(mst);return mst;}
//class2 : classB.class
public class classB implement Interface1{....}
//class3: atest.class
import java.lang.reflect.*;
public class atest{
public static void main(String args[]){
try{
Class a=Class.forName("classA");//it works
Class a1=Class.forName("classB");//doesn't work
System.out.println(a.getName());
System.out.println(a1.getName());
}catch(Exception e){}
} -
Work Manager 6.1: java.lang.reflect.InvocationTargetException
Hi all,
Please, I need your help with this issue. I installed Work Manager 6.1 over SMP 3.0.3.
I added a field to complex table ctCatalogGroup. The field was already contemplated on the backend so I only had to add it in Agentry. It worked fine for a while but suddenly it started giving me this error during transmit every time since then:
My Java class looks like this:
And I added the field in Agentry accordingly:
Config Panel parameters for this are:
The first thing I noticed is this error in the SMP log:
2015/04/23 08:29:12.540: + WorkFunction=00000001496AF658
2015/04/23 08:29:12.540: + User=invpos_out30
2015/04/23 08:29:12.540: + Server=Agentry
2015/04/23 08:29:12.540: + Complex Table=ctcatalogprofile
2015/04/23 08:29:12.540: Update BHT 'ctcatalogprofile' for 'User': Client last data update 12:00:01 a.m. 01/01/1900
2015/04/23 08:29:12.540: Update BHT 'ctcatalogprofile' for 'User': Getting back end connections
2015/04/23 08:29:12.540: client last data update=12:00:01 a.m. 01/01/1900
2015/04/23 08:29:12.540: Backend step is configured as a Java Class; using Java class com.syclo.sap.ComplexTable
2015/04/23 08:29:12.540: Using Java Class com.syclo.sap.ComplexTable for ComplexTable
2015/04/23 08:29:12.555: + BackEnd=Java-SAPJavaConnection
2015/04/23 08:29:12.555: Exception while starting complex table update for table 'ctcatalogprofile': JavaBackEndError: JAVA EXCEPTION CAUGHT: java.lang.reflect.InvocationTargetException in AgentryComplexTableFactory::createComplexTable at AgentryComplexTableFactory.cpp:129
As well as this other one in the events.log:
04/23/2015 08:23:32, 0, 20, 16, Thr 9240, Threads in thread pool 'Runtime' expanded to 2. Adding thread 3580
04/23/2015 08:25:13, 1, 29, 1, Thr 3580, java/net/SocketException, java.net.SocketException: Connection reset by peer: socket write errorAngelJavaStreamsConnection.cpp#189:AngelJavaStreamsConnection::handleException
04/23/2015 08:25:13, 1, 4,3221225477, Thr 3580, EXCEPTION_ACCESS_VIOLATION, 000000018000DE02, 0, R, 0000000000000000, ..\agentry\threadManager.cpp#354:ThreadManager::WorkerThread::function
04/23/2015 08:25:27, 0, 0, 6, Thr 7572, invpos_out30: relogin failed at ANGEL: B4A91958-A9A4-46F8-B323-20C61E7E76E8; attempt from ANGEL: 97E1F7AF-4E38-4ECB-8D3C-2E2D4AFEA2AE
04/23/2015 08:25:56, 0, 0, 6, Thr 7572, invpos_out30: relogin failed at ANGEL: B4A91958-A9A4-46F8-B323-20C61E7E76E8; attempt from ANGEL: 15FAC37B-A017-46AB-B528-B2B4610423CC
04/23/2015 08:26:27, 0, 0, 6, Thr 7572, invpos_out30: relogin failed at ANGEL: B4A91958-A9A4-46F8-B323-20C61E7E76E8; attempt from ANGEL: BFDB1CBE-12D9-4A66-8EBA-A855B2B90D23
04/23/2015 08:29:12, 1, 20, 18, Thr 3580, JAVA EXCEPTION CAUGHT: java.lang.reflect.InvocationTargetException
I would like to know if anyone faced something like this before or any suggestions on how to dig deeper for a solution. What confuses me is that it worked ok at first and now I can no longer start the client. That is as far as I can get.
Best regards!
Leonardo.Hi,
Can you modify the step
public void setProperties(Table tbl) throws Exception {
super.setProperties(tbl);
setShortText(tbl.getString("KURZTEXT")).trim());
to
public void setProperties(Table tbl) throws Exception {
super.setProperties(tbl);
setShortText(tbl.getString("KURZTEXT"));
Thanks & Regards,
Sravanthi -
Help diagnosing java.lang.IllegalArgumentException
Hello,
I have an Eclipse RCP desktop app that I have been working on for the past few months, without incident. In the process of upgrading to the standard com.sleepycat.je version "4.0.92" plugin in Eclipse 3.5, I am getting the exception below. When I try to back up to the older version, it does not matter, the exception below will not go away. The class in question is in the application's codebase, and I see the .class in the bin tree.
I am using the DPL assistant (latest update from this site).
In addition, this is not a web app, but rather a desktop app. I have checked the runtime classpath to confirm that the class is indeed there. When I access the same code from a unit test project inside the same workspace, I do not see this exception.
I am happy to attach/upload anything that would provide any information needed to help me diagnose this problem.
My class declaration is below the exception.
java.lang.IllegalArgumentException: Class could not be loaded or is not an entity class: com.patholase.core.entity.Patient
at com.sleepycat.persist.impl.Store.checkEntityClass(Store.java:1391)
at com.sleepycat.persist.impl.Store.getPrimaryIndex(Store.java:316)
at com.sleepycat.persist.EntityStore.getPrimaryIndex(EntityStore.java:308)
at com.patholase.core.entity.mgr.PatientManager.<init>(PatientManager.java:59)
at com.patholase.core.entity.mgr.PatientManager.<clinit>(PatientManager.java:27)
at com.patholase.g3.system.SystemInitializer.initDataStore(SystemInitializer.java:78)
at com.patholase.g3.system.SystemInitializer.init(SystemInitializer.java:42)
at com.patholase.g3.product.Application.start(Application.java:25)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:367)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:611)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
======= class
package com.acme.core.entity;
import static com.sleepycat.persist.model.Relationship.ONE_TO_MANY;
import static com.sleepycat.persist.model.Relationship.MANY_TO_ONE;
import static com.sleepycat.persist.model.DeleteAction.NULLIFY;
import com.sleepycat.persist.model.Entity;
import com.sleepycat.persist.model.PrimaryKey;
import com.sleepycat.persist.model.SecondaryKey;
import java.util.Date;
import java.util.Set;
import java.util.HashSet;
@Entity public class Patient implements java.io.Serializable {
public static final long serialVersionUID = 1L;
@PrimaryKey(sequence="ID")
public long id;
public String firstName;
public String lastName;
public Date DOB;
public String internalPracticeId;// internal to practice
// for tree view
public Object parent;
public Patient(){
public Patient(String firstName, String lastName)
this.firstName = firstName;
this.lastName = lastName;
public String getFirstName() {
return firstName;
public void setFirstName(String firstName) {
this.firstName = firstName;
public String getLastName() {
return lastName;
public void setLastName(String lastName) {
this.lastName = lastName;
public long getId() {
return id;
public void setId(long id) {
this.id = id;
public Date getDOB() {
return DOB;
public void setDOB(Date dob) {
DOB = dob;
public Object getParent() {
return parent;
public void setParent(Object parent) {
this.parent = parent;
public String getInternalPracticeId() {
return internalPracticeId;
public void setInternalPracticeId(String internalPracticeId) {
this.internalPracticeId = internalPracticeId;
public String nameTreeString(){
return " [" + this.internalPracticeId + "] " + lastName + ", "+ firstName;
public String toString()
return "[PatientData: id=" + id + " lastName=" + lastName +
" firstName=" + firstName + " DOB= " + DOB + ']';
}I think you have interpreted the exception message correctly, but just to be sure, such an exception means that the Patient class cannot be found when getPrimaryIndex() is called. That means that either the class does not have the @Entity annotation, or that there is a classloader/classpath issue. Your code shows that @Entity is there, so it must be a classpath issue.
Since it seems to have happened around the upgrade, presumably it did something unexpected to your classpath settings. When you say that you have checked your runtime classpath, do you mean your project's build path/library variables? Would printing the program's classpath from within JAVA by displaying the java.class.path system variable give a hint? Perhaps checking to see if you have the expected JE version (system.out.println(com.sleepycat.je.JEVersion.CURRENT_VERSION)) would help debug. The JE version shouldn't be an issue, but if your code sees an unexpected JE version, it might tell you something.
There is always the last option of creating a new Eclipse workspace and creating a new project, which points at this code. I did that once when an Eclipse project stopped working for unknown reasons (not with this sort of problem) as a debugging step. -
Java/lang/reflect/InvocationHandler starting server
I'm having some issues gettin the node manager up and running. We're just transitioning
to running clusters and I need to get the Node manager going for this and other
reasons.
I'm running 6.1 sp2.
My Node Manager starts correctly, but when I attempt to launch a server, I get
the following exception:
Anyone seen this?
<Oct 15, 2002 2:34:40 PM EDT> <Info> <NodeManager@localhost:5555> <WindowsProcessControl:
online successfully invoked on server 'server1', pid: 653>
Starting WebLogic Server ....
The WebLogic Server did not start up properly.
Exception raised:
java.lang.NoClassDefFoundError: java/lang/reflect/InvocationHandler
at weblogic.management.Admin.initialize(Admin.java:270)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:362)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exceptionI too am having this problem. I have examined the script, remote settings, and
I can not figure out what is going on. I am receiving the exact same error message,
except the PID. Anyhow, please help me out!!!!!!!!!!!!!!!!!!1
"Gaurav Chawla" <[email protected]> wrote:
Hi Kevin,
From the error it looks like the managed server did not startup properly.
This could be because the classpath specified in the RemoteStart tab
of that
managed server's configuration tab in the console may not be correct.
cheers,
gaurav.
"Kevin Bedell" <[email protected]> wrote in message
news:[email protected]..
I'm having some issues gettin the node manager up and running. We'rejust
transitioning
to running clusters and I need to get the Node manager going for thisand
other
reasons.
I'm running 6.1 sp2.
My Node Manager starts correctly, but when I attempt to launch a server,I
get
the following exception:
Anyone seen this?
<Oct 15, 2002 2:34:40 PM EDT> <Info> <NodeManager@localhost:5555><WindowsProcessControl:
online successfully invoked on server 'server1', pid: 653>
Starting WebLogic Server ....
The WebLogic Server did not start up properly.
Exception raised:
java.lang.NoClassDefFoundError: java/lang/reflect/InvocationHandler
at weblogic.management.Admin.initialize(Admin.java:270)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:362)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exception
> -
AxisFault: java.lang.reflect.InvocationTargetException
Hi all,
this is really really weird.
I am having a service, where I send files and an own datatype to.
Well, this all works very fine (after lots of "trial/error" ;-) ).
But now, I want to use jacksum to compare the checksum of the transferred file and before and after the transfer.
The strange thing is, the code works when I run the service as a java application.
But when I call it from my client I get an error in a row which definetly is not wrong!
The error is (well, this error message really didn't help me at all!):
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.reflect.InvocationTargetException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname: r27300
java.lang.reflect.InvocationTargetException
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at com.libs.serveradmin.util.FileSaving.saveFile(FileSaving.java:75)
at com.libs.serveradmin.model.UploadFileBean.upload(UploadFileBean.java:508)
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.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
at javax.faces.component.UICommand.broadcast(UICommand.java:312)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.libs.serveradmin.filter.MultiPartFilter.doFilter(MultiPartFilter.java:50)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)Did anyone have the same problem before and did solve it?
I can tell you, that all the jars needed are there, because without calculating the checksum the service is called without an error.
And on the other hand, trying to run my web service as a java application, this works fine aswell.
Hope, anyone can help me, because I'm really stuck in that problem
Thanks a lot in advance!
SteffiYeah I have to agree, it was pretty simple and if you dont understand the concept of a build path within an IDE you probably should be reading some more basic tutorials than those centered around web services.
That wasnt meant as an insult either, but I doubt you would really understand what it is that you are doing.
Lots of things could cause an invocation target exception, not just a missing jar file so if you are getting this exception the solution on this page could well be wrong in your situation.
You should look for the actual cause of this exception on your application server where the web service in exposed from, and\or read the javadoc below.
[Invocation Target Exception|http://java.sun.com/j2se/1.4.2/docs/api/java/lang/reflect/InvocationTargetException.html] -
Ok - All help is really appreciated!
I'll get the configuration questions out of the way first...I'm using:
JWSDP 1.1
JDK 1.3.1_08
J2EE 1.3.1
I've been able to successfully run the "Hello World" example provided by the JWSDP 1.1 tutorial. I'm now trying to generate a WSDL using an interface that had worked with JWSDP 1.0 EA, but I'm getting the following error:
process-war:
[echo] Running wsdeploy....
[echo] CLASSPATH=C:\ATG\DAS6.2.0\DAS\lib\classes.jar:D:\j2sdkee1.3.1\lib\j2ee.jar:C:\ATG\ATG6.2.0\CIWS\lib\cacjdbc.jar:C:\ATG\ATG6.2.0\CIWS\lib\CIWS_JAXB.jar:C:\ATG\ATG6.2.0\CIWS\lib\oromatcher.jar:C:\ATG\ATG6.2.0\CIWS\lib\classes12.zip:C:\ATG\ATG6.2.0\CIWS\j2ee-apps\ciws\java-code:C:\ATG\ATG6.2.0\CIWS\j2ee-apps\ciws\web-app\WEB-INF\classes
[exec] info: created temporary directory: D:\ciws-ws\ciws\build\wsdeploy-generated\jaxrpc-deploy-615014
[exec] java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: javax/ejb/CreateException
[exec] at java.lang.Class.getMethods0(Native Method)
[exec] info: processing endpoint: ciws
[exec] at java.lang.Class.getMethods(Class.java:737)
[exec] at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.processInterface(RmiModeler.java:270)
[exec] at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.modelPort(RmiModeler.java:232)
[exec] at com.sun.xml.rpc.processor.modeler.rmi.RmiModeler.buildModel(RmiModeler.java:195)
[exec] at com.sun.xml.rpc.processor.config.ModelInfo.buildModel(ModelInfo.java:85)
[exec] at com.sun.xml.rpc.processor.Processor.runModeler(Processor.java:61)
[exec] at com.sun.xml.rpc.tools.wscompile.CompileTool.run(CompileTool.java:368)
[exec] at com.sun.xml.rpc.tools.wsdeploy.DeployTool.process(DeployTool.java:259)
[exec] at com.sun.xml.rpc.tools.wsdeploy.DeployTool.process(DeployTool.java:229)
[exec] at com.sun.xml.rpc.tools.wsdeploy.DeployTool.run(DeployTool.java:182)
[exec] at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:41)
[exec] at com.sun.xml.rpc.tools.wsdeploy.Main.main(Main.java:24)
[exec] at java.lang.reflect.Method.invoke(Native Method)
[exec] at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
[exec] Result: 1
Here are my configuration files:
common/build.properties
# This file contains properties common to the tutorial examples
# for JAX-RPC.
jwsdp.home=D:\\jwsdp-1.1
tut-root=${jwsdp.home}/docs
# tut-root=D:\\wspack-docs
build=build
url=http://localhost:8080/manager
jaxrpc.home=${jwsdp.home}/jaxrpc-1.0.3
jaxp.holme=${jwsdp.home}/jaxp-1.2.2
saaj.home=${jwsdp.home}/saaj-1.1.1
wscompile-path=${jaxrpc.home}/bin
rlib=${jaxrpc.home}/lib
plib=${jaxp.home}/lib
pelib=${jaxp.home}/lib/endorsed
slib=${saaj.home}/lib
wlib=${jwsdp.home}/jwsdp-shared/lib
rjars=${rlib}/jaxrpc-api.jar:${rlib}/jaxrpc-ri.jar
pjars=${plib}/jaxp-api.jar
pejars=${pelib}/xercesImpl.jar:${pelib}/xalan.jar:${pelib}/xsltc.jar:${pelib}/dom.jar:${pelib}/sax.jar
sjars=${slib}/saaj-api.jar:${slib}/saaj-ri.jar:${slib}/dom4j.jar
wjars=${wlib}/jax-qname.jar:${wlib}/commons-logging.jar:${wlib}/mail.jar:${wlib}/activation.jar
jwsdp-jars=${rjars}:${pjars}:${pejars}:${sjars}:${wjars}
build.properties
# This file is referenced by the build.xml file.
atg-home=C:\\ATG
ciws-home=${atg-home}\\ATG6.2.0\\CIWS
example=ciws
context-path=ciws
package-name=/com/enc/ciws/wrapper
client-class=com.enc.ciws.client.CiwsClient
client-jar=${example}-client.jar
portable-war=${example}-portable.war
deployable-war=${context-path}.war
# ORIGINAL --> war-path=${tut-root}/tutorial/examples/jaxrpc/${example}/dist/${deployable-war}
war-path=D:\\ciws-ws\\ciws\\dist\\${deployable-war}
atg-das-jar=${atg-home}\\DAS6.2.0\\DAS\\lib\\classes.jar
j2ee-jar=D:\\j2sdkee1.3.1\\lib\\j2ee.jar
ciws-jars=${ciws-home}\\lib\\cacjdbc.jar:${ciws-home}\\lib\\CIWS_JAXB.jar:${ciws-home}\\lib\\oromatcher.jar:${ciws-home}\\lib\\classes12.zip
ciws-classes=${ciws-home}\\j2ee-apps\\ciws\\java-code:${ciws-home}\\j2ee-apps\\ciws\\web-app\\WEB-INF\\classes
custom-classpath=${atg-das-jar}:${j2ee-jar}:${ciws-jars}:${ciws-classes}
build.xml
<!DOCTYPE project [
<!ENTITY commonTargets SYSTEM "./ciws-targets.xml">
]>
<project name="JAX-RPC Tutorial" default="build" basedir=".">
<property file="${user.home}/build.properties"/>
<property file="../common/build.properties"/>
<property file="build.properties"/>
&commonTargets; <!-- The ant targets are in ../common/targets.xml -->
<target name="build" depends="build-service"
description="Executes the targets needed to build the service.">
</target>
</project>
config.xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration
xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<wsdl location="http://localhost:8080/ciws/ciws?WSDL" packageName="com.enc.ciws.wrapper"/>
</configuration>
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
<display-name>CIWS</display-name>
<description>A web application containing a JAX-RPC endpoint for CIWS</description>
<session-config>
<session-timeout>60</session-timeout>
</session-config>
</web-app>
jaxrpc-ri.xml
<?xml version="1.0" encoding="UTF-8"?>
<webServices
xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/dd"
version="1.0"
targetNamespaceBase="http://com.test/wsdl"
typeNamespaceBase="http://com.test/types"
urlPatternBase="/ws">
<endpoint
name="ciws"
displayName="CIWS"
description="A web service to inquiry about claims"
interface="com.enc.ciws.wrapper.CIWSWrapper"
implementation="com.enc.ciws.wrapper.CIWSWrapperImpl"/>
<endpointMapping endpointName="ciws" urlPattern="/ciws"/>
</webServices>
Snippets of ant script (ciws-targets.xml)
<target name="process-war" depends="set-ws-scripts"
description="Runs wsdeploy to generate the ties and create a deployable WAR file">
<echo message="Running wsdeploy...."/>
<echo message="CLASSPATH=${custom-classpath}"/>
<delete file="dist/${deployable-war}" />
<exec executable="${wsdeploy}">
<arg line="-verbose"/>
<arg line="-keep"/>
<arg line="-tmpdir"/>
<arg line="${build}/wsdeploy-generated"/>
<arg line="-classpath"/>
<arg line="${custom-classpath}"/>
<arg line="-o"/>
<arg line="dist/${deployable-war}"/>
<arg line="dist/${portable-war}"/>
</exec>
</target>
And finally the code!! (I know, I know...probably not good with all the exceptions)
package com.enc.ciws.wrapper;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface CIWSWrapper extends java.rmi.Remote {
String getAdjusterInfo(String claimInquiryRS) throws java.rmi.RemoteException;
String getClaimDetail(String requestString)
throws
java.rmi.RemoteException,
java.io.IOException,
javax.xml.bind.ValidationException,
javax.xml.bind.UnmarshalException,
javax.ejb.CreateException,
javax.naming.NamingException,
com.enc.ciws.utils.exception.InvalidRequestException;
String getClaimHistory(String requestString) throws java.rmi.RemoteException;
String getClaimSummaryByPolicyHolderInfo(String claimInquiryRS)
throws
java.rmi.RemoteException,
java.io.IOException,
java.text.ParseException,
javax.xml.bind.ValidationException,
javax.xml.bind.UnmarshalException,
javax.ejb.CreateException,
javax.naming.NamingException,
com.enc.ciws.utils.exception.InvalidRequestException;
String getClaimSummaryByPolicyNumber(String claimInquiryRS)
throws
java.rmi.RemoteException,
java.io.IOException,
javax.xml.bind.ValidationException,
javax.xml.bind.UnmarshalException,
javax.ejb.CreateException,
javax.naming.NamingException,
com.enc.ciws.utils.exception.InvalidRequestException;
String getClaimSummaryByStatus(String claimInquiryRS)
throws
java.rmi.RemoteException,
java.io.IOException,
java.text.ParseException,
javax.xml.bind.ValidationException,
javax.xml.bind.UnmarshalException,
javax.ejb.CreateException,
javax.naming.NamingException,
com.enc.ciws.utils.exception.InvalidRequestException;
public String getPaymentDetail(String requestString)
throws java.rmi.RemoteException;
String getSubroDetail(String requestString)
throws
java.rmi.RemoteException,
java.io.IOException,
javax.xml.bind.ValidationException,
javax.xml.bind.UnmarshalException,
javax.ejb.CreateException,
javax.naming.NamingException,
com.enc.ciws.utils.exception.InvalidRequestException;
}try just using the wscompile.bat/.sh commandline tool first. It will automatically setup the classes used
by wscompile and jaxrpc, you will only then need to specify the classpath to your classes on the
commandline. This might help you isolate the problem so you can fix the ant tasks. -
Help for java.lang.NoClassDefFoundError:
hi all, i wrote a jws shows the following.
import java.lang.*;
import java.util.*;
* * @author bow5003
public class CalculatorWithDLL {
private native float add(float num1, float num2);
private native float sub(float num1, float num2);
private native float mult(float num1, float num2);
private native float divid(float num1, float num2);
private native float square(float num1);
private native float tripple(float num1);
//private float result;
/** Creates a new instance of CalculatorWithDLL */
public static float getAdd(float num1, float num2) {
CalculatorWithDLL calculator = new CalculatorWithDLL();
float result = calculator.add(num1, num2);
return result;
public static float getSub(float num1, float num2){
CalculatorWithDLL calculator = new CalculatorWithDLL();
float result = calculator.sub(num1, num2);
return result;
public static float getMult(float num1, float num2) {
CalculatorWithDLL calculator = new CalculatorWithDLL();
float result = calculator.mult(num1, num2);
return result;
public static float getDivid(float num1, float num2) {
CalculatorWithDLL calculator = new CalculatorWithDLL();
float result = calculator.divid(num1, num2);
return result;
public static float getSquare(float num1) {
CalculatorWithDLL calculator = new CalculatorWithDLL();
float result = calculator.square(num1);
return result;
public static float getTriple(float num1) {
CalculatorWithDLL calculator = new CalculatorWithDLL();
float result = calculator.tripple(num1);
return result;
static {
System.loadLibrary("Calculator");
and when i try to access throw the web browser http://localhost:8080/axis/JWS_Files/CalculatorWithDLL.jws?wsdl it gives the error:
java.lang.NoClassDefFoundError: Could not initialize class CalculatorWithDLL
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:168)
at java.security.AccessController.doPrivileged(NativeMethod)
at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:142)
at org.apache.axis.utils.cache.ClassCache.lookup(ClassCache.java:85)
at org.apache.axis.providers.java.JavaProvider.getServiceClass(JavaProvider.java:428)
at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:461)
at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:286)
at org.apache.axis.handlers.JWSHandler.setupService(JWSHandler.java:273)
at org.apache.axis.handlers.JWSHandler.generateWSDL(JWSHandler.java:294)
at org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:454)
at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
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 org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1226)
at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
anyone can help me?
Message was edited by:
BCW0928
Message was edited by:
BCW0928Where is the dll ?
you need to include it in a jar, and ref that jar with
<nativelib href=<url to the jar>/>
and request all-permissions in you jnlp file (and sign both jars)
/Andy -
Webapp wont start - java.lang.reflect.InvocationTargetException
Hi
I'm having a problem getting my own web applications to start (the tomcat one's run fine). It fails when reading my web.xml file. First off here is my environment:
OS: Linux
SDK: 1.4.1_02
Container: Tomcat 4.1.18
I created a small HelloWorld application to see if it will give me the same result, unfortunately it did. Below is the error msg from the log as well as the content of my web.xml file. Please see my additional comment below the error ...
The web.xml file:<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>HelloWorld</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>HelloWorld</url-pattern>
</servlet-mapping>
</web-app>
Error msg in log file:
2003-04-01 19:13:54 ContextConfig[test] Parse error in application web.xml
java.lang.reflect.InvocationTargetException
at org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
at org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
at org.apache.commons.digester.Digester.endElement(Digester.java:1039)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:585)
at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:647)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:1937)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:851)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1008)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
2003-04-01 19:13:54 ContextConfig[test]: Occurred at line 16 column 20
2003-04-01 19:35:59 ContextConfig[test]: Marking this application unavailable due to previous error(s)
Line 16 column 20 is the character after the </servlet-mapping> tag. Why is it doing this? I've recreated web.xml a couple of times from scratch, thinking that it might be some weird character in the file that is not visible. I've also set the encoding to UTF-8, but it just keeps on failing when it gets to the first closing servlet-mapping tag. Am I missing something or is this some weird bug?
Any help would be greatly appreciated!Hmmm....I don't see anything wrong with the web.xml file. Perhaps Tomcat can't find your, "HelloWorld" class?
1. Did you set the classpath correctly?
2. Did you declare the name of the class correctly in the web.xml file's servlet-class element (i.e. full package naming)? -
Hi all, I'm developping my first web application using Apache Tomcat and Axis, using servlets, jsp and web services.
My problem is that I cannot make any call to my web service (a very simple one) because I get the following exception:
<code>
java.lang.reflect.InvocationTargetException CAUSA: null
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.reflect.InvocationTargetException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:lexis02
java.lang.reflect.InvocationTargetException
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
</code>
The stack trace is longer than that, but I didn't find any hints to solve the problem.
The exception is thrown for every method of the web service:public java.lang.String[] getMessage(java.lang.String , int) throws java.rmi.RemoteException
public boolean addMessage(java.lang.String, java.lang.String, int)
throws java.rmi.RemoteException
I'm using stub to call the web service, as generated by wsdl tool.
Can someone help me?
Thanx
PS: sorry for the double message but I pressed the wronk key at the wrong time :) -
Hi,
I got this error below when i try to deploy my ejb.It's happen when i select the
targets-server in weblogic console. Can anyone help me please?
Thank you in advance.
Sukanya
java.lang.reflect.InvocationTargetException: javax.management.RuntimeOperationsException:
RuntimeException thrown by the invoke method of the Dynamic MBean
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy10.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1516)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:895)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:295)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
at $Proxy76.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.management.console.utils.SetException: An error occurred while updating
Targets-Server on Proxy for mydomain:Application=Wallet,Name=wallet-ejb,Type=EJBComponent
- with nested exception:
[java.lang.reflect.InvocationTargetException - with target exception:
[javax.management.RuntimeOperationsException: RuntimeException thrown by the invoke
method of the Dynamic MBean]]
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:151)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)Hi Sukanya,
Could you please tell me how u solved this error?
I am also getting the same error!!!
Sherry. -
Hi All
I have developed Java mapping program where I am calling three BAPI in sequence and trying to map all three bapi data to single Target XML file or Multiple target xml files depends on the in coming data.
Now I want these files name should be genereted dynamically .So I have used below Dynamic Configuration code in my java mapping program.********************************************************************************************************************************************************************
try
String currDate = new String();
String currTime= new String();
DateFormat dFormat=new SimpleDateFormat("yyyyMMdd");
DateFormat tFormat = new SimpleDateFormat("HHmmss");
java.util.Date date = new Date();
TimeZone cetTimeZone = TimeZone.getTimeZone("CET");
tFormat.setTimeZone(cetTimeZone);
currDate = dFormat.format(date);
currTime= tFormat.format(date);
String pubDate=currDate + currTime;
String ext=".xml";
String event="-1_1-";
trace.addInfo("******** Before Dynamic Configuration ***************" );
DynamicConfiguration conf =(DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File","FileName" );
trace.addInfo("******** After Dynamic Configuration ***************" );
String tempFileName="NL09-"eventponum+ "-" pubDateext;
trace.addInfo("The name of the file is : " + tempFileName);
conf.put(key, "tempFileName");
catch (Exception e)
trace.addWarning("Error While creating File Name"+e.getMessage());
throw new Exception("Error While creating File Name",e);
Now the problem is when I am using above code I am getting following error
"SYSTEM FAILURE" during JCo call.
java.lang.reflect.UndeclaredThrowableException
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="MAPPING">JCO_SYSTEM_FAILURE</SAP:Code>
<SAP:P1>java.lang.reflect.UndeclaredThrowableException</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:Stack>"SYSTEM FAILURE" during JCo call.
java.lang.reflect.UndeclaredThrowableException</SAP:Stack>
<SAP:Retry>A</SAP:Retry>
</SAP:Error>
Could please tell me why I am facing this problem only when I am using Dynamic configuration code.
If I dont use Dynamic configuration code then I am not getting any error .But my requirement is to generate dynamic file name (Note I have tried with Variable Substution also, It is also not solving my problem as I need time stamp of ("CET") time zone).Hi Abhishek,
Yes I have appended throws StreamTransformationException and imported the relevant StreamTransformationException class also.
Here I am getting strange thing when I am adding dynamic configuration code " SYSTEM FAILURE" during JCo call. But Jco cal is something to internal systems which does not relate to Dynamic Configuration.
If I run my code with out any Dynamic Configuration code then it is running with out any errors.
But I need this Dynamic Configuration inorder to generate dyanamic file name.
Maybe you are looking for
-
ITEM CATEGORY PROBLEM WHILE DOING DELIVERY IN VL10B
Hi gurus, I was trying to do replenishment delievery w.r.t a stock transfer through sd route. In vl10b when i processed background delivery, it's generating n error log , which reads No Item category exists (Table T184 ZNL 0001 V ) Where as in item
-
Purchase Requisition to Purchase Order Conversion - Help.
Hi Experts Can anyone help mw with the following issue. We have just starting testing MRP and are looking to covert the purchase req's that have been generated into purchase orders. I've taken one material by a single vendor as my test subject. We ar
-
Setting Composition Rule In Mail
THE SET-UP I've got mail configured to send and receive from a gmail account and my school-issued student account with the outrageously long extension @student.schoolname.edu. I use my school account strictly for communicating with other students and
-
Retrieving spatial and non spatial in same query.
I have hacked out queries that retrieve and display GEOM Vertices in a JSP using sdoapi. I have hacked out queries that retrieve standard format data types and display them in JSP using jdbc, java.sql and oracle.sql. I cannot figure out an easy way t
-
Hi Friends how to write the User Exit for Payment terms at Item Level. Any Sample User Exits can help me if no exact User Exit Is there User Exit Name : USEREXIT_MOVE_FIELD_TO_VBKD Thanks in Advance. Regards sahiti