OdiOSCommand error java.io.IOException: error = 2

Hi all

Z Drive is a mapped network drive.
When I run the command "cmd.exe /C Z:\bin\import.bat Montana Z:\bin\ODIFilesStore\SRSTargets.csv" he executed successfully, but when I use it through OdiOSCommand I get the following error:

java.io.IOException: CreateProcess: OdiOSCommand "cmd.exe /C Z:\bin\import.bat Montana Z:\bin\ODIFilesStore\SRSTargets.csv" error = 2

at java.lang.Win32Process.create (Native Method)

to java.lang.Win32Process. < init >(Unknown Source)

at java.lang.Runtime.execInternal (Native Method)

the impossible (unknown Source)

the impossible (unknown Source)

the impossible (unknown Source)

the impossible (unknown Source)

at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execOsOrders (SnpSessTaskSql.java)

at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execOsOrders (SnpSessTaskSql.java)

at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt (SnpSessTaskSql.java)

at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt (SnpSessTaskSqlS.java)

at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask (SnpSessTaskSql.java)

at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep (SnpSessStep.java)

at com.sunopsis.dwg.dbobj.SnpSession.treatSession (SnpSession.java)

at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand (DwgCommandSession.java)

at com.sunopsis.dwg.cmd.DwgCommandBase.execute (DwgCommandBase.java)

at com.sunopsis.dwg.cmd.e.i (e.java)

at com.sunopsis.dwg.cmd.g.y (g.java)

at com.sunopsis.dwg.cmd.e.run (e.java)

at java.lang.Thread.run (unknown Source)

your help is very appreciated.

Thanks in advance.

Hello

use cmd/c instead of cmd.exe/C (use small letter c)
hope this can help you

for example: copy the content of the multiple files into single file

copy of cmd/c/y d:\xyz\file1*.txt d:\abc\newfile.txt

Kind regards
Phanikanth

Tags: Business Intelligence

Similar Questions

  • 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

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

  • This error: "java.io.IOException: error = 12, cannot allocate memory.

    I tried to run a simple workflow in vCenter Orchestrator (VCO) which accesses the command prompt by using this script:

    var myCommand = new Command ("ls");
    myCommand.execute (true);
    System.log (myCommand.Result);

    We use VAPP VCO and we continue this error:

    "Wrapped java.io.IOException: cannot run program 'ls': java.io.IOException: error = 12, cannot allocate memory (Workflow: Test2 / Scriptabletask (item0) #1)"

    Any suggestions? This script is copied and pasted directly from the VCO manuals, where our confusion.

    Have you tried to increase the memory of the virtual machine?

    I assume that you already have tried to restart the virtual machine without increasing the memory, just?

    Christophe.

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

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

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

  • 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

  • ADF java.io.IOException: flow closed and XML-22031:

    Hello

    I'm on JDeveloper 11.1.2.0.0

    I am trying to generate PDFs of ADF button

    1)
    Get the error
    [030513_091553573] [] [ERROR] java.io.IOException: closed stream


    I use code below
            String Tempath = "C:\\JDeveloper\\mywork\\xxPdfTestApp\\PDFTemplate\\TemplateT.rtf";
            InputStream inputStr = FacesContext.getCurrentInstance().getExternalContext().getResourceAsStream(Tempath);
    2)
    Another error
    XML-22031: Undefined Variable (error): "_XDONFSEPARATORS."




    Appreciate your help.


    Thank you
    JIT

    Published by: appsjit on March 5, 2013 11:56

    Published by: appsjit on March 5, 2013 12:59

    Following also generates an error?

    String Tempath = "C:/JDeveloper/mywork/xxPdfTestApp/PDFTemplate/TemplateT.rtf";
    InputStr InputStream = new FileInputStream (new File (Tempath));

  • 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

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

Maybe you are looking for