Web service handler could not called in client web service
Hi All,
I have two web service ServiceA & ServiceB and both implemented in weblogic.
The ServiceA is SSL enable and protocol is https which is not published by me.
The ServieB is my web service(wls8.1) and act as client for ServiceA.
My problem is when i hit my service, its not able set the handler when it call ServiceA but it is invoking the service and giving application exception like authentication error.
My service file:
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.xml.namespace.QName;
import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.rpc.handler.HandlerRegistry;
import javax.xml.rpc.handler.soap.SOAPMessageContext;
import weblogic.webservice.client.SSLAdapterFactory;
import weblogic.webservice.client.WLSSLAdapter;
public class HelloService {
String wsdl = "https://188.122.123.23/RemoetService?WSDL";
static {
SSLAdapterFactory factory = SSLAdapterFactory.getDefaultFactory();
WLSSLAdapter adapter = (WLSSLAdapter) factory.getSSLAdapter();
adapter.setTrustedCertificatesFile("D:\\lib\\certs
cacerts");
factory.setDefaultAdapter(adapter);
System.setProperty("weblogic.xml.encryption.verbose","true");
System.setProperty("weblogic.xml.signature.verbose","true");
System.setProperty("weblogic.webservice.verbose","true");
public String sayHello(String user) {
RemoteService_Impl service = new RemoteService_Impl(wsdl);
RemotePortType port = service.getRemoteServicePort1();
String namespace = service.getServiceName()
.getNamespaceURI();
QName portName = new QName(namespace,
"RemoteServicePortType");
HandlerRegistry reg = service.getHandlerRegistry();
List handlerList = new ArrayList();
Map map = new HashMap();
map.put("Username", "user1");
map.put("Password", "pwd1");
HandlerInfo info = new HandlerInfo();
info.setHandlerClass(WSClientHandler .class);
info.setHandlerConfig(map);
handlerList.add(info);
reg.setHandlerChain(portName,(List)handlerList);
RemoteServiceResponse = port.callMe(name);
My Handler file:
package com.test;
import java.util.Map;
import javax.xml.namespace.QName;
import javax.xml.rpc.handler.Handler;
import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.rpc.handler.MessageContext;
import javax.xml.rpc.handler.soap.SOAPMessageContext;
import javax.xml.soap.Name;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPHeader;
import javax.xml.soap.SOAPHeaderElement;
public class WSClientHandler implements Handler {
private HandlerInfo handlerInfo;
public WSClientAuthenticateHandler(){}
public void init(HandlerInfo hi) {
System.out.println("Handler init");
handlerInfo = hi;
public void destroy() {
System.out.println("Handler destroy method called");
handlerInfo = null;
public QName[] getHeaders() {
System.out.println("Handler Header method called");
try {
Map map = handlerInfo.getHandlerConfig();
QName[] headers = handlerInfo.getHeaders();
System.out.println(" Config :"+map);
for(int i=0;i<headers.length;i++) {
System.out.println(headers.getLocalPart()+" "+
headers.toString()+" "+headers.getNamespaceURI());
}catch(Exception e) {
e.printStackTrace();
return handlerInfo.getHeaders();
public boolean handleRequest(MessageContext mc) {
SOAPMessageContext smc = (SOAPMessageContext) mc;
System.out.println("Calling handler class.....................");
try {
SOAPEnvelope se = smc.getMessage().getSOAPPart().getEnvelope();
System.out.println("Calling handler class.....................");
SOAPHeader soapHeader = se.getHeader();
Name headerName = se.createName("Security","wsse","http://schemas.xmlsoap.org/ws/2002/07/secext");
SOAPHeaderElement headerElement = soapHeader.addHeaderElement(headerName);
SOAPElement element = headerElement.addChildElement(se.createName("UsernameToken", "wsse", "http://schemas.xmlsoap.org/ws/2002/07/secext"));
element.addChildElement(se.createName("Username", "wsse","http://schemas.xmlsoap.org/ws/2002/07/secext")).addTextNode("testuser");
element.addChildElement(se.createName("Password", "wsse","http://schemas.xmlsoap.org/ws/2002/07/secext")).addTextNode("testpwd");
System.out.println("Calling handler class.....................");
System.out.println("** Request: \n "se.toString()"\n");
}catch(SOAPException e) {
e.printStackTrace();
return true;
/** * Specifies that the SOAP response message be logged to a
* log file before the
* * message is sent back to the client application
* that invoked the Web service.
public boolean handleResponse(MessageContext mc) {
System.out.println("Handler Response method called");
SOAPMessageContext messageContext = (SOAPMessageContext) mc;
System.out.println("** Response: \n"messageContext.getMessage().toString()"\n");
return true;
/** * Specifies that a message be logged to the log file if a SOAP fault is
* * thrown by the Handler instance.
public boolean handleFault(MessageContext mc) {
SOAPMessageContext messageContext = (SOAPMessageContext) mc;
System.out.println("** Fault: \n"messageContext.getMessage().toString()"\n");
return true;
Please need help here.
Thanks in Advance,
pps
I have tested static client calling using handler simple above service and found the issues.
QName portName = new QName(namespace,
"*RemoteServicePortType*");
The above line code has created the issues,becuase in wsdl file ( given similar wsdl file).
<?xml version="1.0"; encoding="UTF-8"?>
<definitions name="HelloService"
targetNamespace="http://www.ecerami.com/wsdl/HelloService.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.ecerami.com/wsdl/HelloService.wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<message name="SayHelloRequest">
<part name="firstName" type="xsd:string"/>
</message>
<message name="SayHelloResponse">
<part name="greeting" type="xsd:string"/>
</message>
*<portType name="RemoteServicePortType">*
<operation name="sayHello">
<input message="tns:SayHelloRequest"/>
<output message="tns:SayHelloResponse"/>
</operation>
</portType>
<binding name="Hello_Binding" type="tns:*RemoteServicePortType*">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="sayHello">
<soap:operation soapAction="sayHello"/>
<input>
<soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:examples:helloservice"
use="encoded"/>
</input>
<output>
<soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:examples:helloservice"
use="encoded"/>
</output>
</operation>
</binding>
<service name="Hello_Service">
<port binding="tns:Hello_Binding" name="*RemoteServicePortType1*">
<soap:address
location="http://host1:8080/soap/servlet/rpcrouter"/>
</port>
<port binding="tns:Hello_Binding" name="*RemoteServicePortType2*">
<soap:address
location="http://host2:8080/soap/servlet/rpcrouter"/>
</port>
<port binding="tns:Hello_Binding" name="*RemoteServicePortType3*">
<soap:address
location="http://host3:8080/soap/servlet/rpcrouter"/>
</port>
<port binding="tns:Hello_Binding" name="*RemoteServicePortType4*">
<soap:address
location="http://host4:8080/soap/servlet/rpcrouter"/>
</port>
</service>
</definitions>
From the above WSDL, I have four port name (port binding="tns:Hello_Binding" name="*RemoteServicePortType1*) which is not matching with PortType (portType name="*RemoteServicePortType*")
even i have iterated from getPorts() method and used to invoke the service.But handler was not calling when i invoke.
Please guide me here how i specify correct portname which can call Handler class also.
Thanks in advance,
pps
Similar Messages
-
"The PowerPivot service application could not connect to the Analysis Services instance"
Hi
I am baffled by this one. I have a PowerShell script I have built up to install PowerPivot, which I have put together by reading various blogs and by picking apart the scripts that come with the PowerPivot installer.
However, once I have built the service app and installed/activated the solutions and features, I get the error "The PowerPivot service application could not connect to the Analysis Services instance" when trying to use it. I can't find any
more detailed messages, even with verbose logging turned on. SSAS\PowerPivot is of course installed and connected to Excel as it should be.
I have tried running the PowerPivot for SharePoint validation tool and it doesn't find anything.
If I install PowerPivot using the PowerPivot for SharePoint installer, then delete the service app and rerun my scripts, everything then works fine.
So there is something the installer is doing that I am not, but I cannot for the life of me figure out what it is. I though it might be permission related, but the official installer installs the service under the farm account, not my BI service account.
Ahaa, I thought, but when I then reinstall the service myself with my scripts, using my BI service account, the service app then works, so I don't think it can be permission related.
Doing a Google search on that message pulls up only one old post (repeated a few times), which talks about using a domain account for the SSAS instance instead of a Local System account - I am using the same domain service account for SSAS, Excel and
PowerPivot already, so that doesn't help me much.
Does anyone have any ideas for me or suggestions on how I might proceed?
Andrew vRDid you run the "Run PowerPivot for SharePoint Configuration Tool" after installing PowerPivot and did that work okay?
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com -
Web service handler could not registered/called in client web service
Hi Expert,
I have two web service ServiceA & ServiceB and both implemented in weblogic.
The ServiceA is SSL enable and protocol is https which is not published by me.
The ServieB is my web service(wls8.1) and act as client for ServiceA.
My problem is when i hit my service, its not able set the handler when it call ServiceA but it is invoking the service and giving application exception like authentication error.
My service file:
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.xml.namespace.QName;
import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.rpc.handler.HandlerRegistry;
import javax.xml.rpc.handler.soap.SOAPMessageContext;
import weblogic.webservice.client.SSLAdapterFactory;
import weblogic.webservice.client.WLSSLAdapter;
public class HelloService {
String wsdl = "https://188.122.123.23/RemoetService?WSDL";
static {
SSLAdapterFactory factory = SSLAdapterFactory.getDefaultFactory();
WLSSLAdapter adapter = (WLSSLAdapter) factory.getSSLAdapter();
adapter.setTrustedCertificatesFile("D:\\lib\\certs\\cacerts");
factory.setDefaultAdapter(adapter);
System.setProperty("weblogic.xml.encryption.verbose","true");
System.setProperty("weblogic.xml.signature.verbose","true");
System.setProperty("weblogic.webservice.verbose","true");
public String sayHello(String user) {
RemoteService_Impl service = new RemoteService_Impl(wsdl);
RemotePortType port = service.getRemoteServicePort1();
String namespace = service.getServiceName()
.getNamespaceURI();
QName portName = new QName(namespace,
"RemoteServicePortType");
HandlerRegistry reg = service.getHandlerRegistry();
List handlerList = new ArrayList();
Map map = new HashMap();
map.put("Username", "user1");
map.put("Password", "pwd1");
HandlerInfo info = new HandlerInfo();
info.setHandlerClass(WSClientHandler .class);
info.setHandlerConfig(map);
handlerList.add(info);
reg.setHandlerChain(portName,(List)handlerList);
RemoteServiceResponse = port.callMe(name);
My Handler Class:
package com.test;
import java.util.Map;
import javax.xml.namespace.QName;
import javax.xml.rpc.handler.Handler;
import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.rpc.handler.MessageContext;
import javax.xml.rpc.handler.soap.SOAPMessageContext;
import javax.xml.soap.Name;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPHeader;
import javax.xml.soap.SOAPHeaderElement;
public class WSClientHandler implements Handler {
private HandlerInfo handlerInfo;
public WSClientAuthenticateHandler(){}
public void init(HandlerInfo hi) {
System.out.println("Handler init");
handlerInfo = hi;
public void destroy() {
System.out.println("Handler destroy method called");
handlerInfo = null;
public QName[] getHeaders() {
System.out.println("Handler Header method called");
try {
Map map = handlerInfo.getHandlerConfig();
QName[] headers = handlerInfo.getHeaders();
System.out.println(" Config :"+map);
for(int i=0;i<headers.length;i++) {
System.out.println(headers.getLocalPart()+" "+
headers[i].toString()+" "+headers[i].getNamespaceURI());
}catch(Exception e) {
e.printStackTrace();
return handlerInfo.getHeaders();
public boolean handleRequest(MessageContext mc) {
SOAPMessageContext smc = (SOAPMessageContext) mc;
System.out.println("Calling handler class.....................");
try {
SOAPEnvelope se = smc.getMessage().getSOAPPart().getEnvelope();
System.out.println("Calling handler class.....................");
SOAPHeader soapHeader = se.getHeader();
Name headerName = se.createName("Security","wsse","http://schemas.xmlsoap.org/ws/2002/07/secext");
SOAPHeaderElement headerElement = soapHeader.addHeaderElement(headerName);
SOAPElement element = headerElement.addChildElement(se.createName("UsernameToken", "wsse", "http://schemas.xmlsoap.org/ws/2002/07/secext"));
element.addChildElement(se.createName("Username", "wsse","http://schemas.xmlsoap.org/ws/2002/07/secext")).addTextNode("testuser");
element.addChildElement(se.createName("Password", "wsse","http://schemas.xmlsoap.org/ws/2002/07/secext")).addTextNode("testpwd");
System.out.println("Calling handler class.....................");
System.out.println("** Request: \n "+se.toString()+"\n");
}catch(SOAPException e) {
e.printStackTrace();
return true;
/** * Specifies that the SOAP response message be logged to a
* log file before the
* * message is sent back to the client application
* that invoked the Web service.
public boolean handleResponse(MessageContext mc) {
System.out.println("Handler Response method called");
SOAPMessageContext messageContext = (SOAPMessageContext) mc;
System.out.println("** Response: \n"+messageContext.getMessage().toString()+"\n");
return true;
/** * Specifies that a message be logged to the log file if a SOAP fault is
* * thrown by the Handler instance.
public boolean handleFault(MessageContext mc) {
SOAPMessageContext messageContext = (SOAPMessageContext) mc;
System.out.println("** Fault: \n"+messageContext.getMessage().toString()+"\n");
return true;
Please need help here.
Thanks in Advance,
ppsI have tested static client calling using handler simple above service and found the issues.
QName portName = new QName(namespace,
*"RemoteServicePortType");*
The above line code has created the issues,becuase in wsdl file ( given similar wsdl file).
<?xml version="1.0"; encoding="UTF-8"?>
<definitions name="HelloService"
targetNamespace="http://www.ecerami.com/wsdl/HelloService.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.ecerami.com/wsdl/HelloService.wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<message name="SayHelloRequest">
<part name="firstName" type="xsd:string"/>
</message>
<message name="SayHelloResponse">
<part name="greeting" type="xsd:string"/>
</message>
<portType name="*RemoteServicePortType*">
<operation name="sayHello">
<input message="tns:SayHelloRequest"/>
<output message="tns:SayHelloResponse"/>
</operation>
</portType>
<binding name="Hello_Binding" type="tns:*RemoteServicePortType*">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="sayHello">
<soap:operation soapAction="sayHello"/>
<input>
<soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:examples:helloservice"
use="encoded"/>
</input>
<output>
<soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:examples:helloservice"
use="encoded"/>
</output>
</operation>
</binding>
<service name="Hello_Service">
+<port binding="tns:Hello_Binding" name="*RemoteServicePortType1*">+
+<soap:address+
location="http://host1:8080/soap/servlet/rpcrouter"/>
+</port>+
+<port binding="tns:Hello_Binding" name="*RemoteServicePortType2*">+
+<soap:address+
location="http://host2:8080/soap/servlet/rpcrouter"/>
+</port>+
+<port binding="tns:Hello_Binding" name="*RemoteServicePortType3*">+
+<soap:address+
location="http://host3:8080/soap/servlet/rpcrouter"/>
+</port>+
+<port binding="tns:Hello_Binding" name="*RemoteServicePortType4*">+
+<soap:address+
location="http://host4:8080/soap/servlet/rpcrouter"/>
+</port>+
</service>
</definitions>
From the above WSDL, I have four port name (port binding="tns:Hello_Binding" name="*RemoteServicePortType1*) which is not matching with PortType (portType name="*RemoteServicePortType*")
even i have iterated from getPorts() method and used to invoke the service.But handler was not calling when i invoke.
Please guide me here how i specify correct portname which can call Handler class also.
Thanks in advance,
pps -
Windows could not start the Windows Audio service on Local Computer.
Hi
I started my PC today and i didn't have sound... weird
i'm getting this error when i want to start the Windows Audio service
"Windows could not start the Windows Audio service on Local Computer.
Error 0x800706cc: The end point is a duplicate."
HELP PLEASE!!!!!Hi,
Have your gotten any updates installed?
Regarding to current information, this issue can be caused by corrupted updated files or drivers.
Please check if there is any update related to audio driver. Can this issue be fixed if you remove such update?
I also suggest you can try to reinstall Audio driver to check the results.
Kate Li
TechNet Community Support -
Book Module Error "Could not contact the Blurb Web Service"???
I have successfully used Lightroom in the past to upload a book with no problems. I'm currently running the most updated version of Lightroom v 5.6. I've just finished a new book and am getting the error message "Could not contact the Blurb Web Service. Check your internet connection." My internet connection is fine, my firewalls and anti-virus are turned off, I've restarted both Lightroom and my computer. Same problem.
My research has shown this is a very common problem, but all the forums I've found do not have answers on how to solve the problem. All the posts I've found about this problem are either unanswered or suggest things like turning off and turning back on "unchecking apply background globally" and other tips related to the background and text, or change the cover style back and forth, etc. None of these has worked for me.
I am ordering this book as a wedding album for a client and it is URGENT that I get the order uploaded within the next few days or I'm going to have to refund the clients' payment and lose the job, which would be extremely professionally embarrassing. I'm VERY frustrated and have very eager customers waiting. PLEASE HELP ASAP!!!
Janine Fugere
As Seen by Janine
www.asseenbyjanine.comI solved the Lightroom Book Module problem of "Could not contact Blurb Web Service. Please check your internet connection."
With the help of Adobe Lightroom's telephone tech support, a very patient man named Himanshu helped me discover what was causing this issue, after researching the issue and calling me back. Nice touch Adobe! It was pleasant to be able to do other things while Himashu researched and consulted with other techs to find my solution.
As very many other people have reported in user forums, the problem was not that I didn't have an Internet connection.
The problem was caused by my PC's Windows 8 User Account Settings, which somehow had Internet Settings that conflict with the upload to Blurb from Lightroom. The Adobe Lightroom tech support person helped me create a new user account, and I am able to successfully upload to Blurb from Lightroom under the new account. We created a quick test book to try and it worked just fine under the new user account.
Not sure how this solution would translate for a MAC user (I've read of people with Mac computers getting the same upload error) but I advise checking your User Account's Internet Settings, whatever type of computer you are using.
The only minor glitch I still have is that my new Windows user account can't access any of my photo files (or any other files) from my old user account, even when I gave the new user account administrator access. I have a very large internal hard drive, so my photos & catalog are stored internally. The Lightroom tech support advised me to contact Lenovo (my computer manufacturer) for help to transfer all my files from my original user account to the new one I just created. I will do that very soon.
Meanwhile, my temporary workaround was to export my Lightroom Catalog and the photos I needed for this book onto an external hard drive, so I could access them from the new user account. My wedding clients' book has been successfully uploaded to Blurb!
I'm sharing so others with this problem uploading from Lightroom to Blurb may also find this solution works for them, too. -
Could not connector to Orchestrator web service
I am trying to create an Orchestrator connector in Service Manager 2012. I type
http://mortonor12r2:81/orchestrator1012/orchestrator.svcin the wizard and specify the Orchestrator service account and I get the error: "Could not connector to Orchestrator web service".
Here is the additional information on the error:
Date: 2/3/2014 12:42:35 PM
Application: System Center Service Manager
Application Version: 7.5.3079.0
Severity: Error
Message: Could not connect to the Orchestrator web service.
System.Data.Services.Client.DataServiceQueryException: An error occurred while processing this request. ---> System.Data.Services.Client.DataServiceClientException: <!DOCTYPE html>
<html>
<head>
<title>The resource cannot be found.</title>
<meta name="viewport" content="width=device-width" />
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
@media screen and (max-width: 639px) {
pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
@media screen and (max-width: 479px) {
pre { width: 280px; }
</style>
</head>
<body bgcolor="white">
<span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
<h2> <i>The resource cannot be found.</i> </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please
review the following URL and make sure that it is spelled correctly.
<br><br>
<b> Requested URL: </b>/Orchestrator1012/Orchestrator.svc/Folders(guid'00000000-0000-0000-0000-000000000000')<br><br>
</body>
</html>
at System.Data.Services.Client.QueryResult.Execute()
at System.Data.Services.Client.DataServiceRequest.Execute[TElement](DataServiceContext context, QueryComponents queryComponents)
--- End of inner exception stack trace ---
at System.Data.Services.Client.DataServiceRequest.Execute[TElement](DataServiceContext context, QueryComponents queryComponents)
at System.Data.Services.Client.DataServiceQuery`1.Execute()
at System.Data.Services.Client.DataServiceQuery`1.GetEnumerator()
at Microsoft.EnterpriseManagement.ServiceManager.Sdk.Connectors.OrchestratorRunbookConnector.GetRunbookFolders(OrchestratorContext scoContext, Folder parentFolder)
at Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.Connectors.Orchestrator.OrchestratorConnectorHelper.ValidateServerConnection(Boolean found)
System.Data.Services.Client.DataServiceClientException: <!DOCTYPE html>
<html>
<head>
<title>The resource cannot be found.</title>
<meta name="viewport" content="width=device-width" />
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
@media screen and (max-width: 639px) {
pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
@media screen and (max-width: 479px) {
pre { width: 280px; }
</style>
</head>
<body bgcolor="white">
<span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
<h2> <i>The resource cannot be found.</i> </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please
review the following URL and make sure that it is spelled correctly.
<br><br>
<b> Requested URL: </b>/Orchestrator1012/Orchestrator.svc/Folders(guid'00000000-0000-0000-0000-000000000000')<br><br>
</body>
</html>
at System.Data.Services.Client.QueryResult.Execute()
at System.Data.Services.Client.DataServiceRequest.Execute[TElement](DataServiceContext context, QueryComponents queryComponents)
In the event log on the Orchestrator server, I get the following error (event ID 3, System.ServiceModel 4.0.0.0):
WebHost failed to process a request.
Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/11404313
Exception: System.Web.HttpException (0x80004005): The service '/Orchestrator1012/Orchestrator.svc' does not exist. ---> System.ServiceModel.EndpointNotFoundException: The service '/Orchestrator1012/Orchestrator.svc' does not exist.
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
Process Name: w3wp
Process ID: 2732
I have checked permissions and they seem OK. Any help is appreciated.Hi,
http://mortonor12r2:81/orchestrator2012/orchestrator.svc should be the correct address. Do you have the typo "1012" only in the question or in the connector as well?
Can you open http://mortonor12r2:81/orchestrator2012/orchestrator.svc
in IE ?
Regards,
Stefan
www.sc-orchestrator.eu ,
Blog sc-orchestrator.eu -
ORA-12518: TNS:listener could not hand off client connection
guys,
i have a problem here with the connection between a client host and a server database, using a new non-default listener LISTENER_BKP_1. The error showed is:
ORA-12518: TNS:listener could not hand off client connection
i had learned about this error here before, and i toke some notes as follows:
h2. listener.log
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 25-SEP-2009 01:23:49
Copyright (c) 1991, 2005, Oracle. All rights reserved.
System parameter file is C:\oracle\product\10.2.0\db_2\network\admin\listener.ora
Log messages written to C:\oracle\product\10.2.0\db_2\network\log\listener_bkp_1.log
Trace information written to C:\oracle\product\10.2.0\db_2\network\trace\listener_bkp_1.trc
Trace level is currently 0
Started with pid=2212
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WINXP)(PORT=1523)))
Listener completed notification to CRS on start
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
25-SEP-2009 01:24:39 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=PAULO))(COMMAND=services)(ARGUMENTS=64)(SERVICE=listener_bkp_1)(VERSION=169869568)) * services * 0
25-SEP-2009 01:24:49 * (CONNECT_DATA=(SERVICE_NAME=financeira.winxp)(CID=(PROGRAM=C:\ORACLE?instantclient_10_2\sqlplus.exe)(HOST=PAULO_NOTEBOOK)(USER=ORACLE_DBA))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.100)(PORT=51649)) * establish * financeira.winxp * 12518
TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
32-bit Windows Error: 2: No such file or directory
25-SEP-2009 01:24:53 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=PAULO))(COMMAND=services)(ARGUMENTS=64)(SERVICE=listener_bkp_1)(VERSION=169869568)) * services * 0
h2. lsnrctl services
C:\>lsnrctl services listener_bkp_1
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 25-SEP-2009 01:33:40
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=WINXP)(PORT=1523)))
Services Summary...
Service "FINANCEIRA.WINXP" has 1 instance(s).
Instance "FINANCEI", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:1
LOCAL SERVER
The command completed successfully
h2. listener.ora file
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = FINANCEIRA.WINXP)
(SID_NAME = FINANCEI)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = WINXP)(PORT = 1521))
SID_LIST_LISTENER_BKP_1 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = FINANCEIRA.WINXP)
(SID_NAME = FINANCEI)
LISTENER_BKP_1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = WINXP)(PORT = 1523))
h2. v$resource_limit
RESOURCE_NAME ; CURRENT_UTILIZATION ; MAX_UTILIZATION ; INITIAL_ALLOCATION ; LIMIT_VALUE
processes ; 26 ; 30 ; 150; 150
sessions ; 30 ; 35 ; 170 ; 170
2 rows selected
this means that it didn't reach the resource limites yet. What i can do to solve the problem ???
another important information is that connecting by the default listener LISTENER instead of the LISTENER_BKP_1 listener, the connection is completed successfully. There's enough SGA memory space too.
Tks,Paulo_BR wrote:
i have a problem here with the connection between a client host and a server database, using a new non-default listener LISTENER_BKP_1. The error showed is:
ORA-12518: TNS:listener could not hand off client connectionDon't do Oracle on Windows, so I'm not sure how the following relates to the Listener dealing with a dedicated server connection request on Linux/Unix.
On Linux/Unix, a dedicated server request means just that - a dedicated process has to be started to service that client. The Listener does it by using the parameters of the configured listener.ora service to execute +$ORACLE_HOME/bin/oracle+. This process then starts up, and the Listener hands off the client connection for this process for servicing.
If there is a failure somewhere on this series of steps fail, the Listener throws the ORA-12518 exception. For example, the +$ORACLE_HOME+ has been incorrectly configured in listener.ora and it fails to execute and startup a dedicated server process.
And this relates to the underlying error you are seeing:
TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
32-bit Windows Error: 2: No such file or directoryI think that the Listener on Windows uses the CreateRemoteThread() Win32 call to start up the server process thread. However, it needs a valid process identifier (of the existing Oracle instance) for this call - and thus needs to first identify the Oracle instance process. Could be that this step uses a ORACLE_HOME reference. And if that directory path is not valid, it is unable to identify the process id of the Oracle instance and thus unable to spawn a dedicated thread to service that client. -
Hi there,
We were using the spring multipart for the purpose of uploading a file into our application running on Oracle Weblogic Server 10.3.2 using spring framework.
It was working fine until we upgraded our server to the version 10.3.6
After the upgrade, we started getting the below error while we try to submit the form after selecting the file to be uploaded.
2013-11-20 06:11:29,923 ERROR||[[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)']||[email protected]||org.springframework.web.portlet.DispatcherPortlet||Could not complete request
javax.portlet.PortletException: Error occured during request processing: javax/portlet/ActionRequest
at org.springframework.web.portlet.DispatcherPortlet.doActionService(DispatcherPortlet.java:668)[org.springframework.web.portlet-3.0.2.RELEASE.jar:3.0.2.RELEASE]
at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:519)[org.springframework.web.portlet-3.0.2.RELEASE.jar:3.0.2.RELEASE]
at org.springframework.web.portlet.FrameworkPortlet.processAction(FrameworkPortlet.java:460)[org.springframework.web.portlet-3.0.2.RELEASE.jar:3.0.2.RELEASE]
at com.bea.portlet.container.PortletStub.doAction(PortletStub.java:901)[portlet-container.jar:10.3.6 ]
at com.bea.portlet.container.FilterChainGenerator.runFilterChain(FilterChainGenerator.java:96)[portlet-container.jar:10.3.6 ]
at com.bea.portlet.container.PortletStub.processAction(PortletStub.java:314)[portlet-container.jar:10.3.6 ]
at com.bea.portlet.container.AppContainer.invokeProcessAction(AppContainer.java:679)[portlet-container.jar:10.3.6 ]
at com.bea.netuix.servlets.controls.content.JavaPortletContent.fireProcessAction(JavaPortletContent.java:209)[netuix_servlet.jar:10.3.6 ]
at com.bea.netuix.servlets.controls.portlet.JavaPortlet.fireProcessAction(JavaPortlet.java:1299)[netuix_servlet.jar:10.3.6 ]
at com.bea.netuix.servlets.controls.portlet.JavaPortlet.raiseChangeEvents(JavaPortlet.java:805)[netuix_servlet.jar:10.3.6 ]
at com.bea.netuix.nf.ControlLifecycle$4.postVisitRoot(ControlLifecycle.java:316)[netuix_servlet.jar:10.3.6 ]
at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:341)[netuix_servlet.jar:10.3.6 ]
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:130)[netuix_servlet.jar:10.3.6 ]
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)[netuix_servlet.jar:10.3.6 ]
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)[netuix_servlet.jar:10.3.6 ]
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)[netuix_servlet.jar:10.3.6 ]
at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:184)[netuix_servlet.jar:10.3.6 ]
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:159)[netuix_servlet.jar:10.3.6 ]
at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:465)[netuix_servlet.jar:10.3.6 ]
at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:291)[netuix_servlet.jar:10.3.6 ]
at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:219)[netuix_servlet.jar:10.3.6 ]
at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:275)[netuix_servlet.jar:10.3.6 ]
at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:731)[netuix_servlet-full.jar:10.3.6 ]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)[javax.servlet_1.0.0.0_2-5.jar:2.5]
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)[weblogic.jar:10.3.6.0]
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)[weblogic.jar:10.3.6.0]
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)[weblogic.jar:10.3.6.0]
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)[weblogic.jar:10.3.6.0]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)[content_servlet.jar:10.3.6 ]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)[p13n_ejb.jar:10.3.6 ]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
at com.rogers.business.servlet.filter.GenericContentFilter.doFilter(GenericContentFilter.java:50)[GenericContentFilter.class:]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
at com.rogers.business.servlet.filter.SessionExpiryFilter.doFilter(SessionExpiryFilter.java:82)[SessionExpiryFilter.class:]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
at com.rogers.business.servlet.filter.ServletExceptionFilter.doFilter(ServletExceptionFilter.java:54)[ServletExceptionFilter.class:]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
at com.rogers.business.servlet.seo.SEOUrlFilter.doFilter(SEOUrlFilter.java:87)[SEOUrlFilter.class:]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
at com.rogers.business.servlet.filter.BusinessContextDetectionFilter.doFilter(BusinessContextDetectionFilter.java:75)[BusinessContextDetectionFilter.class:]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
at com.rogers.business.servlet.filter.LanguageProvinceSelectionFilter.doFilter(LanguageProvinceSelectionFilter.java:160)[LanguageProvinceSelectionFilter.class:]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)[content_servlet.jar:10.3.6 ]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)[weblogic.jar:10.3.6.0]
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)[weblogic.jar:10.3.6.0]
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)[weblogic.jar:10.3.6.0]
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)[weblogic.jar:10.3.6.0]
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)[com.bea.core.weblogic.security.identity_1.2.0.0.jar:1.2.0.0]
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)[com.bea.core.weblogic.security.wls_1.0.0.0_6-2-0-0.jar:6.2.0.0]
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)[weblogic.jar:10.3.6.0]
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)[weblogic.jar:10.3.6.0]
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)[weblogic.jar:10.3.6.0]
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)[com.bea.core.weblogic.workmanager_1.11.0.0.jar:1.11.0.0]
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)[com.bea.core.weblogic.workmanager_1.11.0.0.jar:1.11.0.0]
We are using "ActionMapping" to call the action method in our controller from the JSP form.
Have anyone faced this error before?
Any help would be much appreciated.
Thanks,
LanHi Lan,
Did you get any resolution for the above issue ?
If yes can you share it as we also ran into this.
Regards
Manu -
Hi again,
I'm on my enterprise management console and Database Instance and Listener shows the green arrow, but the Agent Connection to Instance shows a red downward arrow and the error:
Status: Failed
Details: ORA-12518: TNS:listener could not hand off client connection (DBD ERROR: OCIServerAttach)
My OraClrAgnt service is up and running (using winxp pro, oracle 11gR2), I'm on my home pc, all my ports are open (my machine's name is "abigail" and it is dmzhost)
Any suggestions to resolve this error?
My Tnsnames ora:
ABIGAIL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ABIGAIL)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = orcl.0.0.10)
LISTENER_ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ABIGAIL)(PORT = 1521))
(CONNECT_DATA =
(SID = ORCL)
RMAN =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ABIGAIL)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = rman.abigail)
My listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = E:\app\abigail\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:E:\app\abigail\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = ABIGAIL)(PORT = 1521))
ADR_BASE_LISTENER = E:\app\abigail
My SQLNET.ORA
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (EZCONNECT, TNSNAMES, LOCALHOST)
NAMES.TRACE_LEVEL = ADMIN
My alert file
<msg time='2013-10-10T20:47:02.687-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='ABIGAIL'
host_addr='::1'>
<txt>10-OCT-2013 20:47:01 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=SYSTEM))(SERVICE_NAME=orcl.0.0.10)) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=38289)) * establish * orcl.0.0.10 * 12518
</txt>
</msg>
<msg time='2013-10-10T20:47:02.687-04:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='ABIGAIL'
host_addr='::1'>
<txt>TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
</txt>
</msg>
My listener status and services
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 10-OCT-2013 22:47:58
Uptime 0 days 0 hr. 2 min. 1 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File E:\app\abigail\product\11.2.0\dbhome_1\network\admin\l
istener.ora
Listener Log File e:\app\abigail\diag\tnslsnr\ABIGAIL\listener\ale
rt\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ABIGAIL)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl.0.0.10" has 1 instance(s).
Instance "orcl", status READY, has 8 handler(s) for this service...
The command completed successfully
LSNRCTL> services
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "orcl.0.0.10" has 1 instance(s).
Instance "orcl", status READY, has 8 handler(s) for this service...
Handler(s):
"D006" established:0 refused:0 current:0 max:800 state:ready
DISPATCHER <machine: ABIGAIL, pid: 1312>
(ADDRESS=(PROTOCOL=tcps)(HOST=ABIGAIL)(PORT=1060))
"D005" established:0 refused:12 current:0 max:800 state:ready
DISPATCHER <machine: ABIGAIL, pid: 1288>
(ADDRESS=(PROTOCOL=tcps)(HOST=ABIGAIL)(PORT=1061))
"D004" established:0 refused:1 current:1 max:16383 state:ready
DISPATCHER <machine: ABIGAIL, pid: 1260>
(ADDRESS=(PROTOCOL=tcp)(HOST=ABIGAIL)(PORT=1063))
"D003" established:0 refused:1 current:1 max:16383 state:ready
DISPATCHER <machine: ABIGAIL, pid: 1140>
(ADDRESS=(PROTOCOL=tcp)(HOST=ABIGAIL)(PORT=1062))
"D002" established:0 refused:1 current:1 max:16383 state:ready
DISPATCHER <machine: ABIGAIL, pid: 140>
(ADDRESS=(PROTOCOL=tcp)(HOST=ABIGAIL)(PORT=1059))
"D001" established:0 refused:1 current:1 max:16383 state:ready
DISPATCHER <machine: ABIGAIL, pid: 1072>
(ADDRESS=(PROTOCOL=tcp)(HOST=ABIGAIL)(PORT=1057))
"D000" established:0 refused:1 current:1 max:16383 state:ready
DISPATCHER <machine: ABIGAIL, pid: 748>
(ADDRESS=(PROTOCOL=tcp)(HOST=ABIGAIL)(PORT=1058))
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfullyI added this on my listener.ora
DIRECT_HANDOFF_TTC_LISTENER=OFF
Works now!
Moral of the story, google is ur friend lol. Thanks for the reply tho! -
TNS:listener could not hand off client connection
while trying to select from dblink I got ORA-12518: TNS:listener could not hand off client connection
What should I do?
here is the listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_2)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = disater)(PORT = 1521))
)What is the operating system and database version for remote and local machines.
Are you using dedicated or threaded server on the remoted DB. More information is needed.
output from error message search:-
12518, 00000, "TNS:listener could not hand off client connection"
// *Cause: The process of handing off a client connection to another process
// failed.
// *Action: Turn on listener tracing and re-execute the operation. Verify
// that the listener and database instance are properly configured for
// direct handoff. If problem persists, call Oracle Support.
// *Comment: The problem can be worked around by configuring dispatcher(s)
// to specifically handle the desired presentation(s), and connecting
// directly to the dispatcher, bypassing the listener. -
TNS-12518: TNS:listener could not hand off client connection, XE 10g/WinXP
I've installed Oracle XE 10 on Windows XP. When I browse to the database homepage, I get this in listener.log:
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
08-FEB-2012 01:07:24 * service_register * xe * 0
08-FEB-2012 01:07:24 * http * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1702)) * handoff * http * 12518
TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
I don't think it is shortage of resources (just rebooted). I put "DIRECT_HANDOFF_TTC_LISTENER=OFF" in listener.ora .. no luck. I removed the listener.ora file altogether ... ditto.
What else could cause this?
SteveI can connect from SQLPlus. Laptop has 3 GB RAM.
===== set =====
C:\Documents and Settings\shawes>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\shawes\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=shawes-us
ComSpec=C:\WINDOWS\system32\cmd.exe
DEFLOGDIR=C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\shawes
JDEV_USER_DIR=D:\JDeveloper\mywork
LOGONSERVER=\\shawes-us
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\
ThinkPad\ConnectUtilities;C:\Program Files\TortoiseSVN\bin;C:\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 37 Stepping 2, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2502
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\shawes\LOCALS~1\Temp
TMP=C:\DOCUME~1\shawes\LOCALS~1\Temp
TPCCommon=C:\PROGRA~1\THINKV~1\PrdCtr
TSMPATH=C:\Program Files\ThinkPad\UltraNav Utility
USERDOMAIN=shawes-us
USERNAME=shawes
USERPROFILE=C:\Documents and Settings\shawes
VSEDEFLOGDIR=C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection
windir=C:\WINDOWS
===== lsnrctl stat =====
C:\Documents and Settings\shawes>lsnrctl stat
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 08-FEB-2012 23:55:53
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Start Date 08-FEB-2012 19:32:02
Uptime 0 days 4 hr. 23 min. 53 sec
Trace Level user
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
Listener Trace File C:\oraclexe\app\oracle\product\10.2.0\server\network\trace\listener.trc
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=SHAWES-US.us.oracle.com)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
The command completed successfully -
I am attempting to automate the "Save As" or export funtion of a webi doc but the documentation that states:
ReportEngine repEngine = (ReportEngine)EnterpriseSession.getService("ReportEngine");
Fails with:
com.crystaldecisions.sdk.exception.SDKException$ServiceNotFound: The service ReportEngine could not be found
When I run:
enterpriseSession.getServiceNames("CMSName", 0);
There is now "ReportEngine" listed.
Can anyone help????? This is not JSP but a command line app that simple need to open a doc, then to getView() to get the binary version of the Webi doc in PDF and simply save to disk via some java method.
I can get the doc, query reports, schedule reports, etc.. Just not export the report to disk.
Can anyone help???These are the only things that show up when I call:
EnterpriseSession().getServiceNames("sales-demo", 0);
Batch
Diagnostics
InfoStore
Logon
NameService
OCAAdministrator
Pinger
PluginDistribution
Session
APSAdmin
AuditAdmin
ISGeneralAdmin
SSOAdmin
This is the whole error:
Exception in thread "main" java.lang.NoClassDefFoundError: com/businessobjects/wp/dbg/DBGTraceable
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.businessobjects.rebean.wi.occa.WebiReportEngine.<init>(WebiReportEngine.java:66)
at com.businessobjects.rebean.wi.occa.WebiReportEngineFactory.makeOCCA(WebiReportEngineFactory.java:64)
at com.crystaldecisions.sdk.framework.internal.a.getService(Unknown Source)
at com.crystaldecisions.sdk.framework.internal.a.getService(Unknown Source)
at com.tidalsoft.adaptors.buisnessobjects.EnterpriseSession.getReportEngine(EnterpriseSession.java:72)
at com.tidalsoft.adaptors.buisnessobjects.BO.main(BO.java:28) -
Could not retrieve the in-memory service URL after starting the in-memory.
A local jvm process is discovered but mission control will not connect.
Both jvm process and mission control are on the same host.
Any suggestion?
Thanks.
This is the mission control help version:
Oracle® JRockit Mission Control 3.1.0 (R27.6.3-40_o, 112101)
I'm running mission control and a jboss web server on jrockit:
$ java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
BEA JRockit(R) (build R27.6.3-40_o-112056-1.6.0_11-20090318-2103-linux-x86_64, compiled mode)
On linux:
$ uname -a
Linux isidore 2.6.27-11-generic #1 SMP Wed Apr 1 20:53:41 UTC 2009 x86_64 GNU/Linux
This is the message that appears in the controlling tty window:
Apr 24, 2009 9:55:43 PM com.jrockit.mc.browser.attach.LocalConnectionDescriptor tryJRCMDStyleStartingOfTheAgent
SEVERE: Could not retrieve the in-memory service URL after starting the in-memory agent!
Apr 24, 2009 9:55:43 PM com.jrockit.mc.browser.attach.LocalConnectionDescriptor tryJRCMDStyleStartingOfTheAgent
Here is the exception in the dialog details:
Could not open Management Console for [1.6] JBoss (5,474).
java.lang.NullPointerException: null
java.lang.NullPointerException
at com.jrockit.mc.rjmx.ConnectionDescriptorToolkit.getHostName(ConnectionDescriptorToolkit.java:152)
at com.jrockit.mc.rjmx.internal.RJMXConnection.setupServer(RJMXConnection.java:521)
at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:144)
at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.establishConnection(RJMXConnectorModel.java:111)
at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.connect(RJMXConnectorModel.java:154)
at com.jrockit.mc.rjmx.ConnectionManager.innerConnect(ConnectionManager.java:95)
at com.jrockit.mc.rjmx.ConnectionManager.connect(ConnectionManager.java:61)
at com.jrockit.mc.console.ui.actions.StartConsole$1.preConnect(StartConsole.java:38)
at com.jrockit.mc.browser.utils.PreConnectJob.run(PreConnectJob.java:74)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)After I posed the above, I saw that the url on the exception is munged.
I didn't stumble over how to manually override that url.
Instead, I added remote jmx capability to the process and added a connector. That is my work around.
Thanks,
John -
Could not find a client that is able to lunch the selection
Hi
I am new in j2ee. I am using eclipse 3.1 with tomcat 5.0.28 and jboss 3.2.3. I am trying to do application with bmp_ejb. I think my problem is in deploying. My ejb has got a entitybean(ViewVivendasBean) and two interfaces (ViewViviendasLocal and ViewViviendasHome). To deploy I have changed some files.
In tomcat the file web.xml, I have appended this:
<resource-ref>
<description> Tabla de conexiones para aae
</description>
<res-ref-name>
jdbc/XXXX
</res-ref-name>
<res-type>
javax.sql.Datasource
</res-type>
<res-auth>
Container
</res-auth>
</resource-ref>In the file server.xml, I've appended
<Context>
<Resource name = "jdbc/XXXX" auth = "Container"
type = "javax.sql.DataSource"/>
<ResourceParams name = "jdbc/XXXX">
<parameter>
<name>username</name>
<value>USER</value>
</parameter>>
<parameter>
<name>password</name>
<value>11111</value>
</parameter>
<parameter>
<name>driverClassPath</name>
<value>com.microsoft.jdbc.sqlserver.SQLServerDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:microsoft:sqlserver://yyyy.com:1433/web</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>20</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>5</value>
</parameter>
</ResourceParams>
</Context>In the file ejb-jar.xml, I've appended
<ejb-jar>
<description>Implementa ViewViviendas</description>
<display-name>ViewViviendasEJB </display-name>
<enterprise-beans>
<entity>
<description>Version 0.1</description>
<display-name></display-name>
<ejb-name>ViewViviendasBean</ejb-name>
<home>ejb.ViewViviendasHome</home>
<remote>ejb.ViewViviendasLocal</remote>
<ejb-class>ejb.ViewViviendasBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejbname>ViewViviendasBean</ejb-name>
<method-name>"*"</method-name></method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>After I create a file in format html "index.html" to test. And gime this error "Could not find a client that is able to lunch the selection"
Perhaps , Do I have got to deploy also this file index.html?.
Any Idea?
thanks in advancedHi
A question. The deploy is right?
thank you -
ITS could not connect to the Web Application Server or the R/3 System
ITS 6.20 on a single host on a WinXP test machine, connecting to R3 4.6C.
The webgui <u>was</u> working, but a test application created in the WebStudio would not work.
Now it's the other way around, the test application works fine, but the webgui fails with a "The ITS could not connect to the Web Application Server or the R/3 System."
I have not managed to get ../scripts/wgate/admin/! to work either.
Is it possible to have both the webgui and WebStudio created applications, working on the same ITS installation?
If yes, any ideas how?
Many thanks
TimHi Tim,
You have to check the connection data in the relevant service file e.g.
~systemname
~messageserver
~logingroup
~appserver
~systemnumber
~routestring
~connectstring
If the Agate doesn't run you would see an ITS 500 error in the browser.
Thanks and regards,
Dieter
Maybe you are looking for
-
Applcation scanning using SQL developer3.0
How to do application scanning in SQL Developer for sybase ctlib and dblib applications? A reply with a step by step walk through will be helpful ..
-
Calling rmi running in Weblogic 6.x from Jboss 4.0.5GA
Hi all, Recently i have a project that needs me to call a remote ejb which is running in Weblogic 6.x. It is using Weblogic's proprietary protocol known as "t3". If i include weblogic.jar (i believe this version of weblogic doesn't deliver its client
-
Adding deselected music on i-tunes en masse as i have just upgraded to 160g
I have just upgraded from an 80gb to a 160gb ipod. On my itunes i have 106gb of music - in order to get music onto my 80gb ipod I "unticked" songs - now that I have a 160gb i want to add the 26gb onto this - how best do i do this all at once as oppos
-
Video (mp4) Doesn't Show-up After Published
Hi Video (in MP4) plays well before published. BUT, after Publishing, the VIDEO Clip disappeared, BUT audio is still playing. What happened? Note: mp4 is reference in my Excel file, and saved in users\...\Videos\xxx.mp4 folder PK Hong
-
Macmini has no problem but both MB Pro and MB Air don't see iPhoto from media selection icon. User is told to go to iPhoto. All three machines have and use both iPhoto and Aperture.