Problems with NO_DATA_FOUND Exception

Hi, I have experienced some problems with the NO_DATA_FOUND Exception. I have defined a cursor c. Then I have started a loop and a NO_DATA_FOUND Exception has rised. I handle this exception with un update clause but when the exception rises the loop does not continue anymore. What can I do in order to continue looping after the Exception rises???... I handle the NO-DATA_FOUND Exception in the Exception part of my code...
Thanks in advance.-
Alberto.-

Thanks a lot Robert... I solved my problem by handling the exception within the loop as you told me. I attach the code if somebody has or had the same problem...
Best regards.-
Albert.-
procedure GenerarSolicitudCompra (id_proveedor IN c_rfqresponse.c_bpartner_id%TYPE) is
es_winner char(1);
id_rfq number(10);
cursor rfqs is select sqd.c_rfq_id from sqd_cotizaciones sqd;
begin
for r in rfqs loop
id_rfq := r.c_rfq_id;
begin
select cr.isselectedwinner into es_winner from c_rfqresponse cr
where cr.c_rfq_id = r.c_rfq_id
and cr.c_bpartner_id = id_proveedor;
exception
when NO_DATA_FOUND then
update sqd_cotizaciones sqd set sqd.win_rfqresponse = 'N'
where sqd.c_rfq_id = id_rfq and sqd.c_bpartner_id = id_proveedor;
commit;
end;
if es_winner = 'Y' then
-- actualizar sqd_cotizaciones.win_rfqresponse con 'Y'
update sqd_cotizaciones cot
set cot.win_rfqresponse = 'Y'
where cot.c_rfq_id = r.c_rfq_id
and cot.c_bpartner_id = id_proveedor;
commit;
else
-- actualizar sqd_cotizaciones.win_rfqresponse con 'N'
update sqd_cotizaciones cot
set cot.win_rfqresponse = 'N'
where cot.c_rfq_id = r.c_rfq_id
and cot.c_bpartner_id = id_proveedor;
commit;
end if;
end loop;
end GenerarSolicitudCompra;

