Oc4jDcmServlet  : java.io.IOException: Error writing to server

I've been using the following ant task to do a remote deployment to an OC4J container :
<tasks>
<java jar="../../../../../MAVEN-WORK/portal-lib/oc4j_remote_deploy.jar" fork="yes" maxmemory ="512m">
<jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient"/>
<arg value="http://wblv-ep-sp05:1824/Oc4jDcmServletAPI/"/>
<arg value="ias_admin"/>
<arg value="admin_dev3"/>
<arg value="redeploy"/>
<arg value="/app/oracle/product/oc4jext10.1.2-d3"/>
<arg value="../portal-ear/target/portal.ear"/>
<arg value="portal"/>
<arg value="OC4J_portal"/>
</java>
</tasks>
This has worked before , but I'm suddenly getting error when trying to run it .The error message and stack trace are shown below :
[INFO] Executing tasks
[java] Initializing log
[java] Servlet interface for OC4J DCM commands
[java] Command timeout defined at 600 seconds
[java] Executing DCM command...
[java] Executing command redeploy /app/oracle/product/oc4jext10.1.2-d3 ../e
portal-ear/target/ePortalep2x-QA-V-02_00_5-20070220.ear eportal OC4J_Eportal
[java] Command = REDEPLOY
[java] Reading application's ear file
[java] Ear file was successfully read
[java] Opening connection to Oc4jDcmServlet
[java] Setting userName to ias_admin
[java] Sending command to DCM servlet
[java] **** Could not check HTTP response code
[java] ** Thread[main,5,main] ** Sun Feb 25 20:47:34 CAT 2007 ** ** EXCEP
TION: java.io.IOException: Error writing to server
[java] java.io.IOException: Error writing to server
[java] at sun.net.www.protocol.http.HttpURLConnection.writeRequests(Htt
pURLConnection.java:416)
[java] at sun.net.www.protocol.http.HttpURLConnection.writeRequests(Htt
pURLConnection.java:428)
[java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Ht
tpURLConnection.java:934)
[java] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.
java:367)
[java] at oracle.j2ee.tools.remote_deploy.Oc4jDcmClient.isHttpResponseO
k(Unknown Source)
[java] at oracle.j2ee.tools.remote_deploy.Oc4jDcmClient.sendCommand(Unk
nown Source)
[java] at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommand.execute(Unknow
n Source)
[java] at oracle.j2ee.tools.remote_deploy.Oc4jDcmCommand.redeployApplic
ation(Unknown Source)
[java] at oracle.j2ee.tools.remote_deploy.Oc4jDcmMain.main(Oc4jDcmMain.
java:63)
[java] #### HTTP response is NOT ok
[java] Closing connection to Oc4jDcmServlet
[java] #### DCM command did not complete successfully (-1)
[java] #### HTTP return code was -1
[java] Java Result: -1
[INFO] Executed tasks
It seems to stall at the "Sending command to DCM servlet" stage , then fails.
Does the DCM servlet write out logs that I can look at?Where is the Oc4jDcmServlet.ear located in an OC4J container directory hierarchy?How do I redeploy the Oc4jDcmServlet.ear ?
This was working a few hours ago as seen here in my previous logs (and I do not understand what could have gone wrong) :
** Thread[main,5,main] ** Thu Feb 22 14:50:39 CAT 2007 ** Initializing log
** Thread[main,5,main] ** Thu Feb 22 14:50:39 CAT 2007 ** Servlet interface for OC4J DCM commands
** Thread[main,5,main] ** Thu Feb 22 14:50:39 CAT 2007 ** Command timeout defined at 600 seconds
** Thread[main,5,main] ** Thu Feb 22 14:50:39 CAT 2007 ** Executing command redeploy /app/oracle/product/oc4jext10.1.2-d3 ../portal-ear/target/portal.ear portal OC4J_portal
** Thread[main,5,main] ** Thu Feb 22 14:50:39 CAT 2007 ** Command = REDEPLOY
** Thread[main,5,main] ** Thu Feb 22 14:50:39 CAT 2007 ** Reading application's ear file
** Thread[main,5,main] ** Thu Feb 22 14:50:45 CAT 2007 ** Ear file was successfully read
** Thread[main,5,main] ** Thu Feb 22 14:50:45 CAT 2007 ** Opening connection to Oc4jDcmServlet
** Thread[main,5,main] ** Thu Feb 22 14:50:45 CAT 2007 ** Setting userName to ias_admin
** Thread[main,5,main] ** Thu Feb 22 14:50:45 CAT 2007 ** Sending command to DCM servlet
** Thread[main,5,main] ** Thu Feb 22 14:50:50 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
** Thread[main,5,main] ** Thu Feb 22 14:50:50 CAT 2007 ** Command was successfully sent to Oc4jDcmServlet
** Thread[main,5,main] ** Thu Feb 22 14:50:50 CAT 2007 ** Receiving session id from servlet to check command status
** Thread[main,5,main] ** Thu Feb 22 14:50:50 CAT 2007 ** Session id = 0afb65197201792b582df0d486285eef6aa19c1ab64
** Thread[main,5,main] ** Thu Feb 22 14:50:50 CAT 2007 ** Please, wait for command to finish...
** Thread[main,5,main] ** Thu Feb 22 14:51:00 CAT 2007 ** Checking command status...
** Thread[main,5,main] ** Thu Feb 22 14:51:00 CAT 2007 ** Setting userName to ias_admin
** Thread[main,5,main] ** Thu Feb 22 14:51:00 CAT 2007 ** Setting Cookie to JSESSIONID=0afb65197201792b582df0d486285eef6aa19c1ab64
** Thread[main,5,main] ** Thu Feb 22 14:51:00 CAT 2007 ** Checking command status
** Thread[main,5,main] ** Thu Feb 22 14:51:00 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
** Thread[main,5,main] ** Thu Feb 22 14:51:00 CAT 2007 ** Command has not finished yet
** Thread[main,5,main] ** Thu Feb 22 14:51:10 CAT 2007 ** Checking command status...
** Thread[main,5,main] ** Thu Feb 22 14:51:10 CAT 2007 ** Setting userName to ias_admin
** Thread[main,5,main] ** Thu Feb 22 14:51:10 CAT 2007 ** Setting Cookie to JSESSIONID=0afb65197201792b582df0d486285eef6aa19c1ab64
** Thread[main,5,main] ** Thu Feb 22 14:51:10 CAT 2007 ** Checking command status
** Thread[main,5,main] ** Thu Feb 22 14:51:10 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
** Thread[main,5,main] ** Thu Feb 22 14:51:10 CAT 2007 ** Command has not finished yet
** Thread[main,5,main] ** Thu Feb 22 14:51:20 CAT 2007 ** Checking command status...
** Thread[main,5,main] ** Thu Feb 22 14:51:20 CAT 2007 ** Setting userName to ias_admin
** Thread[main,5,main] ** Thu Feb 22 14:51:20 CAT 2007 ** Setting Cookie to JSESSIONID=0afb65197201792b582df0d486285eef6aa19c1ab64
** Thread[main,5,main] ** Thu Feb 22 14:51:20 CAT 2007 ** Checking command status
** Thread[main,5,main] ** Thu Feb 22 14:51:20 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
** Thread[main,5,main] ** Thu Feb 22 14:51:20 CAT 2007 ** Command has not finished yet
** Thread[main,5,main] ** Thu Feb 22 14:51:30 CAT 2007 ** Checking command status...
** Thread[main,5,main] ** Thu Feb 22 14:51:30 CAT 2007 ** Setting userName to ias_admin
** Thread[main,5,main] ** Thu Feb 22 14:51:30 CAT 2007 ** Setting Cookie to JSESSIONID=0afb65197201792b582df0d486285eef6aa19c1ab64
** Thread[main,5,main] ** Thu Feb 22 14:51:30 CAT 2007 ** Checking command status
** Thread[main,5,main] ** Thu Feb 22 14:51:30 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
** Thread[main,5,main] ** Thu Feb 22 14:51:30 CAT 2007 ** Command has not finished yet
** Thread[main,5,main] ** Thu Feb 22 14:51:40 CAT 2007 ** Checking command status...
** Thread[main,5,main] ** Thu Feb 22 14:51:40 CAT 2007 ** Setting userName to ias_admin
** Thread[main,5,main] ** Thu Feb 22 14:51:40 CAT 2007 ** Setting Cookie to JSESSIONID=0afb65197201792b582df0d486285eef6aa19c1ab64
** Thread[main,5,main] ** Thu Feb 22 14:51:40 CAT 2007 ** Checking command status
** Thread[main,5,main] ** Thu Feb 22 14:51:40 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
** Thread[main,5,main] ** Thu Feb 22 14:51:40 CAT 2007 ** Command has not finished yet
** Thread[main,5,main] ** Thu Feb 22 14:51:50 CAT 2007 ** Checking command status...
** Thread[main,5,main] ** Thu Feb 22 14:51:50 CAT 2007 ** Setting userName to ias_admin
** Thread[main,5,main] ** Thu Feb 22 14:51:50 CAT 2007 ** Setting Cookie to JSESSIONID=0afb65197201792b582df0d486285eef6aa19c1ab64
** Thread[main,5,main] ** Thu Feb 22 14:51:50 CAT 2007 ** Checking command status
** Thread[main,5,main] ** Thu Feb 22 14:51:50 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
** Thread[main,5,main] ** Thu Feb 22 14:51:50 CAT 2007 ** Command has not finished yet
** Thread[main,5,main] ** Thu Feb 22 14:52:00 CAT 2007 ** Checking command status...
** Thread[main,5,main] ** Thu Feb 22 14:52:00 CAT 2007 ** Setting userName to ias_admin
** Thread[main,5,main] ** Thu Feb 22 14:52:00 CAT 2007 ** Setting Cookie to JSESSIONID=0afb65197201792b582df0d486285eef6aa19c1ab64
** Thread[main,5,main] ** Thu Feb 22 14:52:00 CAT 2007 ** Checking command status
** Thread[main,5,main] ** Thu Feb 22 14:52:00 CAT 2007 ** HTTP response code = 200, HTTP response msg = OK
** Thread[main,5,main] ** Thu Feb 22 14:52:00 CAT 2007 ** Command has finished

