AutomationException: 0x800a13e9

Hi All,
I have been testing our new server Windows Server 2008
Standard Edition on which ColdFusion 8 was installed. After the
installation, I copied one of our applications and tested it. It
throws the COM object error "AutomationException: 0x800a13e9" The
error message is, "There is insufficient memory. Save the document
now in 'Microsoft Word'. Word Com object is used for creating
documents on-the-fly.
The exact same application is running in production on a
ColdFusion 7 server running on a Windows Server 2003 Enterprise
Edition. On both the server machines Office 2003 is installed.
Can anybody tell me anything about the error? Why is it
throwing an error? Basically, first I would like to isolate if its
Windows Server 2008 problem or ColdFusion 8 problem. There is no
change in the version of MS Word being used. Please help.
Thanks.
- Milind Joshi

I am answering my own question after doing some research on
the error code. To fix such error, the COM app needs to be in
interactive mode.
Run 'dcomcnfg.exe'. To make the necessary changes follow this
Component Services => My Computer ==> DCOM Config ==>
Microsoft Word Document. Right click 'Microsoft Word Document' and
get properties. It opens a bunch of tabs. Select the last tab named
'Identity'. Click on the radiobutton that says 'The Interactive
User'.
Hope this helps.
- Milind Joshi

Similar Messages

  • Error while calling the com object to open the word document.

    Below is the error: Though it says the insufficient memory,
    we have enough memory on the server and it is avaialable. I have
    checked the server statistics and cpu usage too.
    Error also talk about CF_COMPROXY and I am not sure about
    this. Has any one seen this before or does anybody has any
    solutions for this.
    Detail The cause of this exception was that:
    AutomationException: 0x800a13e9 - There is insufficient memory.
    Save the document now. in 'Microsoft Word'.
    Message An exception occurred when executing a Com method.
    RootCause struct
    Code 2148144105
    Description There is insufficient memory. Save the document
    now.
    Message AutomationException: There is insufficient memory.
    Save the document now.
    Source Microsoft Word
    Thank you all in advance.

    What version of Word do you have installed? Are you trying to
    save it as
    another format?
    This could be completely unrelated, and the only reason I ask
    is because I
    get that same "out of memory" error (without the com part) if
    I try to save
    an invoice from MS Money 2005 Small Business as a pdf using
    Cute PDF Writer.
    It will also throw an error when trying to save an invoice
    template if the
    printer is assigned to PDF Writer. Now I use Flash Paper to
    save them as
    pdfs. I still get the error when trying to save a template,
    but at least I
    can now generate the pdf.
    The only reason I mention it is because it makes me think
    there is something
    in MS product that is trying to prevent you from using non-MS
    formats. I
    could be way off and, honestly, I have no clue what is
    causing the problem,
    but is seemed too similar to be a coincidence so I thought I
    would pass it
    along just in case.
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technology, Inc.
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "t_sam_2000" <[email protected]> wrote in
    message
    news:[email protected]...
    > Below is the error: Though it says the insufficient
    memory, we have enough
    > memory on the server and it is avaialable. I have
    checked the server
    > statistics and cpu usage too.
    >
    > Error also talk about CF_COMPROXY and I am not sure
    about this. Has any
    > one
    > seen this before or does anybody has any solutions for
    this.
    >
    > Detail The cause of this exception was that:
    AutomationException:
    > 0x800a13e9 -
    > There is insufficient memory. Save the document now. in
    'Microsoft Word'.
    > Message An exception occurred when executing a Com
    method.
    > RootCause struct
    > Code 2148144105
    > Description There is insufficient memory. Save the
    document now.
    > Message AutomationException: There is insufficient
    memory. Save the
    > document
    > now.
    > Source Microsoft Word
    >
    > Thank you all in advance.
    >
    >

  • AutomationException while calling a method

    Hi all,
    I've got a problem accessing a COM/DCOM component in a Win2k box (Advanced Server)
    with jcom. I configured the server and client described in the "JSP to COM" example.
    The only difference: I don't want to access the excel sheet and I don't use a jsp
    to execute.
    I used the java2com.exe to create the proxies from my dll ScriptableUniversalTransAgt.dll.
    But when I try to call a method on the dll via Java, I get the exception:
    AutomationException: 0x80070005 - General access denied error in 'Invoke'
         at com.bea.jcom.Rpc.a(Rpc.java)
         at com.bea.jcom.be.a(be.java)
         at com.bea.jcom.StdObjRef.a(StdObjRef.java)
         at com.bea.jcom.Dispatch.vtblInvoke(Dispatch.java)
         at de.conet.galileo.suta.IScriptableUniversalTransAgentProxy.setHcmName(IScriptableUniversalTransAgentProxy.java:271)
         at de.conet.galileo.suta.ScriptableUniversalTransAgent.setHcmName(ScriptableUniversalTransAgent.java:336)
         at de.conet.galileo.SUTATest.start(SUTATest.java:33)
         at de.conet.galileo.SUTATest.main(SUTATest.java:27)
    I checked everything on the server, the user has all rights he needs but it doesn't
    work. In the eventlog of the server I can see that the login was successful.
    The attachment contains some log files and my program with the dll.
    Maybe someone can help me?
    Thanks
    Michael
    [src.zip]

    "Jeff Muller" <[email protected]> wrote in message
    news:[email protected]...
    Yeah, now I'm getting this error on code that worked two days ago.
    javax.servlet.ServletException: Unable to initialize servlet:
    AutomationExceptio
    n: 0x80070005 - General access denied error, status: Getting instance, and
    calli
    ng initialize.
    at com.teloquent.MyApp.MyServlet.initCOMObj(MyServlet.
    java:308)
    at com.teloquent.MyApp.MyServlet.init(MyServlet.java:8
    1)
    at
    weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
    pl.java:700)
    at
    weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
    Impl.java:643)
    at
    weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
    mpl.java:588)
    at
    weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
    java:368)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:242)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:200)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:2495)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    ... but then again, I don't expect any response here.
    "Michael" <[email protected]> wrote in message
    news:[email protected]...
    Hi all,
    I've got a problem accessing a COM/DCOM component in a Win2k box
    (Advanced
    Server)
    with jcom. I configured the server and client described in the "JSP toCOM" example.
    The only difference: I don't want to access the excel sheet and I don'tuse a jsp
    to execute.
    I used the java2com.exe to create the proxies from my dllScriptableUniversalTransAgt.dll.
    But when I try to call a method on the dll via Java, I get the
    exception:
    >>
    AutomationException: 0x80070005 - General access denied error in'Invoke'
    at com.bea.jcom.Rpc.a(Rpc.java)
    at com.bea.jcom.be.a(be.java)
    at com.bea.jcom.StdObjRef.a(StdObjRef.java)
    at com.bea.jcom.Dispatch.vtblInvoke(Dispatch.java)
    atde.conet.galileo.suta.IScriptableUniversalTransAgentProxy.setHcmName(IScript
    ableUniversalTransAgentProxy.java:271)
    at
    de.conet.galileo.suta.ScriptableUniversalTransAgent.setHcmName(ScriptableUni
    versalTransAgent.java:336)
    at de.conet.galileo.SUTATest.start(SUTATest.java:33)
    at de.conet.galileo.SUTATest.main(SUTATest.java:27)
    I checked everything on the server, the user has all rights he needs butit doesn't
    work. In the eventlog of the server I can see that the login wassuccessful.
    The attachment contains some log files and my program with the dll.
    Maybe someone can help me?
    Thanks
    Michael

  • AutomationException: Class not registered

    CoreAPI is defined in "My Computer\HKEY_CLASSES_ROOT"
    "My Computer\HKEY_CLASSES_ROOT\CLSID" also has a valid value.
    Any ideas why the following exception is raised? Thanks
    AutomationException: 0x80040154 - Class not registered
    at com.bea.jcom.bm.b(bm.java)
    at com.bea.jcom.Rpc.a(Rpc.java)
    at com.bea.jcom.bf.a(bf.java)
    at com.bea.jcom.Dispatch.createDispatch(Dispatch.java)
    at com.bea.jcom.Dispatch.<init>(Dispatch.java)
    at test.coreapi.ICoreAPIProxy.<init>(ICoreAPIProxy.java:34)
    at test.coreapi.CoreAPI.<init>(CoreAPI.java:110)
    at test.coreapi.CoreAPI.<init>(CoreAPI.java:82)
    at test.coreapi.CoreApiTest.main(CoreApiTest.java:25)

    Damon is right,
    Do setdllhost and configure this DLL' default authentication to CONNECT and for
    this class, select run as Interactive User in identity pane. Also Make sure..
    Enable DCOM on this computer is setup.
    Thanks
    Sathish
    "Damon Hon" <[email protected]> wrote:
    hello,
    Is your class hosted inside a dll? This exception is thrown because
    only
    executables
    can be accessed via DCOM. You must first configure a surrogate executable
    that
    will be used to access the DLL. You can do this with the setdllhost
    tool
    that comes with JCOM.
    setdllhost c:\mydirectoryto\mydll.DLL "My Class"
    damon
    "test" <[email protected]> wrote in message
    news:3c3dd1ff$[email protected]..
    CoreAPI is defined in "My Computer\HKEY_CLASSES_ROOT"
    "My Computer\HKEY_CLASSES_ROOT\CLSID" also has a valid value.
    Any ideas why the following exception is raised? Thanks
    AutomationException: 0x80040154 - Class not registered
    at com.bea.jcom.bm.b(bm.java)
    at com.bea.jcom.Rpc.a(Rpc.java)
    at com.bea.jcom.bf.a(bf.java)
    at com.bea.jcom.Dispatch.createDispatch(Dispatch.java)
    at com.bea.jcom.Dispatch.<init>(Dispatch.java)
    at test.coreapi.ICoreAPIProxy.<init>(ICoreAPIProxy.java:34)
    at test.coreapi.CoreAPI.<init>(CoreAPI.java:110)
    at test.coreapi.CoreAPI.<init>(CoreAPI.java:82)
    at test.coreapi.CoreApiTest.main(CoreApiTest.java:25)

  • Error:com.mslv.oms.automation.AutomationException: Incorrect Task Mnemonic

    The following error message is logged to the OSM server log during executing the OSM orders.
    com.mslv.oms.automation.AutomationException: Incorrect Task Mnemonic.
    This issue occurs in case of building with "BUILD_DEPLOY_MODE=optimized", sending after deploying the cartridge, and then executing the task first time.
    I have the below questions.
    1. What causes this error?
    2. How can we avoid this error?
    Can anyone has any idea as why and what causes this error.
    Error Message:
    See the following error:
    ####<2012/06/19 11時00分59秒 JST> <Info> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E20E817DB114FECCD4A> <> <1340071259860> <BEA-000000> <new-provi.copyViewStructureWorkInfoTABAuto: copyViewStructureWorkInfoTAB XSLT completed.>
    ####<2012/06/19 11時01分00秒 JST> <Info> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E25E817DB114FECCD4A> <> <1340071260546> <BEA-000000> <new-provi.copyViewStructureWorkDataOtherTABAuto: copyViewStructureWorkDataOtherTAB XSLT from order[54], Execution mode[do]>
    ####<2012/06/19 11時01分00秒 JST> <Info> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E25E817DB114FECCD4A> <> <1340071260552> <BEA-000000> <new-provi.copyViewStructureWorkDataOtherTABAuto: copyViewStructureWorkDataOtherTAB XSLT do nothing while not in amend>
    ####<2012/06/19 11時01分00秒 JST> <Info> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E25E817DB114FECCD4A> <> <1340071260553> <BEA-000000> <new-provi.copyViewStructureWorkDataOtherTABAuto: copyViewStructureWorkDataOtherTAB XSLT completed.>
    ####<2012/06/19 11時01分01秒 JST> <Info> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E2AE817DB114FECCD4A> <> <1340071261256> <BEA-000000> <new-provi.copyDesignStructureAuto: copyDesignStructure XSLT from order[54], Execution mode[do]>
    ####<2012/06/19 11時01分01秒 JST> <Info> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E2AE817DB114FECCD4A> <> <1340071261263> <BEA-000000> <new-provi.copyDesignStructureAuto: copyDesignStructure XSLT do nothing while not in amend.>
    ####<2012/06/19 11時01分01秒 JST> <Info> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E2AE817DB114FECCD4A> <> <1340071261263> <BEA-000000> <new-provi.copyDesignStructureAuto: copyDesignStructure XSLT completed.>
    ####<2012/06/19 11時01分01秒 JST> <Info> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E31E817DB114FECCD4A> <> <1340071261809> <BEA-000000> <updateSelfOrderInfoi.updateSelfOrderInfoRequest: updateSelfOrderInfo SELF ORDER FLAG [    ], >
    ####<2012/06/19 11時01分01秒 JST> <Info> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E31E817DB114FECCD4A> <> <1340071261809> <BEA-000000> <updateSelfOrderInfoi.updateSelfOrderInfoRequest: updateSelfOrderInfo XSLT LAST SENTENCE >
    ####<2012/06/19 11時01分02秒 JST> <Error> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E34E817DB114FECCD4A> <> <1340071262103> <BEA-000000> <plugin.InnerEarExternalReceiverDispatcher: Incorrect Task Mnemonic
    com.mslv.oms.automation.AutomationException: Incorrect Task Mnemonic
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.getClusterRequestContext(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
    at com.mslv.oms.security.base.ControllerBean.processExternalListenerAutomationMessage(Unknown Source)
    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl.processExternalListenerAutomationMessage(OMSController_h9cupp_EOImpl.java:2171)
    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:222)
    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl_1031_WLStub.processExternalListenerAutomationMessage(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.AbstractExternalReceiverDispatcher.processMessage(Unknown Source)
    at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage(Unknown Source)
    at com.mslv.oms.automation.plugin.AutomationDispatcherImpl.a(Unknown Source)
    at com.mslv.oms.automation.plugin.l.a(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
    at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
    at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
    at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
    at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    >
    ####<2012/06/19 11時01分02秒 JST> <Error> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E34E817DB114FECCD4A> <> <1340071262105> <BEA-000000> <plugin.InnerEarExternalReceiverDispatcher: Incorrect Task Mnemonic
    com.mslv.oms.automation.AutomationException: Incorrect Task Mnemonic
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.getClusterRequestContext(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
    at com.mslv.oms.security.base.ControllerBean.processExternalListenerAutomationMessage(Unknown Source)
    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl.processExternalListenerAutomationMessage(OMSController_h9cupp_EOImpl.java:2171)
    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:222)
    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl_1031_WLStub.processExternalListenerAutomationMessage(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.AbstractExternalReceiverDispatcher.processMessage(Unknown Source)
    at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage(Unknown Source)
    at com.mslv.oms.automation.plugin.AutomationDispatcherImpl.a(Unknown Source)
    at com.mslv.oms.automation.plugin.l.a(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
    at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
    at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
    at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
    at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    >
    ####<2012/06/19 11時01分02秒 JST> <Info> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E34E817DB114FECCD4A> <> <1340071262110> <BEA-000000> <updateSelfOrderInfo.updateSelfOrderInfoResponse: updateSelfOrderInfo Response XSLT from order[54], taskMnemonic[updateSelfOrderInfo]>
    ####<2012/06/19 11時01分02秒 JST> <Info> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E34E817DB114FECCD4A> <> <1340071262116> <BEA-000000> <updateSelfOrderInfo.updateSelfOrderInfoResponse: updateSelfOrderInfoResponse XSLT SELF_ORDER_FLAG NOT ONE SUCCESS IN>
    ####<2012/06/19 11時01分02秒 JST> <Info> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E34E817DB114FECCD4A> <> <1340071262117> <BEA-000000> <updateSelfOrderInfo.updateSelfOrderInfoResponse: updateSelfOrderInfoResponse Success.>
    ####<2012/06/19 11時01分02秒 JST> <Info> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E39E817DB114FECCD4A> <> <1340071262673> <BEA-000000> <updateExternalAmendDataImmediate.updateExternalAmendDataImmediateRequest: updateExternalAmendDataImmediateRequest XSLT from order[54], executionMode[do]>
    ####<2012/06/19 11時01分04秒 JST> <Error> <oms> <apsrv01> <AdminServerOSM5> <ExecuteThread: '13' for queue: 'oms.automation'> <oms-automation> <BEA1-6E49E817DB114FECCD4A> <> <1340071264643> <BEA-000000> <plugin.InnerEarExternalReceiverDispatcher: Incorrect Task Mnemonic
    com.mslv.oms.automation.AutomationException: Incorrect Task Mnemonic
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.getClusterRequestContext(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
    at com.mslv.oms.security.base.ControllerBean.processExternalListenerAutomationMessage(Unknown Source)
    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl.processExternalListenerAutomationMessage(OMSController_h9cupp_EOImpl.java:2171)
    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:222)
    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl_1031_WLStub.processExternalListenerAutomationMessage(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.AbstractExternalReceiverDispatcher.processMessage(Unknown Source)
    at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage(Unknown Source)
    at com.mslv.oms.automation.plugin.AutomationDispatcherImpl.a(Unknown Source)
    at com.mslv.oms.automation.plugin.l.a(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
    at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
    at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
    at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
    at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    >
    Thanks,
    Srikanth.
    Edited by: user10139614 on Aug 23, 2012 9:00 AM
    Edited by: user10139614 on Aug 27, 2012 4:51 AM

    Hi any solution on this.
    We are using O2A 7.0.3 cartridges and design studio 7.2 and getting below error for order which are created on 'SIFallout'.
    But I think it is nothing related to optimized build and deploy because other cartridges are working fine.
    Below is the error that I can see when OSM received fallout notification from AIA.Order is created on SIfallout cartridge but failed in task 'GetFulfillment Order Task'.
    'oms.automation'> <Creating automation plugin [class oracle.communications.ordermanagement.automation.plugin.XQuerySender] jndi[GetFulfillmentOrderTask.GetFulfillmentOrder] built using SDK version [7.0.3.675]>
    <11-Sep-2012 10:23:09,326 GMT+03:00 AM> <ERROR> <plugin.InnerEarExternalReceiverDispatcher> <ExecuteThread: '13' for queue: 'oms.automation'> <Incorrect Task Mnemonic>
    com.mslv.oms.automation.AutomationException: Incorrect Task Mnemonic
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.getClusterRequestContext(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
    at com.mslv.oms.security.base.ControllerBean.processExternalListenerAutomationMessage(Unknown Source)
    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl.processExternalListenerAutomationMessage(OMSController_h9cupp_EOImpl.java:1673)
    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:222)
    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl_1031_WLStub.processExternalListenerAutomationMessage(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.AbstractExternalReceiverDispatcher.processMessage(Unknown Source)
    at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage(Unknown Source)
    at com.mslv.oms.automation.plugin.AutomationDispatcherImpl.a(Unknown Source)
    at com.mslv.oms.automation.plugin.l.a(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
    at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
    at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
    at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
    at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    <Sep 11, 2012 10:23:09 AM GMT+03:00> <Error> <oms> <BEA-000000> <plugin.InnerEarExternalReceiverDispatcher: Incorrect Task Mnemonic
    com.mslv.oms.automation.AutomationException: Incorrect Task Mnemonic
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.getClusterRequestContext(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
    Truncated. see log file for complete stacktrace
    >
    <11-Sep-2012 10:23:09,329 GMT+03:00 AM> <INFO> <GetFulfillmentOrderTask.GetFulfillmentOrderResponse> <ExecuteThread: '13' for queue: 'oms.automation'> <Creating automation plugin [class oracle.communications.ordermanagement.automation.plugin.XQueryReceiver] jndi[GetFulfillmentOrderTask.GetFulfillmentOrderResponse] built using SDK version [7.0.3.675]>
    Regards,
    UJ

  • AutomationException: 0x80040154

    My application is running on <b>weblogic 8.1 sp4 </b> which is installed on SUN SOLARIS server. The stateless session bean is deployed on the weblogic server. The session bean is trying to access a COM dll which is installed on the <b>Windows XP SP2</b> machine using JCOM bridge. It throws an error AutomationException: <b>0x80040154</b> while accesing the COM component.
    It works fine in the <b>WINDOWS XP SP1</b> machine where the weblogic is also installed in the <b>windows xp sp1</b> machine.
    Do you have any idea why this exception is thrown?
    Please help.

    Accessing COM DLLs from Java
    J-Integra allows you to access COM DLLs residing on a local or remote machine.
    You can access DLLs from Java clients if you do the following:
    1. Register the DLL using regsvr32.
    c:\> regsvr32 c:\..\myDll.dll
    2. Run setdllhost on the machine where the DLL resides.
    c:\> setdllhost c:\..\myDll.dll "My DLL Surrogate"
    Note: You do not have to run setdllhost if running in Native mode. In this case,
    the DLL runs in-process and does not need a surrogate.
    If you still get a ClassNotRegistered exception:
    1. Some objects in the DLL may be imported from other DLLs. You must run setdllhost
    on every DLL that is used. For example, if first.dll uses objects contained in
    second.dll and third.dll, then you would set up the surrogate like this:
    c:\> setdllhost first.dll second.dll third.dll "My DLL Surrogate"
    2. Java proxies may need to be regenerated.
    3. If running in Native Mode (DLL resides on the same machine as the Java client),
    try using the JINTEGRA_COINIT_VALUE=2 property
    "Prasanna" <[email protected]> wrote:
    >
    >
    >
    Hi,
    I am trying to access the COM component using the generated classes,from
    a session
    Bean. I tried calling the bean and i am getting the following error.
    i have attached the error1.txt file which has the error messsage
    dump.
    1) I have actually registered the dll in the registry.
    Help me to solve this problem.
    2) I also want to know what i need to do in the
    weblogic-- server -- services -- JCOM menu available.
    Regards,
    Prasanna

  • COM Events not working

    I have a servlet that is accessing a COM object. It issues commands to the
    COM object, and some time later, events are supposed to fire into the Java
    class to update some info. Well, the updates are not happening. Any
    thoughts?
    Some info:
    class Connection is the implementation (proxy) of the COM object.
    class CLServer is my code that implements _IConnectionEvents (the COM-event
    interface). It also calls methods on Connection, especially
    Connection.add_IConnectionEventsListener(this)
    As I said, this is all running under weblogic (running as a service) as a
    servlet. The calls out to COM succeed, but the asynchronous calls back in
    don't.
    Thanks,
    Jeff

    Does anybody have COM-to-Java event callbacks working???
    Kinda frustrated with feedback (lack thereof) from this group.
    Jeff
    "Jeff Muller" <[email protected]> wrote in message
    news:3d10affd$[email protected]..
    Actually, when I try and register my event listener, I get an
    AutomationException (0x80040202). Anybody know what that's about?
    Jeff
    "Jeff Muller" <[email protected]> wrote in message
    news:[email protected]..
    By the way, I found the problem.
    The COM object I was using was actually posting Windows messages to
    itself
    to fire the events. Of course, the JVM isn't running a message loop, sothey
    never got handled, therefore, no events got fired. I had to write awrapper
    COM Server (exe) with a message loop that instantiated the object that I
    really wanted. Of course that led to other problems that I post about in
    another message above! :-)
    Jeff
    "Jeff Muller" <[email protected]> wrote in message
    news:3cf678e6$[email protected]..
    I have a servlet that is accessing a COM object. It issues commands to
    the
    COM object, and some time later, events are supposed to fire into theJava
    class to update some info. Well, the updates are not happening. Any
    thoughts?
    Some info:
    class Connection is the implementation (proxy) of the COM object.
    class CLServer is my code that implements _IConnectionEvents (theCOM-event
    interface). It also calls methods on Connection, especially
    Connection.add_IConnectionEventsListener(this)
    As I said, this is all running under weblogic (running as a service)
    as
    a
    servlet. The calls out to COM succeed, but the asynchronous calls backin
    don't.
    Thanks,
    Jeff

  • Error while I try to cancel an order

    Hi,
    When i try to cancel an order I got the next errror. The problem appear only in some computers, in others I can cancel the order succesfully.
    If someone can help me, thanks in advance.
    <8/05/2012 02:59:57 PM COT> <Error> <oms> <BEA-000000> <automation.AutomationDispatcher: Failed to execute plugin[/automation/plugin/external/NcaOsmOrquestacionSI/1.0.
    /TAAlmacenarXmlCreacionOrdenActivadorActivarSI.automatedtask.ncaosmorquestacionsi.obtenerCancelacionCompletada] due to com.mslv.oms.handler.InternalErrorException: ORA
    06502: PL/SQL: error numÚrico o de valor
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1286
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1016
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1085
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 9569
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 9622
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 5325
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 4294
    ORA-06512: en "ORDERMGMT.OM_HANDLER_PKG", lÝnea 486
    ORA-06512: en lÝnea 1
    : ORA-06502: PL/SQL: error numÚrico o de valor
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1286
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1016
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1085
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 9569
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 9622
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 5325
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 4294
    ORA-06512: en "ORDERMGMT.OM_HANDLER_PKG", lÝnea 486
    ORA-06512: en lÝnea 1
    com.mslv.oms.automation.AutomationException: com.mslv.oms.handler.InternalErrorException: ORA-06502: PL/SQL: error numÚrico o de valor
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1286
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1016
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1085
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 9569
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 9622
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 5325
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 4294
    ORA-06512: en "ORDERMGMT.OM_HANDLER_PKG", lÝnea 486
    ORA-06512: en lÝnea 1
    : ORA-06502: PL/SQL: error numÚrico o de valor
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1286
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1016
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1085
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 9569
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 9622
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 5325
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 4294
    ORA-06512: en "ORDERMGMT.OM_HANDLER_PKG", lÝnea 486
    ORA-06512: en lÝnea 1
    at com.mslv.oms.automation.TaskContextBean.isContextCompleted(Unknown Source)
    at com.mslv.oms.automation.OrderContextImpl._finalizeCheck(Unknown Source)
    at com.mslv.oms.automation.plugin.AbstractAutomator._runAutomator(Unknown Source)
    at com.mslv.oms.automation.AutomationDispatcher.a(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.AbstractExternalReceiverDispatcher.processMessage(Unknown Source)
    Truncated. see log file for complete stacktrace
    com.mslv.oms.handler.InternalErrorException: ORA-06502: PL/SQL: error numÚrico o de valor
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1286
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1016
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1085
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 9569
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 9622
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 5325
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 4294
    ORA-06512: en "ORDERMGMT.OM_HANDLER_PKG", lÝnea 486
    ORA-06512: en lÝnea 1
    : ORA-06502: PL/SQL: error numÚrico o de valor
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1286
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1016
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1085
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 9569
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 9622
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 5325
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 4294
    ORA-06512: en "ORDERMGMT.OM_HANDLER_PKG", lÝnea 486
    ORA-06512: en lÝnea 1
    at com.mslv.oms.handler.a.processRequest(Unknown Source)
    at com.mslv.oms.jsp.processor.RequestProcessorSupport.a(Unknown Source)
    at com.mslv.oms.jsp.processor.RequestProcessorSupport.processRequest(Unknown Source)
    at com.mslv.oms.jsp.processor.RequestProcessorSupport.processRequest(Unknown Source)
    at com.mslv.oms.security.base.ControllerBean.processRequest(Unknown Source)
    Truncated. see log file for complete stacktrace
    java.sql.SQLException: ORA-06502: PL/SQL: error numÚrico o de valor
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1286
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1016
    ORA-06512: en "ORDERMGMT.OM_ROLLBACK_PKG", lÝnea 1085
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 9569
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 9622
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 5325
    ORA-06512: en "ORDERMGMT.OM_WF_API", lÝnea 4294
    ORA-06512: en "ORDERMGMT.OM_HANDLER_PKG", lÝnea 486
    ORA-06512: en lÝnea 1
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    Truncated. see log file for complete stacktrace

    Sara, I still can't get through to Chat. Can you have somebody call me or would you chat with them and tell them to refund the order that you had cancelled on 9/1/14, #0282954524.
    This is a waste of my time but I don't like paying for something and not getting the service or product.
    I cancelled this order within minutes there should never had been a charge.
    Please follow this through or pass it along to your supervisor or higher. I want this taken care of today please.
    Thank you,
    Diane

  • Getting error while updating data element using Xquery Automator

    Hi,
    I am getting following error while i am trying to update a data element in my task.
    <Nov 28, 2011 5:02:40 PM IST> <Error> <oms> <BEA-000000> <automation.AutomationDispatcher: Failed to execute
    on/plugin/external/ACOI_TMIP_POC/1.0.0/CLARIFY_Task.automatedtask.acoi_tmip_poc.ResponseAutomation] due to E
    hile running Script resource [file:///D:/AshishWorkspace_WithOrchestration/ACOI_TMIP_POC/resources/CLARIFY_R
    exception location: ; SystemID: module with no systemId*; Line#: 15; Column#: -1*
    com.mslv.oms.automation.AutomationException: Exception thrown while running Script resource [file:///D:/Ashi
    rchestration/ACOI_TMIP_POC/resources/CLARIFY_Response.xquery]; exception location: ; SystemID: *module with
    e#: 15; Column#: -1
    the Xquery that i am using is pretty simple:
    declare namespace automator = "java:oracle.communications.ordermanagement.automation.plugin.ScriptSenderContextInvocation";
    declare namespace context = "java:com.mslv.oms.automation.TaskContext";
    declare namespace log = "java:org.apache.commons.logging.Log";
    declare namespace oms="urn:com:metasolv:oms:xmlapi:1";
    declare namespace prop = "OSM_POC";
    declare variable $xmlnsosm7POC := "";
    declare variable $log external;
    declare variable $automator external;
    declare variable $context external;
    let $CLFY_XML := //CLFY_XML
    let $Id_Number :=//Id_Number
    return
    automator:setUpdateOrder($automator,"true"),
    log:info($log,fn:concat('ID request number is: ', $Id_Number)),
    <ord:OrderDataUpdate xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:odu="http://www.oracle.com/OMS/OrderDataUpdate" targetNameSpace="http://www.oracle.com/OMS/OrderDataUpdate" xmlns:ord="urn:com:metasolv:oms:xmlapi:1">
    <ord:Add path="/CLFY_ID">{data($Id_Number)}</ord:Add>
    </ord:OrderDataUpdate>
    Can anyone please tell me the reason due to which this error is coming.
    Thanking in advance
    Ashish Garg

    Hello.
    Ok I need you to tell me a little bit more about your automator, did you config an Xquery Automator with Event Type: Internal?
    You should declare namespace automator = "java:oracle.communications.ordermanagement.automation.plugin.ScriptReceiverContextInvocation";
    instead of
    declare namespace automator = "java:oracle.communications.ordermanagement.automation.plugin.ScriptSenderContextInvocation";
    And let my ask you, what are you trying to do with the next lines:
    let $CLFY_XML := //CLFY_XML
    let $Id_Number :=//Id_Number
    Becouse I think you are trying to acces the data on the task, If that is the reason, you should better use something like:
    let $order := ..//oms:GetOrder.Response
    let $orderId := $order/oms:_root/oms:orderHeader/oms:orderId
    with the above lines you are accesing the data that has been added to the task and the just acces the node that you nedd, for example here Im accesig the node
    orderId under OrderHeader
    Another thing is that if you want to update node which already exists in the task data, then you have to use something like:
    <OrderDataUpdate xmlns="http://www.metasolv.com/OMS/OrderDataUpdate/2002/10/25">
    <Update path="/orderHeader/orderId">{$orderId}</Update>
    </OrderDataUpdate>
    But if you have to add a new path you should have something like this:
    <OrderDataUpdate xmlns="http://www.metasolv.com/OMS/OrderDataUpdate/2002/10/25">
         <Add path="/OrderHeader">
              <Transaction>
                   <Name>{$orderId/text())}</Name>
              <ComponentKey>{$controlData/text()}</ComponentKey>
              </Transaction>
         </Add>
    </OrderDataUpdate>
    For the above transaction you should have in the dictionary the structure, OrderHeader in the root, and inside this the structure another node with the respective names
    <Transaction>
                   <Name>{$orderId/text())}</Name>
              <ComponentKey>{$controlData/text()}</ComponentKey>
              </Transaction>
    Another thing is that you should have all this structures in the Task Data of this Task.
    Hope this help
    Lucas.

  • OSM 7.0.3. getOsmCredentialPassword issue after order submission

    Hi,
    we deployed the the 7.0.3. cartridges for the typical topology following the 7.0.3. cartridge deployment guide for AIA on osm 7.0.3. and weblogic 10.3.1.0 / db 11g. We set up SOM and COM in one single instance and deploy AIA emulators. All ant scrips and deployment are successful.
    After submitting a test order ProcessSalesOrderFulfillmentEBM via SOAP UI against the machine, we are getting the error message below: '*Fail to find password credential with specified map and key name*'
    We can trace back this error to the xquery file OrderStateChangeHandlerXQuery, line 33 method
    **let $secureToken := context:getOsmCredentialPassword($context, $CF_OPERATOR)**
    In the javadoc for 7.0.3., we can find the method in Ordernotificationcontext, it is inherited from the interface AutomationContext. This method seems to be new in 7.0.3. since we cannot find it in the javadoc for 7.0.2..
    The problem might be connected to the credential store in weblogic, which one sets up via ant scripts with setupJPSPolicy+ and setupPIPUsers+ following the cartridge AIA deployment guide for 7.0.3.
    Does someone face a similar problem and have advice how to solve the issue ?
    Regards
    benedikt
    Error message:
    <29-Jun-2012 12:30:35,366 CEST PM> <INFO> <0.0/om:on-CommunicationsSalesOrder-CommunicationsSalesOrder-state_change> <ExecuteThread: '13' for queue: 'oms.automation'> <Creating automation plugin [class oracle.communications.ordermanagement.automation.plugin.XQueryReceiver] jndi[automation/plugin/internal/orderNotification/CommunicationsSalesOrderFulfillmentPIP/1.0.0/om:on-CommunicationsSalesOrder-CommunicationsSalesOrder-state_change] built using SDK version [7.0.3.675]>
    Error on line 42 of module with no systemId:
    Exception in extension function com.mslv.oms.automation.AutomationException: Fail to find
    password credential with specified map and key name.
    <29-Jun-2012 12:30:36,773 CEST PM> <ERROR> <rule.XQueryHelper> <ExecuteThread: '13' for queue: 'oms.automation'> <Exception in extension function com.mslv.oms.automation.AutomationException: Fail to find password credential with specified map and key name.. . File[*module with no systemId* (actual location resolved to [*module with no systemId*])] Line[42] Column[-1]
    >
    ; SystemID: module with no systemId; Line#: 42; Column#: -1
    net.sf.saxon.trans.XPathException: Exception in extension function com.mslv.oms.automation.AutomationException: Fail to find password credential with specified map and key name.
    at net.sf.saxon.functions.ExtensionFunctionCall.call(ExtensionFunctionCall.java:368)
    at net.sf.saxon.functions.ExtensionFunctionCall.iterate(ExtensionFunctionCall.java:224)
    at net.sf.saxon.expr.Expression.evaluateItem(Expression.java:352)
    at net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:296)
    at net.sf.saxon.expr.ExpressionTool.lazyEvaluate(ExpressionTool.java:437)
    at net.sf.saxon.functions.ExtensionFunctionCall.iterate(ExtensionFunctionCall.java:221)
    at net.sf.saxon.expr.Expression.evaluateItem(Expression.java:352)
    at net.sf.saxon.expr.Expression.process(Expression.java:461)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:558)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
    at net.sf.saxon.instruct.ElementCreator.constructElement(ElementCreator.java:376)
    at net.sf.saxon.instruct.ElementCreator.evaluateItem(ElementCreator.java:322)
    at net.sf.saxon.instruct.Instruction.iterate(Instruction.java:308)
    at net.sf.saxon.functions.Existence.effectiveBooleanValue(Existence.java:105)
    at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:679)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
    at net.sf.saxon.instruct.ElementCreator.constructElement(ElementCreator.java:376)
    at net.sf.saxon.instruct.ElementCreator.evaluateItem(ElementCreator.java:322)
    at net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:296)
    at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:339)
    at net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:298)
    at net.sf.saxon.query.XQueryExpression.iterator(XQueryExpression.java:307)
    at net.sf.saxon.query.XQueryExpression.evaluate(XQueryExpression.java:217)
    at oracle.communications.ordermanagement.rule.b.a(Unknown Source)
    at oracle.communications.ordermanagement.rule.b.a(Unknown Source)
    at oracle.communications.ordermanagement.rule.m.a(Unknown Source)
    at oracle.communications.ordermanagement.rule.XQueryHelper.transform(Unknown Source)
    at oracle.communications.ordermanagement.rule.XQueryHelper.transform(Unknown Source)
    at oracle.communications.ordermanagement.rule.XQueryHelper.transform(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.d.transform(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.transform(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.runCommonFunctionality(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.ScriptRunnerImpl.runScript(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.AbstractScriptAutomator.run(Unknown Source)
    at com.mslv.oms.automation.plugin.AbstractAutomator._runAutomator(Unknown Source)
    at com.mslv.oms.automation.AutomationDispatcher.a(Unknown Source)
    at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.processMessage(Unknown Source)
    at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.e.a(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.impl.c.a(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.impl.c.a(Unknown Source)
    at oracle.communications.ordermanagement.cluster.impl.a.a(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
    at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
    at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
    at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
    at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    Caused by: com.mslv.oms.automation.AutomationException: Fail to find password credential with specified map and key name.
    at com.mslv.oms.automation.OrderContextImpl.getOsmCredentialPassword(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:597)
    at net.sf.saxon.functions.ExtensionFunctionCall.invokeMethod(ExtensionFunctionCall.java:690)
    at net.sf.saxon.functions.ExtensionFunctionCall.call(ExtensionFunctionCall.java:343)
    ... 53 more
    Caused by: com.mslv.oms.security.credstore.CredStoreException: Failed to get password credential with specific map and key names.
    at com.mslv.oms.security.credstore.b.a(Unknown Source)
    at com.mslv.oms.security.credstore.b.a(Unknown Source)
    ... 60 more
    com.mslv.oms.automation.AutomationException: Fail to find password credential with specified map and key name.
    at com.mslv.oms.automation.OrderContextImpl.getOsmCredentialPassword(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:597)
    at net.sf.saxon.functions.ExtensionFunctionCall.invokeMethod(ExtensionFunctionCall.java:690)
    at net.sf.saxon.functions.ExtensionFunctionCall.call(ExtensionFunctionCall.java:343)
    at net.sf.saxon.functions.ExtensionFunctionCall.iterate(ExtensionFunctionCall.java:224)
    at net.sf.saxon.expr.Expression.evaluateItem(Expression.java:352)
    at net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:296)
    at net.sf.saxon.expr.ExpressionTool.lazyEvaluate(ExpressionTool.java:437)
    at net.sf.saxon.functions.ExtensionFunctionCall.iterate(ExtensionFunctionCall.java:221)
    at net.sf.saxon.expr.Expression.evaluateItem(Expression.java:352)
    at net.sf.saxon.expr.Expression.process(Expression.java:461)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:558)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
    at net.sf.saxon.instruct.ElementCreator.constructElement(ElementCreator.java:376)
    at net.sf.saxon.instruct.ElementCreator.evaluateItem(ElementCreator.java:322)
    at net.sf.saxon.instruct.Instruction.iterate(Instruction.java:308)
    at net.sf.saxon.functions.Existence.effectiveBooleanValue(Existence.java:105)
    at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:679)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:93)
    at net.sf.saxon.instruct.ElementCreator.constructElement(ElementCreator.java:376)
    at net.sf.saxon.instruct.ElementCreator.evaluateItem(ElementCreator.java:322)
    at net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:296)
    at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:339)
    at net.sf.saxon.expr.LetExpression.iterate(LetExpression.java:298)
    at net.sf.saxon.query.XQueryExpression.iterator(XQueryExpression.java:307)
    at net.sf.saxon.query.XQueryExpression.evaluate(XQueryExpression.java:217)
    at oracle.communications.ordermanagement.rule.b.a(Unknown Source)
    at oracle.communications.ordermanagement.rule.b.a(Unknown Source)
    at oracle.communications.ordermanagement.rule.m.a(Unknown Source)
    at oracle.communications.ordermanagement.rule.XQueryHelper.transform(Unknown Source)
    at oracle.communications.ordermanagement.rule.XQueryHelper.transform(Unknown Source)
    at oracle.communications.ordermanagement.rule.XQueryHelper.transform(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.d.transform(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.transform(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.runCommonFunctionality(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.ScriptRunnerImpl.runScript(Unknown Source)
    at oracle.communications.ordermanagement.automation.plugin.AbstractScriptAutomator.run(Unknown Source)
    at com.mslv.oms.automation.plugin.AbstractAutomator._runAutomator(Unknown Source)
    at com.mslv.oms.automation.AutomationDispatcher.a(Unknown Source)
    at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.processMessage(Unknown Source)
    at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.e.a(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.impl.c.a(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.impl.c.a(Unknown Source)
    at oracle.communications.ordermanagement.cluster.impl.a.a(Unknown Source)
    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
    at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
    at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
    at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
    at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    Caused by: com.mslv.oms.security.credstore.CredStoreException: Failed to get password credential with specific map and key names.
    at com.mslv.oms.security.credstore.b.a(Unknown Source)
    at com.mslv.oms.security.credstore.b.a(Unknown Source)
    ... 60 more
    <Jun 29, 2012 12:30:36 PM CEST> <Error> <oms> <BEA-000000> <rule.XQueryHelper: Exception in extension function com.mslv.oms.automation.AutomationException: Fail to find password credential with specified map and key name.. . File[*module with no systemId* (actual location resolved to [*module with no systemId*])] Line[42] Column[-1]
    net.sf.saxon.trans.XPathException: Exception in extension function com.mslv.oms.automation.AutomationException: Fail to find password credential with specified map and key name.
    at net.sf.saxon.functions.ExtensionFunctionCall.call(ExtensionFunctionCall.java:368)
    at net.sf.saxon.functions.ExtensionFunctionCall.iterate(ExtensionFunctionCall.java:224)
    at net.sf.saxon.expr.Expression.evaluateItem(Expression.java:352)
    at net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:296)
    at net.sf.saxon.expr.ExpressionTool.lazyEvaluate(ExpressionTool.java:437)
    Truncated. see log file for complete stacktrace
    com.mslv.oms.automation.AutomationException: Fail to find password credential with specified map and key name.
    at com.mslv.oms.automation.OrderContextImpl.getOsmCredentialPassword(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:597)
    Truncated. see log file for complete stacktrace
    com.mslv.oms.security.credstore.CredStoreException: Failed to get password credential with specific map and key names.
    at com.mslv.oms.security.credstore.b.a(Unknown Source)
    at com.mslv.oms.security.credstore.b.a(Unknown Source)
    at com.mslv.oms.automation.OrderContextImpl.getOsmCredentialPassword(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    Truncated. see log file for complete stacktrace
    >

    the upgarde guide (we upgrade from 7.0.0. to 7.0.3.) does not mention one has to delete the osm users in webloogic before running seupjpspolici, setuppipusers and config.... When one does that, they get added to the credential store

  • How to nullify the NullPointerException in my code. plz help  Very Urgent!!

    hi,
    I registered the crystl32.ocx properly and the previous errors were gone.
    thank you for your suggestions.
    and right now I have an error as shown below.
    Exception in thread "main" java.lang.NullPointerException
    at crystal.CrystalReport.aboutBox(CrystalReport.java:4466)
    at javaapplication10.CrystalClient.main(CrystalClient.java:25)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 1 second)
    how to overcome this.

    Thanks a lot mike.
    I have attached some part of the source code here.
    package crystal;
    import com.linar.jintegra.*;
    * COM Class 'CrystalReport'. Generated 11/10/2006 4:16:13 PM
    * from 'C:\WINDOWS\system32\Crystl32.ocx'<P>
    * Generated using com2java Version 2.6 Copyright (c) Intrinsyc Software International, Inc.
    * See  <A HREF="http://j-integra.intrinsyc.com/">http://j-integra.intrinsyc.com/</A><P>
    * Description '<B>Crystal Report Control</B>'
    * Generator Options:
    *   AwtForOcxs = True
    *   PromptForTypeLibraries = False
    *   RetryOnReject = False
    *   IDispatchOnly = False
    *   GenBeanInfo = False
    *   LowerCaseMemberNames = True
    *   TreatInStarAsIn = False
    *   ArraysAsObjects = False
    *   OmitRestrictedMethods = False
    *   ClashPrefix = zz_
    *   ImplementConflictingInterfaces = False
    *   DontRenameSameMethods = False
    *   RenameConflictingInterfaceMethods = False
    *   ReuseMethods = False
    * Command Line Only Options:
    *   MakeClsidsPublic = False
    *   DontOverwrite = False
    public class CrystalReport extends com.linar.jintegra.Ocx implements com.linar.jintegra.RemoteObjRef, crystal.CrystalCtrl {
      private static final String CLSID = "00025601-0000-0000-c000-000000000046";
      protected String getJintegraVersion() { return "2.6"; }
      // Interface delegates
      private crystal.CrystalCtrlProxy d_CrystalCtrlProxy = null;
      /** Access this COM class's crystal.CrystalCtrl interface */
      public crystal.CrystalCtrl getAsCrystalCtrl() { return d_CrystalCtrlProxy; }
      /** Compare this object with another */
      public boolean equals(Object o) {
         if(java.beans.Beans.isDesignTime()) return super.equals(o);
         else return getJintegraDispatch() == null ? false : getJintegraDispatch().equals(o);
      /** J-Integra for COM internal method */
      public com.linar.jintegra.Dispatch getJintegraDispatch() {  return d_CrystalCtrlProxy; }
       * addCrystalReportEventsListener.  Listen to events generated by this class.
       * @param    theListener An object that implements the crystal.CrystalReportEvents interface.
       * @exception java.io.IOException If there are communications problems.
      public void addCrystalReportEventsListener(crystal.CrystalReportEvents theListener) throws java.io.IOException {
        if(d_CrystalCtrlProxy == null) {
          queuedListeners.addElement(new Object[] { "00025603-0000-0000-c000-000000000046", theListener });
        } else {
          d_CrystalCtrlProxy.addListener("00025603-0000-0000-c000-000000000046", theListener, this);
       * removeCrystalReportEventsListener.  Stop listening to events generated by this class.
       * @param    theListener An object that implements the crystal.CrystalReportEvents interface.
       * @exception java.io.IOException If there are communications problems.
      public void removeCrystalReportEventsListener(crystal.CrystalReportEvents theListener) throws java.io.IOException {
        d_CrystalCtrlProxy.removeListener("00025603-0000-0000-c000-000000000046", theListener);
       * Constructs a CrystalReport.
      public CrystalReport() {
        super(CLSID);
        try {
          if (super.getObjRef() == null) {
            return;
          d_CrystalCtrlProxy = new crystal.CrystalCtrlProxy(super.getObjRef());
        } catch(java.io.IOException ioe) {
          throw new RuntimeException("Unexpected: " + ioe);
       * Constructs a CrystalReport.
      public CrystalReport(Object o) {
        super(CLSID, o);
        try {
          if (super.getObjRef() == null) {
            return;
          d_CrystalCtrlProxy = new crystal.CrystalCtrlProxy(super.getObjRef());
        } catch(java.io.IOException ioe) {
          throw new RuntimeException("Unexpected: " + ioe);
      private java.util.Vector queuedListeners = new java.util.Vector();
      public void addNotify() {
        super.addNotify();
        try {
          if (super.getObjRef() == null) {
            return;
          if (d_CrystalCtrlProxy != null) {
            return;
          d_CrystalCtrlProxy = new crystal.CrystalCtrlProxy(super.getObjRef());
          zz_doQueuedSets("d_CrystalCtrlProxy", d_CrystalCtrlProxy);
          for(java.util.Enumeration e = queuedListeners.elements(); e.hasMoreElements(); ) {
            Object[] l = (Object[])e.nextElement();
            d_CrystalCtrlProxy.addListener(l[0] + "", l[1], this);
          queuedListeners.setSize(0);
        } catch(java.io.IOException ioe) {
          throw new RuntimeException("Unexpected: " + ioe);
       * Release a CrystalReport.
      public void release() {
        com.linar.jintegra.Cleaner.release(d_CrystalCtrlProxy);
       * getPropertyByName. Get the value of a property dynamically at run-time, based on its name
       * @return    The value of the property.
       * @param     name The name of the property to get.
       * @exception java.lang.NoSuchFieldException If the property does not exit.
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public Object getPropertyByName(String name) throws NoSuchFieldException, java.io.IOException, com.linar.jintegra.AutomationException {
        try {
          return d_CrystalCtrlProxy.getPropertyByName(name);
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
        } catch(NoSuchFieldException noSuchFieldException) {
          noSuchFieldException.fillInStackTrace();
          throw noSuchFieldException;
       * getPropertyByName. Get the value of a property dynamically at run-time, based on its name and a parameter
       * @return    The value of the property.
       * @param     name The name of the property to get.
       * @param     rhs A parameter used when getting the proxy.
       * @exception java.lang.NoSuchFieldException If the property does not exit.
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public Object getPropertyByName(String name, Object rhs) throws NoSuchFieldException, java.io.IOException, com.linar.jintegra.AutomationException {
        try {
          return d_CrystalCtrlProxy.getPropertyByName(name, rhs);
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
        } catch(NoSuchFieldException noSuchFieldException) {
          noSuchFieldException.fillInStackTrace();
          throw noSuchFieldException;
       * invokeMethodByName. Invoke a method dynamically at run-time
       * @return    The value returned by the method (null if none).
       * @param     name The name of the method to be invoked.
       * @param     parameters One element for each parameter. Use primitive type wrappers.
       *            to pass primitive types (eg Integer to pass an int).
       * @exception java.lang.NoSuchMethodException If the method does not exit.
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public Object invokeMethodByName(String name, Object[] parameters) throws NoSuchMethodException, java.io.IOException, com.linar.jintegra.AutomationException {
        return d_CrystalCtrlProxy.invokeMethodByName(name, parameters);
       * invokeMethodByName. Invoke a method dynamically at run-time
       * @return    The value returned by the method (null if none).
       * @param     name The name of the method to be invoked.
       * @exception java.lang.NoSuchMethodException If the method does not exit.
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public Object invokeMethodByName(String name) throws NoSuchMethodException, java.io.IOException, com.linar.jintegra.AutomationException {
        return d_CrystalCtrlProxy.invokeMethodByName(name, new Object[]{});
       * getReportFileName. The filename of the report to be printed
       * @return    The px
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public String getReportFileName  () throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          String[] retVal = new String[1];
          zz_get("ReportFileName", retVal);
          return retVal[0];
        try {
          return d_CrystalCtrlProxy.getReportFileName();
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * setReportFileName. The filename of the report to be printed
       * @param     px The px (in)
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public void setReportFileName  (
                  String px) throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          zz_queueSet("d_CrystalCtrlProxy", "setReportFileName", (String)px);
          return;
        try {
          d_CrystalCtrlProxy.setReportFileName(px);
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * getWindowLeft. The coordinate of the left side of the print window, relative to its parent window
       * @return    The px
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public short getWindowLeft  () throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          short[] retVal = new short[1];
          zz_get("WindowLeft", retVal);
          return retVal[0];
        try {
          return d_CrystalCtrlProxy.getWindowLeft();
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * setWindowLeft. The coordinate of the left side of the print window, relative to its parent window
       * @param     px The px (in)
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public void setWindowLeft  (
                  short px) throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          zz_queueSet("d_CrystalCtrlProxy", "setWindowLeft", (short)px);
          return;
        try {
          d_CrystalCtrlProxy.setWindowLeft(px);
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * getWindowTop. The coordinate of the top of the print window, relative to its parent window
       * @return    The px
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public short getWindowTop  () throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          short[] retVal = new short[1];
          zz_get("WindowTop", retVal);
          return retVal[0];
        try {
          return d_CrystalCtrlProxy.getWindowTop();
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * setWindowTop. The coordinate of the top of the print window, relative to its parent window
       * @param     px The px (in)
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public void setWindowTop  (
                  short px) throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          zz_queueSet("d_CrystalCtrlProxy", "setWindowTop", (short)px);
          return;
        try {
          d_CrystalCtrlProxy.setWindowTop(px);
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * getWindowWidth. The width of the print window
       * @return    The px
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public short getWindowWidth  () throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          short[] retVal = new short[1];
          zz_get("WindowWidth", retVal);
          return retVal[0];
        try {
          return d_CrystalCtrlProxy.getWindowWidth();
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * setWindowWidth. The width of the print window
       * @param     px The px (in)
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public void setWindowWidth  (
                  short px) throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          zz_queueSet("d_CrystalCtrlProxy", "setWindowWidth", (short)px);
          return;
        try {
          d_CrystalCtrlProxy.setWindowWidth(px);
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * getWindowHeight. The height of the print window
       * @return    The px
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public short getWindowHeight  () throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          short[] retVal = new short[1];
          zz_get("WindowHeight", retVal);
          return retVal[0];
        try {
          return d_CrystalCtrlProxy.getWindowHeight();
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * setWindowHeight. The height of the print window
       * @param     px The px (in)
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public void setWindowHeight  (
                  short px) throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          zz_queueSet("d_CrystalCtrlProxy", "setWindowHeight", (short)px);
          return;
        try {
          d_CrystalCtrlProxy.setWindowHeight(px);
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * getWindowTitle. The title of the print window
       * @return    The px
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public String getWindowTitle  () throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          String[] retVal = new String[1];
          zz_get("WindowTitle", retVal);
          return retVal[0];
        try {
          return d_CrystalCtrlProxy.getWindowTitle();
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * setWindowTitle. The title of the print window
       * @param     px The px (in)
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public void setWindowTitle  (
                  String px) throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          zz_queueSet("d_CrystalCtrlProxy", "setWindowTitle", (String)px);
          return;
        try {
          d_CrystalCtrlProxy.setWindowTitle(px);
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * isWindowControlBox. If set to TRUE, the print window will have a control box
       * @return    The px
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public boolean isWindowControlBox  () throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          boolean[] retVal = new boolean[1];
          zz_get("WindowControlBox", retVal);
          return retVal[0];
        try {
          return d_CrystalCtrlProxy.isWindowControlBox();
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * setWindowControlBox. If set to TRUE, the print window will have a control box
       * @param     px The px (in)
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public void setWindowControlBox  (
                  boolean px) throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          zz_queueSet("d_CrystalCtrlProxy", "setWindowControlBox", (boolean)px);
          return;
        try {
          d_CrystalCtrlProxy.setWindowControlBox(px);
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * isWindowMaxButton. If set to TRUE, the print window will have a maximize button
       * @return    The px
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public boolean isWindowMaxButton  () throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          boolean[] retVal = new boolean[1];
          zz_get("WindowMaxButton", retVal);
          return retVal[0];
        try {
          return d_CrystalCtrlProxy.isWindowMaxButton();
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * setWindowMaxButton. If set to TRUE, the print window will have a maximize button
       * @param     px The px (in)
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public void setWindowMaxButton  (
                  boolean px) throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          zz_queueSet("d_CrystalCtrlProxy", "setWindowMaxButton", (boolean)px);
          return;
        try {
          d_CrystalCtrlProxy.setWindowMaxButton(px);
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * isWindowMinButton. If set to TRUE, the print window will have a minimize button
       * @return    The px
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public boolean isWindowMinButton  () throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          boolean[] retVal = new boolean[1];
          zz_get("WindowMinButton", retVal);
          return retVal[0];
        try {
          return d_CrystalCtrlProxy.isWindowMinButton();
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * setWindowMinButton. If set to TRUE, the print window will have a minimize button
       * @param     px The px (in)
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public void setWindowMinButton  (
                  boolean px) throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          zz_queueSet("d_CrystalCtrlProxy", "setWindowMinButton", (boolean)px);
          return;
        try {
          d_CrystalCtrlProxy.setWindowMinButton(px);
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * getPrintFileName. The filename for output when printing to file
       * @return    The px
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public String getPrintFileName  () throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          String[] retVal = new String[1];
          zz_get("PrintFileName", retVal);
          return retVal[0];
        try {
          return d_CrystalCtrlProxy.getPrintFileName();
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
       * setPrintFileName. The filename for output when printing to file
       * @param     px The px (in)
       * @exception java.io.IOException If there are communications problems.
       * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
      public void setPrintFileName  (
                  String px) throws java.io.IOException, com.linar.jintegra.AutomationException {
        if(d_CrystalCtrlProxy == null) {
          zz_queueSet("d_CrystalCtrlProxy", "setPrintFileName", (String)px);
          return;
        try {
          d_CrystalCtrlProxy.setPrintFileName(px);
        } catch(com.linar.jintegra.AutomationException automationException) {
          automationException.fillInStackTrace();
          throw automationException;
      }

  • EJB Exception Layer Design Feedback

    I am in the process of creating a EJB layer talking to EIS Tier via JCA adapter. The EJBs are all stateless. The EJBs would be used by servlets, ejbs, or jsps. The EJBs are stateless in nature. I would like to make sure the exception hierarchy I have is considered good design practice and if there are suggestions on how I may improve it. I decided to go for unchecked exception all through my design (this I don't want to change -- pretty sure about this).
    So, here is how I designed my exception class. One of my goals was to keep the exception handling very simple at the client-side and not inundate customers with too many types of exceptions. I decided to go for a has-A type relationship to model much of the exceptions because I couldn’t really classify some of them to be a is-A. All exceptions thrown by my EJB layer would be contained within MyApplicationException. A getCause() will give insight into the cause at a very fine level. A getMessage() would suffice for most situations. Whereever exceptions are being thrown, the cause is being stored.
    java.lang.Exception
    --java.lang.RuntimeException
    ___ --MyBaseException
    _______+----MyApplicationException (this is the container for all my exceptions)
    _______+----MyConfigException
    I created a exceptionhelper class that handles most of the exceptions and throws the right exception depending on the cause. For brevity sake, I am not including all code details in the sample below.
    At the EIS Tier level, we have AutomationExceptions or Windows exception being thrown. These exceptions get thrown by the Windows code that is running in the EIS Tier (server). These exceptions are caught by the EJB code, then we do some processing like looking up the windows error code and producing the right message. The exception is then thrown back to the client with more information (MyApplicationException->getCause() would return AutomationException)
    In the EJB code I have something like this….
    try {
    serverConn.connectToEISTier()
    } catch (AutomatedException e) {
    throw new MyApplicationException(“Custom Message.”, ExceptionHelper.handleAutomatedException(e)); }
    At the EJB level
    •we have create, and naming exceptions thrown either on failed lookup or something failing when creating the ejbs or there might be programming errors or there might be missing resources when EJB is trying to connect and possibly encounters data retrieval failures or Some sort of configuration error might be there in the deployment descriptor (user did soemthing wrong - wrong value for environment entry). All these are caught, and converted into runtime exception namely MyApplicationException. Where classification is deemed necessary we for e.g convert then contained exception to say configexception.
    try {  
         lookup the context()
    } catch(NamingException ex){
    Cause = new myConfigException(“lookup failed because ….”);
    Throw new MyApplicationException(cause);
    At the transport level: some communication exception happened.
    At the client level:
    Client might be calling the apis wrongly and breaching the contract, or possibly supplied wrong credentials.
    Please share feedback / thoughts.

    There is an interesting article that discusses EJB Exception Layering:
    http://www-128.ibm.com/developerworks/java/library/j-ejbexcept.html
    As a rule of thumb: in every layer, create two types of exceptions that extend from the appropriate class (application exceptions and system exceptions). The next layer catches these and handles them appropriately. This way, you hide the implementation of the layers. An example where this is implemented is Spring.
    To summarize, I like your idea, but I define exceptions for every layer and not put them in one hiearchy.
    Regards,
    Lonneke

  • DataDirect driver throws java.lang.VerifyError

    WebLogic: 8.1.5<br>
    OS: Windows server 2003<br>
    DataDirect: 3.50.0 (JDBC driver)<br>
    <br>
    I have a web application that use its own JDBC driver management (DataDirect 3.50.0). When I moved from WebLogic 8.1.3 to WebLogic 8.1.5 the application crash with stuck dump below on exception java.lang.VerifyError.<br>
    <br>
    <br>
    <i>Any ideas why this happened ?</i>
    <br>
    <br>
    Thanks,<br>
    Ziv<br>
    <br>
    <br>
    <u><b>Stack dump</b></u><br>
    java.sql.SQLException: <br>
    java.lang.VerifyError: <br>
    (class: com/mercury/jdbc/sqlserver/tds/TDSConnection, <br>
    method: createSecurityContext <br>
    signature: (Ljava/lang/String;Ljava/lang/String;<br>
    Ljava/lang/String<br>
    Lcom/mercury/util/UtilSecurityContext <br>
    Wrong return type in function<br>
    <br>
    at com.mercury.jdbc.base.BaseConnectionStartup.run
    (Unknown Source)     <br>

    Eli cohen wrote:
    First, thanks a lot for the quick reply. I appeciate this.<br>
    <br>
    1. You are right, com.mercury.jdbc is a repackaging of DataDirect's driver. <br><br>
    2. Full Stack dump:<br><br>Ok, I suggest yo first contact DataDirect and show them
    this exception. However, I have a suspicion that your
    version of the driver has some conflicting versions of
    some internal security classes from the versions of the
    DataDirect drivers that we ship, rebranded as BEA drivers.
    So, try going to your server\lib directory, and renaming
    the wlutil.jar, wlbase.jar, and wlsqlserver.jar so WebLogic
    won't use them. Let me know if that makes your odd exception
    go away. Also, you might consider using our drivers. Get
    the latest driver package and you will have DataDirect's
    latest and best, including all the BEA-found bugs fixed.
    Joe
    >
    InitSAConnection failed. <br>
    Reason: AutomationException: Failed to Login<br>
    [ERR_SEP]Messages:Failed to Login;<br>
    Failed to check authentication of user 'alex_qc';<br>
    Cannot build directory item for key <br>
    '[maze1sql_db@jdbc:mercury:sqlserver://fork:1433(td)]' <br>
    in SA Global Struct Dir;<br>
    Failed to fill table struct for table null in database <br>
    maze1sql_db@jdbc:mercury:sqlserver://fork:1433(td);<br>
    java.lang.VerifyError: <br>
    (class: com/mercury/jdbc/sqlserver/tds/TDSConnection, <br>
    method: createSecurityContext <br>
    signature: (Ljava/lang/String;<br>
    Ljava/lang/String;<br>
    Ljava/lang/String)<br>
    Lcom/mercury/util/UtilSecurityContext) <br>
    Wrong return type in function;<br>
    <br>
    Stack Trace:<br>
    <br>
    java.sql.SQLException: <br>
    java.lang.VerifyError: <br>
    (class: com/mercury/jdbc/sqlserver/tds/TDSConnection, <br>
    method: createSecurityContext <br>
    signature: (Ljava/lang/String;Ljava/lang/String;<br>
    Ljava/lang/String)<br>
    Lcom/mercury/util/UtilSecurityContext) <br>
    Wrong return type in function<br>
    <br>
    at com.mercury.jdbc.base.BaseConnectionStartup.run(Unknown Source)     <br>
    wrapped in com.mercury.optane.core.CTdException: <br>
    at com.mercury.optane.core.db.CTdDriverManager.getConnection<br>
    (CTdDriverManager.java:81)<br>
    at com.mercury.optane.core.db.CConnectionPool.newConnection<br>
    (CConnectionPool.java:654)<br>
    at com.mercury.optane.core.db.CConnectionPool.tryToGetConnection<br>
    (CConnectionPool.java:491)<br>
    at com.mercury.optane.core.db.CConnectionPool.getConnection<br>
    (CConnectionPool.java:316)<br>
    at com.mercury.optane.core.db.CConnectionManager.getNotTransactedConnection<br>
    (CConnectionManager.java:299)<br>
    at com.mercury.optane.core.db.CConnectionManager.getConnection<br>
    (CConnectionManager.java:264)<br>
    at com.mercury.optane.core.db.CDatabaseFieldsInfo.obtainInfo<br>
    (CDatabaseFieldsInfo.java:135)     <br>
    wrapped in com.mercury.optane.core.CTdException: <br>
    <br>
    Failed to fill table struct for table null in database <br>
    maze1sql_db@jdbc:mercury:sqlserver://fork:1433(td)<br>
    at com.mercury.optane.core.db.CDatabaseFieldsInfo.obtainInfo<br>
    (CDatabaseFieldsInfo.java:157)<br>
    at com.mercury.optane.core.db.CDatabaseFieldsInfo.<init><br>
    (CDatabaseFieldsInfo.java:77)<br>
    at com.mercury.optane.core.db.CAbsTablesStructDirectory.createDirectoryItem<br>
    (CAbsTablesStructDirectory.java:129)<br>
    at com.mercury.optane.core.directory.CAbsDirectory.getDirectoryItem<br>
    (CAbsDirectory.java:81)     <br>
    <br>
    wrapped in com.mercury.optane.core.CTdException: <br>
    Cannot build directory item for key <br>
    '[maze1sql_db@jdbc:mercury:sqlserver://fork:1433(td)]' <br>
    in SA Global Struct Dirat <br>
    com.mercury.optane.core.directory.CAbsDirectory.getDirectoryItem<br>
    (CAbsDirectory.java:87)<br>
    <br>
    at com.mercury.optane.core.db.CAbsTablesStructDirectory.getDatabaseFieldsInfo<br>
    (CAbsTablesStructDirectory.java:101)<br>
    at com.mercury.td.saserver.sautil.CSaDbSchemaProperties.getDatabaseFieldsInfo<br>
    (CSaDbSchemaProperties.java:114)<br>
    at com.mercury.optane.core.db.CAbsDBContext.isComparisonCaseSensitive<br>
    (CAbsDBContext.java:178)<br>
    at com.mercury.optane.core.db.utils.CDbGeneralFunctions.dbLowerComparison<br>
    (CDbGeneralFunctions.java:369)<br>
    at com.mercury.td.saserver.sautil.CSaServerGeneralFunctions.saDbLowerComparison<br>
    (CSaServerGeneralFunctions.java:416)<br>
    at com.mercury.td.saserver.api.logics.CTdUserLogic.authenticateUserAgainstTdDB<br>
    (CTdUserLogic.java:1175)     <br>
    <br>
    wrapped in com.mercury.optane.core.CTdException: <br>
    Failed to check authentication of user 'alex_qc'<br>
    <br>
    at com.mercury.td.saserver.api.logics.CTdUserLogic.authenticateUserAgainstTdDB<br>
    (CTdUserLogic.java:1199)<br>
    at com.mercury.td.saserver.api.logics.CTdUserLogic.checkUserPassword<br>
    (CTdUserLogic.java:1116)<br>
    at com.mercury.td.saserver.api.logics.CSessionLogic.login<br>
    (CSessionLogic.java:229)<br>
    at com.mercury.td.saserver.web.CTdSiteAdminServlet.redirectLogin<br>
    (CTdSiteAdminServlet.java:275)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke0<br>
    (Native Method)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke<br>
    (NativeMethodAccessorImpl.java:39)<br>
    at sun.reflect.DelegatingMethodAccessorImpl.invoke<br>
    (DelegatingMethodAccessorImpl.java:25)<br>
    at java.lang.reflect.Method.invoke(Method.java:324)<br>
    at com.mercury.optane.core.web.CAbsServlet.executeFunction<br>
    (CAbsServlet.java:459)     <br>
    <br>
    wrapped in com.mercury.optane.core.CTdException: <br>
    Failed to Loginat com.mercury.optane.core.web.CAbsServlet.executeFunction<br>
    (CAbsServlet.java:465)<br>
    at com.mercury.optane.core.web.CAbsServlet.processRequest<br>
    (CAbsServlet.java:440)<br>
    at com.mercury.optane.core.web.CAbsServlet.doPost<br>
    (CAbsServlet.java:323)<br>
    at javax.servlet.http.HttpServlet.service<br>
    (HttpServlet.java:760)<br>
    at javax.servlet.http.HttpServlet.service<br>
    (HttpServlet.java:853)<br>
    at weblogic.servlet.internal.ServletStubImpl:ServletInvocationAction.run<br>
    (ServletStubImpl.java:1072)<br>
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet<br>
    (ServletStubImpl.java:465)<br>
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet<br>
    (ServletStubImpl.java:348)<br>
    at weblogic.servlet.internal.WebAppServletContext:ServletInvocationAction.run<br>
    (WebAppServletContext.java:6981)<br>
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs<br>
    (AuthenticatedSubject.java:321)<br>
    at weblogic.security.service.SecurityManager.runAs<br>
    (SecurityManager.java:121)<br>
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet<br>
    (WebAppServletContext.java:3892)<br>
    at weblogic.servlet.internal.ServletRequestImpl.execute<br>
    (ServletRequestImpl.java:2766)<br>
    at weblogic.kernel.ExecuteThread.execute<br>
    (ExecuteThread.java:224)<br>
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183) <br>
    <br>

  • Accessing COM from Java using JCOM

    When I tried to access a simple COM component with the com2java generated files,
    I got the following error. Can someone help me with this?
    <Nov 8, 2001 3:37:24 PM CST> <Error> <HTTP> <[WebAppServletContext(366665,Defaul
    tWebApp,/DefaultWebApp)] Servlet failed with IOException
    AutomationException: 0x80070005 - General access denied error
    at com.bea.jcom.bm.b(bm.java)
    at com.bea.jcom.Rpc.a(Rpc.java)
    at com.bea.jcom.bf.a(bf.java)
    at com.bea.jcom.Dispatch.createDispatch(Dispatch.java)
    at com.bea.jcom.Dispatch.<init>(Dispatch.java)
    at com.ak.jcomtest._JComTestProxy.<init>(_JComTestProxy.java:33)
    at com.ak.jcomtest.JComTest.<init>(JComTest.java:105)
    at com.ak.jcomtest.JComTest.<init>(JComTest.java:77)
    at jsp_servlet.__jcom._jspService(__jcom.java:91)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:2456)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >

    I did everything earlier except the second point you mentioned. Everything started
    working as soon as I added a line to call com.bea.jcom.AuthInfo.setDefault() method.
    I didn't think this was necessary since I already gave permissions to that user
    using DCOMCNFG. Thanks for you help.
    "BEA jCOM Support" <[email protected]> wrote:
    >
    Your jcom.log indicates you are trying to access the COM object with
    Authentication
    "BXDOMAIN/akumar". Add this user to the default access/launch permissions
    (using
    DCOMCNFG) on the machine hosting the COM object.
    Also, make sure you put this in your Java code:
    com.bea.jcom.AuthInfo.setDefault("BXDOMAIN", "akumar", "<password>");
    "Anil Kumar" <[email protected]> wrote:
    Here's the log
    jCOM checkconfig 6.1 Beta - Copyright (C) 2001 BEA Systems, Inc. Copyright
    (C)
    1999-2001 Linar Ltd. and Intrinsyc Software, Inc. http://www.bea.com/jcom/
    --- Checking OS ---
    Microsoft Windows NT 5.0 (Build: 2195) Service Pack 2
    --- Checking Time ---
    Time: 15:20:49
    Date: 11/13/01
    --- opening typelib: JComTestProject.exe ---
    Class Name = JComTest
    Class Id = 742db055-77df-404a-a579-e0cbfd3007a7
    Class Name = JComTestProject.JComTest
    AppID = {742DB055-77DF-404A-A579-E0CBFD3007A7}
    {742DB055-77DF-404A-A579-E0CBFD3007A7} = JComTestProject.JComTest
    Implemented Categories = no value(259)
    {40FC6ED5-2438-11CF-A3DB-080036F12502} = no value(259)
    LocalServer32 = D:\Program Files\Microsoft Visual Studio\VB98\Projects\JCom\JComTestProject.exe
    ("D:\Program Files\Microsoft Visual Studio\VB98\Projects\JCom\JComTestProject.exe"
    file exists)
    ProgID = JComTestProject.JComTest
    Programmable = no value(259)
    TypeLib = {E0BF28D6-6347-4017-8D2E-52B145CE47DA}
    VERSION = 2.0
    --- Checking Username ---
    USER:WARANGAL\akumar
    GROUP:WARANGAL\None
    GROUP:\Everyone
    ALIAS:WARANGAL\ORA_DBA
    ALIAS:BUILTIN\Administrators
    ALIAS:BUILTIN\Users
    ALIAS:BUILTIN\Power Users
    GROUP:\LOCAL
    GROUP:NT AUTHORITY\INTERACTIVE
    GROUP:NT AUTHORITY\Authenticated Users
    --- Checking DCOM settings ---
    DCOM version supports accessing Java from COM
    EnableDCOM = Y
    DefaultLaunchPermission:
    Access enabled for NT AUTHORITY\SYSTEM
    Access enabled for NT AUTHORITY\INTERACTIVE
    Access enabled for BUILTIN\Administrators
    --- Connecting to SCM ---
    Connecting to SCM on localhost
    Connect successful
    --- IP configuration ---
    Hostname = warangal.bxsys.com
    Address 0 = 172.18.32.102
    Connecting to SCM on 172.18.32.102
    Connect successful
    Address 1 = 169.254.25.129
    Connecting to SCM on 169.254.25.129
    Connect successful
    --- Winsock Information ---
    Version: 202
    Description: WinSock 2.0
    --- Environment Variables ---
    ALLUSERSPROFILE=C:\WINNT\Profiles\All Users
    APPDATA=C:\WINNT\Profiles\anil\Application Data
    BOOKSHELF=D:\ifor\WIN\BIN\EN_US
    CLASSPATH=.;d:\mystuff\javastuff\jarz;d:\weblogic\lib\weblogic510sp6boot.jar;d:/jdk122/javamail112/mail.jar;d:/jdk122/jaf-1.0.1/activation.jar;d:/jdk122/jsdk2.1/server.jar;d:/jdk122/jsdk2.1/servlet.jar;D:\WebLogicCommerceServer3.2\classes;D:\Oracle\Ora81\jdbc\lib\classes111.zip;D:\weblogic\lib\WebLogic_RDBMS.jar;D:\Oracle\Ora81\orb\classes\yoj.jar;D:\Oracle\Ora81\orb\classes\share.zip
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=WARANGAL
    ComSpec=C:\WINNT\system32\cmd.exe
    HELP=D:\IBMVJava3.0\eab\;D:\IBMVJava20\eab\;D:\ifor\WIN\BIN
    HOMEDRIVE=C:
    HOMEPATH=\
    I4_INSTALL_DRIVE=D:
    I4_LANG=EN_US
    IPF_PATH32=D:\ifor\WIN\BIN\EN_US
    J2EE_CLASSPATH=D:\j2ee121\lib\cloudscape\cloudspace.jar;
    JAVA_HOME=d:\jdk13
    LOGONSERVER=\\WARANGAL
    NLSPATH=D:\ifor\LS\MSG\%L\%N
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    Os2LibPath=C:\WINNT\system32\os2\dll;
    Path=d:\jdk13\bin;D:\Oracle\Ora81\bin;D:\Oracle\Ora81\orb\bin;C:\WINNT;C:\WINNT\system32;C:\WINNT\system32\WBEM;d:\jdk13\bin;D:\CVS;D:\ifor\WIN\BIN;D:\ifor\WIN\BIN\EN_US;D:\JavaStuff\jakarta-ant-1.3\bin;D:\BEA\wlserver6.1\jcom\bin;D:\WebGain\VisualCafe\Java2\Bin;C:\Program
    Files\Common Files\WebGain Shared;D:\WebGain\VisualCafe\Bin;
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 3, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0803
    ProgramFiles=C:\Program Files
    PROMPT=$P$G
    StarTeam=D:\StarTeam 4.0\StarTeam.ini
    StarTeamApp=D:\StarTeam 4.0
    STLicense=D:\StarTeam 4.0
    SystemDrive=C:
    SystemRoot=C:\WINNT
    TEMP=D:\TEMP
    TMP=D:\TEMP
    USERDOMAIN=WARANGAL
    USERNAME=akumar
    USERPROFILE=C:\WINNT\Profiles\anil
    windir=C:\WINNT
    WorkstationID=D:\StarTeam 4.0\ConnectionManager.ini
    "Damon Hon" <[email protected]> wrote:
    hi anil,
    can you run the checkconfig tool as well
    checkconfig /typelib <path to tlb> config.log
    and post the log
    thanks
    damon
    "Anil Kumar" <[email protected]> wrote in message
    news:[email protected]...
    Hi Damon,
    I am just calling the default constructor of the com2Java generatedclass(in this
    case, it is JComTest.class) from a simple JSP. I am not calling anymethods on
    this component. Here are the contents of the log file.
    jCOM version 6.1 Beta logger started in immediate mode at Tue Nov
    13
    12:32:41
    CST 2001 at level 3 (VERBOSE)
    License:
    Classloader is bootstrap
    java.version is 1.3.1
    java.vendor is Sun Microsystems Inc.
    java.class.path is..;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;D:\BEA\wlserver6.1\jcom\lib\jcom.
    jar;D:\Projects\JCom\src
    java.library.path isD:\BEA\jdk131\bin;.;C:\WINNT\System32;C:\WINNT;.\bin;d:\jdk13\bin;D:\Oracle\
    Ora81\bin;D:\Oracle\Ora81\orb\bin;C:\WINNT;C:\WINNT\system32;C:\WINNT\system
    32\WBEM;d:\jdk13\bin;D:\CVS;D:\ifor\WIN\BIN;D:\ifor\WIN\BIN\EN_US;D:\JavaStu
    ff\jakarta-ant-1.3\bin;D:\BEA\wlserver6.1\jcom\bin;D:\WebGain\VisualCafe\Jav
    a2\Bin;C:\Program
    Files\Common Files\WebGain Shared;D:\WebGain\VisualCafe\Bin;
    os.name/os.arch/os.version is Windows 2000/x86/5.0
    1005676361251 +: New RemOxidResolver initialised for Net={{ 0x7,127.0.0.1[135]}}
    Sec={}
    1005676361271 +: Looking for free connection handler to 127.0.0.1[135]for
    BXDOMAIN/akumar
    1005676361311 : OXID Resolver started. Listening on port 3895
    1005676361321 : Object Exporter binding is Net={{ 0x7,172.18.32.102[3896]},
    { 0x7, 169.254.25.129[3896]}} Sec={{ 0xa, 0xffff, }, { 0x0, 0x0,
    OXID
    is 1005676361311
    1005676361331 +: Opening a TCP/IP connection to 127.0.0.1[135] withauth
    BXDOMAIN/akumar
    1005676361361 : Sending RemoteActivation request to Net={{ 0x7,127.0.0.1[135]}}
    Sec={} to activate cls/iid742db055-77df-404a-a579-e0cbfd3007a7/fbcd1246-3557-4b95-8046-cfec093310b5
    1005676361832 : Sending IRemoteActivation::RemoteActivation request,with
    RPC
    call id 2 on ipid null
    1005676361892 : Received the response toIRemoteActivation::RemoteActivation
    request, with RPC call id 2
    1005676361902 +: Remote server's version: 5.1
    1005676361942 *: Error activating742db055-77df-404a-a579-e0cbfd3007a7/fbcd1246-3557-4b95-8046-cfec093310b5:
    AutomationException: 0x80070005 - General access denied error
    "Damon Hon" <[email protected]> wrote:
    hi anil,
    can you post the snippet of java code that is calling the methods
    from your COM object and post the following logs
    jcom.log
    - In your java code, add the following line to the start of your
    initialization code.
    com.bea.jcom.Log.logImmediately(3, "c:\\temp\\jcom.log");
    config.log
    - Run the checkconfig utility to generate this log
    checkconfig /typelib <path to tlb> config.log
    thanks
    damon
    "Anil Kumar" <[email protected]> wrote in message
    news:[email protected]...
    Thanks for the info. I had already done this before. I checked
    everything
    a dozen
    times. I am not sure why this is happening. Please let me know,
    if
    there
    are any
    other ideas.
    "Damon Hon" <[email protected]> wrote:
    hi anil,
    The exception you are getting, indicates that your java client
    does
    not
    have
    sufficient permissions to access your com component.
    if you are running your java code and com component on the same
    machine,
    - make sure that your jcom/bin directory is in your path environment
    variable
    - run the DCOMCNFG tool to configure accesss for the interactiveuser
    or the
    user you are logged in as.
    if you are not running your java code under windows, add this
    call
    in
    your
    java code:
    com.bea.jcom.AuthInfo.setDefault("nt domain", "user", "password");
    - use the DCOMCNFG tool to configure has dcom access to the
    com
    component for this user
    let me know if this helps
    damon
    "Anil Kumar" <[email protected]> wrote in message
    news:[email protected]...
    When I tried to access a simple COM component with the com2java
    generated
    files,
    I got the following error. Can someone help me with this?
    <Nov 8, 2001 3:37:24 PM CST> <Error> <HTTP><[WebAppServletContext(366665,Defaul
    tWebApp,/DefaultWebApp)] Servlet failed with IOException
    AutomationException: 0x80070005 - General access denied error
    at com.bea.jcom.bm.b(bm.java)
    at com.bea.jcom.Rpc.a(Rpc.java)
    at com.bea.jcom.bf.a(bf.java)
    at com.bea.jcom.Dispatch.createDispatch(Dispatch.java)
    at com.bea.jcom.Dispatch.<init>(Dispatch.java)
    at
    com.ak.jcomtest._JComTestProxy.<init>(_JComTestProxy.java:33)
    at com.ak.jcomtest.JComTest.<init>(JComTest.java:105)
    at com.ak.jcomtest.JComTest.<init>(JComTest.java:77)
    at jsp_servlet.__jcom._jspService(__jcom.java:91)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:200)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:2456)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2039)
    at
    weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >

  • Help to reg. crystal report with java

    hi friends,
    I have installed the crystal report and J-Integra also.
    but I am not able to find the crystl32.ocx in my c:\windows\system32 folder .
    So I downloaded it separately and use the J-Integra's com2java convertor to generate crystal package.
    Then as per manual I compiled that package and created crystal.jar file.
    And while try this setting with a sample code.
    package javaapplication10;
    public class CrystalClient {
      private static final String CONNECT_STRING = "DSN=test";
      private static final String REPORT_FILE_NAME = "d:\\arp\\cryrpt1.rpt";
      private static final String SQL_QUERY = "select * from tab1";
      private static final String PRINT_FILE = "d:\\arp\\YourNewReport.doc";
      public static void main(String args[]) throws Exception{
        try {
          crystal.CrystalReport report = new crystal.CrystalReport();
          report.aboutBox(); // Lets see if it was loaded properly
          report.setConnect(CONNECT_STRING);
          report.setReportFileName(REPORT_FILE_NAME);
          report.setSQLQuery(SQL_QUERY);
          report.setPrinterCopies((short) 1);
          report.setPrinterCollation(crystal.PrinterCollationConstants.crptDefault);
          report.setDestination(crystal.DestinationConstants.crptToFile);
          report.setPrintFileName(PRINT_FILE);
          report.setPrintFileType(crystal.PrintFileTypeConstants.crptWinWord); // Change output type if necessary
          report.printReport();
        } finally {
          com.linar.jintegra.Cleaner.releaseAll();
    [\code]
    During compilation no error found.
    But during runtime it says that
    init:
    deps-jar:
    compile-single:
    run-single:
    J-Integra 2.6 Copyright (c) Intrinsyc Software International, Inc. http://j-integra.intrinsyc.com/
    Thank you for choosing J-Integra.
    You have been evaluating this product for 2 days.
    Please visit http://j-integra.intrinsyc.com/ for
    documentation, support, and purchasing information.
    Exception in thread "main" AutomationException: 0x80040154 - Class not registered
    at com.linar.jintegra.bt.b(Unknown Source)
    at com.linar.jintegra.Rpc.a(Unknown Source)
    at com.linar.jintegra.bm.a(Unknown Source)
    at com.linar.jintegra.Dispatch.createDispatch(Unknown Source)
    at com.linar.jintegra.Dispatch.<init>(Unknown Source)
    at crystal.CrystalCtrlProxy.<init>(CrystalCtrlProxy.java:40)
    at crystal.CrystalReport.<init>(CrystalReport.java:117)
    at crystal.CrystalReport.<init>(CrystalReport.java:107)
    at javaapplication10.CrystalClient.main(CrystalClient.java:23)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 2 seconds)
    eventhough it is not the mistake of javacode.
    if anyone able to clarify my dobut kindly help me.
    Thanks in advance.
    Raj

    Multipost.
    http://forum.java.sun.com/thread.jspa?threadID=784597

Maybe you are looking for

  • Start Disk Full MBP won't load beyond background image

    Hello! My start disk was warning me it was approaching 'full' so I went out & bought an external hard drive.. backed up one user (primary) on the hard drive, then logged out so I could log in as the other user to back up that side of the computer's d

  • Rebate  Accruals

    Hi Gurus, I have one issue in Rebate - Accruals are showing correctly at verification level but not capturing in Sales Volume in Rebate Agreement. Please let me know the reason for the same.

  • Problem with spam filter on my macbook air mail app

    My spam filter just stopped working one day- lots of messages getting through.  I tried monkeying around with the preferences but have not seen any results.  I don't actually know what all the setting s mean so I have probably messed it up good.  Ple

  • Macbook and Star wars battlefront I.....help

    I just purchased a used macbook from ebay. It's a 1.83 MHz model, with 512 MB ram......The computer seems to run pretty smoothe but I just installed SWBF and can't even bare to play it. It runs sooooo choppy. It's Starwars Battle Front I, not the 2nd

  • Update Sharepoint 2013 document library folder columns using document url

    Hi All, I have a SharePoint document library. In that library I am having folder name called Folder1. In this folder Folder1 I have 4 files in it. Now. I need to update the status column of these 4 files in Folder1 folder using the url of these 4 fil