Minimal http 1.1 server implementation

Hi,
does anyone know a really simple (< 10 classes?) http 1.1 server implementation which at least offers keep-alive connections?
I only have to process one type of get-request so I believe using one of the big (java) http servers with access control and modules and all that might be too big and slow.

Google for tiny java web server - replace "tiny" by small, embeddable, ...
I'd guess there is a trade-off between HTTP standard compliance and size if you want to stay in the ten class range.
Here is a two class web server, adapted from the Java Socket Tutorial. Doesn't support keep-alive though, implement it yourself... This can even pretty easily be tuned down to one class if it is ok to support one simultaneous connection only. Doesn't quite support all HTTP features though :-)
import java.net.*;
import java.io.*;
public class NanoServer {
    public static void main(String[] args) throws IOException {
        ServerSocket serverSocket = null;
        try {
            serverSocket = new ServerSocket(6666);
        } catch (IOException e) {
            System.err.println("could not listen on port 6666: " + e);
            System.exit(-1);
        while (true) {
         Socket socket;
         try {
          socket = serverSocket.accept();
         } catch (IOException e) {
          System.err.println("accept failed");
          continue;
         new NanoServerThread(socket).start();
import java.net.*;
import java.io.*;
public class NanoServerThread extends Thread {
    private Socket socket;
    public NanoServerThread(Socket socket) {
     this.socket = socket;
    public void run() {
     PrintWriter out = null;
     BufferedReader in = null;
     try {
         in = new BufferedReader(new InputStreamReader(
                        socket.getInputStream()));
         out = new PrintWriter(socket.getOutputStream(), true);
         // Gobble request
         // TODO parse GET + URL from first line; log accesses
         while (true) {
          String line = in.readLine();
          if (isEmpty(line))
              break;
         // TODO examine request URL here, answer according to request
         out.println("HTTP/1.0 200 OK");
         out.println("Content-Type: text/plain");
         out.println("");
         out.println("Hello sailor!");
     } catch (IOException e) {
         e.printStackTrace();
     } finally {
         close(out);
         close(in);
            // What, Socket is not Closeable?
         try { if (socket != null) socket.close(); } catch (IOException e) { }
    public static boolean isEmpty(CharSequence s)
        if (s == null)
            return true;
        int len = s.length();
        for (int n = 0; n < len; n++) {
            if (!Character.isWhitespace(s.charAt(n)))
                return false;
        return true;
    public static void close(Closeable x)
     if (x == null)
         return;
     try {
         x.close();
     } catch (IOException e) {
         // Ignoring exceptions? How naughty!
}

Similar Messages

  • HTTP 500 Internal Server Error with Large Attachment in SOAP Scenario

    Hi,
    we have implemented SOAP - XI - SOAP Scenario in our landscape (Sap Neatweaver Process Integration 7.1) .
    One of the functionality of this scenario is the Upload of Documents to External Web Service through standard SOAP Attachment.
    If we try to upload a small file (smaller than 20MB), task works fine and the document is correctly uploaded.
    If we try to upload a larger file, we encountered in this generic error:
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: XIAdapterFramework:GENERAL:com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error
         at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1161)
    We tried to increase timeout parameters (in communication channel and in ICM Value) but the response is the same.
    We verify also if icm/HTTP/max_request_size_KB parameter was set to a value smaller than our file size limit (20MB) but is set to default value (100MB).
    The problem isn't on External Web Service Layer because if we try to upload the same documents directly to that web service upload works fine, and in External Web Service's Log there aren''t any indications of this error.
    So I ask you: are there any System Parameters to verify to solve this issue?
    For additional, in ICM Monitor LOG we can read this WARNING when we call our service:
    WARNING => IcmReadFromConn(id=53/454390): temporarily out of MPI buffers -> roll out [icxxthrio_mt 2646]
    This warning may be related to the problem? If yes, how can we solve it?
    Thanks a lot,
    Marcello Ricci

    Hi ,
      Please answer my following questiosn.
    1)  which PI version are you using?
    2) How many J2EE nodes you have.
    please be reminded that SOAP is not for the heavy messages. Then you need to increase your timeout parameters from BASIS.
    Rgds
    Veeru
    Edited by: viru srivastava on Dec 14, 2010 10:18 PM

  • Performance concern with directory server implementation

    performance concern with directory server implementation
    I first posted this at metalink forum, and was suggested to post it here instead.
    Hi,
    I'd like to get any feedback regarding performance of oracle directory server implementation. Below is what I copy&patested from 9i Net Services Administrator's Guide, I found no 'directory server vendor documentation', so anything regarding this is welcome too.
    Performance
    Connect identifiers are stored in a directory server for all clients to access.
    Depending on the number of clients, there can be a significant load on a directory
    server.
    During a connect identifier lookup, a name is searched under a specific Oracle
    Context. Because of the scope of the lookup, you probably want users to experience
    relatively quick performance so that the database connect time is not affected. Users
    may begin to notice slow connect times if lookups takes more than one second.
    You can resolve performance problems changing the network topology or
    implementing replication.
    See Also: Directory server vendor documentation for details on
    resolving performance issues
    Thanks.
    Shannon

    Shannon,
    you can find some tuning advises in the following
    a) OiD Capacity Planning Considerations
    http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96574/cap_plan.htm#1030019
    b) Tuning Considerations
    http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96574/tuning.htm#999468
    c) oracle net services
    http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96579/products.htm#1005697
    you should start with a) to get an overview what to be aware of
    --Olaf

  • HTTP 500 - Internal Server Error - Smartforms pdf

    Hi, all
    I'm trying to print a pdf (made with Smartforms) in Consolidation environment from a BSP form and occurs the error:
    Exception condition "SINGLE_EXIT_MULTIPLY_ACTIVE" raised.
    RABAX_STATE
    Method: GET_INSTANCE of program CL_EXITHANDLER================CP
    Function: HR_GET_BUSINESS_ADD_IN of program SAPLHRBAS00UTILITIES
    Function: HRHAP_C_GET_BUSINESS_ADD_IN of program SAPLHRHAP_C_A_GLOBAL
    Method: ONINITIALIZATION of program CLO249Z8ZDCO03QHBX8B23G1B5QGTCP
    Method: %_ONINITIALIZATION of program CL_O249Z8ZDCO03QHBX8B23G1B5QGTCP
    Method: DO_REQUEST of program CL_BSP_PAGE===================CP
    Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_BSP===============CP
    Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    HTTP 500 - Internal Server Error
    Somebory knows the solucion? In the Development environment works succesfully.
    ps.: The error occurs in the call of HRHAP_C_GET_BUSINESS_ADD_IN.
    Best regards,
    Ana.
    Edited by: Ana Carolina dos Santos on May 24, 2011 3:26 PM

    Hi,
    somehow you´re calling a BADI in your code, so make sure that the implementation has been transported into th test system:
    * If Business Add-In is implemented, get instance
    Line 56 of function HR_GET_BUSINESS_ADD_IN

  • "HTTP error: 501 Not Implemented" error while uploading emp photo

    Hi,
    While uploading employee photo
    getting error "HTTP error: 501 Not Implemented"
    this error i am getting while linking employee photo to SAP.
    pls suggest me how to solve.
    thanx in advance

    Hi,
    don't worry about the "HTTP error:501 Not Implemented The adminContRep command is an internal SAP R/3 command and not accepted by this content repository" error message, it only means that if you chosen the CSadmin button (or transaction) that this only developed from SAP content server and cannot be used for other 3rd party ones, like OpenText.
    BR,
    Janos

  • CVS Server Implementation

    Hi!
    Does some know a CVS server implementation in Java? I found jCVS, but I think there is only a client implementation...

    Why not???
    Because I want a full java bases server. There are implementations for HTTP, FTP, POP, IMAP, SMTP and so on. And where is CVS? I think, it's a way to show, that Java is more then a language.
    In addition, if there is a (good) CVS implemention, I (or anybody else) can use the API to implement server for easier usage, for example a webbased server with real document management or an integrated version system in a development environment in Java (without external software). The benefit of a CVS server is the handling with versions of texts - it's simple but works fine.
    Another answer: Because it's possible!

  • Error while run OAF, HTTP 500 - Internal server error  Internet Explorer

    I have installed R12 on my laptop having windows 2003 Server, which running successfully.
    In Same machine i have installed Jdeveloper for OAF customization by following 416708.1.
    While running test OAF page from Jdev, following error accruing. I have Run autoconfig as well.
    There is a problem with the page you are trying to reach and it cannot be displayed.
    Please try the following:
    Open the r12.oracle.com:8988 home page, and then look for links to the information you want.
    Click the Refresh button, or try again later.
    Click Search to look for information on the Internet.
    You can also see a list of related sites.
    HTTP 500 - Internal server error
    Internet Explorer

    What is the JDev version?
    Check if the below fixes the issue.
    Go to Tools -> Embedded OC4J Server Preferences-> Global -> Startup. Select the option -> Default Local IP Address.
    Thanks
    Shree

  • Http 500 internal server error while calling webservice

    I have a scenario Rfc to webservice
      <?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="1">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="HTTP">ADAPTER.HTTP_EXCEPTION</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>HTTP 500 Internal Server Error</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    In my response pay load i am getting error msg
      <b>ClientUnable to parse the incoming request. Please make sure that the request is valid: javax.xml.soap.SOAPException: Unsupported Content-Type: application/xml</b>
      </env:Envelope>
    Can any one please tell me what would be the problem i have doubled checked the scnrio,i message monitoring i have a messages
    Audit Log for Message: ec1dc1d0-f1c7-11da-91dd-0004ac577b32
    Time Stamp Status Description
    2006-06-01 16:39:52 Success The message was successfully received by the messaging system. Profile: XI URL: http://saptst01.internal.pcshs.com:51000/MessagingSystem/receive/AFW/XI
    2006-06-01 16:39:52 Success Using connection AFW. Trying to put the message into the request queue.
    2006-06-01 16:39:52 Success Message successfully put into the queue.
    2006-06-01 16:39:52 Success The message was successfully retrieved from the request queue.
    2006-06-01 16:39:52 Success The message status set to DLNG.
    2006-06-01 16:39:52 Success Delivering to channel: ZCH_VERISIGNPPGR
    2006-06-01 16:39:52 Success Transform: using Transform.Class: com.sap.aii.messaging.adapter.XSLTConversion
    2006-06-01 16:39:52 Success Transform: transforming the payload ...
    2006-06-01 16:39:52 Success Transform: successufully transformed
    2006-06-01 16:39:52 Success SOAP: request message entering the adapter
    2006-06-01 16:39:53 Success SOAP: completed the processing
    2006-06-01 16:39:53 Success SOAP: response message received ec89a301-f1c7-11da-a561-0004ac577b32
    2006-06-01 16:39:53 Error SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error
    2006-06-01 16:39:53 Success The message status set to DLVD.
    2006-06-01 16:39:53 Success The message was successfully delivered to the application using connection AFW.
    Any help would be greatly appreciated.......
    Thanks
    sriram

    Hi,
    Content-Type: application/xml
    ...check for the content type of the message that is sent ot the WS.....with the above mentioned content-type going to the WS currently...WS is not able to parse the req and hence the error....in other words wrong format being being passed.
    Regards,
    ABhishek.

  • HTTP 500 Internal Server Error while starting AppsTier post-clone

    Hello,
    Adcfgclone scripts on both DB and App Tiers, as well as Adautocfg scripts, complete successfully but I am faced with a "HTTP 500 Internal Server Error" and "The website cannot display the page" through IE when starting R12 Apps post clone. So far I have run a script on the cloned environment to synchronize the Workflow tables with APPS user, and re-ran autoconfig on both DB and App Tiers, but I still see the 500 error.
    Any other pointers? Thanks in advance!

    Adcfgclone scripts on both DB and App Tiers, as well as Adautocfg scripts, complete successfully but I am faced with a "HTTP 500 Internal Server Error" and "The website cannot display the page" through IE when starting R12 Apps post clone. So far I have run a script on the cloned environment to synchronize the Workflow tables with APPS user, and re-ran autoconfig on both DB and App Tiers, but I still see the 500 error.
    Any other pointers? Thanks in advance!What does "adopmnctl.sh status" return?
    The error you are getting "HTTP 500 Internal Server Error" is a generic one, please check Apache log files and the application.log file for details about the error.
    R12: Troubleshooting 500 Internal Server Error in Oracle E-Business suite [ID 813523.1]
    Http 500 : Internal Server Error When Login To A New Cloned Environment [ID 781413.1]
    Also, please confirm that you have no errors in the database log file.
    Thanks,
    Hussein

  • HTTP 500 internal server error while starting abap web dynpro application

    Hi there,
    i have some problems concerning my web dynpro abap configurations in the system. When i start an application the browser appears and displays the http 500 internal server error.  The required icf nodes are activated, as far as i know. the following properties are set:
    hostname: aet
    port: 8000
    The generated url for the web dynpro application looks as follows:
    http://aet.ls3001:8000/sap/bc/webdynpro/sap/zwdr_test?sap-language=EN
    Maybe anybody of you out there has an idea for that situation.
    Thanks for your afford and kind regards,
    Albert

    Hi Ulli,
    the error message says:
    UNKNOWN HOST
    Description: Unable to locate the server named "aet.ls3001" --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double-check the name and try again.
    So the problem is the hostname.
    When i replace the hostname with the ip of the server, the following error occures:
    COULD NOT CONNECT
    Description: Could not connect to the server "10.18.187.9".
    But with SAPLogon, its possible to connect on the server by filling in the ip adress.
    Kind regards,
    Albert

  • Error while running OAF Test Page Http 500 Internal Server Error

    I have installed R12 on my laptop having windows 2003 Server, which running successfully.
    In Same machine i have installed Jdeveloper for OAF customization by following 416708.1.
    While running test OAF page from Jdev, following error accruing. I have Run autoconfig as well.
    There is a problem with the page you are trying to reach and it cannot be displayed.
    Please try the following:
    Open the r12.oracle.com:8988 home page, and then look for links to the information you want.
    Click the Refresh button, or try again later.
    Click Search to look for information on the Internet.
    You can also see a list of related sites.
    HTTP 500 - Internal server error
    Internet Explorer

    HTTP 500 - Internal server error
    Internet ExplorerThis is a generic error, please check Apache log files for details about the error (error_log* and access_log*).
    Thanks,
    Hussein

  • Failure (HTTP 500 Internal Server Error) while buy...

    I tried to buy an online number (for Netherlands) but after completing and confirming my company details the following page (https://manager.skype.com/buy/online-number/data-c​ollection) give a HTTP 500 Internal Server Error.
    Could someone from Skype contact me about this problem?
    Regards, Maikel

    Adcfgclone scripts on both DB and App Tiers, as well as Adautocfg scripts, complete successfully but I am faced with a "HTTP 500 Internal Server Error" and "The website cannot display the page" through IE when starting R12 Apps post clone. So far I have run a script on the cloned environment to synchronize the Workflow tables with APPS user, and re-ran autoconfig on both DB and App Tiers, but I still see the 500 error.
    Any other pointers? Thanks in advance!What does "adopmnctl.sh status" return?
    The error you are getting "HTTP 500 Internal Server Error" is a generic one, please check Apache log files and the application.log file for details about the error.
    R12: Troubleshooting 500 Internal Server Error in Oracle E-Business suite [ID 813523.1]
    Http 500 : Internal Server Error When Login To A New Cloned Environment [ID 781413.1]
    Also, please confirm that you have no errors in the database log file.
    Thanks,
    Hussein

  • HTTP 500 Internal Server Error for developer sample page

    Hi All,
    Getting the HTTP 500 Internal Server Error Page when I click on Developer Sample link on http://10.4.80.238:8080/portal/dt page.
    Find the below error log for more details:
    [#|2009-07-29T10:25:36.767+0530|FINEST|SJS Portal Server|debug.com.sun.portal.desktop.context|ThreadID=19; ClassName=com.sun.portal.desktop.context.PSContainerProviderContext; MethodName=getContent; |PSDT_CSPDC0028 : PSContainerProviderContext.getContent(): getting fresh content for channel: JSPTabContainer|#]
    [#|2009-07-29T10:25:36.768+0530|FINE|SJS Portal Server|debug.com.sun.portal.desktop.context|ThreadID=19; ClassName=com.sun.portal.desktop.context.AuthlessSessionContext; MethodName=getCookieSupportMode; |PSDT_CSPDC0002 : Cookie support mode = 0|#]
    [#|2009-07-29T10:25:36.768+0530|SEVERE|SJS Portal Server|debug.com.sun.portal.desktop|ThreadID=19; ClassName=com.sun.portal.desktop.DesktopServlet; MethodName=handleException; |PSDT_CSPD0022: Internal server error null root cause is java.lang.NullPointerException|#]
    [#|2009-07-29T10:25:36.768+0530|SEVERE|SJS Portal Server|debug.com.sun.portal.desktop|ThreadID=19; ClassName=com.sun.portal.desktop.DesktopServlet; MethodName=handleException; |PSDT_CSPD0023: Primary Exception
    java.lang.ClassCastException: java.lang.NullPointerException
         at com.sun.portal.providers.error.ErrorProvider.getContent(Unknown Source)
         at com.sun.portal.desktop.DesktopServlet.handleException(Unknown Source)
         at com.sun.portal.desktop.DesktopServlet.doGetPost(Unknown Source)
         at com.sun.portal.desktop.DesktopServlet.handleNoSessionRequest(Unknown Source)
         at com.sun.portal.desktop.DesktopServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:235)
         at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2114)
    |#]
    [#|2009-07-29T10:25:36.769+0530|SEVERE|SJS Portal Server|debug.com.sun.portal.desktop|ThreadID=19; ClassName=com.sun.portal.desktop.DesktopServlet; MethodName=handleException; |PSDT_CSPD0024: Root cause
    java.lang.NullPointerException
         at com.sun.portal.providers.containers.jsp.tab.util.Tab.create(Unknown Source)
         at com.sun.portal.providers.containers.jsp.tab.util.Tab.<init>(Unknown Source)
         at com.sun.portal.providers.containers.jsp.tab.util.TabFactory.createUnmodifiable(Unknown Source)
         at com.sun.portal.providers.containers.jsp.tab.util.TabData.getAvailableTabs(Unknown Source)
         at com.sun.portal.providers.containers.jsp.tab.JSPTabContainerProvider.getSelectedTab(Unknown Source)
         at com.sun.portal.desktop.context.PSContainerProviderContext.createVisiblePortletsList(Unknown Source)
         at com.sun.portal.desktop.context.PSContainerProviderContext.getContent(Unknown Source)
         at com.sun.portal.desktop.context.PSDesktopContext.getContent(Unknown Source)
         at com.sun.portal.desktop.DesktopServlet.doGetPost(Unknown Source)
         at com.sun.portal.desktop.DesktopServlet.handleNoSessionRequest(Unknown Source)
         at com.sun.portal.desktop.DesktopServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:235)
         at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2114)
    |#]
    [#|2009-07-29T10:25:36.770+0530|SEVERE|SJS Portal Server|debug.com.sun.portal.desktop.mfwk|ThreadID=19; ClassName=com.sun.portal.desktop.mfwk.MfwkPSServiceAdaptor; MethodName=stopTransaction; |PSDT_CSPDMF0003: Mfwk Stop transaction error: Invalid transition for this transaction|#]
    Please provide me the solution to solve it.
    Thanks in advance.

    By the wat what version of application server are you running and how is your portal deployed, i.e portal deployed on seprate machine and access manager on another?
    To disable security login into your application server console e.g https://localhost:4848
    -> Click configurations on the left to expand it
    -> click arrow on the server instance configuration to expand it (this is the instance you used to deploy portal server e.g "server" )
    -> click JVM Settings on the right you will see four tabs
    -> click JVM options, a list of values is displayed
    -> tick "-Djava.security.manager" and "-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy" and click delete
    -> restart the server and try accessing the developer sample.
    Send me the error message if any after doing this and If this does not wok, add back the values.
    regards

  • Invalid content type for SOAP: TEXT/HTML; HTTP 500 Internal Server Error

    Hi,
    I have this error on a SOAP Receiver Channel: invalid content type for SOAP: TEXT/HTML; HTTP 500 Internal Server Error
    I've found several threads on SDN Forums about similar errors, but I did not find a solution for my problem yet.
    I checked this blog: /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009  Pt.6 applies to my situation, but the proposed solution doesn't solve the problem.
    TRACE Messaging System
    u2026
    2011-06-06 10:59:41.822 Success Delivering to channel: CC_SOAP_RCV_XXX
    2011-06-06 10:59:41.823 Success MP: entering1
    2011-06-06 10:59:41.825 Success MP: processing local module localejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean
    2011-06-06 10:59:41.828 Success SOAP: request message entering the adapter with user J2EE_GUEST
    2011-06-06 10:59:42.012 Error SOAP: call failed: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 500 Internal Server Error
    2011-06-06 10:59:42.014 Success SOAP: sending a delivery error ack ...
    2011-06-06 10:59:42.014 Success SOAP: sent a delivery error ack
    u2026
    Message Details
    Address   http://aaa.bbb.be:54000/MessagingSystem/receive/AFW/XI 
    Credential   PasswordCredential(PIISUSER):password=******** 
    Transport Headers   accept-encoding=gzip sap-xi-messageid=4DEA11FE90003094E10000000AE908B4 content-length=7520 http=POST host= aaa.bbb.be:54000 user-agent=SAP NetWeaver Application Server (1.0;711) content-type=multipart/related;boundary=SAP_4DEA47CEAD3A5138E10000000AE908B4_END;type="text/xml";start="" soapaction="http://sap.com/xi/XI/Message/30" 
    Configuration Details SOAP Communication Channel
    SOAP Receiver Channel
    No modules configured
    Do not use SOAP Envelope  -> NOT checked
    If I type the target URL in browser it opens (no login required) and I see the available web services.
    Anyone any idea what's the reason for this error?
    Thanks in advance
    Kind Regards
    Edmond Paulussen

    Hi Edmond,
    We faced similar problem & found alternative.
    Try out, if it works for u as well.
    1) Use HTTP Adapter instead of SOAP.
    Transport Protocol : HTTP 1.0
    Message Protocol : XI Payload in HTTP Body
    Adapter Engine : Integration Server
    Addressing type : URL Address.
    Target Host:
    Service Number :
    Path Prefix:
    Authentication type : we hv used Ananymus login, as our login details in payload header.
    Content Type : application/soap+xml;charset=UTF-8( this is IMP).
    Header Fields.
    Name         value
    Host           target host
    XI Payload Manipulation
    XML Code : UTF-8
    Hope, this helps...
    -santosh.

  • HTTPS - 500 - Internal Server Error

    Hi,
    To send XML file over HTTPS, a RFC destination type G is created in SM59 and is used in Plain HTTP receiver Adapter.
    Now while testing HTTP destination in SM59, HTTP 200 reponce is OK.
    But while sending the XML file, getting an error HTTP 500 - Internal Server Error in SXMB_MONI.
    Certificates are installed in STRUST for HTTPS connection.
    Any suggetion.
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_SERVER</SAP:Code>
      <SAP:P1>500</SAP:P1>
      <SAP:P2>Internal Server Error</SAP:P2>
      <SAP:P3>Internal Server Error</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>HTTP server code 500 reason Internal Server Error explanation Internal Server Error</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      <Trace level="3" type="T">Quality of Service EO</Trace>
      <Trace level="1" type="T">Get XML-Dokument from the Message-Objekt</Trace>
      <Trace level="2" type="T">HTTP-Destination : EXT_SERVER</Trace>
      <Trace level="3" type="T">Server ABCD</Trace>
      <Trace level="3" type="T">Service-Nr. 443</Trace>
      <Trace level="3" type="T">URL /PATH1/PATH2?Query</Trace>
      <Trace level="3" type="T">~request_method POST</Trace>
      <Trace level="3" type="T">~server_protocol HTTP/1.0</Trace>
      <Trace level="3" type="T">accept: */*</Trace>
      <Trace level="3" type="T">quality of service: EO</Trace>
      <Trace level="3" type="T">Header-Fields</Trace>
      <Trace level="3" type="T">Prolog conversion Codepage: UTF-8</Trace>
      <Trace level="3" type="T">Epilog conversion Codepage: UTF-8</Trace>
      <Trace level="3" type="T">content-length 2312</Trace>
      <Trace level="3" type="T">content-type: text/xml; charset=UTF-8</Trace>
      <Trace level="2" type="T">HTTP-Response :</Trace>
      <Trace level="1" type="T">Internal Server Error</Trace>
      <Trace level="2" type="T">Code : 500</Trace>
      <Trace level="2" type="T">Reason: Internal Server Error</Trace>
      <Trace level="2" type="T">Code : 500</Trace>
      <Trace level="2" type="T">Reason: Internal Server Error</Trace>
    Thanks,
    Madan

    Hi Madan,
    Please have a look at this thread.
    Plain HTTP adapter error
    Hope this helps to you.
    Regards,
    P.Rajesh

Maybe you are looking for