java.io.IOException:Tunnel down in a call to url

Hello

I wrote a code that use HTTPConnection to call a url:

HttpConnection conn = (HttpConnection), Connector.open (url);
conn.setRequestMethod (HttpConnection.GET);
int respCode = conn.getResponseCode ();
...

It's ok in my Pearl and send the url correct, but on "BOLD" my friend, I caught this exception:
java.io.IOException:Tunnel Failed

I also test who call for help

StreamConnection c = null;
S InputStream = null;
try {}
c = Connector.open (url) (StreamConnection);
s = c.openInputStream ();
...

and

ContentConnection c = null;
DataInputStream tell = null;
try {}
c = Connector.open (url) (ContentConnection);
int len = (int) c.getLength ();
say = c.openDataInputStream ();
...

but it's the same.

Also, I can call the url by bb browser and it's ok.
I tested the app by WIFI and Edge.
It's really weird

Thanks in advance

You must understand the functioning of connections of BB.

Please look at the sticky thread on communications at the top of this forum.

BTW, this is a double post on the BB developer forum, where I also answered your question.

Tags: BlackBerry Developers

Similar Questions

  • Java.io.ioException: Tunnel Timed out received

    Hello

    We have developed a Java ME application that has been evaluated for fine fonctinner on Blackberry 9000 using the Wifi Interface. Downloaded the application on our server and the application installed on the device using OTA. The cod was signed through Blackberry. Application installs correctly and when it is launched, he's trying to connect to our server by using the HTTP connection. We use the direct TCP with Vodafone (India) APN setting (I tried www, portalnmms and blackberry.net) but with all 3 APNs, the error is the same:

    java.io.IOException: Tunnel Timed Out

    With the URL '; deviceside = true' is specified for a direct TCP connection. Default browser to HTTP is configured for the Internet browser.

    HTTPDemo installed JDE, device samples and it also gives the same error.

    Tried to contact the service provider for the mistake of tunnel... but no help.

    Can someone help pls on this issue? Are there network tools to diagnose problems of tunnel on blackberry?

    Model: Blackberry 8310

    Version: 4.5.0.55 (Platform 2.7.0.68)

    Thank you

    Bennett

    Try the NetworkDiagnostics tool of the RIM. In addition, look at the log of events to see if the right NPP (those that you set in the Options-> advanced-> TCP) is actually used by the operating system - sometimes WAP 2.0 TCP is used instead.

    Another thing you could try is to take the this BlackBerry SIM card and insert it in a non-BlackBerry phone, say, a Nokia. Then you can check if this unit can connect to the Internet and you might also find what NPC he uses.

  • Problem with HttpConnection when it connects only not to wifi - java.io.IOException: Tunnel failed

    Hi all

    I develop an application that communicates with a database MySQL via PHP stored on the server scripts. Until today I've developed using the Simulator, and everything has been fine. I now started to test on a device and, while being connected to wifi, everything is still fine. However, the minute I turn off wifi and let the network provider, O2 UK, I get:

    "Request failed: reason: java.io.IOException: Tunnel failed".

    The source of the connection code is as follows:

       public void run() {
           // The following code will only build under JDE 4.5 and later
    
           try {
               String connectionParameters = "";
               // JDE 4.3 is required to get WLANInfo
               if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) {
                   // Connected to a WiFi access point
                   connectionParameters = ";interface=wifi";
               } else {
                   int coverageStatus = CoverageInfo.getCoverageStatus();
                   ServiceRecord record = getWAP2ServiceRecord();
                   if (record != null
                           // In JDE 4.5 CoverageInfo changed the name of
    COVERAGE_CARRIER to COVERAGE_DIRECT
                           // The constant value for both is the same,
    '1', so you can use that to avoid any
                           // dependency on JDE 4.5
                           && (coverageStatus & CoverageInfo.COVERAGE_DIRECT) ==
                           CoverageInfo.COVERAGE_DIRECT) {
                       // Have network coverage and a WAP 2.0 service book record
                       connectionParameters = ";deviceside=true;ConnectionUID="
                               + record.getUid();
                   } else if ((coverageStatus & CoverageInfo.COVERAGE_MDS) ==
                           CoverageInfo.COVERAGE_MDS) {
                       // Have an MDS service book and network coverage
                       connectionParameters = ";deviceside=false";
                   } else if ((coverageStatus & CoverageInfo.COVERAGE_DIRECT) ==
                           CoverageInfo.COVERAGE_DIRECT) {
                       // Have network coverage but no WAP 2.0 service book record
                       connectionParameters = ";deviceside=true";
                   }
               }
    
               // Pop up a dialog showing the parameters chosen
               UiApplication.getUiApplication().invokeLater(
                       new DialogRunner("Connection Params: "
                               + connectionParameters));
    
               HttpConnection connection = (HttpConnection) Connector.open(url
                       + connectionParameters);
    
               connection.setRequestMethod(method);
               if (method.equals("POST") && postData != null) {
                   connection.setRequestProperty("Content-type",
                           "application/x-www-form-urlencoded");
                   OutputStream requestOutput = connection.openOutputStream();
                   requestOutput.write(postData);
                   requestOutput.close();
               }
               int responseCode = connection.getResponseCode();
               if (connection instanceof HttpsConnection) {
                   HttpsConnection secureConnection = (HttpsConnection) connection;
                   String issuer = secureConnection.getSecurityInfo()
                           .getServerCertificate().getIssuer();
                   UiApplication.getUiApplication().invokeLater(new
    DialogRunner("Secure Connection! Certificate issued by: " + issuer));
    
               }
               // Really you should check for more than just HTTP_OK
               if (responseCode != HttpConnection.HTTP_OK) {
                   screen.requestFailed("Unexpected response code: "
                           + responseCode);
                   connection.close();
                   return;
               }
    
               String contentType = connection.getHeaderField("Content-type");
               ByteArrayOutputStream baos = new ByteArrayOutputStream();
    
               InputStream responseData = connection.openInputStream();
               byte[] buffer = new byte[10000];
               int bytesRead = responseData.read(buffer);
               while (bytesRead > 0) {
                   baos.write(buffer, 0, bytesRead);
                   bytesRead = responseData.read(buffer);
               }
               baos.close();
               connection.close();
    
               screen.requestSucceeded(baos.toByteArray(), contentType);
           } catch (IOException ex) {
               screen.requestFailed(ex.toString());
           }
       }
    

    I scoured these forums and tried everything I can find. I tried different settings, including changing the APN settings both wap and mobile options for O2. Nothing seems to solve this problem.

    Any help would be appreciated!

    Thank you

    Jack

    OK, good news. Fixed. Thanks a lot for your answers. I would have understood the connection settings as they appear to have been the problem.

    I don't remember exactly which it generated, but I decided to try replacing it with the generator of connectionParameter above with the snippet connSuffix here:
    http://supportforums.BlackBerry.com/T5/Java-development/connecting-your-BlackBerry-http-and-socket-c...

    Worked like a dream, so I'm very indebted to all those who contributed to this. It now seems to work little matter the type of connection is available including BES.

    In case anyone is interested, however, I tried all combinations of settings APN bloody O2, but it came to nothing. I am disappointed that it was the connection settings I developed that a book by Apress, and I followed this particular part, Word for Word.

    Thank you all for the world of useful information here!

  • "java.io.IOException: write channel closed" starting AdminServer WLST

    Hello

    I'm trying to start the server administration through WLST.
    By "Oracle® Fusion Middleware WebLogic Scripting Tool Command référence 11 g Release 1 (10.3.2)" I tried both - online and offline.

    When online

    WLS: / nm/ClassicDomain > startServer ('AdminServer', 'ClassicDomain','t3: / / 10.110.90.156:7002', 'weblogic', '< password >', ' / u0/app/oracle/product/middleware/user_projects/domains ')

    I'm getting

    Start the AdminServer server...
    Traceback (innermost last):
    Folder "system <>", line 1, in?
    File '< iostream >", line 412, in startServer
    at com.certicom.tls.record.WriteHandler.write (unknown Source)
    at com.certicom.io.OutputSSLIOStreamWrapper.write (unknown Source)
    at sun.nio.cs.StreamEncoder.writeBytes (StreamEStarting Server AdminServer...
    Traceback (innermost last):
    Folder "system <>", line 1, in?
    File '< iostream >", line 412, in startServer
    at com.certicom.tls.record.WriteHandler.write (unknown Source)
    at com.certicom.io.OutputSSLIOStreamWrapper.write (unknown Source)
    at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
    at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
    at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)
    at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
    at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
    at java.io.BufferedWriter.flush(BufferedWriter.java:236)
    at weblogic.nodemanager.common.DataFormat.writeCommand(DataFormat.java:243)
    at weblogic.nodemanager.client.NMServerClient.sendCmd(NMServerClient.java:320)
    at weblogic.nodemanager.client.NMServerClient.sendServer(NMServerClient.java:265)
    at weblogic.nodemanager.client.NMServerClient.start(NMServerClient.java:94)
    at weblogic.management.scripting.NodeManagerService.nmStart(NodeManagerService.java:368)
    at weblogic.management.scripting.LifeCycleHandler.startSvr(LifeCycleHandler.java:887)
    at weblogic.management.scripting.WLScriptContext.startSvr(WLScriptContext.java:384)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    java.io.IOException: java.io.IOException: write channel closed


    and the node Manager log shows:


    WARNING: Eception exception in Server handlerjava.io.IOException: Bad property data format
    java.io.IOException: data format of Bad properties
    at weblogic.nodemanager.common.DataFormat.readProperties(DataFormat.java:44)
    at weblogic.nodemanager.server.Handler.handleStart(Handler.java:537)
    at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
    at weblogic.nodemanager.server.Handler.run(Handler.java:70)
    at java.lang.Thread.run(Thread.java:619)




    And if I try it in offline mode



    WLS: / offline > startServer ('AdminServer', 'ClassicDomain','t3: / / 10.110.90.156:7002', 'weblogic', 'passwd <>', ' / u0/app/oracle/product/middleware/user_projects/domains ');


    I'm a big pile below. Can anyone with an idea?


    Thank you

    Anatoliy

    Battery in offline mode:

    From weblogic server...
    WLST-WLS-1273604718586: May 11, 2010 21:05:19 CEST > < Info > < WebLogicServer > < BEA-000377 > < start WebLogic Server with BEA JRockit (R) Version R27.6.5-32_o-121899-1.6.0_14-20091001-2113-linux-ia32 of BEA Systems, Inc. >
    WLST-WLS-1273604718586: May 11, 2010 21:05:20 CEST > < Info > < management > < BEA-140013 > < not found /u0/app/oracle/product/middleware/user_projects/domains/config/config.xml >
    WLST-WLS-1273604718586: May 11, 2010 21:05:20 CEST > < Info > < management > < BEA-141254 > < directory of field generation in/u0/app/oracle/product/middleware/user_projects/domains >
    ... WLST-WLS-1273604718586: May 11, 2010 21:05:27 CEST > < critical > < WebLogicServer > < BEA-000362 > < server failed. Reason:
    WLST-WLS-1273604718586:
    WLST-WLS-1273604718586: there are 1 nested errors:
    WLST-WLS-1273604718586:
    WLST-WLS-1273604718586: weblogic.management.ManagementException: failed to create in the domain
    WLST-WLS-1273604718586: to weblogic.management.internal.DomainDirectoryService.generateDomain(DomainDirectoryService.java:229)
    WLST-WLS-1273604718586: to weblogic.management.internal.DomainDirectoryService.ensureDomainExists(DomainDirectoryService.java:152)
    WLST-WLS-1273604718586: to weblogic.management.internal.DomainDirectoryService.start(DomainDirectoryService.java:72)
    WLST-WLS-1273604718586: to weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)
    WLST-WLS-1273604718586: to weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)
    WLST-WLS-1273604718586: to weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:749)
    WLST-WLS-1273604718586: to weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:488)
    WLST-WLS-1273604718586: to weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:446)
    WLST-WLS-1273604718586: in weblogic. Server.main (Server.Java:67)
    WLST-WLS-1273604718586: due: com.bea.plateng.domain.script.ScriptException: the location of domain must have the write permission.
    WLST-WLS-1273604718586: to com.bea.plateng.domain.script.ScriptExecutor.writeDomain(ScriptExecutor.java:723)
    WLST-WLS-1273604718586: to com.bea.plateng.domain.script.ScriptParserClassic$ StateMachine.processWrite (ScriptParserClassic.java:575)
    WLST-WLS-1273604718586: to com.bea.plateng.domain.script.ScriptParserClassic$ StateMachine.execute (ScriptParserClassic.java:431)
    WLST-WLS-1273604718586: to com.bea.plateng.domain.script.ScriptParserClassic.parseAndRun(ScriptParserClassic.java:150)
    WLST-WLS-1273604718586: to com.bea.plateng.domain.script.ScriptParserClassic.doExecute(ScriptParserClassic.java:112)
    WLST-WLS-1273604718586: to com.bea.plateng.domain.script.ScriptParser.execute(ScriptParser.java:73)
    WLST-WLS-1273604718586: to com.bea.plateng.domain.DomainInfoHelper.executeSilentScript(DomainInfoHelper.java:858)
    WLST-WLS-1273604718586: to com.bea.plateng.domain.DomainInfoHelper.createDefaultDomain(DomainInfoHelper.java:1762)
    WLST-WLS-1273604718586: at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    WLST-WLS-1273604718586: to sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    WLST-WLS-1273604718586: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    WLST-WLS-1273604718586: to java.lang.reflect.Method.invoke(Method.java:597)
    WLST-WLS-1273604718586: to weblogic.management.internal.DomainDirectoryService.generateDomain(DomainDirectoryService.java:224)
    WLST-WLS-1273604718586:... 8 more
    WLST-WLS-1273604718586:
    WLST-WLS-1273604718586: >
    WLST-WLS-1273604718586: May 11, 2010 21:05:27 CEST > < opinion > < WebLogicServer > < BEA-000365 > < changed failed State Server >
    WLST-WLS-1273604718586: May 11, 2010 21:05:27 CEST > < error > < WebLogicServer > < BEA-000383 > < is not an essential service. The server will shut down >
    WLST-WLS-1273604718586: May 11, 2010 21:05:27 CEST > < opinion > < WebLogicServer > < BEA-000365 > < server status changed to FORCE_SHUTTING_DOWN >
    WLST-WLS-1273604718586: stopped draining WLST-WLS-1273604718586
    WLST-WLS-1273604718586: stopped draining WLST-WLS-1273604718586... Could not connect to the server to check that he has begun. The error returned is: javax.naming.CommunicationException [root exception is java.net.ConnectException: t3://10.110.90.156:7002: Destination unreachable; nested exception is:]
    java.net.ConnectException: connection refused. No router available to destination] Traceback (innermost last):
    Folder "system <>", line 1, in?
    File '< iostream >", line 432 in startServer
    File '< iostream >", line 618, in raiseWLSTException
    WLSTException: An error occurred when executing startServer: could not start the server, the process may have expired or there is an error in the server startup. Please see the logs for more details.

    Have you checked if you have a boot.properties file in this location:
    folder/U0/app/oracle/product/middleware/user_projects/Domains/ClassicDomain/Servers/adminserver/Data/nodemanager?

    If this isn't the case, create a text file called boot.properties with the contents:

    username =
    password =

    Check if it solves your problem

  • HttpConnection IOException Tunnel has no problem

    Hello

    I wrote a code that use HTTPConnection to call a url:

    HttpConnection conn = (HttpConnection) Connector.open)

    «http:// *.» ***. : 5556/mobileservice.asmx; deviceside = true; ConnectionTimeout ="+ timeOut, Connector.READ_WRITE, true);

    And I got the IOException:Tunnel Failed on 9000 "BOLD" and the 8900. (So far, I had only to test on both devices).

    I think I had put the apn correctly. So I don't understand the reason for this exception.

    Can someone give me help?

    Thanks in advance

    Sorry, my mistake. I used the wrong NPC. I use .com but not .nl.

    And it works now.

    Thanks for your help

  • Consume Webservice - java.io.IOException: General socket error

    Hey,.

    I'm trying to consume a webservice ( www.webservicex.net, but also tried other forecasts) with a smart blackberry phone, but I still have a java.io.IOException.

    I generated stubs with the Java Wireless Toolkit 2.5.2. Now, I call the heel of the Java application.

    My MDS is running and are configured for use with my proxy. I can view each page with the built-in browser.

    The call of the stub works like this:

    public class BB_WeatherStart extends MainScreen {
    
       public BB_WeatherStart() throws RemoteException {
        com.weather.WeatherForecasts weather = null;
        WeatherForecastSoap_Stub stub = new WeatherForecastSoap_Stub();
        weather = stub.getWeatherByZipCode("10024");
    
        LabelField longi = new LabelField();
        longi.setText("Longitüde" + weather.getLongitude());
        add(longi);
    
        LabelField status = new LabelField();
        status.setText("Status" + weather.getStatus());
        add(status);
       }
    
    }
    

    The instantiation of the stub works, but the call of the method getWeatherByZipCode returns this exception.

    This is the code for the method:

    public com.weather.WeatherForecasts getWeatherByZipCode(java.lang.String zipCode) throws java.rmi.RemoteException {
    
       Object[] inputObject = new Object[1];
       inputObject[0] = zipCode;
    
       Operation op = Operation.newInstance(_qname_GetWeatherByZipCode, _type_GetWeatherByZipCode, _type_GetWeatherByZipCodeResponse);
       _prepOperation(op);
       op.setProperty(Operation.SOAPACTION_URI_PROPERTY, "http://209.162.186.60/GetWeatherByZipCode;deviceSide=true");
    
       Object resultObj;
       try {
          resultObj = op.invoke(inputObject);
       } catch (JAXRPCException e) {
        throw e;
       }
    
    //Snip.. the Rest of the method is never reached ;)
    
    }
    

    The Exception is thrown in the call to op.invoke (inputObject);

    I also tried the hostname instead of IP address, but then I get a j "" ava.io.IOException: bad DNS address "and if I try without the"; " deviceSide = true' I get the message "Local port: 19780 APN:"rim.net.gprs"APN username: password 'null' AFN: there is no connection"null"

    Thanks for your help

    Tina

    After watching a little I don't think that the original problem was with the connection I think it is related to a null value returned by the web service.  I generated a set of stubs from the web service, you were using and tried with the same result as you.  I got a version of 4.5 and made some settings (I don't specifically know who he was) and the error has become ' java.rmi.MarshalException: nillable not element of array in response type is not met. ".  Went up to version 4.7 and here it works very well.  If you run this with a test tool web service call, you see a null of WeatherData to the bottom element which is the likely culprit.  I read somewhere that BB do not have NULL values in some earlier versions.

    hope that helps.

    T

  • java.io.IOException: null for setRequestMethod ("POST") of HttpConnection

    Hello

    I m opening HttpConnection with

    HttpConnection connection = null;
    
    try
    {
        connection = (HttpConnection)Connector.open(targetURL);
        int status = connection.getResponseCode();
        System.out.println("status is : " + status);
    
        if (status == HttpConnection.HTTP_OK)
        {
           System.out.println("HttpConnection.HTTP_OK : "+connection.getResponseMessage());
           connection.setRequestMethod("POST");
           //connection.setRequestMethod(HttpConnection.POST);
           System.out.println("connection.setRequestMethod(POST);
           /*connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
           connection.setRequestProperty("Content-Language", "en-US");
    
           //Send request
           wr = new DataOutputStream(connection.openOutputStream());
                         wr.writeChars(sendRequest);
                         wr.flush();
                         wr.close
           }
    }
    catch (IOException e)
    {
        System.err.println("ERROR =====> " + e.toString()+":: "+e.getMessage());
        e.printStackTrace();
    }
    

    But I m is

    java.io.IOException: null for setRequestMethod("POST")
    

    Until it runs fine.

    What is the problem in my code?

    You do it in the wrong order. You need to do the setRequestMethod(), the setRequestProperty() and the openOutputStream() before calling getResponseCode().

  • java.io.IOException: schema of Transport NOT recognized: [tcp]

    Hi all, I have developed a Java class that allow me to connect, create, send and receive information to an ActiveMQ queues.
    However, when I loaded this java class Oracle 11 GR 2 (11.2), the java class has failed error message (its status is active and without errors. Is the output I got in SqlDeveloper

    * java.io.IOException: schema of Transport NOT recognized: [tcp]. * When I called this Jdeveloper 11g Java class it worked but PL/SQL does not.

    This is the Java class, I've been using



    Import javax.jms.JMSException;
    Javax.jms import. *;

    to import javax.naming.Context;
    Import javax.naming.InitialContext;
    Import javax.naming.NamingException;

    Import org.apache.activemq.ActiveMQConnectionFactory.


    public class ActiveMQRequest {
    URL of the JMS server. DEFAULT_BROKER_URL will just mean
    This JMS server is on localhost

    Name of the queue, that send messages
    private static String destMameReq = "QueueIN"; request
    private static String destNameResp = "QueueOUT"; response



    public static String Request (String urlMQ,
    String destNameReq,
    String destNameResp,
    OperationType string,
    String XMLmessage) throws JMSException {}
    int JMSDeliveryMode = 2; for PERMANENT
    ConnectionFactory Factory = null;
    Context jndiContext = null;
    Queue destRequ = null;
    Queue destResp = null;
    QueueSession session = null;
    QueueConnection connection = null;
    String messageID = null;
    QueueReceiver queueReceiver = null;
    QueueSender queueSender = null;
    String replyString = null;
    Traded Boolean = false;
    TextMessage outMessage = null;

    try {}
    jndiContext = new world;
    } catch (NamingException e) {}
    System.out.println ("could not create JNDI API context:" + try ());
    System.Exit (1);
    return "error: failure of Initial context."
    }

    try {}
    connectionFactory = new ActiveMQConnectionFactory (urlMQ);

    connectionFactory = jndiContext.lookup ("connectionFactory") (Factory);
    destRequ = jndiContext.lookup (destNameReq) (tail); Queue the request
    destResp = jndiContext.lookup (destNameResp) (tail); Response queue
    } catch (Exception e) {}
    System.out.println ("JNDI API lookup failed:" + try ());
    System.Exit (1);
    return "error: factory of MqConnection failed:"+ try (); ".
    }

    Start
    try {}
    connection = connectionFactory.createQueueConnection ();
    Connection.Start ();


    } catch (JMSException ycsms) {}
    System.out.println ("error: JMS Exception occurred:" + jmse.toString ());
    return "error: JMS Exception occurred to create a queue of connection:"+ jmse.toString ();.
    } catch (Exception e) {}
    System.out.println ("JNDI API lookup failed:" + try ());
    e.printStackTrace ();
    return "error search: JNDI API could not create Connectio queue:"+ try (); ".

    }
    try {}
    session = connection.createQueueSession (transacted, Session.AUTO_ACKNOWLEDGE);
    Check this box to instead of using JNDI
    destRequ = session.createQueue (destNameReq);
    destResp = session.createQueue (destNameResp);
    } catch (JMSException ycsms) {}
    System.out.println ("error: JMS Exception occurred:" + jmse.toString ());
    return "error: JMS Exception occurred createQueueSession:"+ jmse.toString ();.
    } catch (Exception e) {}
    System.out.println ("JNDI API lookup failed:" + try ());
    e.printStackTrace ();
    return "error search: JNDI API has no createQueueSession:"+ try (); ".

    }
    ///
    try {}
    queueSender = session.createSender (destRequ);
    outMessage = session.createTextMessage (XMLmessage);
    Sets other properties of the message
    outMessage.setJMSPriority (7);
    outMessage.setJMSReplyTo (destResp);
    outMessage.setJMSDeliveryMode (JMSDeliveryMode);
    outMessage.setJMSType ("Interval"); Interval of
    outMessage.setJMSType (OperationType); ODR, meantime, Ping
    System.out.println ("sending message.:" + outMessage.getText ());
    } catch (JMSException ycsms) {}
    System.out.println ("error: JMS Exception occurred:" + jmse.toString ());
    return "error: JMS Exception occurred createSender:"+ jmse.toString ();.
    } catch (Exception e) {}
    System.out.println ("JNDI API lookup failed:" + try ());
    e.printStackTrace ();
    return "error search: JNDI API failed: createSender"+ try (); ".

    }
    Here, we send the message!
    try {}
    queueSender.send (outMessage);


    System.out.println ("sent... Message:" + outMessage.getText () + "'");

    Receiving

    messageID = outMessage.getJMSMessageID ();


    Channel selector = "JMSCorrelationID = '" + messageID + ' "';
    System.out.println ("JMSCorrelationID = '" + messageID + "'");
    queueReceiver = session.createReceiver (destResp, selector);

    System.out.println ("received Message.");
    Message inMessage = queueReceiver.receive (2000);


    If (inMessage instanceof TextMessage) {}
    replyString = (inMessage) .getText ((text));
    System.out.println ("message:" + replyString + "'");
    }
    on the other
    replyString = "error: text is empty";
    } catch (JMSException ycsms) {}
    System.out.println ("error: JMS Exception occurred:" + jmse.toString ());
    return "error: JMS Exception occurred received:"+ jmse.toString ();.
    } catch (Exception e) {}
    System.out.println ("JNDI API lookup failed:" + try ());
    e.printStackTrace ();
    return "error search: JNDI API could not receive:"+ try (); ".

    } {Finally
    queueReceiver.close ();
    queueSender.close ();
    session. Close();
    Connection.Close;
    }
    Return replyString;
    }
    }


    This is encapsulation of pl/sql of th

    create or replace
    function ActiveMQRequest (url in varchar2,
    destNameReq in varchar2,
    destNameResp in varchar2,
    OperationType in varchar2,
    XMLmessage in varchar2) return varchar2
    like java language
    name 'ActiveMQRequest.Request (java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) return java.lang.String ';


    and that is the release of JDeveloper

    Sending message. :
    < message >
    < header >
    SourceID < SourceID > < / SourceID >
    < > 11111111111 TransactionID < / TransactionID > < MeterID > VIEN < / MeterID > < REPID > 41679178 < / REPID > < TransactionDate > 2010 - 10 - 08T 02: 00:00 < / TransactionDate > < Sensus UserID > < / UserID > < customer CustomerID > < / CustomerID > < / header > < body > < StarDate > 2010 - 10-01 T 14: 00:00 < / StartDate > < EndDate > 2010 - 10 - 06 T 14: 00:00 < / EndDate > < IntervalFlag > Y < / IntervalFlag > < MeterFlag > Y < / MeterFlag > < / Body >

    JMSCorrelationID = ' ID:W05834007 - 3793-1286901259437 - 0:0:1:1:1'
    Message is received.
    Message received: < Message >
    < header >
    < > 11111111111 TransactionID < / TransactionID >
    SourceID < SourceID > < / SourceID >
    < / header >
    < body >
    Acknowledge < TransactionStatus > < / TransactionStatus >
    < TransactionMessage > interval indicator null is not o or N < / TransactionMessage >
    < / body >
    < / message > '
    Result: < Message >
    < header >
    < > 4444444444444444 TransactionID < / TransactionID >
    < SourceID > NRT < / SourceID >
    < / header >
    < body >
    Acknowledge < TransactionStatus > < / TransactionStatus >
    < TransactionMessage > interval indicator null is not o or N < / TransactionMessage >
    < / body >
    < / message >


    When I run in Oracle Sqldeveloper output has been

    Error: JMS Exception occurred to create a queue of connection: javax.jms.JMSException: not able to create transport. Reason: java.io.IOException: schema of Transport NOT recognized: [tcp]


    Do you know what I'm doing in the configuration of Oracle 11 g 2 to do this work. I would appreciate your help.

    Thank you

    Do you have activemq.jar or activemq-Core loadjava in the database with your class? Looks like some ActiveMQ classes lack.

  • java.io.IOException: APN is not specified

    Hello

    I saw that this topic was opened at other times, but I don't know if I understand what I have to do.

    First of all, I got this code:

    String url1 = "www.myurl.com;

    con = (HttpConnection), Connector.open (url1).

    is = con.openInputStream ();

    But when I try it in my BB device, I got java.io.IOException: APN is not specified. (Try the code with the blackberry MDS services simmulators email in the works of eclipse Simulator)

    So, as I read somewhere there, I tried this code:

    TransportDetective td =new TransportDetective();

    if ( TransportDetective.isCoverageAvailable (TransportDetective. TRANSPORT_BIS_B) | TransportDetective.isCoverageAvailable (TransportDetective. TRANSPORT_MDS) | TransportDetective.isCoverageAvailable (TransportDetective. TRANSPORT_TCP_CELLULAR) | TransportDetective.isCoverageAvailable (TransportDetective. TRANSPORT_TCP_WIFI) | TransportDetective.isCoverageAvailable (TransportDetective. TRANSPORT_WAP) | TransportDetective.isCoverageAvailable (TransportDetective. TRANSPORT_WAP2))

    {

    String url2 = 'www.myurl.com;

    URLFactory urlFactory =new URLFactory(url2);

    final ServiceRecord defaultTCPSR = td.getDefaultTcpCellularServiceRecord ();

    final String connectionURL = urlFactory.getHttpDefaultTcpCellularUrl (defaultTCPSR);

    HttpConnection conn = (HttpConnection), Connector.open (connectionURL);

    }

    But when I paste in my code, I wonder to create classes of URLFactory and also TransportDetective.

    I looked on the net and I found codes for the class here: http://ecuadorblackberry.ec/?p=425

    But when I try, I get that td.getDefaultTcpCellularServiceRecord () returns a null value, so it does not work.

    The only thing I want, is to connect to a web service from my application, how can I do?

    Thank you

    Sorry one thing yet.

    You have discovered, you can specify the options of AFN directly on the URL.

    Because you are in Spain and will sell to people in Spain only, then you can check the network and provide the correct APN information for this network.  Watch RadioInfo.  You can use

    getCurrentNetworkName()

    and try to match the name, or

    getMNC (RadioInfo.getCurrentNetworkIndex ())

    and look for the associated MNC code and match from there.

    Once you know the network, you can specify the AFN on the URL.

    Who help me?

  • Curve 8320 java.io.IOException: connection not writable

    Hey guys,.

    Does anyone know of specific problems with the connections involving 8320 to the images? It seems to me this error:

    java.io.IOException: connection not writable

    When I try to upload an image. I know that the code is correct, because I got it runnning on the 8830, 8900, 9000 and 9530.

    Anyone know of a particular way of dealing with that on this version?

    Thanks for your help and your time

    EDIT: It is also worth noting that I have a series of other connections to Web pages using the formats the https and http which work perfectly well with the 8320. It only occurs with the download of images.

    Apparently he has developed before, for example,

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=16200

    You can view the code? At least that anyone happen to know of a bug that would cause this, at least consider a timing

    or weird problem because they may appear only in certain configurations.

  • java.io.IOException on Blackberry 9700

    Hey... Uhm... When I try to use a webservice (SlackerRadio on my BlackBerry 9700), it is said it is impossible to activate due to the failure of activation of: java.io.IOException: General Socket error. How can I fix? Please and thank you

    Hello and welcome to the forum of Java developers.

    Before look us at your problem, it seems to me that you are not a developer of BlackBerry, but have installed the Slacker App and have problems with him?  If Yes, then you should use the Slacker support procedure (sorry I'm not aware of it), because they know how they wrote at the request and so they will have a better idea of what changes you can make to the configuration, so that it will work for you.

    Let us know if you develop for BlackBerry, and then we'll try to help you.

  • Failback and database of CA backup without the tunnels down server?

    Hello

    We implement DMVPN in a PKI environment for authentication for better security.

    I installed a server scenario and the customers of CA in the LABORATORY and it works very well. I am aware that we can save the database on the external media or server.

    Now if my main or primary CA server fails, the certificate database will be unavailable until I have manually import those certificates to the router and until then my peerings all will be down (am I right?).

    I would like to install 2 routers as CA servers. a 1st acting as main server having a public IP and the 2nd will be backup in case of failure of the primary. But I would like to first of all this as an automated where the backup that failing 1 router will resume immediately without the tunnels down.

    Is there a way we can do that? All those put in place this design before? Help, please.

    Thank you

    Deepak

    My design is such that there will not be "pre-shared keys" and only "PKI".

    It is the main purpose of a PKI installation... ;-)

    So in this case if peers have already established the connection to other peers and the CA server goes down then they will not go down, is that correct?

    right. The IPSec peers interested in CA cert has to be registered or the CRL should be checked.

    Also what is the configuration command to allow the connections if the CRL can't be loaded?

    Crypto ca trustpoint YOUR_TRUSTPOINT

    crl revocation checking no

    --
    Don't stop once you have upgraded your network! Improve the world by lending money to low-income workers:
    http://www.Kiva.org/invitedBy/karsteni

  • Error when running a page in J Developer - java.io.IOException: C:\JDeveloper10g\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\server.xml

    Hello

    In J Developer a strange error happens when I try to run any page yesterday.

    I don't know what happened and how do I fix this

    Can someone please help me what to do?

    Screenshot below shows the dialog box when opening the developer J (10.1.3.3)

    Capture.PNG

    Here is the error when running a page,

    java.io.IOException: C:\JDeveloper10g\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\server.xml

    at oracle.jdeveloper.xml.DomIO.loadImpl(DomIO.java:128)

    at oracle.jdeveloper.xml.URLDomIO.load(URLDomIO.java:21)

    at oracle.jdeveloper.xml.BindingIO.load(BindingIO.java:43)

    at oracle.jdeveloper.xml.BindingIO.load(BindingIO.java:37)

    at oracle.jdeveloper.xml.oc4j.Oc4jConfigAdmin.getServerConf(Oc4jConfigAdmin.java:227)

    at oracle.jdeveloper.xml.oc4j.Oc4jConfigAdmin.getRmiServerURL(Oc4jConfigAdmin.java:978)

    at oracle.jdeveloper.xml.oc4j.Oc4jConfigAdmin.getRmiServer(Oc4jConfigAdmin.java:1002)

    at oracle.jdevimpl.runner.oc4j.Oc4jZombieUtil.okToProceed(Oc4jZombieUtil.java:38)

    at oracle.jdevimpl.runner.oc4j.Oc4jStarter.preStart(Oc4jStarter.java:614)

    at oracle.jdevimpl.runner.oc4j.Oc4jStarter.start(Oc4jStarter.java:269)

    at oracle.ide.runner.RunProcess.startTarget(RunProcess.java:830)

    at oracle.jdeveloper.runner.JRunProcess.startTarget(JRunProcess.java:473)

    at oracle.jdevimpl.runner.run.RunningProcess.startTarget(RunningProcess.java:76)

    to oracle.ide.runner.RunProcess$ $2 1.run(RunProcess.java:768)

    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)

    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    Caused by: oracle.xml.parser.v2.XMLParseException: start of the element root waited.

    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)

    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)

    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)

    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:292)

    at oracle.jdeveloper.xml.DomIO.loadImpl(DomIO.java:115)

    ... more than 20

    java.io.IOException: C:\JDeveloper10g\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\server.xml

    at oracle.jdeveloper.xml.DomIO.loadImpl(DomIO.java:128)

    at oracle.jdeveloper.xml.URLDomIO.load(URLDomIO.java:21)

    at oracle.jdeveloper.xml.BindingIO.load(BindingIO.java:43)

    at oracle.jdeveloper.xml.BindingIO.load(BindingIO.java:37)

    at oracle.jdeveloper.xml.oc4j.Oc4jConfigAdmin.getServerConf(Oc4jConfigAdmin.java:227)

    at oracle.jdeveloper.xml.oc4j.Oc4jConfigAdmin.getHttpWebSiteConf(Oc4jConfigAdmin.java:359)

    at oracle.jdeveloper.xml.oc4j.Oc4jConfigAdmin.getHttpPort(Oc4jConfigAdmin.java:1125)

    at oracle.jdevimpl.runner.oc4j.Oc4jPortConflictUtil.acquirePorts(Oc4jPortConflictUtil.java:58)

    at oracle.jdevimpl.runner.oc4j.Oc4jStarter.preStart(Oc4jStarter.java:622)

    at oracle.jdevimpl.runner.oc4j.Oc4jStarter.start(Oc4jStarter.java:269)

    at oracle.ide.runner.RunProcess.startTarget(RunProcess.java:830)

    at oracle.jdeveloper.runner.JRunProcess.startTarget(JRunProcess.java:473)

    at oracle.jdevimpl.runner.run.RunningProcess.startTarget(RunningProcess.java:76)

    to oracle.ide.runner.RunProcess$ $2 1.run(RunProcess.java:768)

    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)

    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    Caused by: oracle.xml.parser.v2.XMLParseException: start of the element root waited.

    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)

    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)

    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)

    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:292)

    at oracle.jdeveloper.xml.DomIO.loadImpl(DomIO.java:115)

    ... more than 20

    I guess BC4J Server is not running.

    Please help me.

    Had to extract the patch again and run the new developer,

    Old data of projects migrated to this new folder, then it is running

  • Deployment error - java.io.IOException: no space is available on the device

    Hi everyone, I'm the BPM project deployment, I get the error below. Can someone please guide the solution for the error below. Thanks adavance. oracle.fabric.common.FabricDeploymentException: error occurred while processing file sca_TestSOAEmploy_rev1.0.jar rad before transferring in the store of MDS. Please make sure that the sar file is a valid jar file. : no space is available on the device {rootCauses = []} to oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deploySARs(BaseDeployProcessor.java:160) to oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:203) to oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:147) to oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeploy(DeployProcessor.java:134) to oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.process(DeployProcessor.java:100) truncated. check the log file full stacktrace caused by: java.io.IOException: no space is available on the truncated device at java.io.FileOutputStream.writeBytes (Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:260) at oracle.integration.platform.blocks.deploy.CompositeJarExpander.expandOneEntry(CompositeJarExpander.java:238) at oracle.integration.platform.blocks.deploy.CompositeJarExpander.expandJar(CompositeJarExpander.java:118) at oracle.integration.platform.blocks.deploy.CompositeJarExpander.expandJar(CompositeJarExpander.java:96). check the log file full stacktrace

    problem solved. It's a matter of space on the disk.

  • java.io.IOException: storage_open(): Permission denied, / tmp/javame8ea/bin /... /appdb/3J.tmp

    Hi all

    I started to follow the instructions and encounter the following issues when emulation usertest.sh testing. Any suggestions? Thanks in advance.

    PI@raspberrypi/tmp/javame8ea/bin $./usertest.sh

    argv [1] = runMidlet

    argv [2] = + UseProxy

    argv [3] == VMAgentBufferSize4000

    argv [4] = - 1

    argv [5] = com.sun.midp.appmanager.AmsLauncher

    argv [6] = - debugger

    argv [7] = - wdogenable

    [INFO] [CORE] iso = 0:javanotify_start_java_with_arbitrary_args() > >

    Java is starting. Press Ctrl-C to exit

    [INFO] [CORE] iso = 0:JavaTask() JAVATASK_EVENT_START_ARBITRARY_ARG > >

    [INFO] [STORAGE] iso = 0:opening for read only/tmp/javame8ea/bin /... /appdb/ams_params.txt

    [INFO] [CORE] iso = 0:initialize resource limit

    [INFO] ISO [CORE] = 0:RESOURCES [0] midpCheckResourceLimit (3, 1)

    [INFO] [STORAGE] iso = 0:storage_open allocated file_desc 0

    debugger port is not supported in the current configuration

    [INFO] [SECURITY] iso = 1:BlacklistServer: customers of loading on the black list of the folder/tmp/javame8ea/bin /... /appdb/blacklist_clients.txt

    [WARNING] [SECURITY] iso = 1:BlacklistServer: cannot load customer blacklist file/tmp/javame8ea/bin /... /appdb/blacklist_clients.txt

    [INFO] [SECURITY] iso = 1:BlacklistServer: loading applications on the black list of the folder/tmp/javame8ea/bin /... /appdb/blacklist_apps.txt

    [WARNING] [SECURITY] iso = 1:BlacklistServer: cannot load application blacklist file/tmp/javame8ea/bin /... /appdb/blacklist_apps.txt

    [INFO] [SECURITY] iso = 1:BlacklistServer: listening to queue has started

    [ERROR] [AMS] iso = 1:InstallCommand: an error during installation of the suite: java.io.IOException: storage_open(): Permission denied, / tmp/javame8ea/bin /... /appdb/3J.tmp

    TRACK: to java.io.IOException: storage_open(): Permission denied, / tmp/javame8ea/bin /... /appdb/3J.tmp >, InstallCommand

    java.io.IOException: storage_open(): Permission denied, / tmp/javame8ea/bin /... /appdb/3J.tmp

    -com/sun/midp/io/j2me/storage/RandomAccessStream.open (), bci = 0

    -com/sun/midp/io/j2me/storage/RandomAccessStream.connect (), bci = 21

    -com/sun/midp/io/j2me/storage/File.openWrite (), bci = 11

    -com/sun/midp/installer/ResourceProvisioning.downloadJar (), bci = 66

    -com/sun/midp/installer/Installer.installStep7 (), bci = 18

    -com/sun/midp/installer/Installer.performInstall (), bci = 139

    -com/sun/midp/installer/Installer.install (), bci = 49

    -com/oracle/midp/proxy/ProxyEventListener.handleInstallCommand (), bci = 376

    -com/oracle/midp/proxy/ProxyEventListener.handleDeveloperAgentEvent (), bci = 75

    -com/oracle/midp/proxy/ProxyEventListener.packetReceived (), bci = 12

    -com/oracle/midp/proxy/JavaChannelDispatcher.process (), bci = 150

    -com/sun/midp/events/EventQueue.run (), bci = 130

    -java/lang/Thread.run (), bci = 5

    You must run usertest.sh as root:

    sudo./usertest.sh

Maybe you are looking for

  • Palm Desktop 6.2.2 Windows 8 missing modules after the update to version 4.1.4

    After installing Palm Desktop 6.2.2 version 4.1.4 on my laptop to Windows 8 for use with my Palm Tungsten E2, I now only 4 modules... Fees, Note Pad, media and install. Where have calendar, addresses, etc., disappear to? Version 7.0.2 HotSync Manager

  • Correction of errors on computer

    I have the drive to take computer to where it was when I got it.  Don't you think he would get my computer run choke again. I tried everything, except Jack of the computer where it was when I bought it.  I saved all I really want here to the disc.  D

  • theme default button

    Hi all I created the button multi-line field, but as it is entirely custom, I need ButtonField theme parameter default - say, focus/unfocus the border color, white on focus etc. Is it possible to get these values somehow?

  • BlackBerry Smartphones old messages turned green

    Hi all, I gave my phone to someone during a football game and when I got back some of my old messages in my Inbox sms turned green, I opened one to see what the problem was and it seems there is nothing more inside. I can't read my old posts over wha

  • How do I up date my adobe applications?

    I need to get my updated adobe illustrator but do not know how you can help?