ASMX web service and The remote server returned an error: (500) Internal Server Error issue

i have developed a very small web service and which is hosted along with our web site. our webservice url is
http://www.bba-reman.com/Search/SearchDataIndex.asmx
web service code
namespace WebSearchIndex
#region SearchDataIndex
/// <summary>
/// SearchDataIndex is web service which will call function exist in another library for part data indexing
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class SearchDataIndex : System.Web.Services.WebService
//public AuthHeader ServiceAuth=null;
public class AuthHeader : SoapHeader
public string Username;
public string Password;
#region StartIndex
/// <summary>
/// this function will invoke CreateIndex function of SiteSearch module to reindex the data
/// </summary>
[WebMethod]
public string StartIndex(AuthHeader auth)
string strRetVal = "";
if (auth.Username == "Admin" && auth.Password == "Admin")
strRetVal = SiteSearch.CreateIndex(false);
else
SoapException se = new SoapException("Failed : Invalid credentials",
SoapException.ClientFaultCode,Context.Request.Url.AbsoluteUri,new Exception("Invalid credentials"));
throw se;
return strRetVal;
#endregion
#endregion
when i was calling that web service from my win apps using
HttpWebRequest
class then getting error The remote server returned an error: (500) Internal Server Error
here is code of my win apps from where i am calling web service
string strXml = "";
strXml = "<s:Envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><StartIndex xmlns='http://tempuri.org/' xmlns:i='http://www.w3.org/2001/XMLSchema-instance'><auth><Username>joy</Username><Password>joy</Password></auth></StartIndex></s:Body></s:Envelope>";
string url = "http://www.bba-reman.com/Search/SearchDataIndex.asmx";
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
req.Method = "POST";
req.ContentType = "text/xml";
req.KeepAlive = false;
req.ContentLength = strXml.Length;
StreamWriter streamOut = new StreamWriter(req.GetRequestStream(), System.Text.Encoding.ASCII);
streamOut.Write(strXml);
streamOut.Close();
StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
string strResponse = streamIn.ReadToEnd();
streamIn.Close();
i am just not being able to understand when this line execute
StreamReader streamIn = new StreamReader(req.GetResponse().GetResponseStream());
then getting the error The remote server returned an error: (500) Internal Server Error
not being able to understand where i made the mistake. mistake is in the code of web service end or in calling code?
help me to fix this issue. thanks

