JSR172 or HttpConnection error

Hello,
I use a J2ME application as webservice client with JSR172 Webservice API support. When I try to send a large String with more than 1680 characters to webserver I get a java.rmi.MarshalException: SAXParseException and the message has not received the server. Maybe there is some limit in length?
To check it out I try to build the soap query manually and send it over a httpConnection with POST to webserver (without JSR172). Now I get the result "Bad Request". The string contains only normal characters.
Any idea why this happens? I can say that the webserver has no error.
Thanks for reply.
Background:
I try to send a picture as base64String manually encoded to webserver. This is the reason for the long string. The support or byte[] in stub generator seems not to work correct.

Guys I finally managed to get a HTTP connection working on my P900. The problem was to do with my Mobile Network SP. It seems that they are limited in intelligence so when you say that you want access to the internet they will set you up to go to a WAP gateway which translates your requests and responses for your handset. I kept getting a -36 Symbian OS error which implied that the connection was being cut, since a the host name was resolved. After I had argued with the Data Support people for my network, explaining to them that WAP is not the a full Internet access, they finally managed to give me the right dns etc entries and my application was successfully able to communicate.
Hope this helps, I have another problem to do with installing the same applications on the P900i but I will leave that for another forum :)

Similar Messages

  • HttpConnection error on P900

    Hi
    I run the following code on the p900 device.
    this application connects to a url and gets a simple text message then displays it.
    ( this code is a modified example from the core j2me site examples ...)
    it doesn't work.
    on nokia 6310i device it works , also on every emulator I tried .
    I get a java.io.IOException.SymbianOSerror (something like this ...).
    the last debug message I see is :
    "Attempting to create HttpConnection object" . and then the finally related messages.
    what should I do in order to make this work on p900 ?
    package home;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import javax.microedition.io.*;
    import javax.microedition.io.HttpConnection;
    import java.io.*;
    import java.lang.StringBuffer;
    public class HttpConn extends MIDlet implements CommandListener , Runnable
      private Display display;
      //TextBox tbMain;
      Form tbMain;
      private Command cmExit;
      private String url = "http://www.corej2me.com/midpbook_v1e1/ch14/getHeaderInfo.txt";
      StringBuffer dbgInfo = new StringBuffer();
      StringBuffer strBfr;
      public HttpConn()
        display = Display.getDisplay(this);
        cmExit = new Command("Exit" , Command.SCREEN , 1);
        tbMain = new Form("HTTP Connection");
        tbMain.addCommand(cmExit);
        tbMain.setCommandListener(this);
      public void run()
        try
          processRequest();
        catch (Exception e)
          dbgInfo.append("run : caught Exception\n");
          dbgInfo.append("run : Exception : " + e.getClass().getName());
          dbgInfo.append("run : Exception message : " + e.getMessage());
          dbgInfo.append("run : Exception string : " + e.toString());
          // also, you should probably display the exception on-screen using an alert or form
          // so that you can see it when running on the phone
          Form f = new Form("Error");
          f.append("An error occurred while connecting : ");
          f.append(new String(dbgInfo));
          f.addCommand(cmExit);
          f.setCommandListener(this);
          display.setCurrent(f);
      public void startApp()
        // set a displayable before you start the connection
        Form f = new Form("Connecting");
        f.append("    Connecting ...\n    Please wait");
        display.setCurrent(f);
        // run the connection in a separate thread
        Thread th = new Thread(this);
        // starts a new thread and calls the run() method in it.
        th.start();
      private void processRequest() throws Exception
        HttpConnection http = null;
        InputStream iStrm = null;
        try
          // Create the connection
          dbgInfo.append("Attempting to create HttpConnection object\n");
          http = (HttpConnection) Connector.open(url);
          // Client Request
          // 1) Send request method
          http.setRequestMethod(HttpConnection.GET);
          // 2) Send header information (this header is optional)
          http.setRequestProperty("User-Agent", "Profile/MIDP-1.0 Configuration/CLDC-1.0");
          //http.setRequestProperty("If-Modified-Since", "Mon, 16 Jul 2001 22:54:26 GMT");
          // If you experience IO problems, try
          // removing the comment from the following line
          http.setRequestProperty("Connection", "close");
          http.setRequestProperty("Cache-Control", "no-transform");
          // 3) Send body/data - No data for this request
          // Server Response
          // 2) Get header information
          if (http.getResponseCode() == HttpConnection.HTTP_OK) {
            // 3) Get data (show the file contents)
            //String str = new String("initial value");
            dbgInfo.append("Attempting to open the input stream\n");
            iStrm = http.openInputStream();
            int length = (int) http.getLength();
            dbgInfo.append("http.getLength() : "+length+"\n");
            if (length != -1)
                // Read data in one chunk
                byte serverData[] = new byte[length];
                dbgInfo.append("Attempting to read da input stream\n");
                iStrm.read(serverData);
                char chars[] = new char[length];
                for (int i = 0 ; i < length ; i++ )
                  chars[i] = (char) serverData;
    dbgInfo.append("Attempting str = new String(serverData)\n");
    strBfr = new StringBuffer(new String(chars));
    dbgInfo.append("end if\n");
    else // Length not available...
    dbgInfo.append(
    "Attempting to read the input stream one char at a time\n");
    ByteArrayOutputStream bStrm = new ByteArrayOutputStream();
    // Read data one character at a time
    int ch;
    while ( (ch = iStrm.read()) != -1)
    bStrm.write(ch);
    dbgInfo.append("Attempting str = new String(bStrm.toByteArray())\n");
    strBfr = new StringBuffer(new String(bStrm.toByteArray()));
    dbgInfo.append("Attempting bStrm.close()\n");
    bStrm.close();
    dbgInfo.append("Attempting tbMain.setString\n");
    tbMain.append("core j2me site file content :\n" + strBfr);
    dbgInfo.append("display.setCurrent(tbMain)\n");
    display.setCurrent(tbMain);
    dbgInfo.append("end else\n");
    finally
    dbgInfo.append("finally\n");
    if (iStrm != null)
    iStrm.close();
    if (http != null)
    http.close();
    dbgInfo.append("out of finally\n");
    public void pauseApp()
    public void destroyApp(boolean unconditional)
    public void commandAction( Command c, Displayable s )
    if ( c == cmExit )
    destroyApp(false);
    notifyDestroyed();

    Guys I finally managed to get a HTTP connection working on my P900. The problem was to do with my Mobile Network SP. It seems that they are limited in intelligence so when you say that you want access to the internet they will set you up to go to a WAP gateway which translates your requests and responses for your handset. I kept getting a -36 Symbian OS error which implied that the connection was being cut, since a the host name was resolved. After I had argued with the Data Support people for my network, explaining to them that WAP is not the a full Internet access, they finally managed to give me the right dns etc entries and my application was successfully able to communicate.
    Hope this helps, I have another problem to do with installing the same applications on the P900i but I will leave that for another forum :)

  • HttpConnection error (-7334) - Simple Servlet program

    hi .. iam having this problem on my p990i . .. cannot resolve it "By adding these headers "
    My code is simple .. Its takes the server ip address and server returns a string(variable s) to the client
    Midlet :
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import javax.microedition.io.*;
    import java.io.*;
    import java.util.Vector;
    public class MidletServlet extends MIDlet implements CommandListener {
    Display display = null;
    Form form = null;
    destroyApp(true);
    notifyDestroyed();
    } else if (c == backCommand) {
    display.setCurrent(form);
    } else if (c == submitCommand) {
    str = tb.getString();
    test = new Test(this,str);
    test.start();
    //test.getServlet(str);
    class Test implements Runnable {
    MidletServlet midlet;
    private Display display;
    String addr;
    public Test(MidletServlet midlet,String addr) {
    this.addr = addr;
    this.midlet = midlet;
    display = Display.getDisplay(midlet);
    public void start() {
    Thread t = new Thread(this);
    t.start();
    public void run() {
    // String Buffer
    StringBuffer sb ;
    try {
    String url = "http://"addr"/Servlets/servlet/getText";
    System.out.println(url);
    HttpConnection c = (HttpConnection) Connector.open(url,Connector.READ_WRITE);
    c.setRequestProperty("User-Agent","Profile/MIDP-2.0, Configuration/CLDC-1.1");
    c.setRequestProperty("Content-Language","en-US");
    c.setRequestMethod(HttpConnection.POST);
    // Get the response from the servlet page.
    DataInputStream is =(DataInputStream)c.openDataInputStream();
    //is = c.openInputStream();
    int ch;
    sb = new StringBuffer();
    while ((ch = is.read()) != -1) {
    sb.append((char)ch);
    showAlert(sb.toString());
    is.close();
    c.close();
    } catch (Exception e) {
    showAlert(e.getMessage());
    /* Display Error On screen*/
    private void showAlert(String err) {
    Alert a = new Alert("");
    a.setString("Error Occured :"+ err);
    a.setTimeout(Alert.FOREVER);
    display.setCurrent(a);
    Servlet
    import java.io.*;
    import java.text.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class getText extends HttpServlet {
    public void init() {
    public void doPost(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    System.out.println("Connected with client: " + request.getRemoteAddr());
    String s = " This is gonna be legendary";
    response.setHeader("Content-Type", "text/plain");
    response.setHeader("Cache-Control","no-store");
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Pragma","no-cache");
    response.setHeader("Cache-Control", "no-transform");
    response.setHeader("Connection", "Keep-Alive");
    response.setHeader("Proxy-Connection", "Keep-Alive");
    response.setContentType("text/plain");
    response.setContentLength(s.length());
    PrintWriter out = response.getWriter();
    out.println(s);
    System.out.println("Sent String : " +s);
    //in.close();
    out.close();
    out.flush();
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    doPost(request,response);
    i always get exception -7334 {Symbain OS error : contains header but no body in p990i}
    iam testing this on my personal Wifi network
    my server is :192.168.1.100
    my phone ip is : 192.168.1.105
    Iam trying to run this frompast 2 days .. no success .. :( PLzzzz help ..

    Hi,
    The J2EE Error code siply suggest that there is something wrong in your Deployment Descriptors...
    Can u please post the XML files available inside your "WEB-INF" directory?
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

  • Httpconnection error

    Hi,
    I have a Problem using a HttpConnection in my program. My code looks like
    the following:
         String url = "http://www.homelinux.org/Beta/servlet";
    //byte[] buf = new byte[512];
    try {
    //while(con == null){
    con = (HttpConnection) Connector.open(url);
    con.setRequestMethod(HttpConnection.GET);
    con.setRequestProperty("Accept-Language", "en-US");
    byte data[] = null;
    //Init inputstream
    int length = (int) con.getLength();
    is = con.openDataInputStream();
    ByteArrayOutputStream bStrm = new ByteArrayOutputStream();
    int ch;
    while ( (ch = is.read()) != -1) {
    bStrm.write(ch);
    data = bStrm.toByteArray();
    InfoScreen infoScreen = new InfoScreen("Information", frame,
    this,
    new String(data));
    frame.display.setCurrent(infoScreen);
    catch (Exception e) {
    InfoScreen infoScreen = new InfoScreen("Information", frame,
    this,
    e.getMessage());
    frame.display.setCurrent(infoScreen);
    finally {
    if (is != null) {
    try {
    is.close();
    catch (IOException ex1) {
    if (con != null) {
    try {
    con.close();
    catch (IOException ex2) {
    It works fine on Motorola V3 and Nokia 6620, but it doesn't work properly on my Sony Ericsson and Samsung phones. Actually the weird thing is that it does get some data from server. But every time after it read certain bytes( let's say 512 bytes. That's always different everytime), it would stop reading.
    What's wrong? Any suggestions anyone has would be greatly appreciated. I've nearly run out of ideas on how to address this problem.
    Thanks
    James

    Hi,
    Unfortunatelly it will not solve your problem. The mater is that I�ve a simmilar problem with a Sony-Ericsson K300a. The difference here is that my Servlet at server side recovers and sends back data to my MIDlet screen but working with the WTK22 emmulator connected to de web server via internet. When I try the same from my actual device I�ve not data nor error into my server logs.
    So, my question is: �do you think the problem source is related to SonyEricsson handsets?.
    I can see from the Forum thread tath you don�t received responses to your post and I cannot help you so much but, we can try to solve this problem.
    Finally: � Did you find any idea / sollution by another way?.
    BlufsteinEJ

  • ADF Mobile Client : Error while trying to import javax.microedition.*

    Hi,
    JDev throws errors at compile time when I try to deploy a sample ADF Mobile Client application.
    These errors are related to javax.microedition.io.* imports.
    Error(11,29): package javax.microedition.io does not exist
    Error(12,29): package javax.microedition.io does not exist
    Error(180,9): cannot find class HttpConnection
    Error(191,27): cannot find class HttpConnection
    Error(191,42): cannot find variable Connector
    Error(250,49): inconvertible types
    Error(303,40): cannot find variable HttpConnection
    Any pointers as to how these errors could be resolved?
    Is there a JDev Wireless extension that should be installed to resolve these J2ME related errors?
    For JDev 10g, I could locate one such extension called JWE here : http://www.oracle.com/technology/products/iaswe/archive/developer/index.html
    I could not find any similar extension for JDeveloper 11.1.3.
    Regards,
    Prasad.

    Hi, just want to make sure - did you install the ADF MObile Client extension yet? Please go to JDev-Help-Check for Updates-Official Oracle Extensions and Updates, and find Oracle ADF MObile Client Extension in the list. Check it, download it, and then restart JDev. Sounds like the extension was not installed, so it's not able to load any J2ME libraries.
    If you have downloaded the extension already, please go to project properties-libraries and classpath, and then see if the sample app is referencing some third party libraries, for example something from RIM. If so, please double check the path to the library.
    Once you installed the extension, you can also access the ADF Mobile Client developer guide - it contains all the documentation around what you need to install first. Please take a look and see what you need to install - at a minimum, you need to install BlackBerry JDE if you want to deploy to BlackBerry, and Windows Mobile Emulator if you want to test the app on Windows Mobile. Lastly, if you need to synchronize data, then you also need Oracle Database Lite MObile Server installation.
    Thanks,
    Joe Huang

  • Error in httpconnection in MIDlet

    hai all
    i use following code to get a connection from midlet.I try it using WTK2.0 and the emulator.But it asks that
    "Wants to send information.This will require the use of airtime which may cost you money. Is this OK?(http)"
    and then i select "this time.Ask me next time" option which is the default one.
    but i got error while connecting....
    please help..Thanks in advance.....

    I hope you are running httpConnection behind the proxy. I also got same problem when i tried to connect through the proxy. I solved the problem by using local Web Server in my system. I hope there is the problem from proxy when you connect through the proxy if your code is correct.

  • Error while invoking a Web Service from a Web Application in Websphere 5.1

    Hi,
    I get the following error when i try to connec to a Webservice on Weblogic server.
    Can anybody help me in determinig the reason for the error-
    faultCode: Server.generalException
    faultString: org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element ShipmentReference of bean vobject.tatservice.dhl.com.ShipmentReference.
    faultActor: null
    faultDetail:
    org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element ShipmentReference of bean vobject.tatservice.dhl.com.ShipmentReference.
    at com.ibm.ws.webservices.engine.WebServicesFault.makeFault(WebServicesFault.java:150)
    at com.ibm.ws.webservices.engine.SOAPPart.getSOAPEnvelope(SOAPPart.java:868)
    at com.ibm.ws.webservices.engine.SOAPPart.getFault(SOAPPart.java:1225)
    at com.ibm.ws.webservices.engine.Message.getFault(Message.java:757)
    at com.ibm.ws.webservices.engine.Message.ifFaultThrowSelf(Message.java:737)
    at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:252)
    at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:255)
    at com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.java:685)
    at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:611)
    at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:441)
    at com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java:662)
    at com.bea.www.TATServicePortStub.getDetailsFull(TATServicePortStub.java:874)
    at com.bea.www.TATServicePortProxy.getDetailsFull(TATServicePortProxy.java:134)
    at com.dhl.amis.cds.webtracking.action.TrackAction.experiment(TrackAction.java:160)
    at com.dhl.amis.cds.webtracking.action.TrackAction.execute(TrackAction.java:104)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    Caused by: org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element ShipmentReference of bean vobject.tatservice.dhl.com.ShipmentReference.
    at com.ibm.ws.webservices.engine.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:285)
    at com.ibm.ws.webservices.engine.events.P2DConverter.flush(P2DConverter.java:775)
    at com.ibm.ws.webservices.engine.events.P2DConverter.startElement(P2DConverter.java:270)
    at sax.SAX2DocumentEntityParserBase.startElement(Unknown Source)
    at sax.latin.LatinWFCSAX2DocumentEntityParser.startElement(Unknown Source)
    at sax.SAX2DocumentEntityParserBase.startElementAction(Unknown Source)
    at util.DocumentEntityParserBase.startElementEvent(Unknown Source)
    at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanStartElement(Unknown Source)
    at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanContent(Unknown Source)
    at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanDocument(Unknown Source)
    at sax.latin.LatinWFCSAX2DocumentEntityParser.scanDocument(Unknown Source)
    at util.DocumentEntityParserBase.parse(Unknown Source)
    at sax.SAX2DocumentEntityParserBase.parseEntity(Unknown Source)
    at sax.SAX2DocumentEntityParserBase.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at com.ibm.ws.webservices.engine.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:251)
    at com.ibm.ws.webservices.engine.SOAPPart.getSOAPEnvelope(SOAPPart.java:864)
    ... 39 more
    WebServicesFault
    faultCode: Server.generalException
    faultString: org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element ShipmentReference of bean vobject.tatservice.dhl.com.ShipmentReference.
    faultActor: null
    faultDetail:
    org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element ShipmentReference of bean vobject.tatservice.dhl.com.ShipmentReference.
    at com.ibm.ws.webservices.engine.WebServicesFault.makeFault(WebServicesFault.java:150)
    at com.ibm.ws.webservices.engine.SOAPPart.getSOAPEnvelope(SOAPPart.java:868)
    at com.ibm.ws.webservices.engine.SOAPPart.getFault(SOAPPart.java:1225)
    at com.ibm.ws.webservices.engine.Message.getFault(Message.java:757)
    at com.ibm.ws.webservices.engine.Message.ifFaultThrowSelf(Message.java:737)
    at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:252)
    at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:255)
    at com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.java:685)
    at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:611)
    at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:441)
    at com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java:662)
    at com.bea.www.TATServicePortStub.getDetailsFull(TATServicePortStub.java:874)
    at com.bea.www.TATServicePortProxy.getDetailsFull(TATServicePortProxy.java:134)
    at com.dhl.amis.cds.webtracking.action.TrackAction.experiment(TrackAction.java:160)
    at com.dhl.amis.cds.webtracking.action.TrackAction.execute(TrackAction.java:104)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    Caused by: org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element ShipmentReference of bean vobject.tatservice.dhl.com.ShipmentReference.
    at com.ibm.ws.webservices.engine.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:285)
    at com.ibm.ws.webservices.engine.events.P2DConverter.flush(P2DConverter.java:775)
    at com.ibm.ws.webservices.engine.events.P2DConverter.startElement(P2DConverter.java:270)
    at sax.SAX2DocumentEntityParserBase.startElement(Unknown Source)
    at sax.latin.LatinWFCSAX2DocumentEntityParser.startElement(Unknown Source)
    at sax.SAX2DocumentEntityParserBase.startElementAction(Unknown Source)
    at util.DocumentEntityParserBase.startElementEvent(Unknown Source)
    at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanStartElement(Unknown Source)
    at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanContent(Unknown Source)
    at com.ibm.xml.b2b.scan.latin.LatinWFCDocumentScanner.scanDocument(Unknown Source)
    at sax.latin.LatinWFCSAX2DocumentEntityParser.scanDocument(Unknown Source)
    at util.DocumentEntityParserBase.parse(Unknown Source)
    at sax.SAX2DocumentEntityParserBase.parseEntity(Unknown Source)
    at sax.SAX2DocumentEntityParserBase.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at com.ibm.ws.webservices.engine.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:251)
    at com.ibm.ws.webservices.engine.SOAPPart.getSOAPEnvelope(SOAPPart.java:864)
    ... 39 more
    [10/3/06 23:31:59:271 IST] ad6d507 SystemOut O Experiment exceptionorg.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element ShipmentReference of bean vobject.tatservice.dhl.com.ShipmentReference.

    Hi,
    Thanx it is working now.
    BTW can you give me some urls with info of this kind of setting which i need to do for other kind of integarions in J2EE platform.Sorry if i am asking too much as i am a starter in this technology.

  • Error in threading

    On clicking browse I am getting
    [bold]Warning:[bold] To avoid potential deadlock, operations that may block, such as
    networking, should be performed in a different thread than the
    commandAction() handler.
    Can anybody help?
    for the following code
    * MailAttachmentMidlet.java
    * Created on September 18, 2007, 12:53 PM
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.Enumeration;
    import javax.microedition.io.Connector;
    import javax.microedition.io.HttpConnection;
    import javax.microedition.io.file.FileConnection;
    import javax.microedition.io.file.FileSystemRegistry;
    import javax.microedition.lcdui.Alert;
    import javax.microedition.lcdui.AlertType;
    import javax.microedition.lcdui.Choice;
    import javax.microedition.lcdui.ChoiceGroup;
    import javax.microedition.lcdui.Command;
    import javax.microedition.lcdui.CommandListener;
    import javax.microedition.lcdui.Display;
    import javax.microedition.lcdui.Displayable;
    import javax.microedition.lcdui.Form;
    import javax.microedition.lcdui.Image;
    import javax.microedition.lcdui.List;
    import javax.microedition.lcdui.StringItem;
    import javax.microedition.lcdui.TextBox;
    import javax.microedition.lcdui.TextField;
    import javax.microedition.midlet.*;
    * @author  Sudipa
    * @version
    public class MailAttachmentMidlet extends MIDlet implements CommandListener,Runnable{
        String encodedData;
        HttpConnection conn;
       // Form mailform;
        private TextBox textattach;
        private String type=new String();
        private String agent=new String() ;
        private Display display;
        private static final String boundary = "-----------------------------" + Long.toString(System.currentTimeMillis(), 16);
        private static final String url=new String("http://localhost:8084/test/Upload2.jsp");
        private static final String[] attrList = { "Read", "Write", "Hidden" };
        private static final String[] typeList = { "Regular File", "Directory" };
        private static final String[] monthList =
            { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
        /* special string denotes upper directory */
        private static final String UP_DIRECTORY = "..";
        /* special string that denotes upper directory accessible by this browser.
         * this virtual directory contains all roots.
        private static final String MEGA_ROOT = "/";
        /* separator string as defined by FC specification */
        private static final String SEP_STR = "/";
        /* separator character as defined by FC specification */
        private static final char SEP = '/';
        private String currDirName;
        private Command upload = new Command("Upload", Command.ITEM, 1);
        private Command browse = new Command("Browse", Command.ITEM, 1);
        private Command view = new Command("View", Command.ITEM, 1);
        private Command prop = new Command("Properties", Command.ITEM, 2);
        private Command back = new Command("Back", Command.BACK, 2);
        private Command exit = new Command("Exit", Command.EXIT, 3);
        private TextField nameInput; // Input field for new file name
        private ChoiceGroup typeInput; // Input field for file type (regular/dir)
        private Image dirIcon;
        private Image fileIcon;
        private Image[] iconList;
        public MailAttachmentMidlet()
               //  encodedData=(" Content-Type: image/png�PNG  IHDR��asRGB���gAMA�? �a cHRMz&�����u0�`:�p��Q</IDAT8OE��o�Q��$������������%�? $V��\"!B$?h��/��SU�1>���L��L;)-������aA�P�����7���{�y�s���$�sR���+���/.�x��q���%6��~�]*w�I?I�1r���q?i�:��qxrN*B)��X�I�vJ�I�L�Pkp���r0��8k��4��������w��� �N��R���=��A ���^�0'����-������1�k?��I#{ ��r�'�?S�(�I|��?�Om��08�-4���R�Z�w?�\/M���� ��&ip�4��i��,�3�����7h��[x�]���7X����Mg�� �����?�.C'\MH_ ��;>^�,��^���;5�h�F.r��uHn�.�{��t��|+`���.3�?,q�@fM��J�{���!?�����hcb�s|{j?��U�G�h�>?��Yg?���������F���`�� ��9�-�v?���F������r0 &�JL���2G�%��4����> q��&y�D�� :���M����`b�L@�Ol�%���u�IEND�B`�");
        public synchronized byte[] getData(String filename)
        { byte[] b=null;
        try{
          System.out.println("file:///"+filename);
          FileConnection fc = (FileConnection)Connector.open("file:///"+filename);
          //  FileConnection fc = (FileConnection)Connector.open("file://e:/images/"+filename); 
             if(!fc.exists()) {
               Alert alert=new Alert("File do not exist");
               alert.setTimeout(Alert.FOREVER);
              display.setCurrent(alert);
             InputStream is = fc.openInputStream();
             b= new byte[(int)fc.fileSize()];
             int length = is.read(b, 0, (int)fc.fileSize());
             System.out.println
                ("Content of "+filename + ": "+ new String(b, 0, length));
          } catch (Exception e) {
             Alert alert=new Alert(e.getMessage());
               alert.setTimeout(Alert.FOREVER);
              display.setCurrent(alert);
          finally{
              return b;
    //          Enumeration filelist = fc.list("*", true);
        public void startApp() {
          startThread(); 
        public void pauseApp() {
         public void destroyApp(boolean unconditional) {
         * Show file list in the current directory .
        void showCurrDir() {
            Enumeration e;
            FileConnection currDir = null;
            List browser;
            try {
                if (MEGA_ROOT.equals(currDirName)) {
                    e = FileSystemRegistry.listRoots();
                    browser = new List(currDirName, List.IMPLICIT);
                } else {
                    currDir = (FileConnection)Connector.open("file://localhost/" + currDirName);
                    e = currDir.list();
                    browser = new List(currDirName, List.IMPLICIT);
                    // not root - draw UP_DIRECTORY
                    browser.append(UP_DIRECTORY, dirIcon);
                while (e.hasMoreElements()) {
                    String fileName = (String)e.nextElement();
                    if (fileName.charAt(fileName.length() - 1) == SEP) {
                        // This is directory
                        browser.append(fileName, dirIcon);
                    } else {
                        // this is regular file
                        browser.append(fileName, fileIcon);
                browser.setSelectCommand(view);
                //Do not allow creating files/directories beside root
                if (!MEGA_ROOT.equals(currDirName)) {
                    browser.addCommand(prop);
    //                browser.addCommand(creat);
    //                browser.addCommand(delete);
                browser.addCommand(exit);
                browser.setCommandListener(this);
                if (currDir != null) {
                    currDir.close();
                Display.getDisplay(this).setCurrent(browser);
            } catch (IOException ioe) {
                ioe.printStackTrace();
        void traverseDirectory(String fileName) {
            /* In case of directory just change the current directory
             * and show it
            if (currDirName.equals(MEGA_ROOT)) {
                if (fileName.equals(UP_DIRECTORY)) {
                    // can not go up from MEGA_ROOT
                    return;
                currDirName = fileName;
            } else if (fileName.equals(UP_DIRECTORY)) {
                // Go up one directory
                // TODO use setFileConnection when implemented
                int i = currDirName.lastIndexOf(SEP, currDirName.length() - 2);
                if (i != -1) {
                    currDirName = currDirName.substring(0, i + 1);
                } else {
                    currDirName = MEGA_ROOT;
            } else {
                currDirName = currDirName + fileName;
            showCurrDir();
        void showFile(String fileName) {
            try {
                FileConnection fc =
                    (FileConnection)Connector.open("file://localhost/" + currDirName + fileName);
                if (!fc.exists()) {
                    throw new IOException("File does not exists");
                InputStream fis = fc.openInputStream();
                byte[] b = new byte[1024];
                int length = fis.read(b, 0, 1024);
                fis.close();
                fc.close();
                TextBox viewer =
                    new TextBox("View File: " + fileName, null, 1024,
                        TextField.ANY | TextField.UNEDITABLE);
                viewer.addCommand(back);
                viewer.addCommand(exit);
                viewer.setCommandListener(this);
                if (length > 0) {
                    viewer.setString(new String(b, 0, length));
                Display.getDisplay(this).setCurrent(viewer);
            } catch (Exception e) {
                Alert alert =
                    new Alert("Error!",
                        "Can not access file " + fileName + " in directory " + currDirName +
                        "\nException: " + e.getMessage(), null, AlertType.ERROR);
                alert.setTimeout(Alert.FOREVER);
                Display.getDisplay(this).setCurrent(alert);
    void showProperties(String fileName) {
            try {
                if (fileName.equals(UP_DIRECTORY)) {
                    return;
                FileConnection fc =
                    (FileConnection)Connector.open("file://localhost/" + currDirName + fileName);
                if (!fc.exists()) {
                    throw new IOException("File does not exists");
                Form props = new Form("Properties: " + fileName);
                ChoiceGroup attrs = new ChoiceGroup("Attributes:", Choice.MULTIPLE, attrList, null);
                attrs.setSelectedFlags(new boolean[] { fc.canRead(), fc.canWrite(), fc.isHidden() });
                props.append(new StringItem("Location:", currDirName));
                props.append(new StringItem("Type: ", fc.isDirectory() ? "Directory" : "Regular File"));
                props.append(new StringItem("Modified:", myDate(fc.lastModified())));
                props.append(attrs);
                props.addCommand(back);
                props.addCommand(exit);
                props.setCommandListener(this);
                fc.close();
                Display.getDisplay(this).setCurrent(props);
            } catch (Exception e) {
                Alert alert =
                    new Alert("Error!",
                        "Can not access file " + fileName + " in directory " + currDirName +
                        "\nException: " + e.getMessage(), null, AlertType.ERROR);
                alert.setTimeout(Alert.FOREVER);
                Display.getDisplay(this).setCurrent(alert);
       private String myDate(long time) {
            Calendar cal = Calendar.getInstance();
            cal.setTime(new Date(time));
            StringBuffer sb = new StringBuffer();
            sb.append(cal.get(Calendar.HOUR_OF_DAY));
            sb.append(':');
            sb.append(cal.get(Calendar.MINUTE));
            sb.append(':');
            sb.append(cal.get(Calendar.SECOND));
            sb.append(',');
            sb.append(' ');
            sb.append(cal.get(Calendar.DAY_OF_MONTH));
            sb.append(' ');
            sb.append(monthList[cal.get(Calendar.MONTH)]);
            sb.append(' ');
            sb.append(cal.get(Calendar.YEAR));
            return sb.toString();
      public void run()
        display=Display.getDisplay(this);
    //        mailform= new Form("Attachment");
            textattach=new TextBox("Attachment","",100,TextField.ANY);
            upload=new Command("Upload",Command.SCREEN,1);
    //        mailform.append(textattach);
            textattach.addCommand(upload);
            textattach.addCommand(browse);
            textattach.setCommandListener(this);
            display.setCurrent(textattach); 
      public void startThread()
                Thread th=new Thread(this);
                th.run();
        public void commandAction(Command command,Displayable displayable)
            if(command==browse)
               currDirName = MEGA_ROOT;
            try {
                dirIcon = Image.createImage("/icons/dir.png");
            } catch (IOException e) {
                dirIcon = null;
            try {
                fileIcon = Image.createImage("/icons/file.png");
            } catch (IOException e) {
                fileIcon = null;
            iconList = new Image[] { fileIcon, dirIcon };
            try {
                showCurrDir();
            } catch (SecurityException e) {
                Alert alert =
                    new Alert("Error", "You are not authorized to access the restricted API", null,AlertType.ERROR);
                alert.setTimeout(Alert.FOREVER);
                Form form = new Form("Cannot access FileConnection");
                form.append(new StringItem(null,"You cannot run this MIDlet with the current permissions. Sign the MIDlet suite, or run it in a different security domain"));
                form.addCommand(exit);
                form.setCommandListener(this);
                Display.getDisplay(this).setCurrent(alert, form);
            } catch (Exception e) {
                e.printStackTrace();
         else   if(command==upload)
               if(!textattach.getString().equals(""))
             {try {type=new String("image/png");
               encodedData=new String(getData(textattach.getString()));  
                conn = (HttpConnection) Connector.open( url,Connector.READ_WRITE );
                conn.setRequestMethod( HttpConnection.POST );
    //          conn.setRequestProperty( "User-Agent", agent );
                conn.setRequestProperty( "Content-Type", type );
                conn.setRequestProperty( "Content-Length",new Integer(encodedData.length()).toString());
                OutputStream os = conn.openOutputStream();         
                System.out.println("success");
                String HeaderStr=boundary+new String(" Content-Disposition: form-data; name=\"uname\" fsdgfs ")+boundary+new String(" Content-Disposition: form-data; name=\"upfile\"; filename=\"_suite_8.png\" Content-Type: image/png");
                String FooterStr=new String(" ")+boundary+new String("--")+new String("\r\n");
                System.out.println((HeaderStr+""+ encodedData.trim()+FooterStr).getBytes());
                os.write((HeaderStr+""+ encodedData+FooterStr).getBytes());
                os.close();
                int rc = conn.getResponseCode();
               textattach.setString("");
            } catch (IOException ex) {
               Alert alert=new Alert(ex.getMessage());
               alert.setTimeout(Alert.FOREVER);
              display.setCurrent(alert);
        }else if (command == view) {
                List curr = (List)displayable;
                final String currFile = curr.getString(curr.getSelectedIndex());
                new Thread(new Runnable() {
                        public void run() {
                            if (currFile.endsWith(SEP_STR) || currFile.equals(UP_DIRECTORY)) {
                                traverseDirectory(currFile);
                            } else {
                                // Show file contents
                                showFile(currFile);
                    }).start();
            } else if (command == prop) {
                List curr = (List)displayable;
                String currFile = curr.getString(curr.getSelectedIndex());
                showProperties(currFile);
         else if (command == back) {
                showCurrDir();
            } else if (command == exit) {
                destroyApp(false);
    //        else if (command == delete) {
    //            List curr = (List)d;
    //            String currFile = curr.getString(curr.getSelectedIndex());
    //            executeDelete(currFile);
    }

    {color:#000080}This article explains it far better than I could even attempt to ;-){color}
    http://developers.sun.com/mobility/midp/articles/threading/
    {color:#000080}db{color}

  • Com.sun.tools.javac.Main: method compile errors

    I had a working web project the other day, and something happened that caused every page to start throwing this error:
    # javax.servlet.ServletException: com.sun.tools.javac.Main: method compile([Ljava/lang/String;Ljava/io/PrintWriter;)I not found
    # at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:779)
    # at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    # at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    # at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    # at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    # at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    # at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:978)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    # at com.mayco.mvc.MVCServlet.processRequest(MVCServlet.java:426)
    # at com.mayco.ldap.MayServlet.service(MayServlet.java:415)
    # at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    # at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    # at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    # at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    # at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    # at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
    # at com.mayco.cy.filter.AuthenticateFilter.doFilter(AuthenticateFilter.java:167)
    # at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
    # at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    # at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    # at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    # at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    # at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    # at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    # at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    # at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    # at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    # at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    I tried setting up a clean environment (server, EAR, web project), but haven't been able to re-solve the problem I had with the original project yet.  If I could get a starting point to look for how to solve this type of error it would be greatly appreciated!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I checked my JDK compliance (1.4) and the installed JREs (Standard VM; WebSphere v5.1 EE JRE; C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51_stub\java\jre)
    I did notice that it was using the JRE System LIbrary [WebSphere v5.1 JRE] and I changed it to the WebSphere v5.1 EE JRE like I think it should have been...
    and the web server startup begins with:
    *** Starting the server ***
    ************ Start Display Current Environment ************
    WebSphere Platform 5.1 [BASE 5.1.0.3 cf30412.02] [JDK 1.4.1 b0344.02] running with process name localhost\localhost\server1 and process id 2692
    Host Operating System is Windows XP, version 5.1
    Java version = J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
    was.install.root = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51
    user.install.root = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51
    Java Home = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51\java\jre
    ws.ext.dirs = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/lib;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/ext;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/web/help;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:/Program Files/IBM/SQLLIB/java/db2java.zip;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.2/runtime/worf.jar
    Classpath = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/bootstrap.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/j2ee.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/lmproxy.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/urlprotocols.jar;C:\WebSphere\properties;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\bcprov-jdk14-139.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\config.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\spi4jStub_2.5.4.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES100J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES110J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES120J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES200J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XTCP211.jar;C:\spi4j2.5.4_J2ee1.4\Demo\log4j-1.2.8.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\spi4jCore_2.5.4.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\axis-1.1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\xmlParserAPIs-2_2_1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\jaxrpc.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\wsdl4j.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\fsgWsif1.1.jar;C:\spi4j2.5.4_J2ee1.4\Demo\commons-logging.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\tools.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-pool-1.2.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\saaj.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-beanutils-core.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-collections-3.1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-discovery.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-lang-2.1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\connector.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\FEDRWSCHECKSTATUSAxisInfo.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\fscontext.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\IFSClassLoader1.2.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\j2ee1.4.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\jca.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\jta.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\mail.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\providerutil.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\qname.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\soaprmi-1_1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\xalan.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\xercesImpl-2_2_1.jar;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wteServers.jar;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wasToolsCommon.jar
    Java Library path = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/jre/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\eclipse\jre\bin;.;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\eclipse\jre\bin;C:\oracle\product\10.2.0\client_2\bin;C:\oracle\product\10.2.0\client_1\bin;Y:\oracle\ora92\BIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\PROGRA~1\CA\ETRUST~1;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Rational\common;C:\Program Files\Rational\ClearCase\bin;C:\Program Files\IBM\SDP70\jdk\bin
    ************* End Display Current Environment *************

  • Request.getParameter  error hyfen

    Hi
    I am sending information from midlet to a servlet with the use of datainputstream.
    Dataoutputstream doesnt work for me.
    I am sending strings in this way
    hc = (HttpConnection)Connector.open(url+ + + + + "&task_name=" + report.getTaskName() , Connector.READ_WRITE);
    When i receive by getparameter a string without hyfens it reads the string good, but when there are hyfens in the string it reads only the first word leaving the other words away. (this resolves in an error later on)
    How can i solve this problem
    Urgent!!

    hi,
    When you are appending to url ie you are using http get method.so if there are any special character in your string you have to encode the url before sending it to server.
    ie if i want to send a black space %20 is the values for blank space, hope you got me.
    Unfortunately there is no encode url method available in J2ME API.
    Why not to use http post method insted of get.Try sending the data as bytes and in server side open a input stream and read the data.
    HTH
    phani

  • Error while trying to run a secure web proxy client

    Hi,
    I was able to generate a secure proxy client using JDev10.1.3 and I'm able to open the jks file using the keytool gui client. The jks file does not appear to be corrupt or tampered with in anyway. However, when I try to run the secure proxy client, I'm getting the following error:
    Nov 28, 2006 12:42:57 PM oracle.security.jazn.util.KeyStoreUtil loadKeystore
    SEVERE: Error reading keystore data
    java.io.IOException: Keystore was tampered with, or password was incorrect
         at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:768)
         at java.security.KeyStore.load(KeyStore.java:1150)
         at oracle.security.jazn.util.KeyStoreUtil.loadKeystore(KeyStoreUtil.java:260)
         at oracle.security.wss.config.ConfigVisitor.validateKeyStore(ConfigVisitor.java:225)
         at oracle.security.wss.config.ConfigVisitor.visitPortConfig(ConfigVisitor.java:116)
         at oracle.security.wss.interceptors.SecurityPortDescriptor.validate(SecurityPortDescriptor.java:182)
         at oracle.security.wss.interceptors.SecurityPortDescriptor.configure(SecurityPortDescriptor.java:156)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientInterceptorPortRuntime.reconfigure(ClientInterceptorPortRuntime.java:57)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientInterceptorPortRuntime.<init>(ClientInterceptorPortRuntime.java:34)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientInterceptorRuntime.createInterceptorPort(ClientInterceptorRuntime.java:155)
         at oracle.j2ee.ws.common.mgmt.runtime.InterceptorContainerImpl.setupPort(InterceptorContainerImpl.java:80)
         at oracle.j2ee.ws.common.mgmt.runtime.InterceptorContainerImpl.handlePortChange(InterceptorContainerImpl.java:165)
         at oracle.j2ee.ws.common.mgmt.runtime.InterceptorContainerImpl.handleChange(InterceptorContainerImpl.java:254)
         at oracle.j2ee.ws.common.mgmt.runtime.AbstractInterceptorConfig.notifyConfigListeners(AbstractInterceptorConfig.java:47)
         at oracle.j2ee.ws.common.mgmt.runtime.AbstractInterceptorConfig.notifyConfigListeners(AbstractInterceptorConfig.java:54)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientInterceptorConfig.parsePortElement(ClientInterceptorConfig.java:88)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientInterceptorConfig.load(ClientInterceptorConfig.java:56)
         at oracle.j2ee.ws.common.mgmt.runtime.InterceptorContainerImpl.initializeContainer(InterceptorContainerImpl.java:41)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientInterceptorPipeline.init(ClientInterceptorPipeline.java:76)
         at oracle.j2ee.ws.client.StubBase.setupInterceptor(StubBase.java:333)
         at oracle.j2ee.ws.client.StubBase.setupConfig(StubBase.java:300)
         at sevissecuredirectclientv2.proxy.runtime.SevisServiceSoapBinding_Stub.<init>(SevisServiceSoapBinding_Stub.java:47)
         at sevissecuredirectclientv2.proxy.runtime.ValidatingSevisServiceProxyService_Impl.getSevisService(ValidatingSevisServiceProxyService_Impl.java:60)
         at sevissecuredirectclientv2.proxy.SevisServiceClient.<init>(SevisServiceClient.java:18)
         at sevissecuredirectclientv2.proxy.SevisServiceClient.main(SevisServiceClient.java:26)
    SEVERE: Invalid port config oracle.security.wss.config.SecurityPortImpl@1d10a5c
    java.lang.RuntimeException: Invalid port config : Error reading keystore data
         at oracle.security.wss.interceptors.SecurityPortDescriptor.configure(SecurityPortDescriptor.java:159)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientInterceptorPortRuntime.reconfigure(ClientInterceptorPortRuntime.java:57)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientInterceptorPortRuntime.<init>(ClientInterceptorPortRuntime.java:34)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientInterceptorRuntime.createInterceptorPort(ClientInterceptorRuntime.java:155)
         at oracle.j2ee.ws.common.mgmt.runtime.InterceptorContainerImpl.setupPort(InterceptorContainerImpl.java:80)
         at oracle.j2ee.ws.common.mgmt.runtime.InterceptorContainerImpl.handlePortChange(InterceptorContainerImpl.java:165)
         at oracle.j2ee.ws.common.mgmt.runtime.InterceptorContainerImpl.handleChange(InterceptorContainerImpl.java:254)
         at oracle.j2ee.ws.common.mgmt.runtime.AbstractInterceptorConfig.notifyConfigListeners(AbstractInterceptorConfig.java:47)
         at oracle.j2ee.ws.common.mgmt.runtime.AbstractInterceptorConfig.notifyConfigListeners(AbstractInterceptorConfig.java:54)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientInterceptorConfig.parsePortElement(ClientInterceptorConfig.java:88)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientInterceptorConfig.load(ClientInterceptorConfig.java:56)
         at oracle.j2ee.ws.common.mgmt.runtime.InterceptorContainerImpl.initializeContainer(InterceptorContainerImpl.java:41)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientInterceptorPipeline.init(ClientInterceptorPipeline.java:76)
         at oracle.j2ee.ws.client.StubBase.setupInterceptor(StubBase.java:333)
         at oracle.j2ee.ws.client.StubBase.setupConfig(StubBase.java:300)
         at sevissecuredirectclientv2.proxy.runtime.SevisServiceSoapBinding_Stub.<init>(SevisServiceSoapBinding_Stub.java:47)
         at sevissecuredirectclientv2.proxy.runtime.ValidatingSevisServiceProxyService_Impl.getSevisService(ValidatingSevisServiceProxyService_Impl.java:60)
         at sevissecuredirectclientv2.proxy.SevisServiceClient.<init>(SevisServiceClient.java:18)
         at sevissecuredirectclientv2.proxy.SevisServiceClient.main(SevisServiceClient.java:26)
    SEVERE: Error reading keystore data
    java.io.IOException: Keystore was tampered with, or password was incorrect
         at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:768)
         at java.security.KeyStore.load(KeyStore.java:1150)
         at oracle.security.jazn.util.KeyStoreUtil.loadKeystore(KeyStoreUtil.java:260)
         at oracle.security.wss.config.ConfigVisitor.validateKeyStore(ConfigVisitor.java:225)
         at oracle.security.wss.config.ConfigVisitor.visitPortConfig(ConfigVisitor.java:116)
         at oracle.security.wss.interceptors.SecurityPortDescriptor.validate(SecurityPortDescriptor.java:182)
         at oracle.security.wss.interceptors.SecurityPortDescriptor.configure(SecurityPortDescriptor.java:149)
         at oracle.security.wss.interceptors.AbstractSecurityInterceptor.init(AbstractSecurityInterceptor.java:86)
         at oracle.j2ee.ws.common.mgmt.runtime.InterceptorChainImpl.createInterceptor(InterceptorChainImpl.java:82)
         at oracle.j2ee.ws.common.mgmt.runtime.InterceptorChainImpl.<init>(InterceptorChainImpl.java:46)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientPortRuntime.getInterceptorChain(ClientPortRuntime.java:146)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientInterceptorPipeline.init(ClientInterceptorPipeline.java:79)
         at oracle.j2ee.ws.client.StubBase.setupInterceptor(StubBase.java:333)
         at oracle.j2ee.ws.client.StubBase.setupConfig(StubBase.java:300)
         at sevissecuredirectclientv2.proxy.runtime.SevisServiceSoapBinding_Stub.<init>(SevisServiceSoapBinding_Stub.java:47)
         at sevissecuredirectclientv2.proxy.runtime.ValidatingSevisServiceProxyService_Impl.getSevisService(ValidatingSevisServiceProxyService_Impl.java:60)
         at sevissecuredirectclientv2.proxy.SevisServiceClient.<init>(SevisServiceClient.java:18)
         at sevissecuredirectclientv2.proxy.SevisServiceClient.main(SevisServiceClient.java:26)
    SEVERE: Invalid port config oracle.security.wss.config.SecurityPortImpl@1d10a5c
    java.lang.RuntimeException: Invalid port config : Error reading keystore data
         at oracle.security.wss.interceptors.SecurityPortDescriptor.configure(SecurityPortDescriptor.java:159)
         at oracle.security.wss.interceptors.AbstractSecurityInterceptor.init(AbstractSecurityInterceptor.java:86)
         at oracle.j2ee.ws.common.mgmt.runtime.InterceptorChainImpl.createInterceptor(InterceptorChainImpl.java:82)
         at oracle.j2ee.ws.common.mgmt.runtime.InterceptorChainImpl.<init>(InterceptorChainImpl.java:46)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientPortRuntime.getInterceptorChain(ClientPortRuntime.java:146)
         at oracle.j2ee.ws.client.mgmt.runtime.ClientInterceptorPipeline.init(ClientInterceptorPipeline.java:79)
         at oracle.j2ee.ws.client.StubBase.setupInterceptor(StubBase.java:333)
         at oracle.j2ee.ws.client.StubBase.setupConfig(StubBase.java:300)
         at sevissecuredirectclientv2.proxy.runtime.SevisServiceSoapBinding_Stub.<init>(SevisServiceSoapBinding_Stub.java:47)
         at sevissecuredirectclientv2.proxy.runtime.ValidatingSevisServiceProxyService_Impl.getSevisService(ValidatingSevisServiceProxyService_Impl.java:60)
         at sevissecuredirectclientv2.proxy.SevisServiceClient.<init>(SevisServiceClient.java:18)
         at sevissecuredirectclientv2.proxy.SevisServiceClient.main(SevisServiceClient.java:26)
    Process exited with exit code 0.
    I'm using X509 to authentic.
    Please help.
    Thanks in advance for your quick response.
    Regards,
    David R

    I am using a single self signed certificate created using keytool on both the client and server end.
    Tried this sample code to fetch the WSDL of my webservice. Successfully did this.
    ===========================================================
    import HTTPClient.HTTPConnection;
    import HTTPClient.HTTPResponse;
    import javax.security.cert.X509Certificate;
    import oracle.security.ssl.OracleSSLCredential;
    import java.io.IOException;
    import javax.net.ssl.SSLPeerUnverifiedException;
    import javax.net.ssl.SSLSession;
    public class SSLSocketClientWithClientAuth {
    public static void main(String[] args) {
    if (args.length < 4) {
    System.out.println("Usage: java HTTPSConnectionTest [host] [port] " +
    "[wallet] [password]");
    System.exit(-1);
    String hostname = args[0].toLowerCase();
    int port = Integer.decode(args[1]).intValue();
    String walletPath = args[2];
    String password = args[3];
    HTTPConnection httpsConnection = null;
    OracleSSLCredential credential = null;
    try {
    httpsConnection = new HTTPConnection("https", hostname, port);
    } catch (IOException e) {
    System.out.println("HTTPS Protocol not supported");
    System.exit(-1);
    try {
    credential = new OracleSSLCredential();
    credential.setWallet(walletPath, password);
    } catch (IOException e) {
    System.out.println("Could not open wallet");
    System.exit(-1);
    httpsConnection.setSSLEnabledCipherSuites(new String[]{"SSL_RSA_WITH_RC4_128_SHA","SSL_RSA_WITH_3DES_EDE_CBC_SHA","SSL_RSA_WITH_RC4_128_MD5","SSL_RSA_WITH_DES_CBC_SHA","SSL_DH_anon_WITH_3DES_EDE_CBC_SHA"});
    // httpsConnection.setSSLCredential(credential);
    System.out.println("Set credentials and cipher suite");
    try {
    httpsConnection.connect();
    System.out.println("Connected!!!!!");
    } catch (IOException e) {
    System.out.println("Could not establish connection");
    e.printStackTrace();
    System.exit(-1);
    //javax.servlet.request.
    X509Certificate[] peerCerts = null;
    /* try {
    SSLSession sslSession = httpsConnection.getSSLSession();
    System.out.println("Getting session.........");
    httpsConnection.connect();
    }catch(Exception e){
    e.printStackTrace();
    System.out.println("null Getting session.........");
    System.exit(-1);
    try{
    peerCerts =
    (httpsConnection.getSSLSession()).getPeerCertificateChain();
    } catch (javax.net.ssl.SSLPeerUnverifiedException e) {
    System.err.println("Unable to obtain peer credentials");
    e.printStackTrace();
    System.exit(-1);
    String peerCertDN =
    peerCerts[peerCerts.length - 1].getSubjectDN().getName();
    peerCertDN = peerCertDN.toLowerCase();
    if (peerCertDN.lastIndexOf("cn=" + hostname) == -1) {
    System.out.println("Certificate for " + hostname +
    " is issued to " + peerCertDN);
    System.out.println("Aborting connection");
    System.exit(-1);
    try {
    HTTPResponse rsp = httpsConnection.Get("/spmlws/HttpSoap11?wsdl");
    System.out.println("Server Response: ");
    System.out.println(rsp.getText());
    System.out.println("Server Response: ");
    System.out.println(rsp.getText());
    } catch (Exception e) {
    System.out.println("Exception occured during Get");
    e.printStackTrace();
    System.exit(-1);
    =====================================================
    But on using the client proxy generated for my webserice using JDeveloper and then setting the system properties such as
    System.setProperty("javax.net.ssl.keyStore",keyStore);
    System.setProperty("javax.net.ssl.keyStorePassword", keyStorePassword);
    System.setProperty("javax.net.ssl.trustStore", trustStore);
    System.setProperty("javax.net.ssl.trustStorePassword",trustStorePassword);
    System.setProperty("javax.net.ssl.keyStoreType","JKS");
    System.setProperty("javax.net.ssl.trustStoreType","JKS");
    I get the following exception:
    <MSG_TEXT>IOException in ServerSocketAcceptHandler$AcceptHandlerHorse:run</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[javax.net.ssl.SSLProtocolException: handshake alert: no_certificate
                at com.sun.net.ssl.internal.ssl.ServerHandshaker.handshakeAlert(ServerHandshaker.java:1031)
                at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1535)
                at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:863)
                at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
                at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1038)
                at oracle.oc4j.network.ServerSocketAcceptHandler.doSSLHandShaking(ServerSocketAcceptHandler.java:250)
                at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:868)
                at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
                at java.lang.Thread.run(Thread.java:595)
    ]]></SUPPL_DETAIL>
    Please if anybody can help me with this!!!!
    Thanks in advance
    Nilesh

  • Error while migrating from 10g to 11g

    Hi
    I am migrating a bpel process wit partner link activity from 10g to 11g
    I got an error.It says there is no composite file in the process .so, migration is filed.
    Pls help me...

    Hi Eric,
    Thanks for the reply.Here is the info in the logfile.
    INFO: UPGBPEL-02036: Starting migration for source projects in the list : "C:\jdevstudio10131\jdev\mywork\myBPELApplication\PickDemo.backup.backup"
    INFO: UPGBPEL-02029: Backed up source contents can be found in: "C:\jdevstudio10131\jdev\mywork\myBPELApplication\PickDemo.backup.backup.backup"
    INFO: UPGBPEL-02007: Using source directory list: "C:\jdevstudio10131\jdev\mywork\myBPELApplication\PickDemo.backup.backup\bpel"
    INFO: UPGBPEL-02008: Using target directory: "C:\jdevstudio10131\jdev\mywork\myBPELApplication\PickDemo.backup.backup"
    INFO: UPGBPEL-02047: Upgrade messages are available in log file : "C:\OFM\jdev_home\jdeveloper\\upgrade\logs\PickDemo.backup.backup2010-08-16-15-43-33PM.log"
    INFO: Suitcase directory is C:\jdevstudio10131\jdev\mywork\myBPELApplication\PickDemo.backup.backup\bpel
    INFO: There are 0 task files in the suitcase
    INFO: No more than one .task file in the upgrade source directory and hence not upgrading the bpel src
    INFO: UPGBPEL-02041: Retrieving wsdl for partnerLink "AsyncWait" from "http://xppro:8888/orabpel/default/AsyncWait/AsyncWait?wsdl". This wsdl location can be used later for any manual setup of composite reference binding, if the upgrade plan includes using 1013x endpoints for the interim.
    SEVERE: Upgrade failed. Check the logs for any exceptions. Ensure that the WSDL URLs specified in the project are reachable and a valid 10.1.3.x project is used for upgrade. Before re-attempting upgrade, restore the original project code source from the backup directory.
    java.net.ConnectException: Connection refused: connect
         at oracle.viewgen.plugin.bpel.BPELPlugin.createComponentType(BPELPlugin.java:172)
         at oracle.viewgen.ViewGenerator.main(ViewGenerator.java:223)
    Caused by: oracle.j2ee.ws.wsdl.LocalizedWSDLException: WSDLException: faultCode=PARSER_ERROR: Failed to read wsdl file at: "http://xppro:8888/orabpel/default/AsyncWait/AsyncWait?wsdl", caused by: java.net.ConnectException. : java.net.ConnectException: Connection refused: connect
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:371)
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:615)
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:258)
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:229)
         at oracle.viewgen.wsdl.WSDLUtil.getWSDL(WSDLUtil.java:60)
         at oracle.viewgen.componentType.bpel.BpelDDUtil.checkAndUpdateBPELDD(BpelDDUtil.java:477)
         at oracle.viewgen.plugin.bpel.BPELPlugin.createComponentType(BPELPlugin.java:107)
         ... 1 more
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:525)
         at java.net.Socket.connect(Socket.java:475)
         at java.net.Socket.<init>(Socket.java:372)
         at java.net.Socket.<init>(Socket.java:215)
         at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:212)
         at HTTPClient.HTTPConnection$EstablishConnection$2.run(HTTPConnection.java:4268)
         at HTTPClient.HttpClientConfiguration.doAction(HttpClientConfiguration.java:708)
         at HTTPClient.HTTPConnection.doAction(HTTPConnection.java:5379)
         at HTTPClient.HTTPConnection$EstablishConnection.run(HTTPConnection.java:4254)
    i dont have any clue on this error.

  • ERROR request POST returns a 411 error

    I have some problems sending a POST request from my midlet:
    if i send from 1 to 1448 the servlet takes the content and stores it on a local file
    if i send from 1449 to 2000 the servlet takes the content and stores it on a local file up to only 1.41 k (1449 characters) and the emulator takes really long before it returns a "file saved succesfully" message.
    if i send above about 2000 characters the servlet returns a 411 error ..
    The midlet code is divided in two classes ... the HttpMidlet implements midlet and GUIs classes... whereas the Download class connects in a separate thread
    HttpMidlet code
    * HttpMidlet.java
    * Created on October 23, 2001, 11:19 AM
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.io.*;
    import java.io.*;
    * @author  kgabhart
    * @version
    public class HttpMidlet extends MIDlet implements CommandListener {
        // A default URL is used. User can change it from the GUI
        private static String       defaultURL = "someURL";
        // Main MIDP display
        private Display             myDisplay = null;
        // GUI component for entering a URL
        private Form                requestScreen;
        private TextField           requestField;
        // GUI component for submitting request
        private List                list;
        private String[]            menuItems;
        // GUI component for displaying server responses
        private Form                resultScreen;
        private StringItem          resultField;
        String result;
        // the "send" button used on requestScreen
        Command sendCommand;
        // the "exit" button used on the requestScreen
        Command exitCommand;
        // the "back" button used on resultScreen
        Command backCommand;
        public HttpMidlet(){
            // initialize the GUI components
            myDisplay = Display.getDisplay( this );
            sendCommand = new Command( "SEND", Command.OK, 1 );
            exitCommand = new Command( "EXIT", Command.OK, 1 );
            backCommand = new Command( "BACK", Command.OK, 1 );
            // display the request URL
            requestScreen = new Form( "Type in a URL:" );
            requestField = new TextField( null, defaultURL, 100, TextField.URL );
            requestScreen.append( requestField );
            requestScreen.addCommand( sendCommand );
            requestScreen.addCommand( exitCommand );
            requestScreen.setCommandListener( this );
            // select the HTTP request method desired
            menuItems = new String[] {"GET Request", "POST Request"};   
            list = new List( "Select an HTTP method:", List.IMPLICIT, menuItems, null );
            list.setCommandListener( this );
            // display the message received from server
            resultScreen = new Form( "Server Response:" );
            resultScreen.addCommand( backCommand );
            resultScreen.setCommandListener( this );
        }//end HttpMidlet()
        public void startApp() {
            myDisplay.setCurrent( requestScreen );
        }//end startApp()
        public void commandAction( Command com, Displayable disp ) {
            // when user clicks on the "send" button
            if ( com == sendCommand ) {
                myDisplay.setCurrent( list );
            } else if ( com == backCommand ) {
                // do it all over again
                requestField.setString( defaultURL );
                myDisplay.setCurrent( requestScreen );
            } else if ( com == exitCommand ) {
                destroyApp( true );
                notifyDestroyed();
            }//end if ( com == sendCommand )
            if ( disp == list && com == List.SELECT_COMMAND ) {
                if ( list.getSelectedIndex() == 0 ) // send a GET request to server
                  result = sendHttpGet( requestField.getString() );
                else // send a POST request to server
                  //result = sendHttpPost( requestField.getString() );
                  this.sendHttpPost( requestField.getString() );
                //resultField = new StringItem( null, result );
                //resultScreen.append( resultField );
                //resultScreen.append( result);
                //myDisplay.setCurrent( resultScreen );
            }//end if ( dis == list && com == List.SELECT_COMMAND )
        }//end commandAction( Command, Displayable )
        private String sendHttpGet( String url )
            HttpConnection      hcon = null;
            DataInputStream     dis = null;
            StringBuffer        responseMessage = new StringBuffer();
            try {
                // a standard HttpConnection with READ access
                hcon = ( HttpConnection )Connector.open( url );
                // obtain a DataInputStream from the HttpConnection
                dis = new DataInputStream( hcon.openInputStream() );
                // retrieve the response from the server
                int ch;
                while ( ( ch = dis.read() ) != -1 ) {
                    responseMessage.append( (char) ch );
                }//end while ( ( ch = dis.read() ) != -1 )
            catch( Exception e )
                e.printStackTrace();
                responseMessage.append( "ERROR" );
            } finally {
                try {
                    if ( hcon != null ) hcon.close();
                    if ( dis != null ) dis.close();
                } catch ( IOException ioe ) {
                    ioe.printStackTrace();
                }//end try/catch
            }//end try/catch/finally
            return responseMessage.toString();
        }//end sendHttpGet( String )
        private void sendHttpPost( String url )
            //adding code to run thread call
             String contenT = "4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444";//String tempURL = url /*+ "?filename=" + filename */;
            Download download = new Download (url, this, contenT);
            download.start ();
        }//end sendHttpPost( String )
        public void setOutput (String result)
            result = result.toString();
            resultScreen.append( result);
            myDisplay.setCurrent( resultScreen );
        public void pauseApp() {
        }//end pauseApp()
        public void destroyApp( boolean unconditional ) {
            // help Garbage Collector
            myDisplay = null;
            requestScreen = null;
            requestField = null;
            resultScreen = null;
            resultField = null;
        }//end destroyApp( boolean )
    }//end HttpMidletThe Download class:
    //class modified by Diego Gullo to implement multi-threaded connections in MIDP
    //importing packages
    import javax.microedition.io.*;
    import java.io.*;
    import javax.microedition.midlet.*;
    class Download implements Runnable
        private String url;
        private String contenT;
        private HttpMidlet MIDlet;
        //private String imageName = null;
        private boolean downloadSuccess = false;
        //private String downloadResult;
        public Download (String url, HttpMidlet MIDlet, String content)  //, String imageName)
            this.contenT = content;
            this.url = url;
            this.MIDlet = MIDlet;
            //this.imageName = imageName;
        * Download the image
        public void run ()
            try
                sendContent (url);
            catch (Exception e)
                System.err.println ("Msg: " + e.toString ());
        * Create and start the new thread
        public void start ()
            Thread thread = new Thread (this);
            try
                thread.start ();
            catch (Exception e)
        * Open connection and download png into a byte array.
        private void sendContent (String url) throws IOException
            HttpConnection      hcon = null;
            DataInputStream     dis = null;
            DataOutputStream    dos = null;
            StringBuffer        responseMessage = new StringBuffer();
            // the request body
            String              requeststring = contenT;
            try {
                // an HttpConnection with both read and write access
                hcon = ( HttpConnection )Connector.open( url, Connector.READ_WRITE );
                // set the request method to POST
                hcon.setRequestMethod( HttpConnection.POST );
                // obtain DataOutputStream for sending the request string
                dos = hcon.openDataOutputStream();
                byte[] request_body = requeststring.getBytes();
                // send request string to server
                for( int i = 0; i < request_body.length; i++ ) {
                    dos.writeByte( request_body[i] );
                }//end for( int i = 0; i < request_body.length; i++ )
                // obtain DataInputStream for receiving server response
                dis = new DataInputStream( hcon.openInputStream() );
                // retrieve the response from server
                int ch;
                while( ( ch = dis.read() ) != -1 ) {
                    responseMessage.append( (char)ch );
                }//end while( ( ch = dis.read() ) != -1 ) {
            catch( Exception e )
                e.printStackTrace();
                responseMessage.append( "ERROR" );
            finally {
                // free up i/o streams and http connection
                try {
                    if( hcon != null ) hcon.close();
                    if( dis != null ) dis.close();
                    if( dos != null ) dos.close();
                } catch ( IOException ioe ) {
                    ioe.printStackTrace();
                }//end try/catch
            }//end try/catch/finally
            // Return to the caller the status of the content
            if (responseMessage == null)
                //*MIDlet.*/this.setResult ("No content received!");
                while (responseMessage == null)
                    this.sendContent (url);
            else
                //MIDlet.im = result;
                //MIDlet.result = result;
                MIDlet.setOutput (responseMessage.toString());
                //*MIDlet.*/this.setResult (result);
    }Any suggestions to solve the problem???
    Thanks

    we've only deployed on 10.1.3.0.0 so i have not been able to confirm that this is not an issue in 10.1.3.1.0.
    even if this has been fixed in 10.1.3.1.0, upgrading may not be an option for us, so we prefer a fix for this in 10.1.3.0.0.
    thanks,
    ted

  • Need help with my HttpConnection From Midlet To Servlet...

    NEED HELP ASAP PLEASE....
    This class is supposed to download a file from the servlet...
    the filename is given by the midlet... and the servlet will return the file in bytes...
    everything is ok in emulator...
    but in nokia n70... error occurs...
    Http Version Mismatch shows up... when the pout.flush(); is called.. but when removed... java.io.IOException: -36 occurs...
    also i have posted the same problem in nokia forums..
    please check also...
    http://discussion.forum.nokia.com/forum/showthread.php?t=105567
    now here are my codes...
    midlet side... without pout.flush();
    public class DownloadFile {
        private GmailMidlet midlet;
        private HttpConnection hc;
        private byte[] fileData;
        private boolean downloaded;
        private int lineNumber;
    //    private String url = "http://121.97.220.162:8084/ProxyServer/DownloadFileServlet";
        private String url = "http://121.97.221.183:8084/ProxyServer/DownloadFileServlet";
    //    private String url = "http://121.97.221.183:8084/ProxyServer/Attachments/mark.ramos222/GmailId111d822a8bd6f6bb/01032007066.jpg";
        /** Creates a new instance of DownloadFile */
        public DownloadFile(GmailMidlet midlet, String fileName) throws OutOfMemoryError, IOException {
            System.gc();
            setHc(null);
            OutputStream out = null;
            DataInputStream is= null;
            try{
                setHc((HttpConnection)Connector.open(getUrl(), Connector.READ_WRITE));
            } catch(ConnectionNotFoundException ex){
                setHc(null);
            } catch(IOException ioex){
                ioex.printStackTrace();
                midlet.alertScreen = new AlertScreen("Error C1", ioex.toString(),
                        null, AlertType.ERROR);
                midlet.alertScreen.setTimeout(Alert.FOREVER);
                midlet.display.setCurrent(midlet.alertScreen);
            try {
                if(getHc() != null){
                    getHc().setRequestMethod(HttpConnection.POST);
                    getHc().setRequestProperty("Accept","*/*");
                    getHc().setRequestProperty("Http-version","HTTP/1.1");
                    lineNumber = 1;
                    getHc().setRequestProperty("CONTENT-TYPE",
                            "text/plain");
                    lineNumber = 2;
                    getHc().setRequestProperty("User-Agent",
                            "Profile/MIDP-2.0 Configuration/CLDC-1.1");
                    lineNumber =3;
                    out = getHc().openOutputStream();
                    lineNumber = 4;
                    PrintStream pout = new PrintStream(out);
                    lineNumber = 5;
                    pout.println(fileName);
                    lineNumber = 6;
    //                pout.flush();
                    System.out.println("File Name: "+fileName);
                    lineNumber = 7;
                    is = getHc().openDataInputStream();
                    long len = getHc().getLength();
                    lineNumber = 8;
                    byte temp[] = new byte[(int)len];
                    lineNumber = 9;
                    System.out.println("len "+len);
                    is.readFully(temp,0,(int)len);
                    lineNumber = 10;
                    setFileData(temp);
                    lineNumber = 11;
                    is.close();
                    lineNumber = 12;
                    if(getFileData() != null)
                        setDownloaded(true);
                    else
                        setDownloaded(false);
                    System.out.println("Length : "+temp.length);
                    midlet.setAttachFile(getFileData());
                    lineNumber = 13;
                    pout.close();
                    lineNumber = 14;
                    out.close();
                    lineNumber = 15;
                    getHc().close();
            } catch(Exception ex){
                setDownloaded(false);
                ex.printStackTrace();
                midlet.alertScreen = new AlertScreen("Error C2+ line"+lineNumber,
                        ex.toString()+
                        " | ",
                        null, AlertType.ERROR);
                midlet.alertScreen.setTimeout(Alert.FOREVER);
                midlet.display.setCurrent(midlet.alertScreen);
        public HttpConnection getHc() {
            return hc;
        public void setHc(HttpConnection hc) {
            this.hc = hc;
        public String getUrl() {
            return url;
        public void setUrl(String url) {
            this.url = url;
        public byte[] getFileData() {
            return fileData;
        public void setFileData(byte[] fileData) {
            this.fileData = fileData;
        public boolean isDownloaded() {
            return downloaded;
        public void setDownloaded(boolean downloaded) {
            this.downloaded = downloaded;
    }this is the midlet side with pout.flush();
    showing Http Version Mismatch
    public class DownloadFile {
        private GmailMidlet midlet;
        private HttpConnection hc;
        private byte[] fileData;
        private boolean downloaded;
        private int lineNumber;
    //    private String url = "http://121.97.220.162:8084/ProxyServer/DownloadFileServlet";
        private String url = "http://121.97.221.183:8084/ProxyServer/DownloadFileServlet";
    //    private String url = "http://121.97.221.183:8084/ProxyServer/Attachments/mark.ramos222/GmailId111d822a8bd6f6bb/01032007066.jpg";
        /** Creates a new instance of DownloadFile */
        public DownloadFile(GmailMidlet midlet, String fileName) throws OutOfMemoryError, IOException {
            System.gc();
            setHc(null);
            OutputStream out = null;
            DataInputStream is= null;
            try{
                setHc((HttpConnection)Connector.open(getUrl(), Connector.READ_WRITE));
            } catch(ConnectionNotFoundException ex){
                setHc(null);
            } catch(IOException ioex){
                ioex.printStackTrace();
                midlet.alertScreen = new AlertScreen("Error C1", ioex.toString(),
                        null, AlertType.ERROR);
                midlet.alertScreen.setTimeout(Alert.FOREVER);
                midlet.display.setCurrent(midlet.alertScreen);
            try {
                if(getHc() != null){
                    getHc().setRequestMethod(HttpConnection.POST);
                    getHc().setRequestProperty("Accept","*/*");
                    getHc().setRequestProperty("Http-version","HTTP/1.1");
                    lineNumber = 1;
                    getHc().setRequestProperty("CONTENT-TYPE",
                            "text/plain");
                    lineNumber = 2;
                    getHc().setRequestProperty("User-Agent",
                            "Profile/MIDP-2.0 Configuration/CLDC-1.1");
                    lineNumber =3;
                    out = getHc().openOutputStream();
                    lineNumber = 4;
                    PrintStream pout = new PrintStream(out);
                    lineNumber = 5;
                    pout.println(fileName);
                    lineNumber = 6;
                    pout.flush();
                    System.out.println("File Name: "+fileName);
                    lineNumber = 7;
                    is = getHc().openDataInputStream();
                    long len = getHc().getLength();
                    lineNumber = 8;
                    byte temp[] = new byte[(int)len];
                    lineNumber = 9;
                    System.out.println("len "+len);
                    is.readFully(temp,0,(int)len);
                    lineNumber = 10;
                    setFileData(temp);
                    lineNumber = 11;
                    is.close();
                    lineNumber = 12;
                    if(getFileData() != null)
                        setDownloaded(true);
                    else
                        setDownloaded(false);
                    System.out.println("Length : "+temp.length);
                    midlet.setAttachFile(getFileData());
                    lineNumber = 13;
                    pout.close();
                    lineNumber = 14;
                    out.close();
                    lineNumber = 15;
                    getHc().close();
            } catch(Exception ex){
                setDownloaded(false);
                ex.printStackTrace();
                midlet.alertScreen = new AlertScreen("Error C2+ line"+lineNumber,
                        ex.toString()+
                        " | ",
                        null, AlertType.ERROR);
                midlet.alertScreen.setTimeout(Alert.FOREVER);
                midlet.display.setCurrent(midlet.alertScreen);
        public HttpConnection getHc() {
            return hc;
        public void setHc(HttpConnection hc) {
            this.hc = hc;
        public String getUrl() {
            return url;
        public void setUrl(String url) {
            this.url = url;
        public byte[] getFileData() {
            return fileData;
        public void setFileData(byte[] fileData) {
            this.fileData = fileData;
        public boolean isDownloaded() {
            return downloaded;
        public void setDownloaded(boolean downloaded) {
            this.downloaded = downloaded;
    }here is the servlet side...
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            if(request.getMethod().equals("POST")){
                BufferedReader dataIN = request.getReader();
                String fileName = dataIN.readLine();
                File file = new File(fileName);
                String contentType = getServletContext().getMimeType(fileName);
                response.setContentType(contentType);
                System.out.println("Content Type: "+contentType);
                System.out.println("File Name: "+fileName);
                int size = (int)file.length()/1024;
                if(file.length() > Integer.MAX_VALUE){
                    System.out.println("Very Large File!!!");
                response.setContentLength(size*1024);
                FileInputStream fis = new FileInputStream(fileName);
                byte data[] = new byte[size*1024];
                fis.read(data);
                System.out.println("data lenght: "+data.length);
                ServletOutputStream sos = response.getOutputStream();
                sos.write(data);
    //            out.flush();
            }else{
                response.setContentType("text/plain");
                PrintWriter out = response.getWriter();
                BufferedReader dataIN = request.getReader();
                String msg_uid = dataIN.readLine();
                System.out.println("Msg_uid"+msg_uid);
                JDBConnection dbconn = new JDBConnection();
                String fileName = dbconn.getAttachment(msg_uid);
                String[] fileNames = fileName.split(";");
                int numFiles = fileNames.length;
                out.println(numFiles);
                for(int i = 0; i<numFiles; i++){
                    out.println(fileNames);
    out.flush();
    out.close();
    Message was edited by:
    Mark.Ramos222

    1) Have you looked up the symbian error -36 on new-lc?
    2) Have you tried the example in the response on forum nokia?
    3) Is the address "121.97.220.162:8084" accessible from the internet, on the device, on the specified port?

  • Error while creating new Scheduling for scenarios in ODI

    Hi Experts,
    Good Morning.
    I am facing with the below error :
    ODI-23037: To use scheduling please associate a Logical Agent to a Physical Agent via the Logical Architecture Accordion in the Topology Navigator.
    But, when i try to create the logical agent then i need to create first physical agent, then i have created physical agent and going to test the physical agent then below error is showing.
    oracle.odi.runtime.agent.invocation.InvocationException: ODI-1424: Agent host or port cannot be reached using http://192.170.5.53:20910/oraclediagent.
    at oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker.reThrowAgentErrorAsInvocation(RemoteRuntimeAgentInvoker.java:1301)
    at oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker.invoke(RemoteRuntimeAgentInvoker.java:277)
    at oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker.invokeIsAlive(RemoteRuntimeAgentInvoker.java:428)
    at oracle.odi.ui.action.SnpsPopupActionTestAgentHandler.actionPerformed(SnpsPopupActionTestAgentHandler.java:65)
    at com.sunopsis.graphical.frame.edit.EditFrameSnpAgent.jButtonTestAgent_ActionPerformed(EditFrameSnpAgent.java:990)
    at com.sunopsis.graphical.frame.edit.EditFrameSnpAgent.connEtoC2(EditFrameSnpAgent.java:212)
    at com.sunopsis.graphical.frame.edit.EditFrameSnpAgent$IvjEventHandler.actionPerformed(EditFrameSnpAgent.java:160)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6289)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6054)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4652)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
    at java.awt.EventQueue.access$000(EventQueue.java:85)
    at java.awt.EventQueue$1.run(EventQueue.java:603)
    at java.awt.EventQueue$1.run(EventQueue.java:601)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$2.run(EventQueue.java:617)
    at java.awt.EventQueue$2.run(EventQueue.java:615)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: ODI-1424: Agent host or port cannot be reached using http://192.170.5.53:20910/oraclediagent.
    Caused by: java.net.ConnectException: Connection refused: connect
    at oracle.odi.runtime.agent.invocation.RemoteRuntimeAgentInvoker.invoke(RemoteRuntimeAgentInvoker.java:278)
    ... 41 more
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:249)
    at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
    at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
    at org.apache.commons.httpc

    You'll probably have better-er luck in the ODI forum.
    Data Integrator
    Cheers,

Maybe you are looking for

  • Important!! Improve the life and performance of the battery.

    Reduce the operating temperature and increase battery life The battery in your notebook PC is designed to provide the necessary amount of energy for the processor while maintaining HP high safety standards. As a result, the battery may not charge or

  • Trying to create Invoice using the API,however i am not able to create the customer accounts in the front end

    when creating invoice using the API AR_INVOICE_AP_PUB.Create_Single_invoice Am Getting the below Error: Transaction type is invalid with current transaction date invalid transaction type either an inventory item description must be provided Kindly he

  • Could not resolve s:ViewNavigatorApplication to a component implementation

    Hi, I am getting this error while building my Flex mobile project using ant build. It compiles preopely through flash Builder but gives the error : "Could not resolve <s:ViewNavigatorApplication> to a component implementation" when compiling with ant

  • Display only B&W

    I have the Reader on a Win7 system to my right displaying the document in color.  In front of me, on an iMac the same doc is in B&W!???   Any help would be appreciated. Chuck

  • Pricing Procedure for US

    Dear Experts, We are in the process of preparing procedure for US Pharma templet, we wuold like to know standard tax structure used in SD pricing procedure. we would like to know std conditions to be used with jurisdiction in SD pricing procedure.and