Similar Messages

  • Problem with passing exception with declarative security

    I am having a problem with passing exceptions with message security bunding enables. I have a JAXWS EJB 3.0 web service, The service defines methods which throw exceptions. The exceptions are passed correclty when there is no message security enabled. once the security is enabled and an exception is thrown, I get the stack trace below. Furthermore, the service with security enabled works fine as long as methods do not throw an exception. I am thinking that the JAXWS generated wrapped exception is not correctly handled by the message security provider in the server. Just a thought. Any help would be greatly appreciated.
    Stack trace:
    [#|2007-03-23T00:49:06.333-0600|WARNING|sun-appserver-pe9.0|javax.enterprise.sys
    tem.stream.err|_ThreadID=11;_ThreadName=httpWorkerThread-8080-0;_RequestID=64417
    ac0-ded8-474d-9066-5a97c8559b67;|
    ERROR: 'NAMESPACE_ERR: An attempt is made to create or change an object in a wa
    y which is incorrect with regard to namespaces.'|#]
    [#|2007-03-23T00:49:06.334-0600|SEVERE|sun-appserver-pe9.0|javax.xml.messaging.s
    aaj.soap|_ThreadID=11;_ThreadName=httpWorkerThread-8080-0;_RequestID=64417ac0-de
    d8-474d-9066-5a97c8559b67;|SAAJ0511: Unable to create envelope from given source
    |#]
    [#|2007-03-23T00:49:06.334-0600|INFO|sun-appserver-pe9.0|javax.enterprise.system
    .core.security|_ThreadID=11;_ThreadName=httpWorkerThread-8080-0;|SEC2003: Contai
    ner-auth: wss: Error securing response
    com.sun.enterprise.security.jauth.AuthException: Unable to create envelope from
    given source:
    at com.sun.xml.wss.provider.ServerSecurityAuthModule.secureResponse(Serv
    erSecurityAuthModule.java:129)
    at sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.security.jauth.AuthContext.invokePriv(AuthContext.
    java:128)
    at com.sun.enterprise.security.jauth.AuthContext$1.run(AuthContext.java:
    78)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.security.jauth.AuthContext.invoke(AuthContext.java
    :75)
    at com.sun.enterprise.security.jauth.ConfigFile$ConfigServer.secureRespo
    nse(ConfigFile.java:662)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:220)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:197)
    at com.sun.enterprise.webservice.JAXWSSystemHandlerDelegateFactory$Servl
    etDelegate.processResponse(JAXWSSystemHandlerDelegateFactory.java:540)
    at com.sun.enterprise.webservice.monitoring.JAXWSEndpointImpl.processRes
    ponse(JAXWSEndpointImpl.java:121)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOA
    PMessageDispatcher.java:148)
    at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3Me
    ssageDispatcher.java:160)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3Messag
    eDispatcher.java:89)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpo
    int(EjbWebServiceServlet.java:178)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServ
    iceServlet.java:109)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.jav
    a:100)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipe
    line.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:23
    1)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(
    ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBloc
    ked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(Proces
    sorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTas
    k(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.jav
    a:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:2
    52)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThrea
    d.java:75)
    |#]
    [#|2007-03-23T00:49:06.335-0600|WARNING|sun-appserver-pe9.0|javax.enterprise.sys
    tem.core|_ThreadID=11;_ThreadName=httpWorkerThread-8080-0;_RequestID=64417ac0-de
    d8-474d-9066-5a97c8559b67;|Exception while tracing response : Unable to create e
    nvelope from given source: |#]
    [#|2007-03-23T00:49:06.336-0600|WARNING|sun-appserver-pe9.0|javax.enterprise.sys
    tem.stream.err|_ThreadID=11;_ThreadName=httpWorkerThread-8080-0;_RequestID=64417
    ac0-ded8-474d-9066-5a97c8559b67;|
    com.sun.enterprise.security.jauth.AuthException: Unable to create envelope from
    given source:
    at com.sun.xml.wss.provider.ServerSecurityAuthModule.secureResponse(Serv
    erSecurityAuthModule.java:129)
    at sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.security.jauth.AuthContext.invokePriv(AuthContext.
    java:128)
    at com.sun.enterprise.security.jauth.AuthContext$1.run(AuthContext.java:
    78)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.security.jauth.AuthContext.invoke(AuthContext.java
    :75)
    at com.sun.enterprise.security.jauth.ConfigFile$ConfigServer.secureRespo
    nse(ConfigFile.java:662)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:220)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:197)
    at com.sun.enterprise.webservice.JAXWSSystemHandlerDelegateFactory$Servl
    etDelegate.processResponse(JAXWSSystemHandlerDelegateFactory.java:540)
    at com.sun.enterprise.webservice.monitoring.JAXWSEndpointImpl.processRes
    ponse(JAXWSEndpointImpl.java:121)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOA
    PMessageDispatcher.java:148)
    at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3Me
    ssageDispatcher.java:160)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3Messag
    eDispatcher.java:89)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpo
    int(EjbWebServiceServlet.java:178)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServ
    iceServlet.java:109)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.jav
    a:100)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipe
    line.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:23
    1)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(
    ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBloc
    ked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(Proces
    sorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTas
    k(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.jav
    a:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:2
    52)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThrea
    d.java:75)
    |#]
    [#|2007-03-23T00:49:06.336-0600|SEVERE|sun-appserver-pe9.0|javax.enterprise.reso
    urce.webservices.jaxws.server.soapmd|_ThreadID=11;_ThreadName=httpWorkerThread-8
    080-0;_RequestID=64417ac0-ded8-474d-9066-5a97c8559b67;|Unable to create envelope
    from given source:
    com.sun.enterprise.security.jauth.AuthException: Unable to create envelope from
    given source:
    at com.sun.xml.wss.provider.ServerSecurityAuthModule.secureResponse(Serv
    erSecurityAuthModule.java:129)
    at sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.security.jauth.AuthContext.invokePriv(AuthContext.
    java:128)
    at com.sun.enterprise.security.jauth.AuthContext$1.run(AuthContext.java:
    78)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.security.jauth.AuthContext.invoke(AuthContext.java
    :75)
    at com.sun.enterprise.security.jauth.ConfigFile$ConfigServer.secureRespo
    nse(ConfigFile.java:662)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:220)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:197)
    at com.sun.enterprise.webservice.JAXWSSystemHandlerDelegateFactory$Servl
    etDelegate.processResponse(JAXWSSystemHandlerDelegateFactory.java:540)
    at com.sun.enterprise.webservice.monitoring.JAXWSEndpointImpl.processRes
    ponse(JAXWSEndpointImpl.java:121)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOA
    PMessageDispatcher.java:148)
    at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3Me
    ssageDispatcher.java:160)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3Messag
    eDispatcher.java:89)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpo
    int(EjbWebServiceServlet.java:178)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServ
    iceServlet.java:109)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.jav
    a:100)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipe
    line.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:23
    1)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(
    ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBloc
    ked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(Proces
    sorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTas
    k(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.jav
    a:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:2
    52)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThrea
    d.java:75)
    |#]
    [#|2007-03-23T00:49:06.338-0600|WARNING|sun-appserver-pe9.0|javax.enterprise.sys
    tem.stream.err|_ThreadID=11;_ThreadName=httpWorkerThread-8080-0;_RequestID=64417
    ac0-ded8-474d-9066-5a97c8559b67;|
    com.sun.enterprise.security.jauth.AuthException: Unable to create envelope from
    given source:
    at com.sun.xml.wss.provider.ServerSecurityAuthModule.secureResponse(Serv
    erSecurityAuthModule.java:129)
    at sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.security.jauth.AuthContext.invokePriv(AuthContext.
    java:128)
    at com.sun.enterprise.security.jauth.AuthContext$1.run(AuthContext.java:
    78)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.security.jauth.AuthContext.invoke(AuthContext.java
    :75)
    at com.sun.enterprise.security.jauth.ConfigFile$ConfigServer.secureRespo
    nse(ConfigFile.java:662)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:220)
    at com.sun.enterprise.security.wss.WebServiceSecurity.secureResponse(Web
    ServiceSecurity.java:197)
    at com.sun.enterprise.webservice.JAXWSSystemHandlerDelegateFactory$Servl
    etDelegate.processResponse(JAXWSSystemHandlerDelegateFactory.java:540)
    at com.sun.enterprise.webservice.monitoring.JAXWSEndpointImpl.processRes
    ponse(JAXWSEndpointImpl.java:121)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOA
    PMessageDispatcher.java:148)
    at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3Me
    ssageDispatcher.java:160)
    at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3Messag
    eDispatcher.java:89)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpo
    int(EjbWebServiceServlet.java:178)
    at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServ
    iceServlet.java:109)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.jav
    a:100)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipe
    line.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
    ava:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:23
    1)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(
    ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBloc
    ked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(Proces
    sorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTas
    k(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.jav
    a:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:2
    52)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThrea
    d.java:75)
    |#]

    Hi,
    Thanks for the reply. I read the weblog and posted a reply to it already.
    History:
    I actually have a web service where I have message level security enabled and it works great. I had some issues early on with descriptor but those are worked out. As I was testing, I created a test case that throws an exception. That is when I get the NAMESPACE_ERROR, jauth exceptions , etc.
    Attempt to find issue:
    Glassfish: V1 (glassfish-installer-9.0-b48.jar), jdk1.5.0_11
    Code: EJB tech tip EJB30 web service
    Security: message security, specified almost verbatim to how it is done in the link you mention.
    Sample works fine until I modify the web service to throw an exception. Once I do that, I get the NAMESPACE_ERROR stack trace I posted in original message. The sample in the tech tip uses the embedded app-client.
    Thanks for helping with this.

  • J2SE 1.3 client - Weblogic 8.14 Problem with unmarshal exception

    Hi
    I have problem with using RMI IIOP with J2SE 1.3.1_01 - Weblogic 8.1 SP4. Client is runing good, methods are working perfectly, but when EJB throws my exception, it is not serialized and thrown on client but MarshalException is thrown.
    I did everything as it is in weblogic documentation and I really do not know what to do.
    Also I read in weblogic documentation this note:
    Limitations Using RMI-IIOP on the Client
    Use WebLogic Server with JDK 1.3.1_01 or higher. Earlier versions are not RMI-IIOP compliant. Note the following about these earlier JDKs:
    Do not correctly unmarshal unchecked exceptions.But I am using 1.3.1_01 ...
    When I run it with 1.4 it is of course running without problem.
    Martin
    My Exception :
    java.io.IOException:
         at com.sun.corba.se.internal.io.IIOPInputStream.throwExceptionType(Native Method)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:272)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:245)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:207)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:1059)
         at com.upsscs.europe.cdmv.spl.ejb.service._SBTelnetKitting_Stub.getPickList(Unknown Source)
         at Pokus.main(Pokus.java:59)
    java.rmi.MarshalException: CORBA MARSHAL 0 No; nested exception is:
         org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : minor code: 0 completed: No
    org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : minor code: 0 completed: No
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:1065)
         at com.upsscs.europe.cdmv.spl.ejb.service._SBTelnetKitting_Stub.getPickList(Unknown Source)
         at Pokus.main(Pokus.java:59)
    Exception in thread "main"

    Hi,
    I am sending the supported configuration link
    please go through it.
    http://e-docs.bea.com/platform/suppconfigs/configs81/81_over/overview.html#1146550
    Regards
    Prasanna Yalam

  • Problems with filter exception using Network IP range

    We are using a spam filtering service for out incoming email. As such, all
    our email is directed to our SMTP server from their IP address range. We
    employ a dual firewal set up. We have a Netscreen firewall connected to the
    Internet and the Border Manager 3.8 server sits between the Netscreen and
    our internal network. On the BM server I have set up a generic proxy with a
    proxy port of 1025 to proxy the incoming email to our internal mail server.
    The Netscreen is set up to forward all SMTP (port 25) traffic to the
    BorderManager server on port 1025. Using FiltCfg I also set up a packet
    filter exception to allow traffice from the service providers network
    (Network = 104.56.144.0, Mask = 255.255.248.0) to port 1025. With this
    setup most email is received just fine. However I was getting reports of
    bounced and delayed email. Working with our service provider it was
    detemined that randomly some connections were failing. I used PktScan to
    collect packet trace infomation from our BM server. On a regular basis
    there are groups of SYN packets from the service providers email servers
    which are not receiving a response from the BM server. In some cases the BM
    server does eventuall respond with a SYN/ACK. There are also times when the
    BM server responds immediately after the first SYN. All the incoming
    connections from the service provider are currently comming in from two IP
    addresses, 104.56.144.247 and 104.56.145.247. The BM server is showing the
    same problem for both IP addresses, sometimes it responds immediatley to the
    SYN, sometimes it takes a few SYN packets before it responds, and sometimes
    the BM server never responds to the connection attempt. On a whim I added
    filter exceptions which specifed the two host IP addresses specifically
    (other than that the rules are identical to the one using the Network
    specification). After doing this the BM server is now responing immediately
    to all the incoming SMTP connection attempts from the service provider. Why
    would I be seeing this problem with the filter exception defined with a
    Network specification but not with Host specifications? Is there anything I
    can do to fix this?
    Thank you for any help provided,
    Brad Johnson

    Yes. I created 8 separate 255.255.255.0 exceptions. In viewing the packet
    trace data for the last couple of days it appears this resoloved the
    problem.
    Thanks
    Brad Johnson
    "Craig Johnson" <[email protected]> wrote in message
    news:[email protected]..
    > In article <XCo8l.13813$[email protected]>, Brad Johnson
    > wrote:
    >> Both servers are running NW 6.5 sp 6. After this problem started I
    >> applied
    >> BM38sp5_IR1, TCP681K, and wsock6o. This had no affect on the issue.
    >>
    >> If I create individual exceptions for the IP addresses I am currently
    >> receiving mail from, rather than using the range of potential addresses,
    >> the
    >> problem goes away.
    >>
    > Well, it sounds definitive enough, but I think if it were a generic issue
    > to
    > the patch level I would have heard about it from my clients who use
    > Postini
    > mail filtering service. All of the Postini-related servers have a network
    > address as a source in the filter exceptions for smtp.
    >
    > Instead of using a 255.255.248.0 mask, does it work if you set up 8
    > different
    > 255.255.255.0 exceptions?
    >
    >
    > Craig Johnson
    > Novell Support Connection SysOp
    > *** For a current patch list, tips, handy files and books on
    > BorderManager, go to http://www.craigjconsulting.com ***
    >
    >

  • A problem with 3 exceptions from 1 method!!!

    I don't like it and I need advice on how to avoid it. I have been given an interface and am required to use ech of its methods. Here is what happened...
    The interface declares that when a record is searched for in the database and cant be found then a database exception must be thrown.
    When a operation is performed on a record it gets locked with a lock cookie and this cookie must be the same when the lock is released at the end of the operation or a Security Exception gets thrown.
    The file accessing itself throws IO exception which ofcourse has to be handled too.
    So far I have done the following(data level). I have a general databaseException which is a parent to all database exceptions. This means my Security and RecNotFound exceptions can be caught by one exception as they bubble up the stack. My IOException gets converted to a runtime exception and will be converted back to a checked exception in the GUI layer where I cater for all exceptions (The user does not see them).
    Moving on....
    In my service layer layer I have a business Exception to all business logic errors. Here is why it gets tricky...
    A record can not be booked if it is already booked. So I have a bookedRecException and the booking process involves locking the record(throws databaseException as mentioned). I also catch my RuntimeIOExceptions and throw them in my service layer up the stack as an IOException which gets handled in the GUI.
    As you can see this does not look good and I want to fix it. I thaught of making my databaseException into a IOE my service interface methods are all throwing DatabaseException AND IOExceptions.
    Edited by: Yucca on Apr 2, 2009 8:37 PM

    Yucca wrote:
    morgalr wrote:
    So what you are saying is: you don't want to deal with all the different exceptions?
    No what I am saying Is it's the SCJD and I am trying to avoid messy code with 3 exceptions. I am very much for custom exceptions where having a strongly typed exception tells you enough just by the fact that AlreadyBookedRecordException in your stack explains it all.That is not apparent from you post, what you seem to be saying is that you don't want them. In any case I've never found it messy to handle all exceptions individually, nor have I found it messy to use the method I mentioned.

  • Problems with RelationalDataSample exceptions thrown from VS2005

    I am not sure which version of the Oracle.DataAccess .Net assy to use. But both of them throw an exception at run time.
    With version 10.2.0.100 I get the following run time error.
    This is the file location of this version - C:\XEClient\bin\Oracle.DataAccess.dll
    As you can see this is the XE client version.
    Error occurred: The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception.
    System.TypeInitializationException was unhandled
    Message="The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception."
    Source="Oracle.DataAccess"
    TypeName="Oracle.DataAccess.Client.OracleConnection"
    StackTrace:
    at Oracle.DataAccess.Client.OracleConnection.Dispose(Boolean disposing)
    at System.ComponentModel.Component.Finalize()
    With version 2.111.6.20 I get the following run time error.
    This is the file location of this version - C:\app\john\product\11.1.0\client_1\ODP.NET\bin\2.x\Oracle.DataAccess.dll
    As you can see this is the 11g install.
    System.BadImageFormatException was unhandled
    Message="Could not load file or assembly 'Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. An attempt was made to load a program with an incorrect format."
    Source="RelationalDataSample"
    FileName="Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342"
    FusionLog="=== Pre-bind state information ===\r\nLOG: User = PureVirtual-1\\john\r\nLOG: DisplayName = Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342\n (Fully-specified)\r\nLOG: Appbase = file:///C:/Users/john/Documents/Visual Studio 2005/Projects/RelationalDataSample/RelationalDataSample/bin/Debug/\r\nLOG: Initial PrivatePath = NULL\r\nCalling assembly : RelationalDataSample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.\r\n===\r\nLOG: This bind starts in default load context.\r\nLOG: No application configuration file found.\r\nLOG: Using machine configuration file from C:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727\\config\\machine.config.\r\nLOG: Post-policy reference: Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342\r\nLOG: Attempting download of new URL file:///C:/Users/john/Documents/Visual Studio 2005/Projects/RelationalDataSample/RelationalDataSample/bin/Debug/Oracle.DataAccess.DLL.\r\nERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.\r\n"
    StackTrace:
    at RelationalDataSample.ConnectionMgr.getDBConnection(String username, String password, String connectString)
    at RelationalDataSample.EmpForm.btnConnect_Click(Object sender, EventArgs e) in C:\Users\john\Documents\Visual Studio 2005\Projects\RelationalDataSample\RelationalDataSample\EmpForm.cs:line 528
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at RelationalDataSample.EmpForm.Main() in C:\Users\john\Documents\Visual Studio 2005\Projects\RelationalDataSample\RelationalDataSample\EmpForm.cs:line 509
    at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    Any help with this is greatly appreciated.
    Thank you,
    John

    Hi John,
    Are you still chasing this issue down?
    I have found that one of the causes of the "System.BadImageFormatException" exception results from the following set of circumstances:
    o 32-bit ODP.NET installed on 64-bit o/s
    o .NET application compiled with either "Any CPU" or "x64" set for the "Platform target"
    o The application is then deployed to the 64-bit host with the 32-bit ODP.NET installed
    o The application executes as a 64-bit application but tries to load the 32-bit ODP.NET, thus the exception
    Not sure if this might apply to your situation, but I see "C:\\Windows\\Microsoft.NET\\Framework64" in the text you provided. Since there is not yet a 64-bit release of ODP.NET 11g I wonder if this might be the case.
    For what it's worth, I have not experienced any of the problems you've described in your other threads, but I am using 10.2.0.4 on Intel 64-bit with Win 2003...
    - Mark

  • Problem with job_close Exception INVALID_STARTDATE = 2

    Following is the test program.
    My requirement is to split the program execution in to multiple jobs which should run sequentially - one by one, I have populated prev job name and jobcount. As of now for the below code .. i am getting invalid_startdate exception.
    Can any one please let me know, where i am wrong.
    I am working on ECC 6.0.
    To test the below program, copy the below program as it is in to one test program and create a ZTESTV7 program with simple write statement, that can create a spool.
    Thanks,
    Shilpa.
    data : v_jobcount TYPE TBTCJOB-JOBCOUNT,
           v_jobname  TYPE TBTCJOB-JOBNAME,
           v_pjobcount TYPE TBTCJOB-JOBCOUNT,
           v_start type char1,
           v_PCHECK type char1,
           v_pjobname  TYPE TBTCJOB-JOBNAME.
    START-OF-SELECTION.
    v_jobname = 'TEST'.
    do 5 times.
      if sy-index = 1.
        v_start = 'X'.
        V_pcheck = '' .
        else.
          v_start = SPACE.
          v_PCHECK = 'X'.
      endif.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname                           = v_jobname
    IMPORTING
       JOBCOUNT               = v_jobcount
    SUBMIT ZTESTV7 VIA JOB V_JOBNAME NUMBER V_JOBCOUNT AND RETURN.
    CALL FUNCTION 'JOB_CLOSE'
      EXPORTING
        jobcount                          = v_jobcount
        jobname                           = v_jobname
       PREDJOB_CHECKSTAT                 = v_PCHECK
       PRED_JOBCOUNT                     = v_pjobcount
       PRED_JOBNAME                      = v_pjobname
       STRTIMMED                         = V_START
    EXCEPTIONS
       CANT_START_IMMEDIATE              = 1
       INVALID_STARTDATE                 = 2
       JOBNAME_MISSING                   = 3
       JOB_CLOSE_FAILED                  = 4
       JOB_NOSTEPS                       = 5
       JOB_NOTEX                         = 6
       LOCK_FAILED                       = 7
       INVALID_TARGET                    = 8
       OTHERS                            = 9
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE 'I' NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    leave  list-processing.
    ENDIF.
    v_pjobcount = v_jobcount.
    v_pjobname = v_jobname.
    enddo.

    This reply is already late to this question however just for future reference. I actually have the same requirement and the same error when executing FM JOB_CLOSE. Fortunately I solved the issue. You don't need to pass the job count for PRED_JOBCOUNT parameter of the FM as this causing the error. You only need the PRED_JOBNAME, which should be unique and STRTIMMED which should be marked with u2018Xu2019 always.
    Itu2019s kind a weird because when I executed my program via debugging mode, it shows that this job name has this job number after calling JOB_OPEN however this job number is already assigned to the job of the previous execution of the loop. So, when JOB_CLOSE is called, it throws EXCEPTION 2. I also check SM36/37 there were jobs I created with the same job number. It seemed to me, SAP change the job number during actual execution of the job.

  • Problem with RFC exception in BPM

    Hi,'
    I have created control step for RFC exception. Assigned the alert catagory and given alert message.
    i have below steps:
    Transformation-control-send RFC-cancel process.
    while trying to test i changed ip address of rfc channel and tested but i am not receiving any alert but messages are getting stucked in BPM with error -
    permanent error in message proccessing
    could you please suggest how to trigger rfc execption

    Suggestions..
    refer  BPMPatternReqRespTimeout for triggering exception.
    Basically you might change the sequence of steps as follow
    Create Block with deadline branch where you use control step to trigger exception and have another branch exception handler  and in that branch you have transformation and senderror.  This will help.

  • Problem with SQL Exception SQL0913

    Hello,
    I am facing problem in my XI2JDBC scenario like,
    SQLException during query 'Select * SRSYS from NSARECP   
    where srrecn = (select min (srrecn) from nsarecp where pdate =         
    '0001-01-01')':
    java.sql.SQLException: [SQL0913] Row or object NSARECP in
    NSALDTA type *FILE in use.
    Can you please help me out.
    Thanks,
    soorya,

    Hi,
    It would be an error due to time out options so try to increase the polling time and also check whether are manually able to execute the query as it can even been locked because of polling the table with wrong user name and password.
    Regards,
    Nithiyanandam

  • Problems with Custom Exception Handler

    Hi,
    I have defined a custom exception handler for my workflow (WebLogic Platform
    7).
    I have a workflow variable called 'count' , which gets incremented for every
    time an exception occurs.
    The exception handler checks if the count is less than 3(using evaluate
    condition),
    if yes then it executes the action "Exit Execption Handler and retry"
    else
    it executes the action "Exit Execption Handler and continue"
    The Workflow simply hangs, nothing on the console , the worklist from which
    i call it hangs too.
    Has anyone managed to use this kind of exception handling?
    Thanks in advance,
    Asif

    bill0 wrote:
    > Thanks for all the help but still no luck.
    >
    > The directory is d:\wSites\GBMain\html\CFMS> and I am
    mapped to it as x:\CFMS.
    > Most of the cfm files are in CFMS but Application.cfm is
    1 directory up in
    > html. I have tried misscfm.cfm in both html and CFMS but
    had no luck having it
    > find a non existant template referred to in a cfinclude
    or a form's action
    > attribute. The default ColdFusion error handler is what
    shows. The missing
    > template handler box says /misscfm.cfm. Misscfm.cfm is
    text followed by a
    > <cfabort>. We use ColdFusion MX6.1
    >
    > I hope that is enough information to figure what am I
    missing and/or doing
    > wrong.
    >
    >
    Is the 'misscfm.cfm' file somewhere in the
    'd:\wSites\GBMain\html\CFMS\'
    directory. I will presume this is the 'web root' as defined
    in your web
    server (IIS or Apache or built-in or ???). The missing
    template handler
    file needs to be in the ColdFusion root. This is going to be
    a
    directory such as
    '{drive}:\JRun4\servers\{server}\cfusion-ear\cfusion-war\misscfm.cfm'
    for J2EE flavors OR '{drive}:\CFusionMX\wwwroot' for Standard
    I think.
    It has been a very long time since I have dealt with
    Standard.
    This is probably completely different from the above web
    root. That is
    the point I am trying to get across. ColdFusion has TWO roots
    where it
    will look for a CFML file. But the Missing and Sitewide
    templates can
    only be in the ColdFusion root listed above, they will not
    work in the
    web root.
    HTH
    Ian

  • Problem with timeout exception on a block step

    Hi there, i have a BPM with a block step that has a 1 minute duration timeout,  when i see the steps on the sxmb_moni_bpe the block deadline is being reached after 2:50 more or less, on the block i have an infinite loop with a receive step, does anybody knows why is taking more than expected?, how can i fix it?, thanks for all the help on the matter,
    Regards,
    Robert.

    Hi ,
    This may be due to some missed runtime environment parameters.
    Go to trans - SWU3
    In Maintain Runtime Environment
    Execute the following activities :-
    1. Schedule background job for missed deadline
    2. Schedule background job for deadline Monitoring
    Also have a look at sap note 1117735, if you are not able to execute the above activities.
    Regards,
    Sunil Chandra
    Edited by: sunil chandra on Sep 29, 2009 8:18 PM

  • Problem with  Handling  Exception  in Jsp

    hi
    I am unable to handling exception in Jsp.
    In my Simple Form i taken a simple text field named salary.
    Details.jsp
    <%@ page language="java" isErrorPage="true" errorPage="Det.jsp"%>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
    <html:html>
    <html:form action="/det.do">
    Enter Salary<html:text property="sal"/><br>
    <br>
    <html:submit value="SEND" />
    </html:form>
    </html:html>and my Actionclass is:
    package com.gurukul.util;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class DetUserAction extends Action {
         String s=null;
         int sal;
    public ActionForward execute(ActionMapping map,ActionForm form,HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
         try
         sal=Integer.parseInt(req.getParameter("sal"));
         if (sal>0)
              s="success";
         else
         throw new SalException(sal);}
         catch(SalException e)
              e.getMessage();
         return map.findForward(s);
    and my Formbean is
    package com.gurukul.util;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class DetUserAction extends Action {
         String s=null;
         int sal;
    public ActionForward execute(ActionMapping map,ActionForm form,HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
         try
         sal=Integer.parseInt(req.getParameter("sal"));
         if (sal>0)
              s="success";
         else
         throw new SalException(sal);}
         catch(SalException e)
              e.getMessage();
         return map.findForward(s);
    }and my struts-config.xml is
                                  </form-bean>
                                  <form-bean name="DetUser"  
                           type="com.gurukul.util.DetUserForm">
                                  </form-bean>
    <action path="/det"
                          type="com.gurukul.util.DetUserAction"
                          name="DetUser"
                        input="/Details.jsp"
                           scope="request">
                           <exception key="errors.sal"
                           type="com.gurukul.util.SalException"
                           path="/jsp/Det.jsp"/>
                       <forward name="success" path="/jsp/DetailList.jsp"  />
                       <forward name="failure" path="/jsp/Details.jsp"/>
                         </action>and Det.jsp(i.e error jsp) is
    <%@ page language="java" isErrorPage="true"%>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
    <html:html>
    <center><b>
    Invalid Salary</b></center>
    <%= exception.getMessage() %>
    </html:html>but i didnt get exception on jsp.
    please help me
    Regards
    VAS

    hi
    can you please guide me how to handle exceptions in Jsp(struts)?

  • Custom exception problems with ADF framework

    Hi,
    I have problems with the exception handling in an web service Java class (POJO).
    In this class I throw my own exception WsException-class which extends the normal Exception-class.
    The class WebservicesAppModule extends the oracle.jbo.ApplicationModule.
    In the following I first describe the web service class and then the three tests a)-c).
    In test b) you can find my main problem.
    Web service Java class (POJO):
    public Element check(Element element) throws WsException{   
    WebservicesAppModule am = null;
    try {
    // 1) system error
    // if I comment the next line out, then am = null and a NullPointerException is thrown which appear as NullPointerException in the SOAP response
    am = (WebservicesAppModule)Configuration.createRootApplicationModule(_am,_cf);
    if(value == null){
    // 2) application error
    WsException wsex = new WsException();
    wsex.addErrorCode(WsException.C_INVALID_BANK_CONNECTION);
    throw wsex;
    } else if (value2 == null){
    // 3) explicit system error
    throw new NullPointerException();
    }catch(WsException wsex){
    // 4) application error
    throw wsex;
    }catch(Throwable ex){
    // 5) system error
    log.debug("Technischer Fehler", ex);
    WsException wsex = new WsException("system error");
    wsex.addErrorCode(WsException.C_NOK);
    throw wsex;
    } finally {
    if (_am != null) {
    Configuration.releaseRootApplicationModule(am, false);
    Test a):
    - The WebservicesAppModule is initialized (1)
    - value = null, so the process run in the "application error" if-block (2)
    - The WsException is thrown and catched in the "application error" catch-block (4)
    The SOAP repsonse is okay:
    --- Response ---
    HTTP/1.1 100 Continue
    Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    Date: Thu, 20 Jul 2006 09:43:39 GMT
    HTTP/1.1 500 Internal Server Error
    Date: Thu, 20 Jul 2006 09:43:55 GMT
    Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    Content-Length: 520
    Connection: Close
    Content-Type: text/xml; charset=utf-8
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>[11000, 10001] [de.test.webservices.WsException]</faultstring>
    <faultactor>/app-Webservices-context-root/WebServices</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Test b):
    - The WebservicesAppModule is NOT initialized (the line is comment out) (1)
    - The process run in system error catch-block (5)
    In the SOAP repsonse I expected the following <faultstring> (like in test c) )
    <faultstring>system error: [10000] [de.test.webservices.WsException]</faultstring>
    and not
    <faultstring> [java.lang.NullPointerException]</faultstring>
    What´s the problem?
    --- Response ---
    HTTP/1.1 100 Continue
    Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    Date: Thu, 20 Jul 2006 08:59:12 GMT
    HTTP/1.1 500 Internal Server Error
    Date: Thu, 20 Jul 2006 09:01:02 GMT
    Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    Content-Length: 506
    Connection: Close
    Content-Type: text/xml; charset=utf-8
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring> [java.lang.NullPointerException]</faultstring>
    <faultactor>/app-Webservices-context-root/WebServices</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Test c):
    - The WebservicesAppModule is initialized (1)
    - value != null, so the process run to the next if-block (2)
    - value2 == null, so the process run in the "explicit system error" (3)
    - The WsException is thrown and catched in the "system error" catch-block (5)
    This test shows that not the NullPointerException of Test b) is the problem.
    This response is expected in Test b).
    --- Response ---
    HTTP/1.1 100 Continue
    Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    Date: Thu, 20 Jul 2006 13:53:46 GMT
    HTTP/1.1 500 Internal Server Error
    Date: Thu, 20 Jul 2006 13:54:19 GMT
    Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    Content-Length: 533
    Connection: Close
    Content-Type: text/xml; charset=utf-8
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>system error: [10000] [de.test.webservices.WsException]</faultstring>
    <faultactor>/app-Webservices-context-root/WebServices</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    What is the cause for the false <faultstring> in test b)? Where set the the ADF framework the NullPointerException and how can I avoid that?
    Thanks and best regards,
    Tobias

    Hi,
    I have problems with the exception handling in an web service Java class (POJO).
    In this class I throw my own exception WsException-class which extends the normal Exception-class.
    The class WebservicesAppModule extends the oracle.jbo.ApplicationModule.
    In the following I first describe the web service class and then the three tests a)-c).
    In test b) you can find my main problem.
    Web service Java class (POJO):
    public Element check(Element element) throws WsException{   
    WebservicesAppModule am = null;
    try {
    // 1) system error
    // if I comment the next line out, then am = null and a NullPointerException is thrown which appear as NullPointerException in the SOAP response
    am = (WebservicesAppModule)Configuration.createRootApplicationModule(_am,_cf);
    if(value == null){
    // 2) application error
    WsException wsex = new WsException();
    wsex.addErrorCode(WsException.C_INVALID_BANK_CONNECTION);
    throw wsex;
    } else if (value2 == null){
    // 3) explicit system error
    throw new NullPointerException();
    }catch(WsException wsex){
    // 4) application error
    throw wsex;
    }catch(Throwable ex){
    // 5) system error
    log.debug("Technischer Fehler", ex);
    WsException wsex = new WsException("system error");
    wsex.addErrorCode(WsException.C_NOK);
    throw wsex;
    } finally {
    if (_am != null) {
    Configuration.releaseRootApplicationModule(am, false);
    Test a):
    - The WebservicesAppModule is initialized (1)
    - value = null, so the process run in the "application error" if-block (2)
    - The WsException is thrown and catched in the "application error" catch-block (4)
    The SOAP repsonse is okay:
    --- Response ---
    HTTP/1.1 100 Continue
    Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    Date: Thu, 20 Jul 2006 09:43:39 GMT
    HTTP/1.1 500 Internal Server Error
    Date: Thu, 20 Jul 2006 09:43:55 GMT
    Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    Content-Length: 520
    Connection: Close
    Content-Type: text/xml; charset=utf-8
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>[11000, 10001] [de.test.webservices.WsException]</faultstring>
    <faultactor>/app-Webservices-context-root/WebServices</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Test b):
    - The WebservicesAppModule is NOT initialized (the line is comment out) (1)
    - The process run in system error catch-block (5)
    In the SOAP repsonse I expected the following <faultstring> (like in test c) )
    <faultstring>system error: [10000] [de.test.webservices.WsException]</faultstring>
    and not
    <faultstring> [java.lang.NullPointerException]</faultstring>
    What´s the problem?
    --- Response ---
    HTTP/1.1 100 Continue
    Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    Date: Thu, 20 Jul 2006 08:59:12 GMT
    HTTP/1.1 500 Internal Server Error
    Date: Thu, 20 Jul 2006 09:01:02 GMT
    Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    Content-Length: 506
    Connection: Close
    Content-Type: text/xml; charset=utf-8
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring> [java.lang.NullPointerException]</faultstring>
    <faultactor>/app-Webservices-context-root/WebServices</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Test c):
    - The WebservicesAppModule is initialized (1)
    - value != null, so the process run to the next if-block (2)
    - value2 == null, so the process run in the "explicit system error" (3)
    - The WsException is thrown and catched in the "system error" catch-block (5)
    This test shows that not the NullPointerException of Test b) is the problem.
    This response is expected in Test b).
    --- Response ---
    HTTP/1.1 100 Continue
    Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    Date: Thu, 20 Jul 2006 13:53:46 GMT
    HTTP/1.1 500 Internal Server Error
    Date: Thu, 20 Jul 2006 13:54:19 GMT
    Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)
    Content-Length: 533
    Connection: Close
    Content-Type: text/xml; charset=utf-8
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>system error: [10000] [de.test.webservices.WsException]</faultstring>
    <faultactor>/app-Webservices-context-root/WebServices</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    What is the cause for the false <faultstring> in test b)? Where set the the ADF framework the NullPointerException and how can I avoid that?
    Thanks and best regards,
    Tobias

  • Problem with table(cast..)) clause - timeout

    Hello,
    I've in shared memory one query in multiple copies - one differences between copies is in arguments count given with in clause. For example, in shared memory i have:
    select name from a where id in (?);
    select name from a where id in (?,?);
    select name from a where id in (?,?,?);
    I try to minimize size of shared memory by change this query as in example:
    select name from a where id in (select * from table(cast(? as seqintegertable)))
    In this case my shared memory is ok, but I have problem with timeout exception:
    - time of executing query without cast is about 250 ms
    - with cast: about 10560 ms and sometimes I get ORA-01652
    Why this time is so long? Can I reduce it? Maybe I should change something other?

    user13241971 wrote:
    Why this time is so long? Can I reduce it? Maybe I should change something other?To know why your query takes so long: {thread:id=501834}
    Likely it's because of wrong cardinalities, to which this excellent article gives possible solutions: http://www.oracle-developer.net/display.php?id=427
    Regards,
    Rob.

  • Problem about Bex Exception

    Hi All,
    I have some problems with bex exception. In my query, I have 3 columns  (the third one is a rate calculated from the first (C1) and second columns (C2)). I have a characteristic in row which lists the different values. Sometimes, I have no value for C1 and C2 and also, the value  rate is space (thatu2019s normal behaviour). I must highlight some rate by
    If rate < 55         bad
    If rate => 55      good
    I did an exception
    Bad        except1    BT      0  to 54
    good      except2    GE      55
    That works fine but my problem is :
    The rate cells with a space value are also highlighted with the bad colour. Have you some idea to avoid this behaviour ?
    C1                        C2                                                 Rate
    1000                         5                                               200   (C3)
    100                        20                                                5    (C3)
    space                              space                               space   (C3)
    1st  C3 is green
    2nd C3  is red
    3rd  C3  is also red (I want to leave blank)
    Thanks fot your help.

    Hi,
    If you are in BW 3.5 then you can make us of class interfaces for this scenario and it was explained here in this article.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e0b4cfcc-f9c1-2b10-1bb5-d4b61083d471
    Hope this helps you.
    Regards,
    Rajkandula

Maybe you are looking for

  • 2011 MBP 15 gaming problem

    I charged my battery to 100% then played Starcraft for a while and my battery was at 15% so i plugged in the charger. After about an hour i notice the indicator on the charger was green and i was thinking wow that was a fast charge, so i take a look

  • HT201209 Can two iphones use the same itune gift card?

    My husband and I are new to iphones, and would like to purchase one itunes gift card and both use it on our iphones.  I have an apple id set up, he does not yet have one.  Can we share an itunes account if we have different apple id's? 

  • My HP Officejet Pro 8600 can't print from my MacBook Air

    Hi, My HP Officejet Pro 8600 can't print from my MacBook Air. It keeps on showing "The printer is not connected", but the screen on the printer shows connected. I often reset the printer 'EVERY TIME" I want to use it. I also tried to turn off my lapt

  • Moving average price calculation logic of material with Price Control "S"

    Dear Gurus, As you know that there is a Moving price and standard price icon in the material master. I want to understand the calculation logic of the moving average price of the materials having price control "S" How the system calculates the MAP fo

  • Where is the address bar gone?

    there is no address bar in the last couple of versions of firefox ? not on permanent display anyway and i want them.