EJB Invocation from B2B CallOut

Hi,
I tried to invoke an Session EJB deployed in oracle app server from B2B. I compiled the callout class in java version 1.4. The home class and remote classes are addded to the classpath which is of version java 5. When i tried to test the same in B2B it mentioned the RMIInitialContextFactory class is not found. So i added the oc4jclient.jar in the ../ip/lib path and added to the classpath by making an entry in opmn.xml. When i again i tried to test, it is throwing an exception stating that
java.lang.NoSuchMethodError: oracle.ias.opmn.optic.OpmnProcess.getAppList()Ljava/util/List;
This class is present in optic.jar. I updated the optic.jar in ../opmn/lib with the local jdeveloper jar. Now Im getting an CalloutException because of the following error
[Root exception is java.lang.UnsupportedClassVersionError: EJBHome (Unsupported major.minor version 49.0)]
Please let me know whether it is possible to a invoke an EJB from java callout class in B2B?
I got this doubt as i updated the optic.jar in B2B with the one in local Jdeveloper.
Thanks,
Naveen
Edited by: [email protected] on Mar 17, 2009 2:26 AM

Share with us exception trace for the same via email [email protected]/[email protected]
Before that, please try with access your EJBBean by creating simple java utility- may be webapplication or standalone.
If EJBBean possible to access means, we have to look into what went wrong. :)

