Java.lang.reflect.InnvokationTargetException
Hello everybody,
I am getting following error logs while executing my swing application.
java.lang.reflect.InnvokationTargetException
at sun.reflect.delegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Mehod:java:324)
I am trying to call some class's method using reflection principle.
All values of acces modifier, return type, method name, args are correct at run time. I don't understand why i am getting this error.
Can anybody please help me.
Thanks and regards
Girish Varde
I would say that this sentence is rather confusing since you get the exception nonetheless.The sentence means when I am in debug mode and check value of the actual class whose method is called, the class value is correct. It's not that the class whose method I am calling does not exist.
First I give the reference error log which you can use to locate at what point the exception is thrown.
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.apsiva.commframework.server.Communicator.processRequest(Communicator.java:45)
at com.apsiva.commframework.server.CommunicationServlet.processRequest(CommunicationServlet.java:92)
at com.apsiva.commframework.server.CommunicationServlet.doPost(CommunicationServlet.java:30)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
public class Communicator implements java.io.Serializable{
public static final String DECENTRALIZED_MODE = "decentralizedMode";
//applicationMode could be localMode or distributedMode or decentralizedMode
public static final String DISTRIBUTED_MODE = "distributedMode";
public static final String LOCAL_MODE = "localMode";
* Communicator constructor comment.
public Communicator() {
super();
public Object processRequest(Request request) throws java.lang.Exception {
Object obj = null;
try
String str = request.getActionCode();
System.out.println("Printing str : " + str);
if (str == null)
return null;
Class cls = ActionCodes.class;
Field f = cls.getField(str);
String actionClassName = (String)f.get(null);
if (actionClassName == null)
return null;
cls = Class.forName(actionClassName);
Object actionObj = cls.newInstance();
System.out.println("Printing actionClassName : " + actionClassName);
Method mthd = cls.getMethod("processRequest", new Class[]{Request.class});
System.out.println("Printing mthd : " + mthd);
obj = mthd.invoke(actionObj, new Object[]{request}); // line 45
return obj;
} catch (Exception e)
e.printStackTrace();
throw e;
public class CommunicationServlet extends HttpServlet{
private Communicator communicator = null;
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
doPost(req,res);
}//end of doGet
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
res.setContentType("text/html");
Response response = null;
OutputStream o = null;
try{
Request request = getSerializedRequest(req);
//logString("The seriliazed object is: " + request.toString());
response = (Response)processRequest(request);
o = res.getOutputStream();
sendSerializedResponse(o, response);
}catch(Exception e){
e.printStackTrace();
try{
if(o != null)sendSerializedResponse(o, e);
else {
o = res.getOutputStream();
sendSerializedResponse(o, e);
}catch(Exception ignor){
ignor.printStackTrace();
}//end of doPost
public Communicator getCommunicator() {
return new Communicator();
private HashMap getParams(HttpServletRequest req){
Enumeration enu = req.getParameterNames();
HashMap map = new HashMap();
while(enu.hasMoreElements()){
String name = (String)enu.nextElement();
String value = req.getParameter(name);
if(name != null && !name.equals("") && value != null){
map.put(name, value);
}//end of if
}//end while
return map;
}//end of getParams
private Request getSerializedRequest(HttpServletRequest req) throws Exception{
log("start getSerializedRequest()");
Request request = null;
try{
ObjectInputStream oIn = new ObjectInputStream(req.getInputStream());
Object o = oIn.readObject();
oIn.close();
request = (Request)o;
return request;
}catch(Exception e){
logString("CommunicationServlet cannot receive serialized object.");
e.printStackTrace();
throw e;
}//end of getRequest
private void logString(Object s){
if(s != null) System.out.println(s);
else System.out.println("Received null object.");
public Object processRequest(Request request) throws Exception {
return this.getCommunicator().processRequest(request); // line 92
private void sendSerializedResponse(OutputStream o, Object resp) throws Exception{
if(o != null){
ObjectOutputStream oOut = new ObjectOutputStream(o);
oOut.writeObject(resp);
oOut.flush();
oOut.close();
public void setCommunicator(Communicator newCommunicator) {
communicator = newCommunicator;
}
Similar Messages
-
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)? -
Dear all,
i am using bea weblogic 10.0 ant i am downloading the running Inventory.
but the below problem occurc when i run ant task for downloading that is
ant -buildfile propagation_ant.xml downloadSrc the below problem occurs. i am new to bea so how can i debug the problem
VERBOSE: InventoryTreeWalker: visiting node: Application:ContentServices:BEA Repository:ContentNodes:Webmasters:Sports:I won`t step down from presidency Khan.txt
ERROR: The Propagation operation ended in error.
java.lang.reflect.UndeclaredThrowableException
at weblogic.security.providers.xacml.authorization.XACMLAuthorizerMBeanImpl.policyExists(XACMLAuthorizerMBeanImpl.java:245)
at sun.reflect.GeneratedMethodAccessor477.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.bea.p13n.security.internal.SecurityProviderProxy.invoke(SecurityProviderProxy.java:48)
at $Proxy54.policyExists(Unknown Source)
at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate$3.run(SecurityPolicyDelegate.java:241)
at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate$3.run(SecurityPolicyDelegate.java:239)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate.kernelRunAs(SecurityPolicyDelegate.java:433)
at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate.policyExists(SecurityPolicyDelegate.java:246)
at com.bea.p13n.entitlements.management.internal.RDBMSSecurityPolicyManager.getSecurityPolicy(RDBMSSecurityPolicyManager.java:204)
at com.bea.p13n.entitlements.management.SecurityPolicyManager.getSecurityPolicy(SecurityPolicyManager.java:119)
at com.bea.propagation.content.online.util.SecurityHelper.getSecurityPolicy(SecurityHelper.java:146)
at com.bea.propagation.content.online.util.SecurityHelper.getSecurityPolicies(SecurityHelper.java:122)
at com.bea.propagation.content.online.hierarchy.ContentNodeHierarchy.discoverChildren(ContentNodeHierarchy.java:113)
at com.bea.propagation.framework.hierarchy.ListNodeHierarchy.getChildrenNodes(ListNodeHierarchy.java:113)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:215)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst(InventoryTreeWalker.java:158)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst(InventoryTreeWalker.java:102)
at com.bea.propagation.framework.tool.io.InventoryTreeExport.walkDepthFirst(InventoryTreeExport.java:88)
at com.bea.propagation.framework.tool.io.InventoryFolderExport.walkDepthFirst(InventoryFolderExport.java:110)
at com.bea.propagation.framework.tool.io.InventoryArchiveExport.walkDepthFirst(InventoryArchiveExport.java:103)
at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.writeInventoryToLocalFile(InventoryManagementServlet.java:1017)
at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.writeInventoryToLocalFile(InventoryManagementServlet.java:991)
at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.downloadOperation_Remote(InventoryManagementServlet.java:510)
at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.downloadOperation(InventoryManagementServlet.java:453)
at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.doService(InventoryManagementServlet.java:318)
at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.doPost(InventoryManagementServlet.java:199)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:315)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
ERROR: The Propagation operation ended in error.
java.lang.reflect.UndeclaredThrowableException
at weblogic.security.providers.xacml.authorization.XACMLAuthorizerMBeanImpl.policyExists(XACMLAuthorizerMBeanImpl.java:245)
at sun.reflect.GeneratedMethodAccessor477.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.bea.p13n.security.internal.SecurityProviderProxy.invoke(SecurityProviderProxy.java:48)
at $Proxy54.policyExists(Unknown Source)
at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate$3.run(SecurityPolicyDelegate.java:241)
at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate$3.run(SecurityPolicyDelegate.java:239)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate.kernelRunAs(SecurityPolicyDelegate.java:433)
at com.bea.p13n.entitlements.management.internal.SecurityPolicyDelegate.policyExists(SecurityPolicyDelegate.java:246)
at com.bea.p13n.entitlements.management.internal.RDBMSSecurityPolicyManager.getSecurityPolicy(RDBMSSecurityPolicyManager.java:204)
at com.bea.p13n.entitlements.management.SecurityPolicyManager.getSecurityPolicy(SecurityPolicyManager.java:119)
at com.bea.propagation.content.online.util.SecurityHelper.getSecurityPolicy(SecurityHelper.java:146)
at com.bea.propagation.content.online.util.SecurityHelper.getSecurityPolicies(SecurityHelper.java:122)
at com.bea.propagation.content.online.hierarchy.ContentNodeHierarchy.discoverChildren(ContentNodeHierarchy.java:113)
at com.bea.propagation.framework.hierarchy.ListNodeHierarchy.getChildrenNodes(ListNodeHierarchy.java:113)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:215)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst_Recur(InventoryTreeWalker.java:224)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst(InventoryTreeWalker.java:158)
at com.bea.propagation.framework.InventoryTreeWalker.walkDepthFirst(InventoryTreeWalker.java:102)
at com.bea.propagation.framework.tool.io.InventoryTreeExport.walkDepthFirst(InventoryTreeExport.java:88)
at com.bea.propagation.framework.tool.io.InventoryFolderExport.walkDepthFirst(InventoryFolderExport.java:110)
at com.bea.propagation.framework.tool.io.InventoryArchiveExport.walkDepthFirst(InventoryArchiveExport.java:103)
at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.writeInventoryToLocalFile(InventoryManagementServlet.java:1017)
at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.writeInventoryToLocalFile(InventoryManagementServlet.java:991)
at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.downloadOperation_Remote(InventoryManagementServlet.java:510)
at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.downloadOperation(InventoryManagementServlet.java:453)
at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.doService(InventoryManagementServlet.java:318)
at com.bea.propagation.framework.tool.servlet.InventoryManagementServlet.doPost(InventoryManagementServlet.java:199)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:315)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)your error seems to indicate that your embeddedLdap isnt in sync with the Database ? Did you either delete files from your file systems or cleanup the portal db or finally used a copy of some existing database for your domain?
-
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. -
I want to migrate from NetBeans 6.7.1 to Java ME SDK 3.0 for several reasons.
However when trying to start it hangs for a couple of minutes and then this message come up in a pop-up box:
"A java.lang.reflect.InvocationTargetException exception has occurred. Click Show Details or see the messages.log file located in your C:\Documents and Settings\admin\javame-sdk\toolbar\3.0\var\log folder."
Log file contant here. I' have read the UsersManual but this seems different.
I run Windows XP Pro SP3. I have a F-Secure Internet 2010 FW application. Please enlighten me on what setting I shoud set in the FW or other part of my system.
BR
/Per
Log Session: Friday, January 15, 2010 4:02:04 PM CET
System Info: Product Version = Java(TM) ME Platform SDK 3.0
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_17; Java HotSpot(TM) Client VM 14.3-b01; Sun Microsystems Inc.
Runtime = Java(TM) SE Runtime Environment 1.6.0_17-b04
Java Home = C:\Program Files\Java\jdk1.6.0_17\jre
System Locale; Encoding = sv_SE (cdctoolbar); Cp1252
Home Directory = C:\Documents and Settings\admin
Current Directory = C:\Java_ME_platform_SDK_3.0\bin
User Directory = C:\Documents and Settings\admin\javame-sdk\toolbar\3.0
Installation = C:\Java_ME_platform_SDK_3.0\toolbar\javamesdk1
C:\Java_ME_platform_SDK_3.0\toolbar\ide10
C:\Java_ME_platform_SDK_3.0\toolbar\java2
C:\Java_ME_platform_SDK_3.0\toolbar\mobility8
C:\Java_ME_platform_SDK_3.0\toolbar\profiler2
C:\Java_ME_platform_SDK_3.0\toolbar\platform9
Boot & Ext. Classpath = C:\Program Files\Java\jdk1.6.0_17\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_17\jre\classes;C:\Program Files\Java\jdk1.6.0_17\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\ext\sunpkcs11.jar
Application Classpath = C:\Java_ME_platform_SDK_3.0\toolbar\platform9\lib\boot.jar;C:\Java_ME_platform_SDK_3.0\toolbar\platform9\lib\org-openide-modules.jar;C:\Java_ME_platform_SDK_3.0\toolbar\platform9\lib\org-openide-util.jar;C:\Program Files\Java\jdk1.6.0_17\lib\dt.jar;C:\Program Files\Java\jdk1.6.0_17\lib\tools.jar
Startup Classpath = C:\Java_ME_platform_SDK_3.0\toolbar\platform9\core\core.jar;C:\Java_ME_platform_SDK_3.0\toolbar\platform9\core\org-openide-filesystems.jar;C:\Java_ME_platform_SDK_3.0\toolbar\javamesdk1\core\locale\core_cdctoolbar.jar
VARNING
--- cut of Warnings and Info---
[ 680219] ERROR - un.jme.toolkit.bootstrap.Batch - Problem calling start() on DeviceManagerConnection
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:597)
at com.sun.jme.toolkit.bootstrap.Batch.invoke(Unknown Source)
at com.sun.jme.toolkit.bootstrap.Batch.tryInvoke(Unknown Source)
at com.sun.jme.toolkit.bootstrap.Batch.startObjects(Unknown Source)
at org.netbeans.modules.javame.common.container.Module.start(Module.java:21)
at org.netbeans.modules.javame.common.container.ContainerSupport.startModule(ContainerSupport.java:67)
at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.getDeviceManagerConnectionI have tried to switch off the FW -> the SDK 3.0 hangs in the initial startup splash. The red line stops at ca 75% done
I have tried to open the port 1299 -> the SDK 3.0 hangs in the initial startup splash. The red line stops at ca 75% done
/Per -
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 -
Friends,
Getting below error when i restart the server.
<Dec 31, 2014 5:33:58 AM EST> <Warning> <Management> <BEA-141274> <Production mode has specified at the command line via the weblogic.ProductionModeEnabled system property. This system property overrides the development mode setting contained in config.xml. However, the console and WLST show the attribute values and defaults that correspond to the development mode specified in config.xml.>
<Dec 31, 2014 5:34:07 AM EST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: [Management:141266]Parsing Failure in config.xml: java.lang.AssertionError: java.lang.reflect.InvocationTargetException>
<Dec 31, 2014 5:34:07 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Dec 31, 2014 5:34:07 AM EST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Dec 31, 2014 5:34:07 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
I have changed the jar files path in build.properties file as its required to import new jars as part of Documentum server upgradation. But getting above errors.. Do i have to update Config.xml file or any other file.. Please suggest.You've got a problem with a corrupted config.xml file.
Since you did not make any changes you can copy the config.xml.booted file over the corrupted config.xml.
The other option is to walk though the config.xml file and look for the problem... -
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. -
Purpose: to migrate all the ACTIVE records from tier1 storage to tier 2 storage.
A have applied MLR 11 patch i.e Patch 20624268: WEBCENTER CONTENT BUNDLE PATCH 11.1.1.8.11
My Configurations
Tier 1 intradoc.cfg configuration
VaultDir=/u01/app/oracle/oracle/product/11.1.8/fmw/user_projects/domains/wcc_domain/ucm/cs/vault/
WeblayoutDir=/u01/app/oracle/oracle/product/11.1.8/fmw/user_projects/domains/wcc_domain/ucm/cs/weblayout/
I then changed the above parameters from TIer 1 to Tier2 as follows
VaultDir=/u01/tier1_storage/vault
WeblayoutDir=/u01/tier1_storage/weblayout
Then rebooted the machine. Now when i try to search for all the older records which were stored on Tier 1 above using GET_FILE
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://www.oracle.com/UCM">
<ns1:GenericRequest webKey="cs">
<ns1:Service IdcService="GET_FILE">
<ns1:Document>
<ns1:Field name="dDocName">OWCDEV_004521</ns1:Field>
<ns1:Field name="RevisionSelectionMethod">Latest</ns1:Field>
</ns1:Document>
</ns1:Service>
</ns1:GenericRequest>
</soap:Body>
</soap:Envelope>
I Get following error
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<ns2:GenericResponse webKey="cs" xmlns:ns2="http://www.oracle.com/UCM">
<ns2:Service IdcService="GET_FILE">
<ns2:Document>
<ns2:Field name="error">Error: java.lang.reflect.InvocationTargetException</ns2:Field>
</ns2:Document>
</ns2:Service>
</ns2:GenericResponse>
</env:Body>
</env:Envelope>
Problem
The biggest problem is that i am not able to search older records which are stored in tier1 storage using GET_FILE, But if i check in new records to Tier2 i am able to use GET_FILE to search them. I must be able to search both Tier1 and Tier 2 Storage content files using GET_FILE. To reproduce the error, change the vault and weblayout path from intradoc.cfg,reboot then try to use GET_FILE to search for records on the previous path, then the you will get the above error. I tried to create partition and storage rules but i am not successfull. I am not so sure exactly what to change here. Please adviceHi 2611729
For searching content items service is GET_SEARCH_RESULTS and for downloading the file its GET_FILE
I dont think changing the configuration value will serve the prupose over here. You need to move the contents from one location to other and going by the explanation you have provided that movement has not happened. Every content item has a metadata called xStorageRule which mentions the location where file is stored. In your case, though you've changed the configuration setting the metadata value is still of tier1 for older content items.
You have changed the default value and thats the reason contents are getting stored in tier2 storage now and you are able to access them via search. Since for older items xStorageRule holds older value which is different that current one you are not able to search.
However, i belive you're trying to move the contents from tier1 to tier2 storage since contents in tier1 storage have crossed X days and might not be accessed frequently by users.
Below mentioned option might work.
Retain your configuration setting for valut and weblayout as earlier.
1. Create a new storage rule Tier2Rule pointing to tier2
2. Archive your contents using Archiver applet.
3. Import the contents from created archive using applet and during import change the metadata xStorageRule to new storage rule Tier2Rule. This moves all your content onto tier2.
4. Checkin new documents and it gets stored in tier1 location. I assume default storage rule will point to tier1.
5. While searching using seach forms use the metadata StorageRule and it will provide dropdown of list (like tier1rule, tier2rule and so on). Select and perform the search.
For download using GET_FILE, i'm not sure whether by passing xStorageRule it will work or not. You'll have to try it out by small POC or customize the GET_FILE as required.
I've not tried this approach earlier but by system-wise understanding it should work.
Also, please refer UCM Backup strategy this discussion thread and others in the forum. Take a look at SAM-QFS which does this job transparently or any other solution in-line to that. -
Is there a forName() for java.lang.reflect.Type?
Is there an equivelant to Class.forName() for all types?
For example:forName("java.util.List<java.lang.Sring>");
//or
forName("int");Such a method would return a java.lang.reflect.Type, instead of return a java.lang.Class
See also
Field.getGenericType()
Method.getGenericReturnType()incidentally, getGenericType() will give you the
generic type of the member being examined, not the
parameterized type.
that is, if I declare a method like this:
public <T extends MyInterface> T getStuff() {
}I won't be able to reflectively find out what types
of T are being used at runtime, only that it's of
type 'T'. of limited use really
Java's implementation of Generics isn't as good as it
could be, mainly to maintain backwards compatibiityYou are right in that case because that is not a ParameterizedType that is a TypeVariable.
Type can encompass both Types. -
Using OWB in MOC map i am getting error:java.lang.reflect.invoc
Hi All,
When i am trying to deploy any of the ammping using OWB for oracle MOC.
As part of the deployment, when I tried for the first following mapping:
using MTH-->MTH_TARGET--> Mapping
· List of deployable objects and category (EBS-Specific / Non-EBS Specific)
· EBS Specific-Maps : MTH_WO_OI_INIT_DMF_MAP
I am gettinge the following error while opening the map :
java.lang.reflect.invocationtargetexception
Because of that its not deploying at all for any of the mapping.
I am sometimes getting error nested transactions are being carried out .But if I logging in and logging out this error doesn't comes but the error which I mentioned comes. (java.lang.reflect.invocationtargetexception)
Will appreciate, if anybody gets teh same error or have some solution.
Regards,
Ashok.your error seems to indicate that your embeddedLdap isnt in sync with the Database ? Did you either delete files from your file systems or cleanup the portal db or finally used a copy of some existing database for your domain?
-
Problem with java.lang.reflect in Eclipse
I'm just reading java tutorial about that library, but when i'm trying to execute those example program's e.g
import java.lang.reflect.Constructor;
import java.lang.reflect.Type;
import static java.lang.System.out;
public class ConstructorSift {
public static void main(String... args) {
try {
Class<?> cArg = Class.forName(args[1]);
Class<?> c = Class.forName(args[0]);
Constructor[] allConstructors = c.getDeclaredConstructors();
for (Constructor ctor : allConstructors) {
Class<?>[] pType = ctor.getParameterTypes();
for (int i = 0; i < pType.length; i++) {
if (pType.equals(cArg)) {
out.format("%s%n", ctor.toGenericString());
Type[] gpType = ctor.getGenericParameterTypes();
for (int j = 0; j < gpType.length; j++) {
char ch = (pType[j].equals(cArg) ? '*' : ' ');
out.format("%7c%s[%d]: %s%n", ch,
"GenericParameterType", j, gpType[j]);
break;
// production code should handle this exception more gracefully
} catch (ClassNotFoundException x) {
x.printStackTrace();
in Eclipse i've got nothing in my output console :/
no errors, no warnings, no text ..... (it was terminated correctly)
Can somebody tell me what should I do to make it work properly ?Hi,
In program arguments, you should not have ConstructorSift but only java.util.Formatter and java.util.Locale.
(Eclipse : run dialog | arguments tab | program arguments)
This is the output you should get:
$ java ConstructorSift java.util.Formatter java.util.Locale
public java.util.Formatter(java.util.Locale)
*GenericParameterType[0]: class java.util.Locale
public java.util.Formatter(java.lang.Appendable,java.util.Locale)
GenericParameterType[0]: interface java.lang.Appendable
*GenericParameterType[1]: class java.util.Locale
public java.util.Formatter(java.lang.String,java.lang.String,java.util.Locale) throws java.io.FileNotFoundException,java.io.UnsupportedEncodingException
GenericParameterType[0]: class java.lang.String
GenericParameterType[1]: class java.lang.String
*GenericParameterType[2]: class java.util.Locale
public java.util.Formatter(java.io.File,java.lang.String,java.util.Locale) throws java.io.FileNotFoundException,java.io.UnsupportedEncodingException
GenericParameterType[0]: class java.io.File
GenericParameterType[1]: class java.lang.String
*GenericParameterType[2]: class java.util.Locale
public java.util.Formatter(java.io.OutputStream,java.lang.String,java.util.Locale) throws java.io.UnsupportedEncodingException
GenericParameterType[0]: class java.io.OutputStream
GenericParameterType[1]: class java.lang.String
*GenericParameterType[2]: class java.util.Locale
Hope that help,
Jack -
Ugly problem with java.lang.reflect.InvocationTargetException
Hello,
I am writing a web service which connects to WebSphere MQ queue manager and puts a message on a queue.
I use Eclipse and as usual I followed more or less the hints given at:
http://www.eclipse.org/webtools/jst/components/ws/1.5/tutorials/BottomUpWebService/BottomUpWebService.html
I have chosen Tomcat 5.5.20 as target server (had to, because otherwise it does not create a server-config.wsdd file), the web service WSDL thingies and the client were created successfully.
I have created WAR files and everything went fine when I tested the thing on JBoss.
Bad things started after I deployed the things on the Tomcat server. When I start the client I receive java.lang.reflect.InvocationTargetException as a result. The web service itself does not generate any exception, but the client does (I'll post the dump later..).
During the debug it turned that the exception is generated at the moment when the web service program tries to call any of the WebSphere functions.
Now - 1st obvious thing was to check if I have com.ibm.mq.jar in the WEB-INF/lib directory inside my WAR files. Yep! There it was.
So.. if the thing works just fine on JBoss and it booms on Tomcat I wonder whats the hack here? I copied all of the MQ libraries i have from JBOSS_HOME/lib to CATALINA_HOME/shared/lib and CATALINA_HOME/common/lib. Well.. that's quite ugly, because all necessary jars are inside the WEB-INF/lib directory. Anyway nothing of the above helped me running the thing on Tomcat.
Do you have any suggestions or have anyone of you ever had such problem?
Here are the exception dump and part of the code:
- Setting up MQ environment:
- Setting hostname...
An AxisFault exception occured: java.lang.reflect.InvocationTargetException
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:ghjvk0j
java.lang.reflect.InvocationTargetException
at org.apache.axis.message.SOAPFaultBuilder.create
Fault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(
SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(
DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(
Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.
scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScanne
rImpl$Fragment ContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerI
mpl.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 org.apache.xerces.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:435)
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:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at pl.pzu.services.TfiAuthenticationSoapBindingStub.
verify(TfiAuthenticationSoapBindingStub.java:245)
at pl.pzu.services.TfiAuthenticationProxy.
verify(TfiAuthenticationProxy.java:45)
at org.apache.jsp.sampleTfiAuthenticationProxy.
Result_jsp._jspService(Result_jsp.java:158)
at org.apache.jasper.runtime.HttpJspBase.
service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.
service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.
service(JspServletWrapper.java:334)
at org.apache.jasper.servlet.JspServlet.
serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.
service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)
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:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11Connec
tionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Pool
TcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(Lea
derFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)There is the part of the web service code where the event occurs:
public void writeMessage(String message,
String message_ID) throws Exception
System.out.println(" - Setting up MQ environment: ");
try
System.out.println(" - Setting hostname...");
NEXT LINE CAUSES THE CLIENT TO THROW
This is the first call to any WebSphere assets.
During debug It says the it is unable to inspect the MQEnvironment
object...
MQEnvironment.hostname = m_config.getQMHost();
System.out.println(" - Setting port...");
MQEnvironment.port = m_config.getQMPort();
System.out.println(" - Setting channel...");
MQEnvironment.channel = m_config.getQMChannel();
}I think that if it works on JBoss and it doesn't on Tomcat it is not coding problem, but rather a configuration...
Thanx for any ideas or help from ur side.Did you have any success on this?
I also have the same problem with Tomcat 6.
I had Tomcat 5.0 working with this code, but when we migrated to Tomcat 6.0, I am getting this exception on the clent side. I figured out that it is occuring on invoking WebSphere MQ call from the code.
Thanks -
Post Author: johnnighter
CA Forum: Data Connectivity and SQL
Hi,Good Day !I followed crxi_java_bean_data_source.pdf to setup and configure Crystal Report XI (Product Version 11.0.0.1282, CR Developer; Product Type: Full).Below is the sample code.import java.sql.*;public class CRSampleDataSourceBean { private ResultSet resultSet = null; private Connection connection = null; private String connectionURL = "jdbc:derby:MyDatabase"; private String databaseClass = "org.apache.derby.jdbc.EmbeddedDriver"; private String query = "SELECT * FROM CUSTOMER"; public CRSampleDataSourceBean() { try { Class.forName(databaseClass); connection = DriverManager.getConnection(connectionURL, "", ""); } catch (ClassNotFoundException ex) { System.out.println("Ensure that database driver class is installed."); ex.printStackTrace(); } catch (SQLException ex) { System.out.println("SQL Exception #" + ex.getErrorCode() + " : " + ex.getLocalizedMessage()); ex.printStackTrace(); } } public ResultSet getResultSet() throws SQLException { Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY); resultSet = statement.executeQuery(query); return resultSet; }}Compile no error. It display at the "Java Beans Connectivity" screen, and able to select from the "Java Bean Classes" combobox.It display at the "Available Data Sources" (left hand side) with database name CRSampleDataSourceBean->getResultSet. BUT when click the ">" or ">>" button, it display an error message "Failed to retrieve data from the database. Details: java.lang.reflect.InvacationTargetException". Please advice. regards,johnnighterPost Author: pvierheilig
CA Forum: Crystal Reports
Have you been able to resolve this yet? I don't have any reference to Oracle error codes but would suspect a quick Google of something like 'Oracle error code 997' should result in good information, since it is an Oracle error...
Hope this helps.
Maybe you are looking for
-
Why won't my iTunes connect on my new laptop?
Hi Guys! So I recently purchased a new laptop and downloaded iTunes. Every time I attempt to sign into iTunes using my Apple ID - a error message pops up saying that it cannot connect to the iTunes store as it is unavailable and I should try again la
-
Let's face it, this TV has almost no apps but can some one please tell if why it is that when I exit out of an app like YouTube, it goes to a blank screen and will not change back to the home menu unless I then press the home key. It seems like the
-
Id love the 20" apple cinema display but i just cant afford it... but i still need to replace my old 21" crt monitor with something that'll take up a lot less space... can anyone recommend any really good apple friendly non-widescreen displays? thank
-
Anyone now if this is possible? We have reports sent to us each night that are multiple text files in a zip archive. I can't believe this functionality is built into OS X and not supported at all on the iPhone.
-
Dear friends We have different services in ESS like leaves, claims and advances etc in ESS, the requirement is the user while applying for leave loan or claims, he should be able to select the approver to trigger the workflow Eg. Employee 1 wants t