Odd behaivior of javaMail in OC4J

Hi
Thank you for reading my post
I have a web application which uses java mail to send some emails to its user , the application users a 3rd party email address and server to send emails.
when i test the application on my local computer it works fine (OC4J 10.3.1.0 preview)
when i upload it to server it shows an exception in OC4J running console
i can not find that Exception in any log file , but it shows that exception and does not send emails.
can some one please tell me what is wrong ? here is the exception:
06/10/16 23:01:25 javax.mail.SendFailedException: Sending failed;nested exception is:
       class javax.mail.SendFailedException: Invalid Addresses; nested exception is:
       class javax.mail.SendFailedException: 550 Your HELO string is incorrect
06/10/16 23:01:25       at javax.mail.Transport.send0(Transport.java:218)
06/10/16 23:01:25       at javax.mail.Transport.send(Transport.java:80)
06/10/16 23:01:25       at webui.common.EmailUtil.postMail(EmailUtil.java:80)
06/10/16 23:01:25       at webui.common.EmailUtil.sendRegistrationEmail(EmailUtil.java:168)
06/10/16 23:01:25       atwebui.common.ButtonsActionListener.register_button_action(ButtonsActionListener.java:538)
06/10/16 23:01:25       at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
06/10/16 23:01:25       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
06/10/16 23:01:25       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
06/10/16 23:01:25       at java.lang.reflect.Method.invoke(Method.java:585)
06/10/16 23:01:25       at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
06/10/16 23:01:25       atcom.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
06/10/16 23:01:25       atoracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
06/10/16 23:01:25       at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
06/10/16 23:01:25       atjavax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
06/10/16 23:01:25       atcom.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
06/10/16 23:01:25       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
06/10/16 23:01:25       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
06/10/16 23:01:25       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
06/10/16 23:01:25       atcom.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
06/10/16 23:01:25       atoracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
06/10/16 23:01:25       atoracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
06/10/16 23:01:25       atoracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
06/10/16 23:01:25       atoracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
06/10/16 23:01:25       atcom.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
06/10/16 23:01:25       atoracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
06/10/16 23:01:25       atcom.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
06/10/16 23:01:25       atcom.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
06/10/16 23:01:25       atcom.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
06/10/16 23:01:25       atcom.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
06/10/16 23:01:25       atcom.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
06/10/16 23:01:25       at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
06/10/16 23:01:25       at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
06/10/16 23:01:25       atoracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
06/10/16 23:01:25       atoracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
06/10/16 23:01:25       atoracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
06/10/16 23:01:25       atoracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
06/10/16 23:01:25       atcom.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
06/10/16 23:01:25       at java.lang.Thread.run(Thread.java:595)

I have searched the web and i found something that i add to my code with hope that it will resolve the problem.
i have add
props.setProperty("mail.smtp.localhost","Legolas");to session initialization properties but it does not helps . production server name is Legolas nad my development machine name is legolas .
it works fine on my machine and does not works on production server.
both running same OS /APPs
i should say that from the server i tried to use OutLook express to check whether it can send/recieve email for that address or not , and It can.
Outlook can send /recieve email from that address.
but my java code that works on development machine does not works on production server.
thanks