I looked at the log.xml file under the dcm/logs/daemon_logs directory and saw this :
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2007-02-26T08:49:13.203+02:00</TSTZ_ORIGINATING>
<COMPONENT_ID>DCM</COMPONENT_ID>
<MSG_TYPE TYPE="ERROR"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>wblv-ep-sp05</HOST_ID>
<HOST_NWADDR>10.251.101.25</HOST_NWADDR>
<MODULE_ID>oracle/defaultLogger/ExceptionLogger</MODULE_ID>
<THREAD_ID>Deamon Worker for TaskMaster of iAS instance at: /app/oracle/product/oc4jext10.1.2-d3 JVM Id = 1b09468.110df14be01.-8000</THREAD_ID>
<USER_ID>oracle</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>10.251.101.25:47620:1172472553186:2846</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>principals specified in application is not a valid path: /app/oracle/product/oc4jext10.1.2-d3/j2ee/home/config/../application-deployments/ADFBCManager/principals.xml</MSG_TEXT>
</PAYLOAD>
</MESSAGE>
The same MSG_TEXT appears in the log every time i had a failed deploy.

Similar Messages

  • Java.io.IOException: Error writing to server after installing SP17

    After installing SP17 in production, we are seeing message in AE failing with com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: Error writing to server.
    The messages don't make it to IS and are stuck in AE.
    We've checked pipeline url / sm59 entry for INTEGRATION_DIRECTORY_HMI using user - XIISUSER, we did a full cache refresh.
    They all appear to be set correctly.
    We'll take any ideas and suggestions.
    Thank you.

    Yes...we have been working all night on this. The FM did create an entry but it does no look like its recognising.
    This is what we see in the Adapter messaging tool.
    2006-09-18 13:28:24 Error Returning synchronous error notification to calling application: Received HTTP response code 401 : Unauthorized.
    2006-09-18 13:28:24 Error Transmitting the message using connection http://host:8176/sap/xi/engine?type=entry failed, due to: Received HTTP response code 401 : Unauthorized.
    2006-09-18 13:28:24 Error The message status set to FAIL.
    2006-09-18 13:28:24 Error Returning to application. Exception: Received HTTP response code 401 : Unauthorized
    Any help?

  • Java.io.IOException: Error initializing HTTP tunnel connection:

    Hi,
    I am running sample Midlet to communicate to any URL like http://www.google.com or my internal servlet. It is opening the connection but when I try to open the inputstream it gives me following error.
    java.io.IOException: Error initializing HTTP tunnel connection:
    HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )
    Via: 1.1 TPSL-PROXY
    Proxy-Authenticate: Negotiate
    Proxy-Authenticate: Kerberos
    Proxy-Authenticate: NTLM
    Proxy-Authenticate: Digest qop="auth",algorithm=MD5-sess,nonce="3ace49b386edc8013f52a8f9b7c0638bfb8a6ca60b76bf826632da7cd6185c30d3c61c1a61a0aa91",charset=utf-8,realm="TPSL.LOCAL"
    Connection: close
    Proxy-Connection: close
    Pragma: no-cache
    Cache-Control: no-cache
    Content-Type: text/html
    Content-Length: 722
         at com.sun.midp.io.j2me.http.Protocol.doTunnelHandshake(+333)
         at com.sun.midp.io.j2me.http.Protocol.connect(+145)
         at com.sun.midp.io.j2me.http.Protocol.streamConnect(+57)
         at com.sun.midp.io.j2me.http.Protocol.startRequest(+12)
         at com.sun.midp.io.j2me.http.Protocol.sendRequest(+38)
         at com.sun.midp.io.j2me.http.Protocol.sendRequest(+6)
         at com.sun.midp.io.j2me.http.Protocol.closeOutputStream(+4)
         at com.sun.midp.io.BaseOutputStream.close(+14)
         at HTTPTest.getGrade(+155)
         at HTTPTest.startApp(+8)
         at javax.microedition.midlet.MIDletProxy.startApp(+7)
         at com.sun.midp.midlet.Scheduler.schedule(+270)
         at com.sun.midp.main.Main.runLocalClass(+28)
         at com.sun.midp.main.Main.main(+80)
    I think it is going through SSL handshake which implemented in HTTP protocol in J2ME.
    I have already done the proxy setup and authentication in Sun Wireless toolkit > preferences > Network configuration.
    Still error is there. Please help me regarding this, not able to go ahead and rest in peace.
    thanks & regards,
    mJK

    Hi,
    have you checked proxy settings in WTK preferences?
    Peter

  • Java.io.IOException: error in poll: Input/output error

    Hello,
    My server is running on Linux 7.1, IBM JDK 1.3 and WLS 6.1. When the
    following error is thrown in weblogic.log, the server is stopped by this
    error. This error keeps happening once it occurs for about every one second.
    ####<Dec 23, 2001 3:12:46 AM SGT> <Error> <Posix Performance Pack>
    <MyPC.1st-cube.com> <myserver> <ExecuteThread: '12' for queue:
    'default'><><><000000> <Uncaught Throwable in processSockets>
    java.io.IOException: error in poll: Input/output error
    at weblogic.socket.PosixSocketMuxer.poll(Native Method)
    at
    weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:371)
    at
    weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Can anyone help?
    Thanks.
    Regards,
    Mo

    I too am seeing a slight variation of this error with JM 1.3.1. Unfortunately, the message has since been deleted. Any ideas?
    java.io.IOException: Error in encoded stream, got 2
    at com.sun.mail.util.BASE64DecoderStream.decode(BASE64DecoderStream.java:148)
    at com.sun.mail.util.BASE64DecoderStream.read(BASE64DecoderStream.java:53)
    at com.sun.mail.util.BASE64DecoderStream.read(BASE64DecoderStream.java:78)
    at java.io.FilterInputStream.read(FilterInputStream.java:90)
    at javax.activation.DataHandler.writeTo(DataHandler.java:289)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147)
    at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:668)
    at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:233)
    at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:67)
    at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:839)
    at javax.activation.DataHandler.writeTo(DataHandler.java:295)

  • Java.io.IOException: Error in HTTP operation

    hai
    My Application is working fine in emulator and working fine under Via OTA and also works fine in Nokia 7210 ,but i install in Nokia 6230i i got the error java.io.IOException: Error in HTTP operation,when i type the same url in Nokia 6230i browser the result came back from the server ,only in application its not working ,plese help me regarding this , what is the problem
    my code for Http Connection
    System.out.println("in here");
         HttpConnection c = null;
    InputStream is = null;
    try
              System.out.println("in try");
    c=(HttpConnection)Connector.open(url);
              c.setRequestMethod(HttpConnection.GET);
              c.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/CLDC-1.0");
              c.setRequestProperty("Content-Language", "en-US");
              System.out.println("after passing url");
    int rc = c.getResponseCode();
    if (rc != HttpConnection.HTTP_OK)
    throw new IOException("HTTP response code: " + rc);
    System.out.println("after responce");
    is = c.openInputStream();
    ByteArrayOutputStream bin = new ByteArrayOutputStream();
    byte[] buffer = new byte[3000];
    int rd;
    while ( (rd=is.read(buffer))!= -1)
    bin.write(buffer,0,rd);
    System.out.println("after getting data");
    bin.flush();
    return bin.toString();
    Thanks & regards
    Ravi varma

    You still did not answer my question on the other forum: what is the value of rc? int rc = c.getResponseCode();Mihai

  • RemoteException: 111 java.rmi.ServerError: Error occurred in server thread

    Hi,
    I'm just new to the RMI field of JAVA. I'm trying to write a program that import the math.jar file in the server side. And the client end can invoke the methods of math.jar and get the value.
    I got the error messages as below:
    RemoteException: 111 java.rmi.ServerError: Error occurred in server thread; nested exception is:
         java.lang.NoClassDefFoundError: org/mathwhizz/Heron
    It can work well if I use source classes(*.class) directly instead of importing math.jar. The failure only happened when I try to make use of jar file. Thus I guess my setup and configuration should be ok. Is there anything I should be very careful if I try to run RMI and import a jar file in the program of server side ?
    Do I need to use JNLP and web start application in this issue?
    I'm appreciated for your responses...thanks...
    Sincerely,
    Brandon

    I've got a problem with rmi, when I launch my server, I have this error:
    Erreur du remote: java.rmi.ServerError: Error occurred in server thread; nested exception is:
    java.lang.NoClassDefFoundError: com/borland/dx/dataset/DataSetData
    Help me please
    Thank you

  • Java.lang.InstantiationException: Error communicating with server:

    Hello everybody, I am an easy Helloworld application, the deploy is fine, but when I execute the client it appears the next error:
    java.lang.InstantiationException: Error communicating with server: Lookup error:
    java.net.ConnectException: Connection refused: connect; nested exception is:
    java.net.ConnectException: Connection refused: connect; nested exception
    is:
    javax.naming.NamingException: Lookup error: java.net.ConnectException: C
    onnection refused: connect; nested exception is:
    java.net.ConnectException: Connection refused: connect
    at com.evermind.server.ApplicationClientContext.createContext(Applicatio
    nClientContext.java:300)
    at com.evermind.server.ApplicationClientInitialContextFactory.getInitial
    Context(ApplicationClientInitialContextFactory.java:190)
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.init(Unknown Source)
    at javax.naming.InitialContext.<init>(Unknown Source)
    at hello.HelloClient.main(HelloClient.java:33)
    NamingException: Error reading application-client descriptor: Error communicatin
    g with server: Lookup error: java.net.ConnectException: Connection refused: conn
    ect; nested exception is:
    java.net.ConnectException: Connection refused: connect; nested exception
    is:
    javax.naming.NamingException: Lookup error: java.net.ConnectException: C
    onnection refused: connect; nested exception is:
    java.net.ConnectException: Connection refused: connect
    This is my application client:
    // HelloClient.java
    package hello;
    import javax.ejb.*;
    import javax.naming.*;
    import javax.rmi.PortableRemoteObject;
    import java.io.*;
    import java.util.*;
    import java.rmi.RemoteException;
    * A simple client for accessing an EJB.
    public class HelloClient
    public static void main(String[] args)
    System.out.println("client started...");
    try {
    // Initial context properties are set in the jndi.properties file
         Hashtable env = new Hashtable();
         env.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationClientInitialContextFactory");
         env.put(Context.PROVIDER_URL, "ormi://ecd11107.eadscasa.casa.corp:23791/helloworld");
         env.put(Context.SECURITY_PRINCIPAL, "admin");
         env.put(Context.SECURITY_CREDENTIALS, "123");
         Context context = new InitialContext(env);
    // This for use with com.evermind.server.rmi.RMIInitialContextFactory
    //Object homeObject = context.lookup("HelloBean");
    // This is for use with com.evermind.server.ApplicationClientInitialContextFactory
    Object homeObject = context.lookup("java:comp/env/Helloworld");
    // Narrow the reference to HelloHome.
    HelloHome home =
         (HelloHome) PortableRemoteObject.narrow(homeObject, HelloHome.class);
         System.out.println("hello home");
    // Create remote object and narrow the reference to Hello.
    Hello remote =
         (Hello) PortableRemoteObject.narrow(home.create(), Hello.class);
    System.out.println(remote.sayHello("James Earl"));
    } catch(NamingException e) {
    System.err.println("NamingException: " + e.getMessage());
    } catch(RemoteException e) {
    System.err.println("RemoteException: " + e.getMessage());
    } catch(CreateException e) {
    System.err.println("FinderException: " + e.getMessage());
    Can somebody helps me ???

    Thank you, but don�t work well yet. I checked the files orion-application.xml & principals.xml in the directory C:\servOracle\oracle\j2ee\home\application-deployments\helloworld but the result is the same, when I run the client the next error appears:
    NamingException: Lookup error: javax.naming.NoPermissionException: Not allowed to look up HelloBean, check the namespace-access tag setting in orion-application.xml for details; nested exception is:
    javax.naming.NoPermissionException: Not allowed to look up HelloBean, check the namespace-access tag setting in orion-application.xml for details
    This is my orion-application.xml
    <?xml version="1.0"?>
    <!DOCTYPE orion-application PUBLIC "-//ORACLE//DTD OC4J Application runtime 9.04//EN" "http://xmlns.oracle.com/ias/dtds/orion-application-9_04.dtd">
    <orion-application deployment-version="9.0.4.0.0" default-data-source="jdbc/OracleDS" treat-zero-as-null="true">
         <ejb-module remote="false" path="helloworld-ejb.jar" />
         <web-module id="helloworld-web" path="helloworld-web.war" />
         <client-module path="helloworld-client" deployment-time="fce4439997" auto-start="false" />
         <persistence path="persistence" />
         <principals path="principals.xml" />
         <jazn provider="XML" location="jazn-data.xml" />
         <log>
              <file path="application.log" />
         </log>
         <namespace-access>
              <read-access>
                   <namespace-resource root="">
                        <security-role-mapping name="<jndi-user-role>">
                             <group name="users" />
                        </security-role-mapping>
                   </namespace-resource>
              </read-access>
              <write-access>
                   <namespace-resource root="">
                        <security-role-mapping name="<jndi-user-role>">
                             <group name="users" />
                        </security-role-mapping>
                   </namespace-resource>
              </write-access>
         </namespace-access>
    </orion-application>
    And this is my principals.xml
    <?xml version="1.0"?>
    <!DOCTYPE principals PUBLIC "//ORACLE//DTD OC4J Principals 9.04//EN" "http://xmlns.oracle.com/ias/dtds/principals-9_04.dtd">
    <principals>
         <groups>
              <group name="users">
                   <description>users</description>
                   <permission name="rmi:login" />
              </group>
              <group name="guests">
                   <description>guests</description>
              </group>
              <group name="administrators">
                   <description>administrators</description>
                   <permission name="administration" />
              </group>
         </groups>
         <user username="admin" password="ADMIN">
              <description>The default administrator</description>
              <group-membership group="administrators" />
              <group-membership group="guests" />
              <group-membership group="users" />
         </user>
         <user username="SCOTT" password="TIGER">
              <description>no description</description>
              <group-membership group="users" />
              <group-membership group="administrators" />
         </user>
    </principals>
    Thanks in advance, please help me....

  • Java.io.IOException: Error in encoded stream: needed 4 valid base64 charact

    Hi All,
    I am getting IOException for some of the messages.
    Even though I set
       <system-property mail.mime.base64.ignoreerrors='true' />I am still getting exception
    Java version i am using is Java 1.4.2
    any help would be appreciated
    Thanks,
    Amit

    You're probably using an older version of JavaMail. The property was
    added in JavaMail 1.3.2

  • Java.io.IOException: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor

    Here by i am giveing code
    while(rs1.next())
                        photo=rs1.getString(1);
              strName=photo+" "+rs1.getString(2)+" "+rs1.getString(3);
              strDesign=rs1.getString(4);
              strLoc=rs1.getString(5);
              strUgc=rs1.getString(6);
              stream= rs1.getBinaryStream(7);
              strType=rs1.getString(8);
              try
                   File Dir=new File("doc/menu/naac/Photo");
                   if(!Dir.exists())
                        Dir.mkdir();
                   int temp=0;
                   File fileName=new File(Dir+"/"+photo+".gif");
                   output=new FileOutputStream(fileName);
                   try
                        do
                             temp=stream.read();
                             if(temp!=-1)
                                  output.write(temp);
                        while(temp!=-1);
                   catch(Exception e)
                        System.out.println("It is giving "+e);
    It is giving to error in the line temp=stream.read();
    Any one can help me

    Stay away from Microsoft.

  • Java.io.IOException during large file processing on PI 7.1

    Hello Colleagues,
    for a large file scenario on our PI 7.1 System we have to verify with big file size we are able to process over PI.
    During handing over the large file (200 MB XML) form the Adapter Frame Work (File Adapter) to the Integration Engine we receive following error:
    Transmitting the message to endpoint http://<host>:<port>/sap/xi/engine?type=entry using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error transmitting the message over HTTP. Reason: java.io.IOException: Error writing to server.
    The message processing stopped and message still lies at Adapter Frame Work. Large files up to 100 MB we are able to process successfully.
    Please, could you tell me why this happened and how we are able to solve it?
    Because there is not a java.outofmemory exception however a IO exception i think it could be an memory issue?!
    Many thanks in advance!
    Regards,
    Jochen

    Hi Jochen,
    Indeed the error is IO Error and it is because the Adapter engine was not able to send the message to Integration server. But it happens due to memory/heap size issues.
    Look at these thread, they are having the same problem. Please try the remedy measures suggested by them
    Mail to Proxy scenario with attachment. AF channel error.
    Error with huge file
    problem with big file in file-to-proxy scenario
    Is there any additional information in Adapter messaging tool.?
    Regards
    Suraj
    Edited by: S.R.Suraj on Oct 1, 2009 8:55 AM

  • Attempt to process file failed with java.io.IOException

    Hi,
    The scenario is from Idoc to flat file and messages are getting processed successfully in XI. but in receiver communication channel error is coming:
    Attempt to process file failed with java.io.IOException: Error during STOR/APPE epilogue: com.sap.aii.adapter.file.ftp.FTPEx: 426 Connection closed; transfer aborted.
    MP: exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error during STOR/APPE epilogue: com.sap.aii.adapter.file.ftp.FTPEx: 426 Connection closed; transfer aborted.: java.io.IOException: Error during STOR/APPE epilogue: com.sap.aii.adapter.file.ftp.FTPEx: 426 Connection closed; transfer aborted.

    Hi,
    If you are using FTP then,
    1. Make sure that the FTP sever does not have issues with Firewall or a Proxy server access.
    2. Also verify that the specified FTP user ID has the necessary WRITE or overwrite authorization?
    Regards,
    Sarvesh
    ***Reward points, if it helped you.

  • Cannot run program "keytool": java.io.IOException

    Hi,
    I would like to follow the procedure to change the master password
    of glassfish server hosting APEX listener
    using the change-master-password subcommand, but the utility keytool
    is not found:
    glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config> /opt/glassfish3/bin/asadmin
    /opt/glassfish3/bin/asadmin
    Use "exit" to exit and "help" for online help.
    asadmin> change-master-password mydom01
    Enter the current master password> changeit
    Enter the new master password> changedit
    Enter the new master password again> changedit
    Cannot run program "keytool": java.io.IOException: error=2, No such file or directory
    Command change-master-password failed.
    asadmin>
    Command multimode failed.
    glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config> which java
    /usr/bin/java
    glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config>
    All of glassfish is running fine apart from this.
    keytool could be found in /usr/java/latest/bin/keytool.
    Do we need to have this in the path? There is no requirement in the
    install guide for this, nor did the RPM installation adjust the system
    path accordingly.
    Hopefully someone can tell my how things ought to be regarding keytool?
    Thanks, Tom

    Hi Tom,
    the procedure to change the master password of glassfish server hosting APEX listener... sounds more like a GlassFish-related topic to me. I guess you'd get the best answers for such questions in a GlassFish-related forum...
    For what it's worth, I'll try my best anyway:
    Cannot run program "keytool": java.io.IOException: error=2, No such file or directoryThis seems to be a pretty clear error message: keytool , which is probably used to manage the keys for GlassFish users, wasn't found. This means, you're either running on an OS that is not officially certified for GlassFish, or you GlassFish hasn't been configured properly.
    You ran
    glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config> which java
    /usr/bin/java... which indicates you assume your GlassFish is running without JAVA_HOME being set. If that's true, I'd begin to setup you GlassFish properly starting with that parameter.
    Anyway, you also found out that
    keytool could be found in /usr/java/latest/bin/keytool.... which is not +/usr/bin+ and hence probably not in the global search path of the user on whose behalf your GlassFish is running. So, you could either create a link-set[*] for +/usr/bin/keytool+ to (finally) point to +/usr/java/latest/bin/keytool+, or you setup JAVA_HOME to be +/usr/java/latest+ .
    [*] Note that depending on your OS there might be more than one stage of indirection, e.g. my Ubuntu has +/usr/bin/java+ pointing to +/etc/alternatives/java+ which is pointing to +/usr/lib/jvm/java-6-sun/jre/bin/java+ where +/usr/lib/jvm/java-6-sun/+ is pointing to the directory containing the actual JDK to be used. You'll probably find something like that on your system as well. My Ubuntu box has a link for +/usr/bin/keytool+, so I get that when running "which keytool".
    Do we need to have this in the path? There is no requirement in the install guide for this, nor did the RPM installation adjust the system path accordingly.Again, this is not a GlassFish forum.
    I hope my hints help you solve your problem. If they don't, please choose the appropriate forum for your next post on that topic. And I guess, giving some more information on your OS and how you manage your JDK (and which version you use) will help people there to help you.
    Thanks,
    Udo

  • Java.io.IOException: Cannot run program "ant"

    Hi all,
    I'm running a Job in Hudson.
    I build this job from a Hudson Master Server but the job is built in a Hudson Linux Node.
    This is the result:
    Started by user builder
    Building remotely on Linux-Node
    Updating http://150.200.20.200:8000/mvtv_all/DESCOS/MVTVc_D2ph1/branches revision: 17-may-2013 16:01:46 depth:infinity ignoreExternals: false
    At revision 529
    Updating http://150.200.200.200:8000/mvtv_all/DESCOS/KaluModules/branches revision: 17-may-2013 16:01:46 depth:infinity ignoreExternals: false
    At revision 529
    no change for http://159.200.300.20:8000/mvtv_all/DESCOS/MVTVc_D2ph1/branches since the previous build
    no change for http://159.230.300.20:8000/mvtv_all/DESCOS/KaluModules/branches since the previous build
    No emails were triggered.
    [bt] $ ant -file build.xml -DSUBSYSTEM=ALL -DTARGET=makeBuild -DCRLIST= -DOWNER= -DbuildTool.patch.release=$RELEASE -DbuildTool.system=$SYSTEM -DbuildTool.patch.type=$PATCH_TYPE -DbuildTool.subsystem=ALL -DbuildTool.buildRules=pkgBuild -DbuildTool.dynamicView=$WORKSPACE/ALL -DbuildTool.compilationRules=compile -DbuildTool.patch.name=$PATCH_NAME makeBuild
    FATAL: command execution failed.Maybe you need to configure the job to choose one of your Ant installations?
    java.io.IOException: Cannot run program "ant" (in directory "/hudson/buildTool/src/bt"): error=2, No existe el fichero o el directorio
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    at hudson.Proc$LocalProc.<init>(Proc.java:192)
    at hudson.Proc$LocalProc.<init>(Proc.java:164)
    at hudson.Launcher$LocalLauncher.launch(Launcher.java:639)
    at hudson.Launcher$ProcStarter.start(Launcher.java:274)
    at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:794)
    at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:768)
    at hudson.remoting.UserRequest.perform(UserRequest.java:114)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:283)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)
    Caused by: java.io.IOException: error=2, No existe el fichero o el directorio
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
    at java.lang.ProcessImpl.start(ProcessImpl.java:130)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
    ... 15 more
    Do you know something about this issue?
    Thanks and Regards

    No, and this is not the Hudson forums either. But see this error?
    FATAL: command execution failed.Maybe you need to configure the job to choose one of your Ant installations?Try posting that in Google and see what you get. That's basic misery solution research 101. Post the error in Google. 999/1000 times someone has already run into it before. Please learn from their experiences by reading through them.

  • IOException: error 10054

    after I run my program on emulator with monitor I get this exception:
    java.io.IOException: error 10054 during TCP read
    what is wrong?

    you have to send more details what you are doing. Does app run without problem when you aren't using network monitor.

  • Keystore java.io.IOException

    Hi all, when i try to generate a secretkey and store it in a keystore, but i get an io exception for some reason.
    it says:
    Exception in thread "main" java.security.KeyStoreException: java.io.IOException:
    Error initialising store of key store.
    i really don't know what i'm doing wrong, a little bit of help would be usefull
    this is a piece of my code:
    private static String FILENAME = "keystore.ks";
    private void registerUserKey(char[] password) throws Exception{
              // Generate secret key for HMACRIPEMD160
              KeyGenerator kg = KeyGenerator.getInstance("HMACRIPEMD160");
              SecretKey sk = kg.generateKey();
              // Create a keystore and place the key in it
              // I use an UBER keystore, which is provided by Bouncycastle.
              KeyStore keyStore = KeyStore.getInstance("UBER");
              keyStore.load(null, null);
              String alias = "exampleKey";
              keyStore.setKeyEntry(alias, sk, password, null);
              FileOutputStream fos = new FileOutputStream(FILENAME);
              keyStore.store(fos, password);
              fos.close();
         }

    my days of wandering forums of all kind have finally paid off.
    seems like adding the specific classpath option solves my problems
    so now i run and compile my files with this line
    java -Xbootclasspath:c:\jdk1.2.2\jre\lib\ext\jce-jdk12-118.jar;c:\jdk1.2.2\jr
    e\lib\rt.jar; myfilename
    and it works fine.
    if there is anybody who can tell me why it doesn't work when i change my classpath (and class), that would be hugely appreciated.
    But at least now i can run my applications

Maybe you are looking for

  • PROFORMA INVOICE in Business One

    Does anyone know if Business One 2005A SP1 or any other versions of SBO ever supported Proforma Invoices? I did find some old SBO 6.4 powerpoints, but they were specific to Italy. If anyone knows, please let me know. Thanks, Regis

  • Error Traceing In BPM

    Hi All,     I have a file to File scenerio, where the BPM is used for processing the file. Now, when i processed the file, it get stuck-off in BPM. I fail to find the exact location where it is causing me the problem. Checked :    1. SXMB_MONI  : the

  • Line-size classical report

    The total no of characters in the report are 90. But when I set the line-size to 90, the print out comes out in landscape instead of portrait. I also changed the format to 65x132.  Is it possible to have 90 chars and print in portrait?

  • Error with Metadata Jco destination....

    Hello All, I have created Modeldata destination which i have tested and working fine. And i am trying to create my metadata Jco destination here i am getting error some thing like Message server error.... what i should do over come from this error. T

  • Selection of work center

    Dear gurus, A product is produced at a particular workcenter based on certain chrecteristics.Suppose the same product is to be produced with certain other charecteristics other workcenter has to be selected. How to map this .kindly suggest