Hi Mou,
I just tried your win app code about calling web service, but failed. I got the 500 error after I called your service:
The error message I quoted from Fiddler:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>System.Web.Services.Protocols.SoapException: Failed : Invalid credentials ---&gt; System.Exception: Invalid credentials
--- End of inner exception stack trace ---
at BBAReman.WebSearchIndex.SearchDataIndex.StartIndex(AuthHeader auth)</faultstring><faultactor>http://www.bba-reman.com/Search/SearchDataIndex.asmx</faultactor><detail /></soap:Fault></soap:Body></soap:Envelope>
I am not totally sure that error occurred by the authentication. But I suggest you can try to add this service into your project using this method below:
1.right click the Reference and select Add Service Reference
2.input your service link and click "Go"
And you can use this service as the following:
private async void callService()
ServiceReference1.SearchDataIndexSoapClient client =new ServiceReference1.SearchDataIndexSoapClient();
var Str= await client.StartIndexAsync(new ServiceReference1.AuthHeader { Username = "Admin", Password = "Admin" });
Please try it.
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Workflow Manager for SP2013. The remote server returned an error: (500) Internal Server Error.

    I am *almost* all the way through provisioning my on premise SP 2013 farm for SharePoint 2013 Workflows.  Workflow manager is installed alongside Service Bus.  Workflow Manager client is installed on the SP servers.  I built a new simple list-based
    workflow in SP Designer 2013, saved it, and published it without any errors.  However, when I go back to the list in my portal and try to run the workflow, I get the "Sorry, something went wrong" page, and the logs say this:
    05/15/2013 12:41:05.07  w3wp.exe (0x071C)                        0x085C SharePoint Foundation        
     Runtime                        tkau Unexpected System.Net.WebException: The remote server returned an error: (500) Internal Server
    Error.    at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)     at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)     at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest
    request, T content) 27be1b9c-f990-f096-34a8-7ac8816bc7a5
    05/15/2013 12:41:05.08  w3wp.exe (0x071C)                        0x085C SharePoint Foundation        
     General                        ajlz0 High     Getting Error Message for Exception System.Web.HttpUnhandledException
    (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Workflow.Client.InternalServerException: Exception thrown from the data layer. For more details, please see the server logs. HTTP headers received from the server
    - ActivityId: 0c03f692-8153-43a7-bed5-096214b06168. NodeId: VM22. Scope: /SharePoint/default/d386fdc7-ea7b-4d46-9a39-5c114096eef8/f203a564-e83a-47a3-b11b-e432ac1e6dab. Client ActivityId : 27be1b9c-f990-f096-34a8-7ac8816bc7a5. ---> System.Net.WebException:
    The remote server returned an error: (500) Internal Server Error.     at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)     at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(... 27be1b9c-f990-f096-34a8-7ac8816bc7a5
    05/15/2013 12:41:05.08* w3wp.exe (0x071C)                        0x085C SharePoint Foundation        
     General                        ajlz0 High     ...IAsyncResult result)     at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest
    request, T content)     --- End of inner exception stack trace ---     at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)     at Microsoft.Workflow.Client.InstanceManager.GetInternal(Int32
    skip, Int32 count, String workflowName, WorkflowInstanceStatus workflowStatus, IDictionary`2 activationMetadataFilter)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider.EnumerateByMonitoringParameter(Guid monitoringParameter,
    Int32 offset, Int32 count, Boolean checkPermissions)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider.EnumerateInstancesForListItem(Guid listId, Int32 itemId, Int32 offset)     at Microsoft.Sh... 27be1b9c-f990-f096-34a8-7ac8816bc7a5
    05/15/2013 12:41:05.08* w3wp.exe (0x071C)                        0x085C SharePoint Foundation        
     General                        ajlz0 High     ...arePoint.WorkflowServices.FabricWorkflowInstanceProvider.EnumerateInstancesForListItem(Guid
    listId, Int32 itemId)     at Microsoft.SharePoint.WorkflowServices.ApplicationPages.WorkflowPageBase.ConstructStatusArraysWF4(ArrayList running, ArrayList completed, Boolean onlyMyWorkflows)     at Microsoft.SharePoint.WorkflowServices.ApplicationPages.WorkflowPage.ConstructStatusArrays()    
    at Microsoft.SharePoint.WorkflowServices.ApplicationPages.WorkflowPage.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
    Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.HandleError(Exception e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStages... 27be1b9c-f990-f096-34a8-7ac8816bc7a5
    05/15/2013 12:41:05.08* w3wp.exe (0x071C)                        0x085C SharePoint Foundation        
     General                        ajlz0 High     ...AfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest(Boolean
    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 27be1b9c-f990-f096-34a8-7ac8816bc7a5
    05/15/2013 12:41:05.08  w3wp.exe (0x071C)                        0x085C SharePoint Foundation        
     General                        aat87 Monitorable   27be1b9c-f990-f096-34a8-7ac8816bc7a5
    Some sort of "general server error" returns a 500 code, but I can't tell from this what the problem(s) might be. Has anyone seen this before?
    Thanks.

    Go to the server running Workflow Manager and open the Event Viewer; Applications and Services Logs; Microsoft-Workflow; Operational; and look for the underlying error.  In our case, the CU for Workflow Manager did something to the SQL permissions and
    we ended up using the workaraound described here:
    http://social.msdn.microsoft.com/Forums/windowsazure/en-US/054d2a58-8847-4a6a-b1ab-05a79f49fe65/workflow-manager-cumulative-update-february-error?forum=wflmgr
    Joe

  • The remote server returned an error: (500) Internal Server Error.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack
    trace for more information about the error and where it originated in the code. 
    Exception Details: System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
    Source Error: 
    Line 63: }
    Line 64: //Gets the response
    Line 65: WebResponse response = req.GetResponse();
    Line 66: //Writes the Response
    Line 67: Stream responseStream = response.GetResponseStream();

    Looks like C# code and you've posted to the Visual Basic forum.
    Anyway, an error 500 means that there is a problem accessing the resource in the web request. There could be many reasons for this so I would verify that the web request is correct first and if it continues to fail then the resource (web page?) needs to
    be fixed before your code will function.
    Visual C# forum
    Paul ~~~~ Microsoft MVP (Visual Basic)

  • SharePoint List Error :[DataSource.Error] SharePoint: Request failed: The remote server returned an error: (500) Internal Server Error. (An error occurred while processing this request.)

    When I connect to the SharePoint site that contains the lists I need to build my query from , Power Query enumerates the list and displays them in the tool. I can click on the system tables and view the records but any table
    in the list I created returns this  error.
    I can connect fine with InfoPath
    [DataSource.Error] SharePoint:   Request failed: The remote server returned an error: (500) Internal Server   Error. (An error occurred while processing this request.)
    thank you for your help
    Andrew
     

    Hi Andrew. In order for us diagnose this issue, you'll need to capture some network traces using a tool such as Fiddler and share them by sending a Frown.
    To capture a trace using Fiddler, start Fiddler, enable the Tools > Fiddler Options > HTTPS > Decrypt HTTPS traffic option, start the capture, reproduce your issue, then stop and save the capture. You can find more information here.
    Once you've done that, please send a Frown through the Power Query ribbon and attach the traces.
    Thanks,
    Ehren

  • Urgent help On as2 error The remote server returned an error: (500) Internal Server Error.

    hi,
    im configured the as2 partner setup as per this http://msdn.microsoft.com/en-us/library/bb246129(BTS.20).aspx.
    but when im process file , then file try hit partner url goes dyhradated state,then failed. then i got below error.
    The remote server returned an error: (500) Internal Server Error.
    please any help..
    Thanks

    500 server error could be due to anyone of the following reasons:
    Party configuration is wrong. Party properties/configurations have  to be discussed upfront with the source/destination system and have to be in-line with
    them.
    Certificates have to be deployed in correct folders based on      certificate types like private/public/signed etc.
    Firewall (or network components) has to be opened accordingly for parties(systems) to interact. This change has to be done at the both the levels, source and destination.
    If you receive it through HTTPReceive.dll (may uses this for AS2), you have to check its configurations.
    Also 500 error, could occur even if your BizTalk artifacts has not been configured/deployed/enabled properly.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Form Based Authentication in SharePoint 2013: Getting The remote server returned an error: (500) Internal Server Error

    Hi
     I configured forms based authentication mode in Sharepoint 2013 site. When i tried to log in with windows authentication prompt it throws the following error
    The remote server returned an error: (500) Internal Server Error
    [WebException: The remote server returned an error: (500) Internal Server Error.] System.Net.HttpWebRequest.GetResponse() +8548300 System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan timeout) +111 [ProtocolException:
    The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first
    1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    How to fix this issue?
    Regards,
    Siva

    Did you create a new web application or modify an existing web application?
    I would start by checking the ULS logs, maybe there is an incorrect setting within one of the web.config files, or SQL permissions.
    Also, as suggested above, check application pools are running.
    This blog post is a great guide for setting up FBA, check it through to make sure you haven't missed any steps:
    http://blogs.technet.com/b/ptsblog/archive/2013/09/20/configuring-sharepoint-2013-forms-based-authentication-with-sqlmembershipprovider.aspx

  • DataSource.Error: SharePoint: Request failed: The remote server returned an error: (500) Internal Server Error.

    Seeing this error when retrieving data from a SharePoint list. I have full access to the list. Any help would be appreciated.
    DataSource.Error: SharePoint: Request failed: The remote server returned an error: (500) Internal Server Error. (An error occurred while processing this request.)
    Details:
    https://xyz/_vti_bin/ListData.svc/ListName
       

    I think I figured out how to use Fiddler. Here's the information I captured-
    This is a Tunnel. Status: OPEN, Raw Bytes Out: 3,797; In: 7,604
    The selected session is a HTTP CONNECT Tunnel. This tunnel enables a client to send raw traffic (e.g. HTTPS-encrypted streams or WebSocket messages) through a HTTP Proxy Server (like Fiddler).
    To enable Fiddler's HTTPS-decryption feature and view decrypted traffic, click Tools > Fiddler Options > HTTPS.
    Request Count:   1
    Bytes Sent:      107  (headers:107; body:0)
    Bytes Received:  107  (headers:107; body:0)
    Tunnel Sent:     3,797
    Tunnel Received: 7,604
    ACTUAL PERFORMANCE
    ClientConnected: 11:06:11.389
    ClientBeginRequest: 11:06:11.395
    GotRequestHeaders: 11:06:11.395
    ClientDoneRequest: 11:06:11.395
    Determine Gateway: 0ms
    DNS Lookup:   176ms
    TCP/IP Connect: 77ms
    HTTPS Handshake: 0ms
    ServerConnected: 11:06:11.649
    FiddlerBeginRequest: 11:06:11.649
    ServerGotRequest: 11:06:11.649
    ServerBeginResponse: 00:00:00.000
    GotResponseHeaders: 00:00:00.000
    ServerDoneResponse: 00:00:00.000
    ClientBeginResponse: 11:06:11.649
    ClientDoneResponse: 11:06:11.649
     Overall Elapsed: 0:00:00.254
    -= Fiddler Event Log =-
    See http://fiddler2.com/r/?FiddlerLog for details.
    10:33:33:8092 Fiddler Running...
    10:33:33:8118 Fiddler.Network.AutoProxy> AutoProxy Detection failed.
    10:33:33:8118 AutoProxy failed. Disabling for this network.
    10:33:33:8118 Windows 8+ AppContainer isolation feature detected.
    11:01:21:4125 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:4145 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:4185 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:4258 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:4268 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:4298 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:4398 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:4398 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:4518 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:4518 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:4528 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:4828 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:5789 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:5820 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:5879 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:6179 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:6530 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance
    11:01:21:6924 HTTPSLint> Warning: ClientHello record was 382 bytes long. Some servers have problems with ClientHello's greater than 255 bytes. https://github.com/ssllabs/research/wiki/Long-Handshake-Intolerance

  • MDM web services and the MDM BP services

    Hi *,
    I need to know what is the difference between the standard MDM web services and the MDM BP services.  How do I decide which set to use?
    - Kris

    Sorry but what are BP services? Do you mean Business package?
    If yes the approaches are completely different - you use Web Services when you have to customise the application and build your logic/functionality into the app. CRUD operations are procided by Web Services - you need to form your wrapper application from scratch and develop!
    With BP - it involves least development effort bearing in mind that its all standard content and not yet completely customizable. So based on your requirements plan whether to go for Business Package or Web Services or Java API completely...

  • Error 500 -Internal Server Error when I click on browse catelog button on Reports and Analytics in Fusion

    Hi
    I am unable to access Reports and Analytics . It throws a Error 500 -Internal Server Error when I click on browse catelog button on Reports and Analytics in Fusion
    I have all the required roles and also BIADMINISTRATOR ACCESS still I am unable to login to Reports and Analytics. I have cleared the cache also.
    My collegue who has the same roles is able to access it.
    Regards
    Avinash

    I created the showModule.xhtml in the web.view.module\src\main\resources folder and test the application and Now I'm getting the error in both deployment ways.
    a) Local deployment: Same result
    Error 500--Internal Server Error
    com.sun.faces.context.FacesFileNotFoundException: /showModule.xhtml Not Found in ExternalContext as a Resource
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:232)
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:273)
    b) Remote server:
    Error 500--Internal Server Error
    com.sun.faces.context.FacesFileNotFoundException: /showModule.xhtml Not Found in ExternalContext as a Resource
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:232)
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:273)
    Please check the below screenshots for the mappings captured in the properties window.
    http://imageshack.us/photo/my-images/5/srwebviewmodule.png/
    http://imageshack.us/photo/my-images/811/eclipseexplorer.png/
    http://imageshack.us/photo/my-images/521/cdiandrichfacesear.png/
    http://imageshack.us/photo/my-images/90/cdiandrichfaces.png/
    Thanks,
    Vijaya

  • RPAS Web Deployment -  Error 500--Internal Server Error

    Trying to install the RPAS Client 13.2 via the Web Deployment using Weblogic WITHOUT Single SignOn (SSO).
    The RPAS.war file was un-jarred, propfile modified and re-jarred. The RPAS.war file was deployed into Weblogic (10.3.2) and is active. When I try to run the RPAS Web Config from Iexplorer, I received the following error message:
    Error 500--Internal Server Error
    java.lang.NullPointerException
         at com.retek.mdap.server.servlet.ServletManager.init(Unknown Source)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
         at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:531)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Here's the modified propfile:
    # The following locations must be configured by administrators based on their
    # installation
    # /nfs/path/to/data/RPASWebData
    # /app/weblogic/rpas132
    dbPath=/app/weblogic/rpas132/RPASWebData/db
    clientSourceDir=/app/weblogic/rpas132/RPASWebData/client
    tunnelLogFile=/app/weblogic/rpas132/RPASWebData/logs/tunnel.NDCVRPASP02.PRODUCTION.FR-PROD.XX.COM.log
    webLogFile=/app/weblogic/rpas132/RPASWebData/logs/rpasPortal.NDCVRPASP02.PRODUCTION.FR-PROD.XX.COM.log
    isOSSO=false
    debug=false
    classicMode=false
    launchPreinstalledOnly=false
    supportMultipleVersions=false
    defaultInstallDir=C:\\RPASClient
    Edited by: user1438559 on Oct 20, 2010 7:20 AM
    Edited by: user1438559 on Oct 20, 2010 7:22 AM
    Edited by: user1438559 on Oct 20, 2010 7:22 AM

    Addition to my original issue...
    Since I could not get the RPAS Web Deployment to work on WebLogic Server (without SSO Support), I thought I would try the install on Apache Tomcat.
    This worked out of the box without any issues, so it seems my issue is on the WebLogic Server. Does anyone have any feedback on why it doesn't work on WebLogic?

  • Error 500--Internal Server Error in Oracle SPARQL Service Endpoint

    Hi,
    I followed the instructions of "Setting Up the SPARQL Service" in the developer's guide. However, after I finished all the steps and click "Submit Query" button in Oracle SPARQL Service Endpoint using Joseki page, I got this error message:
    Error 500--Internal Server Error
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.5.1 500 Internal Server Error
    The server encountered an unexpected condition which prevented it from fulfilling the request.
    I can't figure out what's wrong with the service. Can anybody pls help me solve the problem? Thanks in advance.
    Kind Regards,
    Hong

    hi zhe,
    i installed the right version of jena adapter for oracle 11.2.01 and recreated the data source in WLS. however, i still got the same error when click joseki sparql service end point. but, the first error message is different than the second time. it is shown below:
    first time:
    Error 500--Internal Server Error
    java.lang.NoSuchMethodError: com.hp.hpl.jena.sparql.util.StringUtils.join
    (Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
         at org.joseki.Configuration.makeQuery(Configuration.java:827)
         at org.joseki.Configuration.readConfFile(Configuration.java:176)
         at org.joseki.Configuration.(Configuration.java:82)
         at org.joseki.Dispatcher.setConfiguration(Dispatcher.java:130)
         at org.joseki.Dispatcher.initServiceRegistry(Dispatcher.java:100)
         at org.joseki.http.Servlet.init(Servlet.java:112)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run
    (StubSecurityHelper.java:283)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs
    (AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs
    (SecurityManager.java:121)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet
    (StubSecurityHelper.java:64)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance
    (StubLifecycleHelper.java:58)
         at weblogic.servlet.internal.StubLifecycleHelper.
    (StubLifecycleHelper.java:48)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet
    (ServletStubImpl.java:539)
         at weblogic.servlet.internal.ServletStubImpl.execute
    (ServletStubImpl.java:243)
         at weblogic.servlet.internal.ServletStubImpl.execute
    (ServletStubImpl.java:183)
         at weblogic.servlet.internal.WebAppServletContext
    $ServletInvocationAction.doIt(WebAppServletContext.java:3686)
         at weblogic.servlet.internal.WebAppServletContext
    $ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs
    (AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs
    (SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute
    (WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute
    (WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run
    (ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    thanks a lot.
    regards,
    hong

  • 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
    Kamal

    Hi 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

  • ERROR 500 INTERNAL SERVER  I cant search in browser or open email properly, the ipad mini is brand new

    ERROR 500 INTERNAL SERVER   MY ipad mini is new and I cant search with my browser or open email properly can someone please help

    Hi ..
    Reset the device:
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't help, tap Settings > General > Reset > Reset All Settings
    If that doesn't help, tap Settings > General > Reset > Reset Network Settings
    You will have to re enter your Wi-Fi password.
    If nothing above has helped, try here >  iOS: Troubleshooting Wi-Fi networks and connections

  • Error 500--Internal Server Error when running Facelet in Local Server

    Hi Experts,
    I have installed M2E plugin for eclipse and working on a Maven project in OEPE 12c.
    Running the facelet on the remote server , the results are returned, wheras running the facelet in the local server , the below error occurs
    Error 500--Internal Server Error
    com.sun.faces.context.FacesFileNotFoundException: /showModule.xhtml Not Found in ExternalContext as a Resource
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:232)
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:273)
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:209)
    at com.sun.faces.application.view.ViewMetadataImpl.createMetadataView(ViewMetadataImpl.java:114)
    at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:233)
    Could anybody share some pointers?
    Thanks,
    Vijaya

    I created the showModule.xhtml in the web.view.module\src\main\resources folder and test the application and Now I'm getting the error in both deployment ways.
    a) Local deployment: Same result
    Error 500--Internal Server Error
    com.sun.faces.context.FacesFileNotFoundException: /showModule.xhtml Not Found in ExternalContext as a Resource
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:232)
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:273)
    b) Remote server:
    Error 500--Internal Server Error
    com.sun.faces.context.FacesFileNotFoundException: /showModule.xhtml Not Found in ExternalContext as a Resource
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:232)
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:273)
    Please check the below screenshots for the mappings captured in the properties window.
    http://imageshack.us/photo/my-images/5/srwebviewmodule.png/
    http://imageshack.us/photo/my-images/811/eclipseexplorer.png/
    http://imageshack.us/photo/my-images/521/cdiandrichfacesear.png/
    http://imageshack.us/photo/my-images/90/cdiandrichfaces.png/
    Thanks,
    Vijaya

  • Error 500--Internal Server Error:How to modify req.setReportAbsolutePath

    I test a servlet but I get following errors. I use OBIEE 11g and Jdeveloper 11.1.1.3
    How to modify the source code and the req.setReportAbsolutePath?
    ===============error====================
    http://127.0.0.1:7101/Application4-Project4-context-root/bipservlettest
    Error 500--Internal Server Error
    java.lang.NullPointerException
         at java.io.OutputStream.write(OutputStream.java:58)
         at mywebcenter.BipServletTest.doGet(BipServletTest.java:75)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    ========source code============
    package mywebcenter;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.oracle.xmlns.oxp.service.publicreportservice.AccessDeniedException;
    import com.oracle.xmlns.oxp.service.publicreportservice.AccessDeniedException_Exception;
    import com.oracle.xmlns.oxp.service.publicreportservice.DeliveryRequest;
    import com.oracle.xmlns.oxp.service.publicreportservice.InvalidParametersException;
    import com.oracle.xmlns.oxp.service.publicreportservice.InvalidParametersException_Exception;
    import com.oracle.xmlns.oxp.service.publicreportservice.LocalDeliveryOption;
    import com.oracle.xmlns.oxp.service.publicreportservice.OperationFailedException;
    import com.oracle.xmlns.oxp.service.publicreportservice.OperationFailedException_Exception;
    import com.oracle.xmlns.oxp.service.publicreportservice.PublicReportService;
    import com.oracle.xmlns.oxp.service.publicreportservice.PublicReportServiceClient;
    import com.oracle.xmlns.oxp.service.publicreportservice.PublicReportServiceService;
    import com.oracle.xmlns.oxp.service.publicreportservice.ReportRequest;
    import com.oracle.xmlns.oxp.service.publicreportservice.ReportResponse;
    import com.oracle.xmlns.oxp.service.publicreportservice.ScheduleRequest;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.io.PrintWriter;
    import java.net.URL;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.xml.namespace.QName;
    public class BipServletTest extends HttpServlet {
    private static final String CONTENT_TYPE =
    "text/html; charset=windows-1252";
    private static PublicReportServiceService publicReportServiceService;
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    response.setContentType(CONTENT_TYPE);
    OutputStream os = response.getOutputStream();
    //PrintWriter out = response.getWriter();
    String sid = "";
    System.out.println("===57===");
    publicReportServiceService = new PublicReportServiceService(new URL("http://localhost:9704/xmlpserver/services/PublicReportService"),
    new QName("http://xmlns.oracle.com/oxp/service/PublicReportService",
    "PublicReportServiceService"));
    PublicReportService publicReportService =
    publicReportServiceService.getPublicReportService();
    //To get a session id
    System.out.println("===64===");
    try {
    sid = this.getSessionID("weblogic", "welcome1", publicReportService);
    } catch (AccessDeniedException_Exception e) {
    System.out.println("invalid user");
    //To generate a report and display it
    System.out.println("===72===");
    ReportResponse res = this.getReportInSession(publicReportService, sid);
    byte[] binaryBytes = res.getReportBytes();
    os.write(binaryBytes);
    response.setContentType(res.getReportContentType());
    public String getSessionID(String username, String password, PublicReportService publicReportService) throws AccessDeniedException_Exception {
    String sid = publicReportService.login(username, password);
    return sid;
    public ReportResponse getReportInSession(PublicReportService publicReportService,
    String sid) {
    ReportRequest req = new ReportRequest();
    ReportResponse res = new ReportResponse();
    System.out.println("===89===");
    req.setAttributeFormat("pdf");
    req.setAttributeLocale("en-US");
    req.setAttributeTemplate("Simple");
    req.setReportAbsolutePath("E:\\OracleBI_win2008_32_20101206\\user_projects\\domains\\bifoundation_domain\\config\\bipublisher\\repository\\Reports\\Samples\\11g Overview\\W2 2010.xdo");
    //req. setSizeOfDataChunkDownload (-1); //download all
    try {
    System.out.println("99");
    res = publicReportService.runReportInSession(req, sid);
    System.out.println("101");
    System.out.println("===100==="+res.getReportContentType());
    } catch (Exception e) {
    System.out.println(e);
    System.out.println("===107===");
    return res;
    ============Jdeveloper console==================
    [Another instance of the application is running on the server.  JDeveloper redeploy the application.]
    [Application Application4 stopped but not undeployed from Server Instance IntegratedWebLogicServer]
    [Running application Application4 on Server Instance IntegratedWebLogicServer...]
    [12:45:14 PM] ---- Deployment started. ----
    [12:45:14 PM] Target platform is (Weblogic 10.3).
    [12:45:14 PM] Retrieving existing application information
    [12:45:14 PM] Running dependency analysis...
    [12:45:14 PM] Deploying 2 profiles...
    [12:45:15 PM] Wrote Web Application Module to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\Application4\Project4WebApp.war
    [12:45:15 PM] WARNING: Connection ApplicationDB has no password. ApplicationDB-jdbc.xml file not generated for connection ApplicationDB.
    [12:45:15 PM] Wrote Enterprise Application Module to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\Application4
    [12:45:15 PM] Redeploying Application...
    [12:45:17 PM] Application Redeployed Successfully.
    [12:45:17 PM] The following URL context root(s) were defined and can be used as a starting point to test your application:
    [12:45:17 PM] http://192.168.1.17:7101/Application4-Project4-context-root
    [12:45:17 PM] Elapsed time for deployment: 4 seconds
    [12:45:17 PM] ---- Deployment finished. ----
    Run startup time: 3547 ms.
    [Application Application4 deployed to Server Instance IntegratedWebLogicServer]
    Target URL -- http://127.0.0.1:7101/Application4-Project4-context-root/bipservlettest
    ===57===
    ===64===
    ===72===
    ===89===
    99
    javax.xml.ws.soap.SOAPFaultException: oracle.xdo.webservice.exception.OperationFailedException: PublicReportService::generateReport failed: due to oracle.xdo.servlet.CreateException: Report definition not found:E:\OracleBI_win2008_32_20101206\user_projects\domains\bifoundation_domain\config\bipublisher\repository\Reports\Samples\11g Overview\W2 2010.xdo
    ===107===
    <Dec 8, 2010 12:45:24 PM PST> <Error> <HTTP> <BEA-101020> <[ServletContext@26496369[app:Application4 module:Application4-Project4-context-root path:/Application4-Project4-context-root spec-version:2.5]] Servlet failed with Exception
    java.lang.NullPointerException
         at java.io.OutputStream.write(OutputStream.java:58)
         at mywebcenter.BipServletTest.doGet(BipServletTest.java:75)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         Truncated. see log file for complete stacktrace
    >
    <Dec 8, 2010 12:45:24 PM PST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at Dec 8, 2010 12:45:24 PM PST. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = Dec 8, 2010 12:45:24 PM PST SERVER = DefaultServer MESSAGE = [ServletContext@26496369[app:Application4 module:Application4-Project4-context-root path:/Application4-Project4-context-root spec-version:2.5]] Servlet failed with Exception
    java.lang.NullPointerException
         at java.io.OutputStream.write(OutputStream.java:58)
         at mywebcenter.BipServletTest.doGet(BipServletTest.java:75)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = WIN-IT8WDLG81KH TXID = CONTEXTID = 55211ca27b9d1dfd:bd42a62:12cc7606a10:-8000-000000000000009c TIMESTAMP = 1291841124147
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    <Dec 8, 2010 12:45:34 PM PST> <Alert> <Diagnostics> <BEA-320016> <Creating diagnostic image in c:\users\administrator\appdata\roaming\jdeveloper\system11.1.1.3.37.56.60\defaultdomain\servers\defaultserver\adr\diag\ofm\defaultdomain\defaultserver\incident\incdir_12 with a lockout minute period of 1.>

    am able to login
    http://192.168.75.140:7001/console/login/LoginForm.jsp
    from this environment-> servers-> all servers(adminserver,soa_server1, oim_server1, oam_server1) status is running,and health is ok.
    I have started these servers from command line <base_domain/bin/sh startManagedWebLogic.sh oim_server1
    result is <server started in running mode>
    now I shutdown the oam_server1 and oim_server1
    again I started the oim_server1 as above
    command line result is < <May 30, 2013 7:54:47 PM IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    but in (http://localhost:7001/console) window oim_server1 status is unknown...

Maybe you are looking for