Similar Messages

  • Java.lang.NullPointerException , with no refrence to my own source code....

    what can cause this exception ?
    it does not point to any of my own source classes ,
    i works fine in OC4J 10.1.3.1 developer preview but not in 10.1.3.00 standalone
    06/10/16 16:44:55.109 web2: Servlet error
    java.lang.NullPointerException
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:629)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    Thank you for reply.
    I develop this application in 10.1.3.1.0 ,
    I could finally run it on OC4J 10.1.3.1 developer preview in the server , so i have no need to work on running the application on 10.1.3.00 .
    but now i have a deep problem with sending emails from my application deployed in production server , i found no solution for it .
    it is really ODD in my eyes.
    if you are intrested to look at the problem ,
    here is its post in OC4J forum , in case that you have experiences , please take a look and advice me for it.
    odd behaivior of javaMail in OC4J
    Thanks

  • Problem sending email using javamail in servlet

    I try this code and make some changes of my own http://forums.sun.com/thread.jspa?threadID=695781.
    When i run the program the confirmtaion shows that the mail has been sent, but when i check in my inbox there's no the message. I'm using gmail and need to authenticate the username and password. I guess the error caused in the servlet.
    Here's the code for my servlet :
    import java.io.*;
    import java.util.Properties;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.mail.internet.*;
    import javax.mail.*;
    public class ServletEx extends HttpServlet {
       public void doPost(HttpServletRequest request, HttpServletResponse response)
             throws IOException, ServletException {
          System.out.println("____emailservlet.doPost");
          response.setContentType("text/plain");
          PrintWriter out = response.getWriter();
          System.out.println("______________________________");
          out.println();
          String to = request.getParameter("to");
          System.out.println("____________________________to" + to);
          String subject = request.getParameter("subject");
          String msg = request.getParameter("msg");
          // construct an instance of EmailSender
          System.out.println("servlet_to" + to);
          send(username, to, subject, msg);
          //send("[email protected]", to, subject, msg);
          out.println("mail sent....");
            String username = "[email protected]";
            String password = "my_password";
            String smtp = "smtp.gmail.com";
            String port = "587";
       public void send(String username, String to, String subject, String msg) {
            Properties props = new Properties();
            props.put("mail.smtp.user", username);
            props.put("mail.smtp.host", smtp);
            props.put("mail.smtp.port", port);
            props.put("mail.smtp.starttls.enable","true"); // just in case, but not currently necessary, oddly enough
            props.put("mail.smtp.auth", "true");
            //props.put("mail.smtp.debug", "true");
            props.put("mail.smtp.socketFactory.port", port);
            props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
            props.put("mail.smtp.socketFactory.fallback", "false");
            SecurityManager security = System.getSecurityManager();
            try
                Authenticator auth = new SMTPAuthenticator();
                Session session = Session.getInstance(props, auth);
                //session.setDebug(true);
                MimeMessage message = new MimeMessage(session);
                message.setText(msg);
                message.setSubject(subject);
                message.setFrom(new InternetAddress(username));
                message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
                Transport.send(message);
            catch (Exception mex)
                mex.printStackTrace();
       public class SMTPAuthenticator extends javax.mail.Authenticator {
            public PasswordAuthentication getPasswordAuthentication(String username, String password)
                return new PasswordAuthentication(username, password);
    }Actually it's been a long time for me to develope this program, especially with the authenticate smtp. Any help would be very appreciated :)

    Accordingly to your stackTrace, I think that you miss some utility jar from Geronimo app. server.
    As you are using Application server that is J2EE compliant, so there is an own JavaMail implementation embeded and used by the Server. To fix this problem you have to find and add to your calsspath a jar-file that contains Base64EncoderStream.class

  • How to use JavaMail 1.4 with Oracle Application Server 10g (9.0.4.0.0)

    Hi all,
    I'd like to know if it's possible and how to use JavaMail 1.4 with Oracle Application Server 10g (9.0.4.0.0), Windows version.
    With the following code, I can see that the mail.jar used by the server is the one included in the jdk installation :
    // I'm testing InternetAddress.class because I want to use commons-email-1.2.jar that requires mail.jar 1.4 (or higher) and activation.jar 1.1 (or higher)
    // and I know that inside the commons-email-1.2.jar file, I need to call the InternetAddress.validate() method that throws a java.lang.NoSuchMethodError: javax.mail.internet.InternetAddress.validate()V if it is used with mail.jar 1.2.
    Class cls = javax.mail.internet.InternetAddress.class;
    java.security.ProtectionDomain pDomain = cls.getProtectionDomain();
    java.security.CodeSource cSource = pDomain.getCodeSource();
    java.net.URL location = cSource.getLocation();
    System.out.println(location.toString());
    This code returns : file:/C:/oracle/app/jdk/jre/lib/ext/mail.jar and this mail.jar file has an implementation version number: 1.2
    - I've tried to include my own mail.jar (1.4.2) and activation.jar (1.1.1) files in the war file that I deploy, but it doesn't work (the server still uses the same mail.jar 1.2)
    - I've tried to put the mail.jar (1.4.2) and activation.jar (1.1.1) files in the applib directory of my OC4J instance, but it doesn't work (the server still uses the same mail.jar 1.2)
    - I know that a patch exists : I've read the following document: How to Make Libraries such as mail.jar and activation.jar Swappable ? [ID 552432.1]
    This article talks about the Patch 6514136, but this patch only applies to : Oracle Containers for J2EE - Version: 10.1.3.3.0
    Can you please help me ?
    Thanks in advance for your answers,
    Laurent

    I strongly suggest to upgrade to AS 10.1.3 to get this.
    Think of future support of AS 9.0.4. You will get not critical patch updates anymore.
    --olaf                                                                                                                                                                                                                                                                                                               

  • Odd marshalling problems with EJB 3.0 stateless session bean

    Hello,
    I began encountering marshalling exceptions when invoking methods on a previously functionining facade bean. The problem seems to be almost arbitrary, in that certain packages receive marshalling exceptions, while others do not (my main client started failing, but then I realized that a simple test class was still working, along with oddly JSFs that invoke that main client, which fails outside of that scope). Is there some config issue with stateless session beans (in 3.0) that I might be missing? There are no duplicate versions of these class; they have not been modified; they've been compiled with the current IDE. Any help would be appreciated. Thanks.
    full stack trace:
    com.evermind.reflect.UndeclaredExceptionTypeException: oracle.oc4j.rmi.OracleRemoteException
         at __Proxy1.findAllViewRight(Unknown Source)
         at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
         at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
    oracle.oc4j.rmi.OracleRemoteException: Invocation error: java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
         at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:142)
         at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
         at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
         at __Proxy1.findAllViewRight(Unknown Source)
         at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
         at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
         Nested exception is:
    java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
         at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
         at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:128)
         at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
         at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
         at __Proxy1.findAllViewRight(Unknown Source)
         at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
         at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
    oracle.oc4j.rmi.OracleRemoteException: Invocation error: java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
         at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:142)
         at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
         at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
         at __Proxy1.findAllViewRight(Unknown Source)
         at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
         at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
         Nested exception is:
    java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
         at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
         at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:128)
         at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
         at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
         at __Proxy1.findAllViewRight(Unknown Source)
         at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
         at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)

    Hello,
    I began encountering marshalling exceptions when invoking methods on a previously functionining facade bean. The problem seems to be almost arbitrary, in that certain packages receive marshalling exceptions, while others do not (my main client started failing, but then I realized that a simple test class was still working, along with oddly JSFs that invoke that main client, which fails outside of that scope). Is there some config issue with stateless session beans (in 3.0) that I might be missing? There are no duplicate versions of these class; they have not been modified; they've been compiled with the current IDE. Any help would be appreciated. Thanks.
    full stack trace:
    com.evermind.reflect.UndeclaredExceptionTypeException: oracle.oc4j.rmi.OracleRemoteException
         at __Proxy1.findAllViewRight(Unknown Source)
         at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
         at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
    oracle.oc4j.rmi.OracleRemoteException: Invocation error: java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
         at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:142)
         at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
         at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
         at __Proxy1.findAllViewRight(Unknown Source)
         at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
         at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
         Nested exception is:
    java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
         at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
         at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:128)
         at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
         at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
         at __Proxy1.findAllViewRight(Unknown Source)
         at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
         at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
    oracle.oc4j.rmi.OracleRemoteException: Invocation error: java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
         at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:142)
         at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
         at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
         at __Proxy1.findAllViewRight(Unknown Source)
         at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
         at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)
         Nested exception is:
    java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.jwt.gui.menus.persistence.ViewRight; local class incompatible: stream classdesc serialVersionUID = 2365320765203750319, local class serialVersionUID = -8750611773395720631
         at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
         at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:128)
         at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:472)
         at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:416)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
         at __Proxy1.findAllViewRight(Unknown Source)
         at com.jwt.gui.menus.beans.ViewRightBean.<init>(ViewRightBean.java:34)
         at com.jwt.gui.menus.beans.ViewRightBean.main(ViewRightBean.java:63)

  • OC4J Restarts (Is there any way to control this?)

    Hello,
    I have an OC4J instance on Oracle Application Server Java Edition 9.0.4.0.0
    We been having a problem where EM will restart our OC4J instance. Currently, the development team is not sure why the instance is being restarted. It is one of 5 OC4J instances on the application server. The other 4 are stable and have been for years. The problematic one is extremely busy most of the time.
    I cannot find out how EM decides to restart this particular OC4J instance.
    Is EM looking for the PID to go away (actually die) before restarting the instance or is it actually looking for a response from the OC4J instance within a certain amount of time? If it's the latter is there a way to tune the response time so that EM doesn't inadvertently restart the instance during a particularly busy time for the instance?
    Thank you,
    Alan

    No...but I've discovered that using icons in the file browser seems to have something to do with it. If I open a folder of PSD files in the browser in icon view, the app all but stops running as it struggles to provide icons, actually coming up short on one reopen. If I'm fast enough to switch it to list view, things still seem to run normally and I can get some work done. Now I just leave the browser in list view and can open the app without hogging memory. When I used the icon view, it remembered the open PSD folder, and did whatever it did...and filled up nearly all of my memory...very odd...and kind of a pain, too...

  • 10.1.3 Production - Strange migration issues with OC4J

    Hi,
    first of all my congrats on another great release of my favorite Java IDE. Bad thing is I can't enjoy it as much as I want currently because of the following issue:
    I'm working on a large project based on Struts, Tiles and Spring. The thing was born under 9.0.3 and happily survived several migrations since. It is running perfectly in 10.1.3 EA (OC4J and Tomcat 5.5). So I didn't expect any issues when switching to the production release. As I expected, everything worked without any errors. Fine. But then, when expectingly starting it in OC4J, things suddenly looked a bit different, for the login page came up somewhat naked. In fact, that is no wonder, as the app didn't find its CSS files, images, whatever. I import those resources (JSP 2.0) via the follówing line:
    ${pageContext.request.contextPath}/path_to_css.css
    As it turned out, the pageContext thing wasn't resolved and so contextPath stays blank. Furthermore, the JSPs generated can't get access to session objects via expression language (eg. ${myBean.myAttribute}. JSTL <fmt:>, on the other hand, works wonderfully. Now for the odd part: if I change the JSP while the app is running and
    then hit 'reload' to get it recompiled, the problem is gone. Looking at the .jsps sources, JDev generates something quite different from what OC4J does (the latter is the working version). I've spend the whole day now trying to find out why, including two fresh installs and setting up a test project, for I expected Tiles to be the culprit, but it's not; in fact, the issue also happens with a no-frills JSP page. Now I'm rather at the end of my knowledge. Has anyone had similar problems or knows how to resolve this issue? Any hint would be deeply appreciated :-)
    -- Chris.
    NB. My version is 10.1.3 J2EE (not Studio); I tried both the base one and later the complete version which comes with its own JDK.

    Alas, talking to myself is fun, so I'll proceed. Today, I set up another simple test project (Servlets 2.4/JSP 2.0) with a JSP that just issues the following:
    Context path: ${pageContext.request.contextPath}
    Upon comparing what gets generated, I noticed the following differences:
    1. What JDev generates and what does not work correctly:
    javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);
    try {
    out.write(__oracle_jsp_text[0]);
    out.write(__oracle_jsp_text[1]);
    catch( Throwable e) { .. }
    2. The same fragment recompiled in OC4J:
    javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);
    com.evermind.server.http.JspCommonExtraWriter __ojsp_s_out = (com.evermind.server.http.JspCommonExtraWriter) out;
    try {
    __ojsp_s_out.write(__oracle_jsp_text[0]);
    out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate("${pageContext.request.contextPath}",java.lang.String.class, __ojsp_varRes, null));
    __ojsp_s_out.write(__oracle_jsp_text[1]);
    catch( Throwable e) { .. }
    As you can see, only the latter version contains code to evaluate the EL expression (the italic parts) at all! How on earth does this come from? Is there any switch in JDev to explicitly tell it to generate 2.0-compliant, EL-aware stuff apart from specifying 2.4 in the wizard?
    -- Chris.

  • OC4J Report Server is not saving the PDF out put

    Hi everybody,
    I have a master report running under OC4J.Under this master report 1000's of other reports are runninng by using the srw.run_report.Report name and other required parameters are taking from the database.My aim is to send all generated PDF reports by using the javamail.My problem is report server is not saving any reports until the completion of the master report.Once the master report is completted we can see all the reports under the specified folder, before that we can not see the out put in the folder .So the above reason my mailing part is getting faild because of system cannot find the specified file in that particular path
    Hi anybody know how to save each pdf report in a folder insted of waiting the completion of entire report
    Is any particular report configuration is required for that?
    srw.runreport is running in the batch mode
    thanks in advanceee
    regards
    mathew
    Message was edited by:
    Mathew Thomas

    Please helppp meee

  • JSP Compilation Error when using OC4J out of the box

    Hello.
    After installing Java jdk 1.5.0_05, setting ORACLE_HOME, setting JAVA_HOME, rebooting, and installing OC4J standalone straight out of the box, I have deployed a simple web project that consists of just one JSP. I receive the following error message:
    NOTIFICATION J2EE JSP-0008 Unable to dispatch jsp Page: oracle.jsp.provider.JspCompilationException: Errors compiling: C:\LocalApps\OC4J\j2ee\home\application-deployments\oc4j_jsp\persistence\_pages\\_Test.java<pre></pre>
    I have deployed a number of Flex2 applications without incident. What am I missing here? Another odd thing is that my organization has OAS running and it can render JSPs fine.
    Any help is appreciated thanks,
    Mike
    P.S. I have gone back and set the JSP debug switches, but they do not yeild much more info. Here is the stacktrace:
    NOTIFICATION J2EE JSP-0008 Unable to dispatch JSP Page : oracle.jsp.provider.JspCompileException: <H3>Errors compiling:C:\LocalApps\OC4J\j2ee\home\application-deployments\oc4j_jsp\oc4j_jsp\persistence\_pages\\_Test.java</H3><pre></pre>
         at oracle.jsp.app.JspJavacCompiler.compile(JspJavacCompiler.java:304)
         at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:731)
         at oracle.jsp.runtimev2.JspPageCompiler.compileBothModes(JspPageCompiler.java:456)
         at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:413)
         at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:705)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:694)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Unknown Source)

    I had the very same Problem, and I spent a lot of time on it.
    When installing Oc4j as a service using Javaservice opnesource, I had no problem, even using J.D.K 1.6:
    %JSEXE% -install %JSNAME% %JVMDIR%\jvm.dll -XX:PermSize=128m -XX:MaxPermSize=256m -Xmx1024M -Xms1024M -Djava.class.path=%OC4J_HOME%\oc4j.jar -start oracle.oc4j.loader.boot.BootStrap -params -config %OC4J_HOME%\config\server.xml -out %OC4J_HOME%\log\OC4J_service_stdout.log -err %OC4J_HOME%\log\OC4J_service_stderr.log -current %JSBINDIR% -auto -description OC4JService
    Then I wanted to install it using "ServiceMill" or "Javaservice Wrapper", becuase it has a better control on the process and I had that awfull compilation error.
    I guess it is because ServiceMills uses java.exe and javaservice the .dll to launch the oc4j, no idea.
    Anyway, thank you very much!!!!!
    Antonio

  • Oc4j 10.1.2 xfire SOAP

    Hi all,
    I would like using MTOM but i hava got exception during request in
    MTOM example shipped with xfire-1.2.5.
    My enviroment:
    java 1.4.2_06 (tested with java 5.0_09 too)
    oc4j 10.1.2
    xfire 1.2.5
    I have replaced oc4j's activation.jar mail.jar and servlet.jar with
    activation-1.1.jar, mail-1.4.jar and servlet-api-2.3.jar
    I have added other libraries from xfire lib directory to lib directory
    and later to applib.
    MTOM example I have build with maven2 build script without any problems.
    Book example works fine too.
    MTOM example wsdl document was created on request that menas service is running
    When i tired run the client i got this exeption:
    2007-04-05 14:06:22,718 ERROR
    [org.codehaus.xfire.transport.http.XFireServletController] - Couldn't
    invoke servlet request.
    java.io.IOException: Invalid content type: missing boundary!
    multipart/related; type="application/xop+xml";
    start="<[email protected]>"; start-info="text/xml";
    at org.codehaus.xfire.attachments.StreamedAttachments.<init>(StreamedAttachments.java:82)
    at org.codehaus.xfire.transport.http.XFireServletController.invoke(XFireServletController.java:269)
    at org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:129)
    at org.codehaus.xfire.transport.http.XFireServlet.doPost(XFireServlet.java:116)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:595)
    Request from client contains boundary section. Is it corect that the
    boundary attribute is in new line?
    all request:
    POST /mtom/services/MTOMService HTTP/1.1
    SOAPAction: ""
    Content-Type: multipart/related; type="application/xop+xml";
    start="<[email protected]>"; start-info="text/xml";
    boundary="----=_Part_0_7791465.1175778379859"
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; XFire
    Client +http://xfire.codehaus.org)
    Host: localhost:8881
    Expect: 100-continue
    Transfer-Encoding: chunked
    3e3
    ------=_Part_0_7791465.1175778379859
    Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
    Content-Transfer-Encoding: 8bit
    Content-ID: <[email protected]>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><stringFromBytes
    xmlns="http://xfire.codehaus.org/MTOMService"><in0
    xmlns="http://xfire.codehaus.org/MTOMService"
    xmlns:ns1="http://www.w3.org/2004/11/xmlmime"
    ns1:mimeType="application/octet-stream"><Include
    xmlns="http://www.w3.org/2004/08/xop/include"
    href="cid:11757783798432-1982994078@http://www.w3.org/2001/XMLSchema"
    /></in0></stringFromBytes></soap:Body></soap:Envelope>
    ------=_Part_0_7791465.1175778379859
    Content-Type: application/octet-stream
    Content-Transfer-Encoding: binary
    Content-ID: <11757783798432-1982994078@http://www.w3.org/2001/XMLSchema>
    [email protected]
    ------=_Part_0_7791465.1175778379859--
    0
    I am not able figure out where is problem.
    Is there other way to send SOAP with attachments in xfire?
    I am sure there is not other mail.jar file in lib, but how could i
    check that javaMail 1.4 is used? Just to be sure.
    How could I be sure that this jar file is used.
    Thanks for help.
    Regards,
    Zdenek Vrablik

    Hi Tugdual,
    thanks for help.
    You cannot remove/replace jar file that are part of
    the container (servlet, activation, ..) it is not
    supported.OK, the jars(mail and activation) are backward compatible. XFire was working fine.
    I have not tried to deploy xFire on 10.1.2 but I did
    it successully on OracleAS 10.1.3.x using shared
    library that allows the administrator to use shared
    libraries.
    Can you move to 10gR3?Unfortunately no. Later it would be possible.
    I tired deploy MTOM example to 10.1.3 but I got same error.
    The orion descriptor:
    OC4J: home > Application: mtom > Web Module: xfire-mtom >
    <?xml version="1.0"?>
    <orion-web-app
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd" deployment-version="10.1.3.2.0"
    deployment-time="1176195118796"
    jsp-cache-directory="./persistence"
    jsp-cache-tlds="standard"
    simple-jsp-mapping="false"
    temporary-directory="./temp"
    context-root="xfire-mtom"
    schema-major-version="10" schema-minor-version="0" >
    <web-app-class-loader search-local-classes-first="true" />
    <web-app>
    </web-app>
    </orion-web-app>
    It is generated from deployment GUI. I didn't write any descriptor.
    I didn't check "Inherit parent application's shared library imports"
    and I checked both columns
    Search Local Classes First     Include War Manifest Class Path in Configure Web Module Class Loaders section.
    What I am doing wrong?
    WSDL document I got correctly through URL /xfire-mtom/services/MTOMService?wsdl
    I use this command to run OC4J:
    java -Xdebug -Xnoagent -Xmx768M -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -jar oc4j.jar -userThreads
    Libraries in mtom war WEB-INF\lib directory are:
    XmlSchema-1.1.jar stax-api-1.0.1.jar
    activation-1.1.jar stax-utils-20040917.jar
    commons-attributes-api-2.1.jar wsdl4j-1.6.1.jar
    commons-beanutils-1.7.0.jar wstx-asl-3.2.0.jar
    commons-codec-1.3.jar xbean-2.2.0.jar
    commons-httpclient-3.0.jar xbean-spring-2.8.jar
    commons-logging-1.0.4.jar xfire-aegis-1.2.5.jar
    jaxen-1.1-beta-9.jar xfire-annotations-1.2.5.jar
    jdom-1.0.jar xfire-core-1.2.5.jar
    mail-1.4.jar xfire-spring-1.2.5.jar
    qdox-1.5.jar xfire-xmlbeans-1.2.5.jar
    spring-1.2.6.jar

  • Sending � signs with JavaMail

    Hi chaps,
    At our company we use the JavaMail API through JNI to send emails externally to customers.
    Recently the business has decided that it would be nice to send pound (�) through, however it's not going to plan.
    Normally the messages are encoded in 7-bit which would seem to exclude the � (163), however it seems that it is first converted to a (=80, hex with no ascii correlation) and then to a Euro symbol.
    I've tried setting the "allow8bitmime" property in order to enable the SMTP service to support 8-bit encoding, but it's not working AND Microsoft say that our Exchange (v5.5) doesn't support 8-bit MIME types. The odd thing is that sending external emails via Exchange supports the � with no problems and is read in the mail reader as 8-bit encoded (!).
    Has anybody had any experience with issues like this ? Any reply appreciated.
    Thanks
    Ammonite

    Ammonite,
    I am working on a similar problem.. Did you say your
    email gets translated and prints the Euro symbol... I
    actually need out email to print Both the pound and
    the Euro and it does niether right now.. The current implementation I am working on will display a Euro instead of a pound, although this isn't by design. The message is encoded using "Quoted-Printable" and substitutes the pound for a =80 character. How this maps to a Euro is unknown to me :(
    In standard ascii the pound is outside the standard 7-bit encoding range (163) and featured in the Extended Set on the platform we use. I'm not sure about the Euro. The Iso-8859-1 charset which SH provided supports the pound in "Quoted-Printable" encoding, but this hasn't been well received by JavaMail MIME objects that I have tried.
    I haven't managed any sort of 8-bit encoding with JavaMail as yet, due to supposed lack of support in Exchange 5.5 and lack of response to the "allow8bitmime" property.
    does anyone know is using MimeMessage limit the
    message to ASCII characters only and does that rule
    out the Euro and the Pound symbol/
    It shoudn't rule them out, but I'm starting to believe that MimeMessages are necessarily helping things here :)

  • JDeveloper 10.1.3.4.0 OC4J Proxy

    I am having problems with JDev when I use Proxy settings, my PC uses Proxy server through VPN Client, this configuration worked fine until recently, today I recieved my new laptop and got the error:
    [Starting OC4J using the following ports: HTTP=65000, RMI=65001, JMS=65005.]
    D:\JDeveloper\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\config>
    D:\Jdeveloper\jdk\bin\javaw.exe -client -classpath D:\JDeveloper\j2ee\home\oc4j.jar;D:\JDeveloper\jdev\lib\jdev-oc4j-embedded.jar -Dhttp.proxyHost=fw1.cummins.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=localhost|127.0.0.1|L3-A05109 -Dhttps.proxyHost=fw1.cummins.com -Dhttps.proxyPort=80 -Dhttps.nonProxyHosts=localhost|127.0.0.1|L3-A05109 -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\JDeveloper\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    17/02/2013 07:16:34 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    17/02/2013 07:16:34 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    13/02/17 07:17:02 java.net.ConnectException: Connection timed out: connect
    13/02/17 07:17:02      at java.net.PlainSocketImpl.socketConnect(Native Method)
    13/02/17 07:17:02      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    13/02/17 07:17:02      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    13/02/17 07:17:02      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    13/02/17 07:17:02      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    13/02/17 07:17:02      at java.net.Socket.connect(Socket.java:507)
    13/02/17 07:17:02      at java.net.Socket.connect(Socket.java:457)
    13/02/17 07:17:02      at java.net.Socket.<init>(Socket.java:365)
    13/02/17 07:17:02      at java.net.Socket.<init>(Socket.java:207)
    13/02/17 07:17:02      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.sendMessage(Oc4jNotifier.java:98)
    13/02/17 07:17:02      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.postInitApplicationServer(Oc4jNotifier.java:55)
    13/02/17 07:17:02      at com.evermind.server.ApplicationServer.serverExtensionPostInit(ApplicationServer.java:1202)
    13/02/17 07:17:02      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1049)
    13/02/17 07:17:02      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
    13/02/17 07:17:02      at java.lang.Thread.run(Thread.java:595)
    13/02/17 07:17:02 Oracle Containers for J2EE 10g (10.1.3.4.0) initialized
    JDev does not launch the URL with Internet Explorer, however if I execute it out of VPN, the application runs normally and something important, if I re-connect to VPN, the URL works perfect and is able to connect with Oracle DB.
    Any help will be apreciated.
    Thanks.
    Edited by: 988530 on Feb 18, 2013 7:13 AM

    Did you ever find a solution for this?  I am having the exact same problem.  All I can figure out is that it has something to do with VPN, however the odd thing is that I can get it to work on an XP machine, just not Windows 7.  Both have the same VPN client and are identical copies of JDeveloper.

  • Oracle BIEE installation issue: Application Server default OC4J name error

    Hi all,
    I am installing OBIEE 10.1.3.3.2 windows 32bit version on windows 2003 sp2. Before the installation I have installed the JDK 5 and Application Server 10.1.3.1.0(J2EE Server and Web Server) on the same server according to the pre-install section in the OBIEE installation guide.
    When I install OBIEE (advanced installation), I got the error when I specify the Oracle Application server location:
    Please specify a valid Oracle Application Server 10g installation location. A valid Oracle Application Server 10g installation must have the default OC4J instance named home and that home OC4J instance must be enabled.
    When I install the Application Server 10.1.3.1.0, I have change the default OC4J name to "oc4j-soa", I think this is the root reason I got the error. I have tried to create another OC4J instance named "home", but failed coz the name is used for another directory.
    Then can I have another way to continue the installation? Why OBIEE installer have this strange constrain while not any words about this issue in the installation guide (coz I follow the each steps in the guild before I take action)? I have search some threads and the only information is to install a simple installation, but it would create another application server..... and the simple installation type is not what I want.
    Can anybody give me some hint or information about this issue? otherwise I have to purge and reinstall the server...... Thanks
    Scott

    Reinstalling the App Server and naming oc4j instance to be called "home" resolves the issue but this is an odd requirement. I have an OC4J instance already running and it is named something else. Is there any other alternative to make this work?
    Swapan.
    PS. I can always create a new oc4j instance named "home" but this is wasting of server resources.

  • Action method called in standalone OC4j but not OAS

    I am setting up a test environment on Solaris x86 machine and have run into an odd issue concerning an action method being called which seems to be an issue for Oracle Application Server (OAS) but not an issue for stand alone OC4J.
    The application is using Java 5, Spring 2.5, Java Servlet 2.3, Struts 2, iBatis 2.2, Sitemesh, and Display Tag to name some of the parts that are in play.
    The platform is a Sun Fire X2100 server running Solaris 10 OS (64-bit). The application server version is 10.1.3 (Solaris x86, 64-bit) connecting to Oracle database server 10.2.0.2.0 (Solaris x86, 32-bit). The stand alone OC4J that I used for comparison was 10.1.3.4.0 (also run under the same Solaris machine but not while the application server was running).
    Going from one JSP that contains a list of items ("authority ids" in this case) to another JSP which displays detailed information about one item (chosen by clicking on a hyperlink in the list), it appears that the setter action method (which sets the 'sid' property) does not get called under OAS so the page displays empty fields. Same code running under the stand alone OC4J, the setter method does get called and the fields are populated on the details page. In both cases, both deployments are hitting the same database and the data is successfully retrieved from the database (into the action class). In both cases, the parameter that is set by this action method is present in the URL for the detail page.
    Snippet of code from the JSP that loads the authority ID list (and passes the sid in the URL):
    <display:table name="authorityIdList" cellspacing="0" cellpadding="0" requestURI=""
        defaultsort="1" id="authorityIdTypes" pagesize="25" class="table" export="true">
        <s:url id="editurl" action="editAuthorityId" includeContext="false">
          <s:param name="redirectUrl" value="%{returnUrl}"/>
        </s:url>
        <display:column property="fieldName" escapeXml="true" sortable="true" titleKey="authorityIdType.fieldName"; style="width: 34%" url="${editurl}"
          media="html csv xml excel pdf" paramId="sid" paramProperty="sid"/>Snippet from the authority ID detail form where the sid should be populated:
    <tr style="display: none"><td>
          <s:hidden key="sid"/>
            <s:hidden name="redirectUrl"/>
        </td></tr>Snippet from the action class that contains the setter for the sid property:
      public Integer getSid() {
            return sid;
      public void setSid(Integer sid) {
            this.sid = sid;
      }Snippet from the resulting html page for the list includes the sid for each item in the list.
    <td style="width: 34%">DODAAC</td>
    <td style="width: 25%">DODAAC</td></tr>
    <tr class="even">
    <td style="width: 34%">DODAAN</td>
    <td style="width: 25%">DODAAN</td></tr></tbody></table>Under the stand alone OC4J, the setter method is called, so the sid is populated (and the item detail data from the action is retrieved and displayed).
    Snippet from the resulting detail html page from the stand alone OC4J:
        <tr style="display: none"><td>
             <input type="hidden" name="sid" value="1" id="saveAuthorityId_sid"/>
            <input type="hidden" name="redirectUrl" value="http://system01:8888/MyApp/admin/authorityIdTypes.html"; id="saveAuthorityId_redirectUrl"/>
        </td>Notice that the sid value as well as the redirectUrl value are populated under standalone OC4J.
    Under OAS, the setter method is not called, so the sid is not set (and none of the other item detail fields are populated).
    Snippet from the resulting detail html page from OAS:
       <tr style="display: none"><td>
             <input type="hidden" name="sid" value="" id="saveAuthorityId_ sid"/>
            <input type="hidden" name="redirectUrl" value="" id="saveAuthorityId_redirectUrl"/>
        </td>Notice that the sid value as well as the redirectUrl value are empty under OAS.
    Any ideas on what I need to change in OAS configuration to make this work under OAS (if this is a configuration issue)?

    I found another case that may be clearer.
    A confirmation page on the application server shows that the redirect url is not being populated:
    <form id="confirmation" name="confirmation" onsubmit="return true;" action="/MyApp/admin/confirmation.html" method="post"><table class="wwFormTable">
         <input type="hidden" name="redirectUrl" value="" id="confirmation_redirectUrl"/>
       <tr>
        <td colspan="2"><div align="right"><input type="submit" id="confirmation_continue" name="method:proceed" value="Continue"/>
    </div></td>
    </tr>
    </table></form>Same code running on the standalone OC4j does populate the redirect URL:
    <form id="confirmation" name="confirmation" onsubmit="return true;" action="/MyApp/admin/confirmation.html" method="post"><table class="wwFormTable">
         <input type="hidden" name="redirectUrl" value="http://system01:8888/MyApp/admin/users.html" id="confirmation_redirectUrl"/>
       <tr>
        <td colspan="2"><div align="right"><input type="submit" id="confirmation_continue" name="method:proceed" value="Continue"/>
    </div></td>
    </tr>
    </table></form>So it appears that the application server is having problems passing parameters to pages.
    I have been digging through Oracle documentation, but I haven't found any clues on how to fix the issue.
    Any help would be appreciated.
    Thanks,
    - David

  • Mail Session configuration with embedded oc4j in jdeveloper 10g 10.1.3.1

    Hello all:
    I'd tried to use javamail in a j2ee application. I´d defined an resource reference with the EJB Module Editor but when i run the application it throws:
    java.lang.InstantiationException: Error initializing ejb-modules: No Mail Session configured for the resource MailSession
    How can i configure a Mail Session with the embedded oc4j of jdeveloper 10g 10.1.3.1?
    Thanks a lot.

    Hi,
    You need to add following configuration in $ORACLE_HOME/j2ee/home/config/application.xml & restart your OC4J :-
    <mail-session location="EMailSession" smtp-host="mail.cdsc.com">       <property name="mail.transport.protocol" value="smtp"/>       <property name="mail.debug" value="true"/>    </mail-session>Regards,
    Sandeep

Maybe you are looking for

  • Data usage and battery drain has skyrocketed with iOS 8.1.2 (maybe earlier)

    3 weeks ago my wife got a text message on her iPhone 5 from AT&T that she had used 90% of her data for the month.  30 seconds later, she got another one saying that she had used 100%.  Granted, her data plan is small, 200 MB.  But, for the last two y

  • Address & Calendar No Longer Sync & iTunes Won't Enable It

    Problem appeared on 1st Gen iPod and iPod Photo recently, might have occured with update to iTunes 6.0.1 (now using 6.0.2 with no improvement). I have done a full iPod Restore with no improvement. iPod sync of addresses and calendars used to work per

  • Unable to Repair Permissions- What should I do?

    Hi Guys My goal is to replace my original internal hard drive on my Power Mac G4, but I have hit a glitch. I have backed up OSX 10.3.9 on my new External Hard Drive, then made a folder on my external drive called "OSX Backup from G4", and copied all

  • Why no screen info in status??

    Hello everybody, I just ran a std program: balvex01 and the selection scree (no. 1000) came up. then I hit F8 (execute button) to see the alv. but why was I not able to see the screen no for this alv in the system->status menu? What is the screen whe

  • Flash player freeze after 2 sec on win2k

    Hi guys, i was hoping that you could help me out; after i load any flash content that has to buffer, eg youtube, the movie will run for 2 seconds and then freeze. I can drag the progress bar along and it will go to that point, progress 2 sec, and the