Similar Messages

  • EJB invocation from java callout

    hi,
    Is it possible to invoke an EJB from java callout class. I have tried to invoke an EJB from java callout . In the Initial Context it throws exception as RMIInitialContextFactory not found esception. So, I have added the realted jar and tried. It throws the below exception.
    com.cccis.interfaces.edi.journal.EDIJournalCallout - ejb_edijournal.jar
    2009.03.13 at 06:11:19:192: Thread-6: Deployment - (ERROR) java.lang.NoSuchMethodError: com.evermind.server.rmi.RMIContext.<init>(Lcom/evermind/server/rmi/RMIClient;Ljava/lang/String;Ljava/util/Map;Loracle/j2ee/naming/SecurityContextHelper;)V
    at com.evermind.server.rmi.RMIClientContext.<init>(RMIClientContext.java:40)
    at com.evermind.server.rmi.RMIClientContext.<init>(RMIClientContext.java:36)
    at com.evermind.server.rmi.RMIClient.createContext(RMIClient.java:596)
    at com.evermind.server.rmi.RMIClient.getContext(RMIClient.java:544)
    at com.evermind.server.rmi.RMIInitialContext.get(RMIInitialContext.java:44)
    at oracle.j2ee.rmi.RMIInitialContextFactory.getInitialContext(RMIInitialContextFactory.java:45)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at com.cccis.interfaces.edi.journal.EDIJournalCallout.execute(EDIJournalCallout.java:71)
    at oracle.tip.adapter.b2b.callout.CalloutExecuteWorker.doWork(CalloutExecuteWorker.java:424)
    at oracle.tip.adapter.b2b.callout.CalloutExecuteWorker.run(CalloutExecuteWorker.java:333)
    at java.lang.Thread.run(Thread.java:534)
    Please help us to resolve this problem.
    Thanks,
    Geetha S

    The initial contextfactory used is RMIIntitialContextFactory.
    This class is not available in the B2B classpath. So we added the oc4jclient.jar in ../ip/lib and added to classpath by making an entry in opmn.xml.
    The OpmnProcess classes present in optic.jar (opmn/lib) does nt have the method getApplist(). So we updated this jar with jdev jar. Now its throwing an java.lang.UnsupportedClassVersionError: EJBHome.

  • Can i call unix shell script from B2B callout.

    Hi,
    We had a requirement to invoke a unix shell script from B2B callout implemented class. Here is the code in implementation class:
    public void execute(CalloutContext context,List input,List output)
    throws CalloutDomainException, CalloutSystemException {
    try {
    CalloutMessage cmIn = (CalloutMessage)input.get(0);
    FileOutputStream fos = null;
    String inputFile = "/home/orasoad/digitalsign/input/test.txt";
    String outputFile = "/home/orasoad/digitalsign/output/test.txt.gpg";
    File outFile = new File(inputFile);
    String str =cmIn.getBodyAsString();
    fos = new FileOutputStream(outFile);
    Writer out = new OutputStreamWriter(fos);
    out.write(str);
    out.close();
    String shellFile = "/home/orasoad/digitalsign/dg.sh";
    String cmd[] = new String[] { shellFile, inputFile, outputFile };
    Runtime rt = Runtime.getRuntime();
    Process pr = rt.exec(cmd);
    int i = pr.waitFor();
    BufferedReader br = new BufferedReader(new InputStreamReader(pr.getInputStream()));
    StringBuffer sb = new StringBuffer();
    String line;
    while ((line = br.readLine()) != null) {              
    sb.append(line);
    CalloutMessage cmOut = new CalloutMessage(sb.toString());
    output.add(cmOut);
    } catch (Exception e) {
    throw new CalloutDomainException(e);
    We were able to execute the unix shell script from standalone java class with same code. But some how it is not working as expected while invoking the B2B java callout.
    Is it possible to invoke unix shell script from B2B callout?
    Please give inputs.
    Regards,

    Though it's not a good idea to invoke shell scripts from java callout but technically it will work.
    But some how it is not working as expected while invoking the B2B java callout.What is not working as expected? Any error in the log (server-diagnostic.log or server.out)?
    Regards,
    Anuj

  • WSIF EJB Invocation exception

    using: 10.1.2, WebLogic 8.1sp4, Solaris 9
    I am trying to invoke an ejb directly via the WSIF. I can get the sample working but when I try to get my real stuff working I get the following exception:
    [having the default.collaxa.cube.ws logging set to DEBUG]
    <WSIFInvocationHandler::createOperation> Failed to createOperation for op doWork
    org.collaxa.thirdparty.apache.wsif.WSIFException: Could not create instance for home ...; nested exception is:
    java.lang.NoSuchMethodException: com.ejb.MyEjb_ftt4ro_HomeImpl_814_WLStub.create()
    at com.collaxa.cube.ws.wsif.providers.ejb.WSIFPort_EJB.getEjbObject(WSIFPort_EJB.java:287)
    at com.collaxa.cube.ws.wsif.providers.ejb.WSIFOperation_EJB.<init>(WSIFOperation_EJB.java:149)
    at com.collaxa.cube.ws.wsif.providers.ejb.WSIFOperation_EJB.getDynamicOperation(WSIFPort_EJB.java:149)
    at com.collaxa.cube.ws.wsif.providers.ejb.WSIFOperation_EJB.createOperation(WSIFPort_EJB.java:352)
    Any ideas as to what is causing this exception?
    Cheers,
    -Dustin Ruehle

    Hi
    i am also doing a EJB invocation from a BPEL process..
    I am sure that the signature of the method id matching with WSDL declaration...and the EJB files are packed in a jar and put in the classpath of the BPEL server.
    [2007/07/25 13:22:47] "{http://schemas.oracle.com/bpel/extension}bindingFault" has been thrown. less
    <bindingFault>
    <part name="summary" >
    <summary>com.collaxa.cube.ws.wsif.providers.ejb.WSIFOperation_EJB@23af64 : Could not invoke 'raiseAlarm'; nested exception is: org.collaxa.thirdparty.apache.wsif.WSIFException: Error while determining signature of method raiseAlarm : The meta information is not consistent.; nested exception is: org.collaxa.thirdparty.apache.wsif.WSIFException: in2</summary>
    </part>
    <part name="detail" >
    <detail>org.collaxa.thirdparty.apache.wsif.WSIFException: Error while determining signature of method raiseAlarm : The meta information is not consistent.; nested exception is: org.collaxa.thirdparty.apache.wsif.WSIFException: in2</detail>
    </part>
    </bindingFault>
    Can u please throw some light on this..

  • EJB Exception occurred during invocation from home: com.bea.content.manager

    BEA 8.1 Team,
    Is there any limitation on BEA Repository such as number of nodes, etc.
    I have a serious production issue. All i could see from the LOG file is the stact trace which i have posted it here.
    ####<Aug 24, 2006 8:04:57 AM CDT> <Info> <EJB> <websrv11> <PORTALSRVR> <ExecuteThread: '99' for queue: 'weblogic.kernel.Default'> <jdcs1400> <BEA1-60BE09B7462F> <BEA-010051> <EJB Exception occurred during invocation from home: [email protected]67bc75 threw exception: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1438)
         at java.lang.String.substring(String.java:1411)
         at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
         at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
         at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
         at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    ####<Aug 24, 2006 8:04:57 AM CDT> <Error> <HTTP> <websrv11> <PORTALSRVR> <ExecuteThread: '99' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101020> <[ServletContext(id=30691960,name=myServicePoint,context-path=/myServicePoint)] Servlet failed with Exception
    javax.ejb.EJBException: EJB Exception: : java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1438)
         at java.lang.String.substring(String.java:1411)
         at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
         at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
         at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
         at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    ; nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1438)
         at java.lang.String.substring(String.java:1411)
         at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
         at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
         at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
         at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    javax.ejb.EJBException: EJB Exception: : java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1438)
         at java.lang.String.substring(String.java:1411)
         at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
         at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
         at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
         at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    ; nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at weblogic.ejb20.internal.EJBRuntimeUtils.throwEJBException(EJBRuntimeUtils.java:152)
         at weblogic.ejb20.internal.BaseEJBLocalHome.handleSystemException(BaseEJBLocalHome.java:232)
         at weblogic.ejb20.internal.BaseEJBLocalObject.postInvoke(BaseEJBLocalObject.java:326)
         at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:122)
         at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    Any help would be greatly appreciated!!
    Thanks in Advance,
    -Nach.

    Hi Dragan,
    First of all we need to put some debug (System.out.println) to findout exactly which object reference is actually becoming NULL. From there only we can start diagnosis on this issue. that's the root. It should be very easy for your Developers to put some debug on that...because the NullPointerException is being thrown by your code...I m not Blaming on your Code... WLS may be responsible for that...but first of all we need to find out Which Object is becoming NULL.
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

  • EJB Exception occurred during invocation from home or business:

    Friends,
    I have ejb application deployed in weblogic 10.3 with cluster environment. I have configured the following ejb-jar.xml
    <session>
    <ejb-name>PartSL</ejb-name>
    <home>com.gm.tm.ejb.session.part.PartSLHome</home>
    <remote>com.gm.tm.ejb.session.part.PartSL</remote>
    <ejb-class>com.gm.tm.ejb.session.part.PartSLBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <ejb-ref>
    <ejb-ref-name>ejb/PartBM</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <home>com.gm.tm.ejb.entity.partbm.PartHome</home>
    <remote>com.gm.tm.ejb.entity.partbm.Part</remote>
    <ejb-link>PartBM</ejb-link>
    </ejb-ref>
    <resource-ref>
    <description></description>
    <res-ref-name>jdbc/ToolMoveDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </session>
    Sometimes when user doing some manupulation, this object getting disapper and getting the error as EJB Exception occurred during invocation from home or business: com.gm.tm.ejb.session.part.PartSL_ex1s88_HomeImpl@175f214 threw exception: javax.ejb.EJBException: nested exception is: javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'PartBM'. Resolved '' [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'PartBM'. Resolved '']; remaining name 'PartBM']; Link Remaining Name: 'PartBM'>
    JNDI tree is clusterable but is incompatible. Make sure all the servers in the cluster use the identical copy of object.
    Pls let me know if anyone know the root cause and i am new to EJB too. So pls help if anyone know better solution for this

    Yes exactly..Let me explain clearly. assume its deployed now and user started using that particular module. It works fine. Later point time like after few days or after few simultenous navigation of that particular ejb jndi object from the application, this exception comes. So for the short time fix, i restart the server and it will work fine and then after few hours/days , this exception comes and i need to restart again. So i need a permanent solution to avoid this issue.

  • BEA-010051 EJB Exception occurred during invocation from home:

    Hi,
    I am getting this exception (below)in the production env. the process is every night my application would load the data which is present in a perticular folder in to the database. After this process has continued for some days this error comes. This error started comming after i did some code changes where in i log all the actions which take place while loading into the database.
    It would be of great help if someone could help me out here.
    weblogic log:
    ####<14-Mar-2007 18:00:00 o'clock GMT> <Info> <Log Management> <dygwt01> <managed1_caprprd> <ExecuteThread: '1' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-170018> <The log file has been rotated to managed1_caprprd.log00300. Log messages will continue to be logged in /wls_domains/caprprd/logs/bea/managed1_caprprd.log.>
    ####<14-Mar-2007 18:00:00 o'clock GMT> <Info> <null> <unknown> <unknown> <ExecuteThread: '1' for queue: 'weblogic.kernel.Default'> <null> <null> <000000> <LogRotation trigger for logfile /wls_domains/caprprd/logs/bea/managed1_caprprd.log>
    ####<15-Mar-2007 04:21:04 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20908C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:21:05 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20928C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:21:19 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-209A8C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:21:20 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-209C8C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:21:31 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20A18C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:21:31 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20A38C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:21:31 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20A58C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:21:41 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20AC8C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:22:48 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20D38C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:22:58 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20D98C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:23:08 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20DB8C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:23:10 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20DD8C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:23:12 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20DF8C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:23:19 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20E58C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:23:22 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-20E78C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 04:23:47 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-21008C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<15-Mar-2007 05:36:53 o'clock GMT> <Info> <Security> <dygwt01> <managed1_caprprd> <ExecuteThread: '0' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-090067> <User lockout expired, unlocking user 602054364 in security realm myrealm.>
    ####<15-Mar-2007 05:45:21 o'clock GMT> <Notice> <Security> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-090078> <User 602054364 in security realm myrealm has had 5 invalid login attempts, locking account for 30 minutes.>
    ####<15-Mar-2007 06:31:03 o'clock GMT> <Info> <EJB> <dygwt01> <managed1_caprprd> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-221A8C95ED2F2185AF9E> <BEA-010051> <EJB Exception occurred during invocation from home: com.bt.pe.capreg.serv.ejb.WebService_auhh9w_HomeImpl@1ba3c1f threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
         at com.bt.pe.capreg.serv.ejb.WebServiceBean.getBlobBytes(WebServiceBean.java:1068)
         at com.bt.pe.capreg.serv.ejb.WebService_auhh9w_EOImpl.getBlobBytes(WebService_auhh9w_EOImpl.java:5026)
         at com.bt.pe.capreg.serv.ejb.WebService_auhh9w_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:166)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:290)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:247)
         at com.bt.pe.capreg.serv.ejb.WebService_auhh9w_EOImpl_814_WLStub.getBlobBytes(Unknown Source)
         at com.bt.pe.capreg.web.action.GetBlobAction.execute(GetBlobAction.java:29)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bt.pe.capreg.web.servlet.TargetNameSpaceFilter.doFilter(TargetNameSpaceFilter.java:48)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bt.pe.capreg.web.servlet.AuthorizationFilter.doFilter(AuthorizationFilter.java:22)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bt.pe.capreg.web.servlet.SMHeaderFilter.doFilter(SMHeaderFilter.java:21)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:326)
         at com.bt.pe.capreg.web.servlet.BlobServlet.doGet(BlobServlet.java:19)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bt.pe.capreg.web.servlet.TargetNameSpaceFilter.doFilter(TargetNameSpaceFilter.java:45)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bt.pe.capreg.web.servlet.AuthorizationFilter.doFilter(AuthorizationFilter.java:22)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bt.pe.capreg.web.servlet.SMHeaderFilter.doFilter(SMHeaderFilter.java:21)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >

    Hi Sai,
    Below are the observation
    In Weblogic 8.1 sp6
    User : system
    Group Assigned : Administrators and OSSTrmi
    Group OSStrmi have assigned under Administrators as well
    In Weblogic 10.3.3
    User : system
    Group Assigned : Administrators
    Group OSSTrmi  is not assigned under Administrators
    Difference in assignment. here it seems. Please suggest
    Thx
    Sudip

  • BPEL Invoke from B2B through Java Callout

    Hi,
    I would like to know if its possible to invoke a BPEL process from B2B other than AQ. I need not pass any payload to BPEL , I just want to invoke a BPEL process.
    Thanks,
    Phani

    It is possible to inovoke BPEL from a call out, however it is not preferred and supported approach. Apart from AQ, we also have File, FTP and JMS integration with BPEL.
    HTH.
    Rgds,Ramesh

  • Implicitly Passing a Custom Context with EJB Invocations

    Dimitri, this is most likely one for you.
    We have a need to implicitly pass contextual information with EJB
    invocations. I'd also like to be able to intercept/filter invocations.
    The current approach autogenerates subclasses for the bean
    implementations. In these subclasses, the methods take an additional
    context parameter. From the client perspective, the business delegates
    implicitly provide this parameter.
    I'd like to solve this without code generation.
    The current approach I'm considering is to have a generic command EJB.
    This stateless session bean will take a method signature, method
    parameters, and a context object. The command EJB will delegate these
    invocations to the actual EJBs.
    I will get the client to go through this command EJB by intercepting the
    home lookups. I will wrap the initial context. Using dynamic proxies,
    the new initial context will return a wrapped stub that will actually go
    through the command bean, implicitly passing the thread local context.
    So far as the command bean's configuration goes, I will set to the pool
    size very high (the sum of all of the other stateless session bean pool
    sizes perhaps). I will set the transaction type to Supports and pass on
    any exceptions.
    Can anyone think of a better way to go about this?
    Thanks,
    Bob

    Why do you need the custom context? I have worked with an application that held the SessionContext and wrapped all the methods of the EJB context. This was a maintenance problem because changes to the EJB spec caused the methods to change and therefore the calling code.
    Are you trying to insulate your POJO code from EJB specific classes?

  • Publish to a AQ from B2B server

    I want t publish a message from B2B using java callout. How do i configure connection factories on 10.1.2 OAS. In current OAS we deploy the AQResourceAdapter, Can we deploy the same on OAS10.1.2 but we dont have a option of deploying a RAR file on OAS10.1.2.
    Can you please guie me how to configure connection factory on OAS10.1.2 or guide me to a documentation which will help me in setting up the same
    Thanks

    Hi ,
    The connection factories defined in the App server is not available in the callout. you have to create connections directly from the callout.
    Thanks and Regards,
    Prasanna

  • Can BPEL/ESB make use of B2B Callouts?

    Hi
    Consider we use BPEL/ESB between Oracle XML Gateway and Oracle B2B. Can we make use of B2B callout feature in this scenario? If yes, could anyone brief how to achieve it?
    Regards
    Prasad Jayakumar

    Hi Ramesh
    Your response clarified my original question. Thank you.
    Now I have couple of questions considering the following architecture
    APPS (XML Gateway) <-> BPEL/ESB <-> B2B
    Please respond for benefit of all B2B users
    1. Lets say we have few trading partners who expect Invoice in RosettaNet format and few others expect Invoice in EDI format.
    a. How to achieve it?
    b. Should BPEL/ESB based upon some condition choose the right B2B Web Service and do transformation and send the data?.
    2. What's the major role played by B2B? How different B2B is, in handling transactions directly from XML Gateway and/or through BPEL/ESB?
    Regards
    Prasad Jayakumar

  • EJB5018: An exception was thrown during an ejb invocation on [ResultFacade]

    I have a problem to access from application client to methods of session beans
    the problem haw to call this method "getcodesresultcampbean("ARTV")"
    EJB5018: An exception was thrown during an ejb invocation on [ResultFacade]
    javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean: java.lang.NoClassDefFoundError: org/postgresql/jdbc3/Jdbc3PreparedStatement
    at com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:3591)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3436)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1247)
    at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:192)
    at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:71)
    at $Proxy306.findByRefCampagne(Unknown Source)
    at com.bellconsulting.praxys.stats.service.StatCampagneBean.getcodesresultcampbean(StatCampagneBean.java:77)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:589)
    at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1050)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:165)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2766)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3847)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
    at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:67)
    at $Proxy305.getcodesresultcampbean(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:589)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)
    Caused by: java.lang.NoClassDefFoundError: org/postgresql/jdbc3/Jdbc3PreparedStatement
    at org.postgresql.jdbc3.Jdbc3Connection.prepareStatement(Jdbc3Connection.java:37)
    at org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(AbstractJdbc3Connection.java:266)
    at org.postgresql.jdbc2.AbstractJdbc2Connection.prepareStatement(AbstractJdbc2Connection.java:151)
    at com.sun.gjc.spi.ConnectionHolder.prepareStatement(ConnectionHolder.java:413)
    at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:497)
    at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:415)
    at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
    at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1538)
    at org.hibernate.loader.Loader.doQuery(Loader.java:661)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
    at org.hibernate.loader.Loader.doList(Loader.java:2211)
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)
    at org.hibernate.loader.Loader.list(Loader.java:2090)
    at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:388)
    at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
    at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
    at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
    at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:64)
    at com.bellconsulting.praxys.stats.facades.ResultFacade.findByRefCampagne(ResultFacade.java:54)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    **************************code source************** ResultFacade******
    package com.bellconsulting.praxys.stats.facades;
    import java.util.List;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import com.bellconsulting.praxys.stats.entities.Result;
    * @author idriss
    @Stateless
    public class ResultFacade implements ResultFacadeLocal {
    @PersistenceContext
    private EntityManager em;
    /** Creates a new instance of ResultFacade */
    public ResultFacade() {
    public void create(Result result) {
    em.persist(result);
    public void edit(Result result) {
    em.merge(result);
    public void destroy(Result result) {
    em.merge(result);
    em.remove(result);
    public Result find(Object pk) {
    return (Result) em.find(Result.class, pk);
    public List findAll() {
    return em.createQuery("select object(o) from Result as o").getResultList();
    public List findByRefCampagne (String campaignCode) {
    return em.createNamedQuery("Result.findByRefcampagne").setParameter("refcampagne", campaignCode).getResultList();
    *****************StatCampagneBean********
    package com.bellconsulting.praxys.stats.service;
    import com.bellconsulting.praxys.stats.facades.ResultFacadeLocal;
    import java.sql.Date;
    import javax.ejb.EJB;
    import javax.ejb.Stateful;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import com.bellconsulting.praxys.stats.entities.Campaign;
    import com.bellconsulting.praxys.stats.entities.Result;
    import com.bellconsulting.praxys.stats.facades.CampaignFacadeLocal;
    import java.util.Iterator;
    import java.util.List;
    * @author idriss
    @Stateful
    public class StatCampagneBean implements StatCampagneRemote {
    @EJB
    private CampaignFacadeLocal campaignFacade;
    private @EJB ResultFacadeLocal resultFacade;
    private String _campagnecode;
    /** Creates a new instance of StatCampagneBean */
    public StatCampagneBean() {
    public StatCampagneBean(String campagnecode)
    this._campagnecode= campagnecode;
    @PersistenceContext
    private EntityManager _manager;
    public int getnbreOKbean(String codecampagne) {
    //TODO implement getnbreOK
    Campaign camp= _manager.find(Campaign.class,codecampagne);
    return camp.getNbRepPositive();
    public void statCodesResultats(String nomcamp, String codecamp, Date datedebut, Date datefin) {
    //TODO implement statCodesResultats
    public String[ ] getcodesresultcampbean(String codecamp) {
    //TODO implement getcodesresultcampbean
    // _manager.getTransaction().begin();
    /* EntityManagerFactory emf = Persistence.createEntityManagerFactory("Result");
    EntityManager em = emf.createEntityManager();
    String querystring = "select object(r) from Result r"+" where r.refcampagne = ?1";
    Query query =em.createQuery(querystring).setParameter(1,codecamp);
    *for (Result r : coderesultList)
    coderesult[j++]= r.getResultPK().getCode().toString();
    // List<Result> coderesultList = query.getResultList();
    List<Result> coderesultList = resultFacade.findByRefCampagne(codecamp);
    Iterator<Result> itr = coderesultList.iterator();
    String[]codesresult =null;
    int j= 0;
    while (itr.hasNext()){
    codesresult[j++] =itr.next().getResultPK().getCode().toString();
    // _manager.getTransaction().commit();
    return codesresult;
    *********************Application client *************
    package application.praxys;
    import com.bellconsulting.praxys.stats.service.StatCampagneRemote;
    import javax.swing.JOptionPane;
    import stats.praxys.*;
    * @author idriss
    public class Main {
    /** Creates a new instance of Main */
    public Main() {
    * @param args the command line arguments
    public static void main(String[] args) {
    // TODO code application logic here
    // InitialContext ctx;
    String[] nbreok =null ;
    int c =0;
    /* try {
    ctx = new InitialContext();
    StatCampagneRemote simpleSession = (StatCampagneRemote) ctx.lookup(StatCampagneRemote.class.getName());
    nbreok = simpleSession.getnbreOK("ARTV");
    System.out.println("voici un resultaaaaaaaaaaaaaaaaaaaaa"+" "+nbreok);
    } catch (NamingException ex)
    TeleVenteServiceLocator tvLocator = new TeleVenteServiceLocator();
    StatCampagneRemote statCampagneBean = (StatCampagneRemote)tvLocator.getCampaignService();
    JOptionPane.showMessageDialog(null, "dfsdfsdfsfsq");
    nbreok=statCampagneBean.getcodesresultcampbean("ARTV");
    //nbreok =statCampagneBean.getnbreOKbean("ARTV");
    System.out.println("voici un resultaaaaaaaaaaaaaaaaaaaaa "+ nbreok[1]);
    JOptionPane.showMessageDialog(null, "dfsdfsdfsfsq"+nbreok[2]);
    ***************Result entity bean*********
    package com.bellconsulting.praxys.stats.entities;
    import java.io.Serializable;
    import javax.persistence.Column;
    import javax.persistence.EmbeddedId;
    import javax.persistence.Entity;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.Table;
    * Entity class Result
    * @author idriss
    @Entity
    @Table(name = "result")
    @NamedQueries( {
    @NamedQuery(name = "Result.findByCode", query = "SELECT r FROM Result r WHERE r.resultPK.code = :code"),
    @NamedQuery(name = "Result.findByLibelle", query = "SELECT r FROM Result r WHERE r.libelle = :libelle"),
    @NamedQuery(name = "Result.findByPriorite", query = "SELECT r FROM Result r WHERE r.priorite = :priorite"),
    @NamedQuery(name = "Result.findByPrix", query = "SELECT r FROM Result r WHERE r.prix = :prix"),
    @NamedQuery(name = "Result.findByResType", query = "SELECT r FROM Result r WHERE r.resType = :resType"),
    @NamedQuery(name = "Result.findByRefcampagne", query = "SELECT r FROM Result r WHERE r.resultPK.refcampagne = :refcampagne"),
    @NamedQuery(name = "Result.findByRetValue", query = "SELECT r FROM Result r WHERE r.retValue = :retValue"),
    @NamedQuery(name = "Result.findByRetUnit", query = "SELECT r FROM Result r WHERE r.retUnit = :retUnit")
    public class Result implements Serializable {
    * EmbeddedId primary key field
    @EmbeddedId
    protected ResultPK resultPK;
    @Column(name = "libelle")
    private String libelle;
    @Column(name = "priorite", nullable = false)
    private int priorite;
    @Column(name = "prix", nullable = false)
    private float prix;
    @Column(name = "resType")
    private Integer resType;
    @Column(name = "retValue")
    private Integer retValue;
    @Column(name = "retUnit")
    private String retUnit;
    @JoinColumn(name = "refcampagne", referencedColumnName = "code", insertable = false, updatable = false)
    @ManyToOne
    private Campaign campaign;
    /** Creates a new instance of Result */
    public Result() {
    * Creates a new instance of Result with the specified values.
    * @param resultPK the resultPK of the Result
    public Result(ResultPK resultPK) {
    this.resultPK = resultPK;
    * Creates a new instance of Result with the specified values.
    * @param resultPK the resultPK of the Result
    * @param priorite the priorite of the Result
    * @param prix the prix of the Result
    public Result(ResultPK resultPK, int priorite, float prix) {
    this.resultPK = resultPK;
    this.priorite = priorite;
    this.prix = prix;
    * Creates a new instance of ResultPK with the specified values.
    * @param refcampagne the refcampagne of the ResultPK
    * @param code the code of the ResultPK
    public Result(String refcampagne, String code) {
    this.resultPK = new ResultPK(refcampagne, code);
    * Gets the resultPK of this Result.
    * @return the resultPK
    public ResultPK getResultPK() {
    return this.resultPK;
    * Sets the resultPK of this Result to the specified value.
    * @param resultPK the new resultPK
    public void setResultPK(ResultPK resultPK) {
    this.resultPK = resultPK;
    * Gets the libelle of this Result.
    * @return the libelle
    public String getLibelle() {
    return this.libelle;
    * Sets the libelle of this Result to the specified value.
    * @param libelle the new libelle
    public void setLibelle(String libelle) {
    this.libelle = libelle;
    * Gets the priorite of this Result.
    * @return the priorite
    public int getPriorite() {
    return this.priorite;
    * Sets the priorite of this Result to the specified value.
    * @param priorite the new priorite
    public void setPriorite(int priorite) {
    this.priorite = priorite;
    * Gets the prix of this Result.
    * @return the prix
    public float getPrix() {
    return this.prix;
    * Sets the prix of this Result to the specified value.
    * @param prix the new prix
    public void setPrix(float prix) {
    this.prix = prix;
    * Gets the resType of this Result.
    * @return the resType
    public Integer getResType() {
    return this.resType;
    * Sets the resType of this Result to the specified value.
    * @param resType the new resType
    public void setResType(Integer resType) {
    this.resType = resType;
    * Gets the retValue of this Result.
    * @return the retValue
    public Integer getRetValue() {
    return this.retValue;
    * Sets the retValue of this Result to the specified value.
    * @param retValue the new retValue
    public void setRetValue(Integer retValue) {
    this.retValue = retValue;
    * Gets the retUnit of this Result.
    * @return the retUnit
    public String getRetUnit() {
    return this.retUnit;
    * Sets the retUnit of this Result to the specified value.
    * @param retUnit the new retUnit
    public void setRetUnit(String retUnit) {
    this.retUnit = retUnit;
    * Gets the campaign of this Result.
    * @return the campaign
    public Campaign getCampaign() {
    return this.campaign;
    * Sets the campaign of this Result to the specified value.
    * @param campaign the new campaign
    public void setCampaign(Campaign campaign) {
    this.campaign = campaign;
    * Returns a hash code value for the object. This implementation computes
    * a hash code value based on the id fields in this object.
    * @return a hash code value for this object.
    @Override
    public int hashCode() {
    int hash = 0;
    hash += (this.resultPK != null ? this.resultPK.hashCode() : 0);
    return hash;
    * Determines whether another object is equal to this Result. The result is
    * <code>true</code> if and only if the argument is not null and is a Result object that
    * has the same id field values as this object.
    * @param object the reference object with which to compare
    * @return <code>true</code> if this object is the same as the argument;
    * <code>false</code> otherwise.
    @Override
    public boolean equals(Object object) {
    // TODO: Warning - this method won't work in the case the id fields are not set
    if (!(object instanceof Result)) {
    return false;
    Result other = (Result)object;
    if (this.resultPK != other.resultPK && (this.resultPK == null || !this.resultPK.equals(other.resultPK))) return false;
    return true;
    * Returns a string representation of the object. This implementation constructs
    * that representation based on the id fields.
    * @return a string representation of the object.
    @Override
    public String toString() {
    return "com.bellconsulting.praxys.stats.entities.Result[resultPK=" + resultPK + "]";
    Message was edited by:
    081283

    Try posting this on the EJB forum:
    http://forum.java.sun.com/forum.jspa?forumID=13

  • EJB invocation in a cluster takes 7 minutes !

    Hi all,
              we're having a problem invoking a basic stateless EJB in a cluster.
              This is our configuration: Weblogic 8.1 sp4 installed on a Solaris 10 (x86) box.
              The cluster is made of 2 managed instances running both on the same machine (as the admin server).
              We have discovered that, when one of the managed server is down, the ejb invocation is serviced -either- immediately -or- it takes about 7 minutes.
              in a random fashion.
              I presume that when the live managed server is contacted the request is serviced immediately. When on the other hand the request needs to be switched from the dead server to the one that is up, it takes about 7 minutes.
              Why that ? Can anybody give some information ? we'll switch to a loadbalancer architecture in production environment, but what can we do now to avoid this problem ?
              Regards
              Francesco
              -bash-3.00$ time java -classpath /export/home/bea/weblogic81/server/lib/weblogic
              .jar:. statelessSession/ClientEJB t3://10.2.1.14:8001,10.2.1.14:9001
              Calling EJB Client...
              -> ClusterableRemoteRef(-8976060538862722122S:10.2.1.14:[9001,9001,7002,7
              002,9001,7002,-1,0,0]:10.2.1.14:8001:7002,10.2.1.14:9001:WLSdomain:server2 [-8
              976060538862722122S:10.2.1.14:[9001,9001,7002,7002,9001,7002,-1,0,0]:10.2.1.14:8
              001:7002,10.2.1.14:9001:WLSdomain:server2/290])/290
              Creating EJB
              End EJB Client...
              real 7m39.408s
              user 0m3.064s
              sys 0m0.526s

    Well, if you've ever looked at the source for DBA_TAB_STATISTICS you will understand why it's not a great candidate to query frequently, like in an exists look up :)
    This takes up a little more code, but i'd wager it finishes a bit sooner.
    SELECT
      /*+ gather_plan_statistics */
      T.OWNER,
      T.TABLE_NAME
    FROM
      ( SELECT DISTINCT COFIR
      FROM DBAUSR_TT
      ) U,
      VDBSTA S,
      DBA_TABLES T
    WHERE S.COFIR         = U.COFIR
    AND S.CTTAB           = 'T'
    AND T.OWNER           = S.COFIR
    AND T.TABLE_NAME      = S.COTAB
    AND T.TEMPORARY       = 'N'
    AND
        T.LAST_ANALYZED IS NOT NULL
    OR EXISTS
        SELECT 1
        FROM DBA_INDEXES I
        WHERE I.TABLE_OWNER  = T.OWNER
        AND I.TABLE_NAME     = T.TABLE_NAME
        AND I.LAST_ANALYZED IS NOT NULL
    UNION
    SELECT
      T.OWNER,
      T.TABLE_NAME
    FROM
      ( SELECT DISTINCT COFIR FROM DBAUSR_TT
      ) U,
      VDBSTA S,
      DBA_TABLES T,
      DBA_TAB_STATISTICS A
    WHERE S.COFIR                     = U.COFIR
    AND S.CTTAB                       = 'T'
    AND T.OWNER                       = S.COFIR
    AND T.TABLE_NAME                  = S.COTAB
    AND T.TEMPORARY                   = 'N'
    --added predicate
    AND T.LAST_ANALYZED IS NULL
    AND A.OWNER                       = T.OWNER
    AND A.TABLE_NAME                  = T.TABLE_NAME
    AND NVL (A.STATTYPE_LOCKED, '*') != 'ALL')
    ORDER BY 1, 2;

  • How can we retrieve the Payload information from B2B

    Hello,
    We are trying to send the payload information back to the client for a failed BPEL Transaction from B2B's b2b_instancemessage view. We are enqueing messages to IP_OUT_QUEUE using BPEL. We see the payload coming correctly in the B2B Business Message Reports. But we don't see the payload coming in the b2b_instancemessage view for failed B2B transactions. How can we see the payload in b2b_instancemessage view for failed B2B transactions as well? or How can we retrieve the Payload information from B2B?
    Any help is greatly appreciated! Thanks. - Sam.
    Edited by: user12049162 on Dec 4, 2009 2:04 PM

    I am not sure about the PDK API to get the group name. But using LDAP API its easy to get the User Group.
    If you find the answer to get the group name using PDK API, Please update in forum. It will really help others.
    --Balaji S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • BADI trigered in CRM while creating a order from B2B webshop

    Hellow Gurus,
    Could you please tell the BADIs triggered in CRM when we create an order from B2B webshop. I have to keep a validation to ensure the delivery type 'Standard' should be applicables orders having gross weight less thatn 4 kg only.
    I should also throw an alert in B2B webshop saying ' Please choose other type' as well. I dont know how to proceed for this.
    Please help.

    Hello,
    The  best way to determine the BADI's called is to look at the Log files.  The following OSS Notes (based on your release) will instruct you how to create a session trace.
    Note 569976 (Release 4.0)  - creation fo session logs
    Note 1090753 (Release 5.0) - Creation of logs for B2B and B2C
    Note 1156730 -  Creation of logs for ISAUserAdm and ShopAdmin
    You can also look at the [Modifiation and Extension guide |https://websmp210.sap-ag.de/~sapdownload/011000358700000469462006E/]for instructions (chapter Session Tracing).
    I hope this helps.
    Deb

Maybe you are looking for

  • XML load using PL/SQL (XSU) problem with dtd file.

    Hi, I'm trying to load a xml file and receives this errormassage: SQL> exec loadxml; In Exception ORA-29532: Java call terminated by uncaught Java exception: oracle.xml.sql.OracleXMLSQLException: Error opening external DTD 'Businesscard.DTD'. Any ide

  • Why does my iphone restart every time I try moving an app across the screen

    Since updating to the iOS6 last night, any time I hold an app down to make it wiggle, to move it to another screen-- it lets me do so, then when I press the home button to make them stop wiggling --- it simple restarts the iPhone and when it comes ba

  • My Broadband speed

    Hi , recently my download speeds dropped from avg 600kbps to 18.3kbps. But now my speed tests are showing 333kbps which is a huge drop from 6500kbps, I phoned bt India today and had my line tested the result shows that I am receiving Meg. Ok so there

  • IMovie '11 capturing direct from camera crashed, need to recover file

    I was caputuring direct from a camera via firewire and the drive got almost full, so iMove crashed.  I can find the capture file, a .mov, put it fails to open in quicktime or VLC. Please help.  I've got over 2 hours of footage that I really need. Tha

  • When I hit reply on the .Mac Mail site, an incorrect address is generatedW

    When I'm using the mail program on the Internet .mac site, and hit reply to respond to a letter I received, inevitably the automatic address generated by the program won't function. The reply button puts the person's name and then e-mail address in b