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.

Tags: Database

Similar Questions

  • Error when trying to create a collection of Solr (java.io.IOException: the device is not ready)

    Hello, everyone.

    I am trying to create a .cfm document which delete and then re-create a specific collection of Solr, index and optimize it.

    The removal works perfectly.

    Unfortunately, creation it doesn't, at all.  I get the following message:

    Cannot create the collection publicsearch - an error occurred during the creation of the collection: java.io.IOException: the device is not ready.

    This is a server of Windows 7 under Apache and CFServer 9.0.1 (the version before Verity was cut).  I get no more detail than an error message.  Any idea what could be the cause?  I googled this and I see a lot of similar questions, but not quite what I have going on.

    Thank you

    ^_^

    So much worse... someone didn't bother to inform the proponent that the access to the collection AND the path to the directory that contains the collection for are different on this other server.

    Fixed.

  • Java version 7, updated 17 is NOT recognized by FireFox version 19.0.2

    Sigh. He has such a cacophony of solutions to solve Java installation problems that even a user strays. The last solution to the problems of installation of Java refers to Java v7 u10. The solution is yet to indicate the version of Firefox, they run. It comes to March 2013. The latter was published in September 2012.

    Frankly, I am very, very disappointed. I love Firefox - but someone dropped / is dropping the ball on this one.

    What on Earth is the solution for Firefox version 19.0.2 not recognize installation of Java version 7, 17 update?

    Anyone in the community KNOW?

    Answer to my own post:

    Out of all the solutions posted about Java install problems, I was able to glean one thing: a re-installation of Java and a reinstall of Firefox may well resolve the issue.

    Well, for me, so far, he has.

    The simple steps I followed:

    1. Create Restore Point (Control Panel, search for "Create a Restore Point")
    2 uninstall my version of Java (Panel, "Uninstall a program")
    3 reset
    4. Download Firefox latest version (for me, was the 19.0.2, version in my downloads folder)
    5. download AND install the latest Java (now version 7, updated 17 @java.com)
    6 reboot
    7 install the latest Firefox ("Firefox Setup 19.0.2" application-double-click in my downloads folder)
    8A started Firefox (NOTE: my current extensions and plugins are not affected) and went to my favorite site that requires Java.
    9 THANK GOD, it worked! (NOTE: he did ask me if I wanted to RUN THIS APPLICATION)
    .
    I hope it works for you.

    (Technical note: all posted solutions, I have taken note that it becomes clear registry entries are not updated or are deleted.) The re-installing Java (after the withdrawal and reset) and the re-installing Firefox solved 'my' problem).

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

  • Java' is not recognized as an internal or external, order error during the signature of the request in the with .csi files/keys cmd prompt

    When Iam trying to sign a web application with the registration of keys i.e. .csi files

    at the command prompt Iam getting the following error.

    C:\Program Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\bin>java-jar SignatureTool.jar client-RBB - 1962923.csi
    'java' is not recognized as an internal or external, order
    operable program or batch file.

    You have not added your directory JDK_INSTALL\bin to your path environment, so that Windows cannot find java.exe.  This article explains how.

    Update the Path environment variable

  • Signature PlayBook problem - 'java' is not recognized as an internal or external command

    Hey guys,.

    I go through the steps of signing up with success until I run bbwp, then I get the following:

    [INFO]                  Parsing of the command line options
    [INFO]                  Bbwp.properties analysis
    [INFO]                  Validation of archive WebWorks
    [INFO]                  The analysis of config.xml
    [INFO]                  The application of filling source
    [INFO]                  Compiling applications WebWorks
    [INFO]                  Packaging of the record bar
    [INFO]                  Bar complete packaging
    [INFO]                  Start signing tool
    'java' is not recognized as an internal or external, order
    operable program or batch file.
    [ERROR]                 Signature failed

    Java is installed and is in my way, sny suggestions?

    Thank you

    -Ryan

    Funily enough a reboot solved the problem.

    These things always happen in times of crisis.

  • 'Java' is not recognized as an internal or external command

    The message of title is what appears when I try to install the app to test on the Simulator sketch.  I looked around and I think I have the right to the syntax, but any help would be greatly appreciated.  Thank you...

    D:\My company\App Development\Blackberry\bbwp\blackberry-tablet-sdk\bin >

    BlackBerry-deploy-installApp-device 192.168.142.128 - package "C:\Users\Amir".
    Muslim\Downloads\bin\sketchPadStandard.bar' - password *.

    'java' is not recognized as an internal or external, order
    operable program or batch file.

    You install jdk 1.6, and then set the path to java.

    To set the path of java, open the command prompt and write

    path = C:\Program Files\Java\jdk1.6.0_07\bin

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

  • Can not run the program "keytool": java.io.IOException

    Hello

    I would like to follow the procedure to change the password
    glassfish server hosting APEX earphone
    using the change key word subcommand of past, but the keytool utility
    not found:

    GlassFish@ahost:/opt/glassfish3/GlassFish/Domains/mydom01/config >/opt/glassfish3/bin/asadmin
    / opt/glassfish3/bin/asadmin
    Use "exit" to exit and online 'help' for help.
    asadmin > change of master-password mydom01
    Enter the current password > changeit

    Enter the new password > changedit

    Re-enter the new password > changedit

    Can not run the program "keytool": java.io.IOException: error = 2, no such file or directory
    Past change key word command failed.
    asadmin >
    Multimode command failed.
    GlassFish@ahost:/opt/glassfish3/GlassFish/Domains/mydom01/config > what java
    / usr/bin/Java
    GlassFish@ahost:/opt/glassfish3/GlassFish/Domains/mydom01/config >

    Glassfish entire works well outside it.

    keytool could be found in/usr/java/latest/bin/keytool.

    We need to have that in the path? There is no requirement in the
    Installation Guide for this, nor did the RPM installation adjust the system
    path accordingly.

    I hope someone can tell my how things should be in regards to keytool?

    Thank you, Tom

    Hi Tom,

    the procedure to change the password for the listener of glassfish server hosting APEX

    ... more like a topic related to GlassFish for me. I guess you will get the best answers to these questions in a GlassFish related forum...

    For what it's worth, I'll try my best even when:

    Can not run the program "keytool": java.io.IOException: error = 2, no such file or directory

    This seems to be a pretty clear error message: keytool , which probably is used to manage keys for users of GlassFish, was not found. This means, you are either running on an operating system that is not officially certified for GlassFish, or you GlassFish has not been configured correctly.
    You have run

    GlassFish@ahost:/opt/glassfish3/GlassFish/Domains/mydom01/config > which java
    / usr/bin/Java

    ... which means that you assume your GlassFish runs without being set JAVA_HOME. If that's true, I'm install you GlassFish correctly from this setting.
    Anyway, you have also discovered that

    keytool could be found in/usr/java/latest/bin/keytool.

    ... that is not + / usr / bin + and probably not in the way of global search of the user on whose behalf your GlassFish is running. Then, you can either create a link [*] for c++ / usr/bin/keytool + do (finally) to + / usr/java/more late/bin/keytool +, or you setup JAVA_HOME to be + / usr/java/last +.
    [*] Note that depending on your operating system, there may be more than one stage of indirection, for example my Ubuntu a + / usr/bin/java + pointing on + / etc/alternatives/java + which points on + / usr/lib/jvm/java-6-Sun/jre/bin/java + where + / usr/lib/jvm/java-6-Sun / + points to the directory containing the real JDK to use. You will probably find something like this on your system. My Ubuntu box has a link for + / usr/bin/keytool +, so I get when running "what keytool.

    We need to have that in the path? There is no requirement in the installation guide for that, nor the RPM installation has adjusted the path system accordingly.

    Again, this is not a forum of GlassFish.

    I hope my advice helps you solve your problem. If they are not, please choose the appropriate forum for your next post on this topic. And I guess, giving additional information about your OS and how you manage your JDK (and which version you use) help people here to help you.

    Thank you

    Udo

  • External hard drive is not recognized and the Table to Partition GUID (GPT) partitioning scheme has message is required (-69773)

    Hello!

    I have an external HD that has been unplugued without eject by mistake. Since then, the HD is not recognized by the finder or disk utility.

    When I list the disk in the Terminal, the drive is listed.

    But when I tried to check or repair, a message appears: "failed to check this disc: a Partition GUID (GPT) partitioning schΘma Table is required (-69773).

    I can access the files using programs such as Seagate File Recovery, but I want to extract data and repair the disk without using 3rd party software.

    Is this possible?

    If you have access to the files - a possibility would be to get the files off the disk and then reformat using disk utility

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

  • DBMS driver exception was: locale not recognized

    I am deploying example demo on weblogic Server intgrated hr using hr on the oracle database schema.

    the HR_EJB_JPA example compile with an error but not deployed and I get this error: weblogic.common.ResourceException: weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: unrecognized locale [13: 47:27] deployment cancelled. [13: 47:27] - incomplete deployment. [13: 47:27] remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer) # can't run application HR_EJB_JPA due to the deployment on IntegratedWebLogicServer error. [HR_EJB_JPA application stopped and cancelled Server Instance IntegratedWebLogicServer]

    What is your locale.

    Can change you to English of the United States, if they are not.

    To change the country or region setting

    1. Open region and language by clicking on the Start button, click on the Control Panel, clicking clock, language and region, and then by clicking on the region and language.
    2. Click the location tab, select your location from the list, and then click OK.

    Refer

    My Java Dev Blog: Weblogic datasource error: locale not recognized after upgrade the Oracle 9 pilot - & gt; 10

    Thank you

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

  • 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

Maybe you are looking for