Http status code: 500 when testing Request Response API
Hi,
I published a web service and used the test function in the dashboard for a trial. But it returned HTTP 500.
The request url is:
https://ussouthcentral.services.azureml.net/workspaces/a5a6b2af17e749a29ae820df3ea5bdf2/services/ecfa1355485e4ed6a9767be2842452fb/execute?api-version=2.0&details=true
In particular, I tried removing the quantile binning, then it worked. But with quantile binning, I keep getting errors.
Any suggestions?
Hmm, not quite - if it is truly the training set, you do not need it in the web service right?
In fact, an RRS endpoint will expect an input set, so do you need the Reader module? If you use the Web Service Input module, it will bypass the Reader with the provided input data for scoring time.
You are using Quantize Data correct? This module outputs two things: the transformed data and the
transformation function itself. You need to Right Click -> Save as Transform, and use THIS in your scoring experiment + Apply Transformation.
If you do this, the transformation does not need to be recomputed. If you leave Quantize Data in your graph, then your function will indeed be recomputed.
Regards,
AK
Similar Messages
-
Error code: InternalError, Http status code: 500 while testing an experiment
Creating a very simple experiment with just a Dataset, followed by a simple regresion using an Execute
R Task , I get an internal server error while testing the published experiment
Hitting run everything goes smooth and I can see all data,but when i hit 'test' from the web services dashboard
right after publishing,I get this:
Error code: InternalError, Http status code: 500, Request id: d87e2d01-16ef-4ac9-8a5d-a58d41aab2d4, Timestamp: Tue,
03 Mar 2015 12:19:55 GMT
How can I handle this ?
Thank you in advance.Hi Shreyas!
Are you familiar with the tryCatch() function in R? in your error condition, you can return the error message a bit more cleanly as shown in the following code snippet. FYI one common error we see is R scripts that are not able to handle a single-row input
or with mismatched data types.
tryCatch({
# Do what you want in here
maml.mapOutputPort("data.set");
}, error = function(e) {
data.set = data.frame(errormsg = conditionMessage(e))
print(conditionMessage(e));
maml.mapOutputPort("data.set"); -
Hi,
i'm working on enhancing a service to be able to use OAUTH2 as authentication protocol with client credential grant flow when talking to exchange online ( like described here:
http://blogs.msdn.com/b/exchangedev/archive/2015/01/22/building-demon-or-service-apps-with-office-365-mail-calendar-and-contacts-apis-oauth2-client-credential-flow.aspx ). I gave my application the rights
Office 365 Exchange Online : Application Permissions: "Have full access via EWS to all mailboxes ....."
Windows Azure Active AD: Application Permissions: "Read Directory data", Delegate Permissions: "Enable sign-on and read users_ profiles"
I receive a access token from log.windows.net:
decoded token:
typ: "JWT",
alg: "RS256",
x5t: "MnC_VZcATfM5pOYiJHMba9goEKY"
aud: "https://outlook.office365.com/",
iss: "https://sts.windows.net/<TENANT_ID>/",
iat: 1426584502,
nbf: 1426584502,
exp: 1426588402,
ver: "1.0",
tid: "<TENANT_ID>",
roles: [
"full_access_as_app"
oid: "1ddbdc11-b80d-4d1d-91b9-5b07a6b82659",
sub: "1ddbdc11-b80d-4d1d-91b9-5b07a6b82659",
idp: "https://sts.windows.net/TENANT_ID/",
appid: "<APP_ID_IN_AZURE_AD>",
appidacr: "2"
<SIGNATURE>
If i use that token then to send a EWS XML to exchange online i get a 500 HTTP status code back:
With impersonation in the request:
[http.wire ]: >> "POST /EWS/Exchange.asmx HTTP/1.1[\r][\n]"
[http.wire ]: >> "Authorization: Bearer <MY_ACCESS_TOKEN>[\r][\n]"
[http.wire ]: >> "SoapAction: "http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder"[\r][\n]"
[http.wire ]: >> "Content-Type: text/xml; charset=utf-8[\r][\n]"
[http.wire ]: >> "User-Agent: OpenScapeUC EWS HttpClient/3.0[\r][\n]"
[http.wire ]: >> "client-request-id: 5b2c7e1a-656d-4f43-bd34-ea2d6290611f[\r][\n]"
[http.wire ]: >> "Date: Tue, 17 Mar 2015 10:08:17 GMT[\r][\n]"
[http.wire ]: >> "Content-Length: 1189[\r][\n]"
[http.wire ]: >> "Host: outlook.office365.com[\r][\n]"
[http.wire ]: >> "Connection: Keep-Alive[\r][\n]"
[http.wire ]: >> "[\r][\n]"
[http.wire ]: >> "<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Header><ns2:ExchangeImpersonation xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages"><ns2:ConnectingSID><ns2:PrimarySmtpAddress><THE_MAILBOX_I_WANT_TO_ACCESS></ns2:PrimarySmtpAddress></ns2:ConnectingSID></ns2:ExchangeImpersonation><ns2:RequestServerVersion
xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages" Version="Exchange2007_SP1"/></S:Header><S:Body><ns3:GetFolder xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages"><ns3:FolderShape><ns2:BaseShape>IdOnly</ns2:BaseShape><ns2:AdditionalProperties><ns2:FieldURI FieldURI="folder:FolderId"/></ns2:AdditionalProperties></ns3:FolderShape><ns3:FolderIds><ns2:DistinguishedFolderId
Id="contacts"><ns2:Mailbox><ns2:EmailAddress><THE_MAILBOX_I_WANT_TO_ACCESS></ns2:EmailAddress></ns2:Mailbox></ns2:DistinguishedFolderId></ns3:FolderIds></ns3:GetFolder></S:Body></S:Envelope>"
[http.wire ]: << "HTTP/1.1 500 Internal Server Error[\r][\n]"
[http.wire ]: << "Cache-Control: private[\r][\n]"
[http.wire ]: << "Content-Type: text/xml; charset=utf-8[\r][\n]"
[http.wire ]: << "Server: Microsoft-IIS/8.0[\r][\n]"
[http.wire ]: << "request-id: ec42b5c5-f8dc-498d-ae16-d851a852058c[\r][\n]"
[http.wire ]: << "Set-Cookie: ClientId=<DELETED>; expires=Wed, 16-Mar-2016 10:08:17 GMT; path=/; secure; HttpOnly[\r][\n]"
[http.wire ]: << "X-CalculatedBETarget: am2pr02mb0387.eurprd02.prod.outlook.com[\r][\n]"
[http.wire ]: << "X-DiagInfo: AM2PR02MB0387[\r][\n]"
[http.wire ]: << "X-BEServer: AM2PR02MB0387[\r][\n]"
[http.wire ]: << "X-AspNet-Version: 4.0.30319[\r][\n]"
[http.wire ]: << "Set-Cookie: exchangecookie=<DELETED>; expires=Thu, 17-Mar-2016 10:08:17 GMT; path=/; HttpOnly[\r][\n]"
[http.wire ]: << "Set-Cookie: [email protected]=<DELETED>; expires=Thu, 16-Apr-2015 10:08:18 GMT; path=/EWS; secure; HttpOnly[\r][\n]"
[http.wire ]: << "Set-Cookie: [email protected]=<DELETED>; expires=Thu, 16-Apr-2015 10:08:18 GMT; path=/EWS; secure; HttpOnly[\r][\n]"
[http.wire ]: << "X-Powered-By: ASP.NET[\r][\n]"
[http.wire ]: << "X-FEServer: DB5PR01CA0064[\r][\n]"
[http.wire ]: << "Date: Tue, 17 Mar 2015 10:08:17 GMT[\r][\n]"
[http.wire ]: << "Content-Length: 891[\r][\n]"
[http.wire ]: << "Accept-Ranges: none[\r][\n]"
[http.wire ]: << "Connection: keep-alive[\r][\n]"
[http.wire ]: << "[\r][\n]"
Without impersonation in the request:
Request
[http.wire ]: >> "POST /EWS/Exchange.asmx HTTP/1.1[\r][\n]"
[http.wire ]: >> "Authorization: Bearer <MY_ACCESS_TOKEN>[\r][\n]"
[http.wire ]: >> "SoapAction: "http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder"[\r][\n]"
[http.wire ]: >> "Content-Type: text/xml; charset=utf-8[\r][\n]"
[http.wire ]: >> "User-Agent: OpenScapeUC EWS HttpClient/3.0[\r][\n]"
[http.wire ]: >> "client-request-id: 20bd722f-8276-4ebb-8d58-ce45d31f3ed4[\r][\n]"
[http.wire ]: >> "Date: Tue, 17 Mar 2015 09:33:24 GMT[\r][\n]"
[http.wire ]: >> "Content-Length: 871[\r][\n]"
[http.wire ]: >> "Host: outlook.office365.com[\r][\n]"
[http.wire ]: >> "Connection: Keep-Alive[\r][\n]"
[http.wire ]: >> "[\r][\n]"
[http.wire ]: >> "<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Header><ns2:RequestServerVersion xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages" Version="Exchange2007_SP1"/></S:Header><S:Body><ns3:GetFolder xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages"><ns3:FolderShape><ns2:BaseShape>IdOnly</ns2:BaseShape><ns2:AdditionalProperties><ns2:FieldURI
FieldURI="folder:FolderId"/></ns2:AdditionalProperties></ns3:FolderShape><ns3:FolderIds><ns2:DistinguishedFolderId Id="contacts"><ns2:Mailbox><ns2:EmailAddress><THE_MAILBOX_I_WANT_TO_ACCESS></ns2:EmailAddress></ns2:Mailbox></ns2:DistinguishedFolderId></ns3:FolderIds></ns3:GetFolder></S:Body></S:Envelope>"
Response:
[http.wire ]: << "HTTP/1.1 500 Internal Server Error[\r][\n]"
[http.wire ]: << "Cache-Control: private[\r][\n]"
[http.wire ]: << "Content-Type: text/xml; charset=utf-8[\r][\n]"
[http.wire ]: << "Server: Microsoft-IIS/8.0[\r][\n]"
[http.wire ]: << "request-id: 923ba463-490f-4ac9-a496-993cd8a44115[\r][\n]"
[http.wire ]: << "Set-Cookie: ClientId=<DELETED>; expires=Wed, 16-Mar-2016 09:33:24 GMT; path=/; secure; HttpOnly[\r][\n]"
[http.wire ]: << "X-CalculatedBETarget: am2pr02mb0387.eurprd02.prod.outlook.com[\r][\n]"
[http.wire ]: << "X-DiagInfo: AM2PR02MB0387[\r][\n]"
[http.wire ]: << "X-BEServer: AM2PR02MB0387[\r][\n]"
[http.wire ]: << "X-AspNet-Version: 4.0.30319[\r][\n]"
[http.wire ]: << "Set-Cookie: exchangecookie=<DELETED>; expires=Thu, 17-Mar-2016 09:33:25 GMT; path=/; HttpOnly[\r][\n]"
[http.wire ]: << "Set-Cookie: [email protected]=<DELETED>; expires=Thu, 16-Apr-2015 09:33:25 GMT; path=/EWS; secure; HttpOnly[\r][\n]"
[http.wire ]: << "Set-Cookie: [email protected]=<DELETED>; expires=Thu, 16-Apr-2015 09:33:25 GMT; path=/EWS; secure; HttpOnly[\r][\n]"
[http.wire ]: << "X-Powered-By: ASP.NET[\r][\n]"
[http.wire ]: << "X-FEServer: AM3PR07CA0038[\r][\n]"
[http.wire ]: << "Date: Tue, 17 Mar 2015 09:33:24 GMT[\r][\n]"
[http.wire ]: << "Content-Length: 799[\r][\n]"
[http.wire ]: << "Accept-Ranges: none[\r][\n]"
[http.wire ]: << "Connection: keep-alive[\r][\n]"
If i use BASIC authentication and impersonation the request is successfully.
Has anyone an idea why i might get the error 500 in that scenario?For EWS to work with App Token, you need to do two more things. One you already did: Set the impersonation header. Two is to set the X-AnchorMailbox http request header to the smtp address of the mailbox you want to access. This routes the request instantly
to the right backend.
Hope this helps.
Thank you! Matthias -
Further invastigating ther error mentioned here:
https://social.msdn.microsoft.com/Forums/azure/en-US/14afa50f-287d-4158-852a-c9532f9f30eb/test-published-web-service-experiment-error-with-status-code-400?forum=MachineLearning
I have made an even simpler experiment with two python scirpt modules. The experiment again runs fine in Azure ML Studio but fails in the web service test with the error
Error code: InternalError, Http status code: 500, Request id: 53eef674-190a-4f63-bdc6-a072a45a9c72, Timestamp: Fri, 24 Apr 2015 09:30:37 GMT
The experiment consists only of two python script modules. The code of the first module:
import numpy as np
import pandas as pd
def azureml_main(dataframe1 = None, dataframe2 = None):
dataframe1.loc[1] = ["U5000","resB",np.nan]
dataframe1.loc[2] = ["U5000","resC",2]
dataframe1.loc[3] = ["U5000","resD",2]
dataframe1.loc[4] = ["U5000","resE",np.nan]
dataframe1.loc[5] = ["U6000","resA",np.nan]
dataframe1.loc[6] = ["U6000","resB",1]
dataframe1.loc[7] = ["U6000","resC",2]
dataframe1.loc[8] = ["U6000","resD",np.nan]
dataframe1.loc[9] = ["U6000","resE",1]
dataframe1['hasRated'] = pd.Series(1, index=dataframe1.index).astype(bool)
df_new = pd.DataFrame()
df_new = pd.DataFrame(dataframe1[["restaurant","rating","hasRated"]])
return df_new,
The code of the second module that takes as input the result of the first module:
def azureml_main(dataframe1 = None, dataframe2 = None):
return dataframe1,
A url of a screenshot taken from the experiment.
http://i.imgur.com/4nrbneA.png
Please respond. Again I am using a free workspace of Azure ML Studio.
Thank you very muchThank you for your quick reply.
I hope you will be able to resolve this issue soon.
asavvopoulos -
ADF Mobile: HTTP Status Code 500 Internal Server Error
Hi,
I wrote a SOAP web service and deployed it to my standalone ADF Server. I tested it with the HTTP Analyzer, works great. I used it in a Web Service Data Control in normal ADF Web - works perfect. It returns a table of data as programmed. However, ADF Mobile gives me errors: "Http Status Code 500 Internal Server Error: The server encountered an unexpected condition which prevented it from fulfilling the request".
I developed an ADF Mobile interface with an amx page. I created the same Web Service Data Control and created a List View based on the data control. The error pops up every single time, both on iOS simulator and Android Simulator.
I know the simulators have network access to the web services - because i can open the web service test page and WSDL from both simulator's internet browsers.
I know the web services are running - because my ADF Web application can access it.
Any ideas?
Thank you!
-GavinThanks for the reply. There were no errors in my WLS server. However, I will add some statements to my web service to write to the log file. That way i can see if or at what point is the web service is being accessed by the mobile app.
Thanks,
Gavin -
HTTP Status Code 500 Internal server error while passing complex object
Hi
When I am passing values through complex input parameter, I am getting "*HTTP Status Code 500 Internal server error: The server encountered an unexpected condition which prevented it from fulfilling the request*". Why I am getting this error? Any idea
Regards
RajRaj,
Can you elaborate on what exactly are you trying to do? Are you saying that same use case works when you pass simple parameters?
JC -
Lync 2013 Logon Failing (HTTP status code 500) No valid security token
Hello there,
I'm in the process of deploying Lync 2013. I have the pool deployed and everything is at least running. I can access the control panel and provision users. However when I try to logon to the Lync Client I get a DNS error. The DNS
error appears to be misleading and is a result of the earlier auto-detection methods failing.
However using the Lync Connectivity Analyzer I get a "No valid security token." error. This doesnt matter if I use auto-detection or manual pointing the Connectivity Analyzer to the pool servers.
[3/2/2015 9:34:15 AM] [ERROR] Reason: Internal server error (HTTP status code 500)
[3/2/2015 9:34:15 AM] [ERROR] Ms-Diagnostics-Fault ErrorId: 28020, Reason: No valid security token.
[3/2/2015 9:34:15 AM] [CRITICAL] The credentials were not authorized by the server. Please verify your login credentials and try again.
[3/2/2015 9:34:15 AM] [DEBUG] System.Exception: Exception of type 'System.Exception' was thrown.
at Microsoft.LyncServer.WebServices.WebTicketManager.WTExceptions(String exText)
at Microsoft.LyncServer.WebServices.WebTicketManager.<AcquireTicketAsync>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.LyncServer.WebServices.WebTicketManager.<AcquireOpaqueTicketAsync>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<AuthenticationRequired>d__2a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<SendRequest>d__d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<TryNextUrl>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<ParseResponse>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<TryNextUrl>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<StartDiscoveryJourney>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at LyncConnectivityAnalyzerCore.Utilities.<RetrieveUserLocation>d__3e.MoveNext()
Im a bit stumped where to go next.
Thanks.Manually entering the server also fails and does not provide much to help "We're having trouble connecting to the server. If this continues, please contact your support team."
I found that each time I try to logon it generates a Schannel Error on the server. "A fatal alert was generated and sent to the remote endpoint. This may result in termination of the connection. The TLS protocol defined fatal error code is 51.
The Windows SChannel error state is 1106."
There seems to be a lot more information on that than the previous "Internal Error" message I was trying to deal with.
https://social.technet.microsoft.com/Forums/office/en-US/41718327-203f-445f-8657-87b0a8545ead/lync-2013-client-signin-issue-with-lync-2013-server?forum=lyncprofile
Actually I just found the Lync Server Front-End is stuck "starting" so that would explain why I cannot login. However I re-issued my certificate to make sure the primary CN matched "lync.domain.tld" and it still wont start.
https://expertslab.wordpress.com/2014/04/23/lync-server-2013-front-end-service-stuck-on-starting/
I think my problem is the certificate. I have been trying to use selfSSL7 to generate the certificate for testing but it does not support creating SAN entries so I have entered all the FQDNs as CN entries.
Im going to get another method to generate the self-signed certificate for testing. -
Proxy error - HTTP status code 500
Hi,
Scenario: Asynchronous Proxy (R/3 4.7) to 3rd Party (JDBC)
We applied patches to JAVA on the XI side to fix a bug, the process worked before the patches. I am now getting an error on R/3 i.e. the data is not reaching XI.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--
Call Integration Server
-->
- <SAP:ErrorHeader xmlns:SAP="http://sap.com/exchange/MessageFormat">
<SAP:Context />
<SAP:Code p1="500" p2="Error during conversion of XI message" p3="" p4="">HTTP.HTTP_STATUS_CODE_NEQ_OK</SAP:Code>
<SAP:Text language="EN">HTTP status code 500 : Error during conversion of XI message</SAP:Text>
</SAP:ErrorHeader>
Any ideas. Thanks,
LeanneHi,
SAP requested we implement patches, this sorted out the proxy issue. The message now arrives in XI.
I have now encountered another problem, this process was working prior to the patches being implemented. I noticed that the communication channels now look different, any ideas?
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Inbound Message
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: JDBC Adapter configuration not initialized: null</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Thanks,
Leanne -
HTTP error code 500 when acessing webservice
Hi Guys,
We are trying to access a webservice through HTTPS. It's a document-oriented webservice implemented using weblogic. Both WSDL and service are accessible from the browser.
Can somebody please, invest sometime on this? We would be grateful for all the effort you spend on this.
Exception on client-side:
java.io.IOException: Server returned HTTP response code: 500 for URL: https://avisheko:7002/handler_log/EchoString?WSDL
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unkn
own Source)
at examples.webservices.ssl2way.SSLCFASAAJclient.main(SSLCFASAAJclient.j
ava:151)
We get some strange information on the server side:
Got a Web Service Request at URL: '/handler_log/EchoString' for web service 'null'
Got a Web Service Request at URL: '/EchoString' for web service 'LogHandler'
Client-code:
KeyStore ks = KeyStore.getInstance(KEYSTORE_TYPE);
ks.load(new FileInputStream("E:/test/keytool/2/cfakeystore"), "cfakeystorepass".toCharArray());
KeyStore ts = KeyStore.getInstance(KEYSTORE_TYPE);
ts.load(new FileInputStream("E:/test/keytool/2/cfatruststore"), "cfatruststorepass".toCharArray());
KeyManagerFactory kmf = KeyManagerFactory.getInstance(SECURE_ALGORITHM);
kmf.init(ks, "cfakeystorepass".toCharArray());
KeyManager[] km = kmf.getKeyManagers();
TrustManagerFactory tmf = TrustManagerFactory.getInstance(SECURE_ALGORITHM);
tmf.init(ts);
TrustManager[] tm = tmf.getTrustManagers();
SSLContext sslCtx = SSLContext.getInstance(SECURE_PROTOCOL);
sslCtx.init(km, tm, null);
System.setProperty("weblogic.webservice.verbose", "true");
URL endpoint= new URL("https://avisheko:7002/handler_log/EchoString?WSDL");
javax.net.ssl.HttpsURLConnection con = (javax.net.ssl.HttpsURLConnection)endpoint.openConnection();
con.setSSLSocketFactory(sslCtx.getSocketFactory());
com.sun.net.ssl.HostnameVerifier hv=new com.sun.net.ssl.HostnameVerifier()
public boolean verify(String urlHostname, String certHostname)
System.out.println("WARNING: Hostname is not matched for cert.");
return true;
com.sun.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier(hv);
con.setDoOutput(true);
con.setDoInput(true);
con.setRequestMethod("POST");
con.setRequestProperty("Connection", "Keep-Alive");
con.setRequestProperty("Content-Type", "text/xml;charset=utf-8");
con.setRequestProperty("SOAPAction", "");
File f1 = new File("Soap6.xml");
BufferedReader inFile = new BufferedReader(new InputStreamReader(new FileInputStream(f1)));
StringBuffer sb = new StringBuffer();
String temp = null;
while((temp = inFile.readLine()) != null && !(temp.startsWith("0000")))
sb.append(temp);
PrintWriter out = new PrintWriter(con.getOutputStream());
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
out.write(sb.toString());
out.flush();
String answer = in.readLine();
System.out.println(answer);
out.close();
in.close();
WSDL:
<?xml version="1.0" encoding="UTF-8" ?>
<definitions xmlns:tns="http://www.wisor.com/loguser" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.wisor.com/loguser">
<types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stns="http://www.wisor.com/loguser" elementFormDefault="unqualified" attributeFormDefault="unqualified" targetNamespace="http://www.wisor.com/loguser">
<xsd:element type="xsd:string" name="echoString" nillable="true" />
<xsd:element type="xsd:string" name="echoStringResponse" nillable="true" />
</xsd:schema>
</types>
<message name="echoString">
<part xmlns:partns="http://www.wisor.com/loguser" name="echoStringRequest" element="partns:echoString" />
</message>
<message name="echoStringResponse">
<part xmlns:partns="http://www.wisor.com/loguser" name="echoStringResult" element="partns:echoStringResponse" />
</message>
<portType name="LogHandlerPort">
<operation name="echoString">
<input message="tns:echoString" />
<output message="tns:echoStringResponse" />
</operation>
</portType>
<binding type="tns:LogHandlerPort" name="LogHandlerPort">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="echoString">
<soap:operation style="document" soapAction="" />
<wsr:reliability persistDuration="60000" />
<input>
<soap:body namespace="http://www.wisor.com/loguser" use="literal" />
</input>
<output>
<soap:body namespace="http://www.wisor.com/loguser" use="literal" />
</output>
</operation>
</binding>
<service name="LogHandler">
<port name="LogHandlerPort" binding="tns:LogHandlerPort">
<soap:address location="https://avisheko:7002/handler_log/EchoString" />
</port>
</service>
</definitions>Check for a problem with Windows update KB902400.
Once this update was uninstalled, ActiveSync now works. No
problems with it recognizing my firewall or virus protection
either.
HTH
"Hoggies_Oz2" <[email protected]> wrote in
message
news:g5a105$ifc$[email protected]..
> Hi,
>
> I'm a new user of Dreamweaver having been appointed
webmaster of a local
> club.
> Have been working my way through the
'dw_getting_started' manual (which is
> generally excellent - thanks). Have installed IIS, PHP
and MySQL on my XP
> PRO
> SP3 PC - all OK so far and installed exactly as per the
recommendations in
> the
> dw_getting_started manual. But when I try to do the test
database
> connection
> (page 136) I get HTTP Error 500 Internal Server Error.
When I examine the
> event viewer I can see the error which is Event ID: 1802
' The Windows
> Security
> Center Service was unable to establish event queries
with WMI to monitor
> third
> party AntiVirus and Firewall'. Have spent many hours
scouring the 'net as
> well
> as with McAfee. At one stage I completely uninstalled
McAfee using their
> clean
> out program but the error still occurred with McAfee
totally removed from
> my PC.
>
> Any help will be appreciated.
>
> Thanks, Hoggies_Oz2
> -
TREX Indexing: HTTP Status Code 500: Internal Server Error (6500)
Hi All,
when iam trying to index the documents from DMS repository getting errors.
6500 HTTP status internal server error.
8005 Time out reached.
Our DMS and Trex server both are in one Instance.
Could you please help me to resolve the issue.
Waiting for your response.........
Regards,
Shilpa.PLease check this posts
https://forums.sdn.sap.com/thread.jspa?threadID=130245
https://forums.sdn.sap.com/thread.jspa?threadID=1215092
Thanks,
Raj -
HTTP Status-Code=500 (Internal Server Error)
I have faced the issues with the Login transaction (HTTP 500 errors) when I ran the test with 100 users . Errors were occurring at the concurrency level of 35 Users of the application and the logins were failing continuously from the 35th user, I was able to reproduce the errors during the couple of tests we have run.
Hi Dan,
The problem is the connection. Check the URL parameters when you are receiving the SOAP message
Regards
Prasad -
hello friend,
I have developed a proxy to JDBC synchronous scenario.
My scenario works like this.
i run an abap program which calls a client proxy,
the proxy fetches the data from database table and returns the data in the ABAP program.
My program is working fine but there is a small problem.
when i run the report for the first time, it gives me an exception while calling proxy
HTTP_RESP_STATUS_CODE_NOT_OK HTTP response contains status code 500 with the description Timeout
and when i run the report for the second time with same variant it works fine.
i can see the exception mostly in the morning when i run the report for the first time
please help me to find the solution of this problem.
thanks
kannu.1. Increase the proctimeout in smicm as per note - 824554
2. Application threads in the J2EE engine might have got consumed in high load situations.
Increase the count of application threads in config tool at location Config Tool -> cluster-data ->
<configuration template> -> <instance-ID> -> managers -> ApplicationThreadManager ->
MaxThreadCount
3. Increase the parameter ServletInputStreamTimeout from 180000 to 1728000000.
Steps for setting this parameter:
a. If you have configured ICM to forward requests to the J2EE dispatcher then apply Note
1048692. If the problem is not resolved, then apply section b.
b. The request bytes are reaching the Engine too slowly
i. Start the configtool in <J2EE>/configtool directory
ii. Browse the tree in the left pane
cluster-data -> Global server configuration -> services -> http
iii. Press the ServletInputStreamTimeout key in the keylist on the right
iv. Change the value of the "Value" field at the bottom of the right pane to the
preferred one (in milliseconds).
-1 means there is no timeout - that is unless the full request comes into a single
chunk, an error will be thrown
180000 means the Engine would wait for 3 minutes for any byte to be entered in
the stream.
1728000000 means the Engine would wait for 20 days for any byte to be entered
in the stream
v. Press the "Set" button in the top-right corner
vi. Select from the menu File -> Apply and confirm all popups.
vii. Restart the Engine for changes to take effect -
Returns status code '500' (Internal Server Error) in response
Hi,
I got error like
HTTP connection to http://XXX.com:50600/sap/xi/cache?sap-client=001 returns status code '500' (Internal Server Error) in response
I did check this Discussion HTTP returns status is 500(Internal Server Error)
But I don't understand can someone help me in detail.
Thanks
KamalHi All,
When I check RFC destination configuration with following information.
RFC Destination as "INTEGRATION_DIRECTORY_HMI"
Connection Type: H
Under Technical Setting TAB
Target Host: write the host name
Path Prefix: /dir/CacheRefresh
Service No: enter J2ee port no (e.g. 50000)
Under Logon/Security TAB
select Basic Authontication radio button
SSL select inactive
Under Logon:
Lang: EN
Client: enter client
User: XIISUSER
Password: *******
Under Special Option TAB
HTTP Setting:
HTTP Ver: HTTP 1.0
Compression: inactive
Compressed response: NO
HTTP Cookies: Yes (All)
This is the test result.
Status HTTP response : 403
Status text : Forbidden
Duration test call : 163 ms
Please help me.
Thanks,
Kamal -
WLS 8.1 Apache Plug-in is changing HTTP status code 999 to 500
I'm seeing the weblogic server 8.1 sp4 apache plug-in change the HTTP status code of 999 (set by the application) to 500 Internal Server Error. I'm seeing this with Apache 2.0.48 on aix and with Apache 2.0.58 on windows. I've tried the plug-in from 8.1 SP2, SP4 and SP6 with all yielding the same result. I've tried the SSL plug-in too - same result. I'm told by the maker of this application that they are not seeing this issue with the plug-in for SunOne/NES. What does BEA say about the Apache plug-in changing the http status code? Why is it doing this? Why doesn't the SunOne/NES plug-in do it? Can you provide a plug-in that does not do this?
Try setting
Debug ALL
inside your IfModule. All proxy activity will be written to /tmp/wlproxy.log (on
unixes). If no info appears in the log, Apache is not invoking the plug-in properly.
HTH
"Lukas" <[email protected]> wrote:
>
I am trying to set up Apache 2.0.49 proxy plug-in for my WLS 8.1 cluster
(2 managed
servers). I followed instructions at http://edocs.bea.com/wls/docs81/plugins/apache.html.
My test web application runs on
192.168.10.142:5001/public/testwebapp
and
192.168.10.142:6001/public/testwebapp
I have tested my cluster using another instance on WLS and HttpClusterServlet
and it works fine.
I have added following section to my httpd.conf
LoadModule weblogic_module modules/mod_wl_20.so
<IfModule mod_weblogic.c>
WebLogicCluster 192.168.10.142:6001,192.168.10.142:5001
</IfModule>
<Location /public/testwebapp>
SetHandler weblogic-handler
PathTrim /public/testwebapp
ErrorPage http://myerrorpage1.mydomain.com
</Location>
I restarted my wls cluster and apache as well and when I specify http://192.168.10.142/public/testwebapp
(apache web server) I receive Error 404--Not Found (even thou I have
tested my
http://192.168.10.142:5001/public/testwebapp and http://192.168.10.142:6001/public/testwebapp
- they work correctly).
There is nothing in apache’s error_log file.
There is a record in access_log file reading:
192.168.10.126 - - [08/Jun/2004:16:23:32 -0700] "GET /public/testwebapp
HTTP/1.1"
404 1214
which gives me an impression that “proxy” – forwarding does not work.
Where should I look for some errors?
Thanks,
Lukas -
HTTP Status Code 200 Received But Error During Response Parsing
Hi Experts,
We are testing a simple Proxy(ECC) to File scenario in QA. This interface was working fine in Dev but we are getting the following error here in QA:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- Call Adapter -->
<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="INTERNAL">OK_BUT_NO_XI_MESSAGE</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:Stack>HTTP Status Code 200 Received But Error During Response Parsing: No XI Response Received XML element Envelope missing in SOAP message header (SAP XI Extension)</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
We searched other threads but could not get any solution. Please provide suggestions.
Thank You.
Regards,
Anandanthe problem was due to high volume message (247 MB ) ...Java stack was not able to process this huge message ,that is the reason ,it started automatically and as a result , "HTTP Status Code 200 Received But Error During Response Parsing" due to unavailability of AFW during Call adapter step in the pipeline processing...
We have done the following activities in order to solve this problem....
increase the value of icm/HTTP/max_request_size_KB to 512MB
icm/wp_roll_timeout to maximum
HTTP TIMEOUT to 1800 sec
icm/wp_roll_timeout to maximum
mpi/total_size_MB to maximum
mpi/buffer_size to maximum
and then increased the maxthreadcount ,maxcontentlength using config tool...
and also increased the java heap size to maximum....
After doing everything ,the file has been successfully processed....
the problem has been resolved...
Maybe you are looking for
-
How to populate table TVENDCUST_SCGRT?
Hi I want to know how was this table being populated....Actually I had a problem in transaction FK03 the field that I appended in table LFB1 for vendor group does not display in FK03 for spanish log.in but for english log-in it display.W hen I debug
-
CommandLink and commandButtonand changing form target
We're observing some odd behaviour when using a <h:commandLink ...> in a form which also has normal Submit actions. If our commandLink has a target="_blank" (for contextual help) this link works and brings up in a new window. But after that, all form
-
Plsql procedure containing select statement to fill page items
I would like to fill items :P200_A and :P200_B and so on with the result of a SELECT which depends on the different values of many select lists. E.G. :P200_list_alpha with the list of values STATIC:less than 10;less,equal than 10;equal,above 10;above
-
Table name for the field FAEDT(net due date)
hi every body, plz can any body tell me the table name for the field net due date(FAEDT). its very very urgent thanq.
-
Is it possible to JSP Application get information from login server?
Hi, Here, we gonna create a aplication using Portal for autentication and autorization. We gonna develop JSP pages to navigate into our application and we'll put them into portal. My question is, is it possible to the jsp's, created by us, to get inf