Error in lookup

Hi,
I am getting this error when I am trying to lookup an EJB after looking up a
previous EJB which seems to work. Also, if I only look up this EJB it works.
Any ideas?
javax.naming.NamingException: Unhandled error in lookup. Root exception is
java.rmi.RemoteException: CORBA INTERNAL 0 Maybe; nested exception is:
org.omg.CORBA.INTERNAL: Bad UserException:
IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0 minor code: 0
completed: Maybe
org.omg.CORBA.INTERNAL: Bad UserException:
IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0 minor code: 0
completed: Maybe
at weblogic.iiop.ReplyMessage.getThrowable(ReplyMessage.java:283)
at
weblogic.iiop.InboundResponseImpl.getThrowable(InboundResponseImpl.java:76)
at
weblogic.iiop.OutboundRequestImpl.sendReceive(OutboundRequestImpl.java:46)
at
weblogic.iiop.IIOPRemoteRef.invokeInternal(IIOPRemoteRef.java:125)
at weblogic.iiop.IIOPRemoteRef.invoke(IIOPRemoteRef.java:87)
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
at $Proxy95.resolve(Unknown Source)
at
weblogic.jndi.cosnaming.IIOPInitialContext.lookup(IIOPInitialContext.java:10
7)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at
com.phiware.core.entities.AbstractDataFactoryBean.ejbCreate(AbstractDataFact
oryBean.java:76)
at
com.phiware.core.entities.DimensionDOFactoryBean_hdpd2x_Impl.ejbCreate(Dimen
sionDOFactoryBean_hdpd2x_Impl.java:112)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.jav
a:153)
at
weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:1
17)
at
weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:156)
at
weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:117)
at
weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java
:63)
at
com.phiware.core.entities.DimensionDOFactoryBean_hdpd2x_EOImpl.create(Dimens
ionDOFactoryBean_hdpd2x_EOImpl.java:113)
at
com.phiware.core.entities.DimensionDOFactoryBean_hdpd2x_EOImpl_WLSkel.invoke
(Unknown Source)
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:93)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:2
2)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Hi,
I am getting this error when I am trying to lookup an EJB after looking up a
previous EJB which seems to work. Also, if I only look up this EJB it works.
Any ideas?
javax.naming.NamingException: Unhandled error in lookup. Root exception is
java.rmi.RemoteException: CORBA INTERNAL 0 Maybe; nested exception is:
org.omg.CORBA.INTERNAL: Bad UserException:
IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0 minor code: 0
completed: Maybe
org.omg.CORBA.INTERNAL: Bad UserException:
IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0 minor code: 0
completed: Maybe
at weblogic.iiop.ReplyMessage.getThrowable(ReplyMessage.java:283)
at
weblogic.iiop.InboundResponseImpl.getThrowable(InboundResponseImpl.java:76)
at
weblogic.iiop.OutboundRequestImpl.sendReceive(OutboundRequestImpl.java:46)
at
weblogic.iiop.IIOPRemoteRef.invokeInternal(IIOPRemoteRef.java:125)
at weblogic.iiop.IIOPRemoteRef.invoke(IIOPRemoteRef.java:87)
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
at $Proxy95.resolve(Unknown Source)
at
weblogic.jndi.cosnaming.IIOPInitialContext.lookup(IIOPInitialContext.java:10
7)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at
com.phiware.core.entities.AbstractDataFactoryBean.ejbCreate(AbstractDataFact
oryBean.java:76)
at
com.phiware.core.entities.DimensionDOFactoryBean_hdpd2x_Impl.ejbCreate(Dimen
sionDOFactoryBean_hdpd2x_Impl.java:112)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.jav
a:153)
at
weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:1
17)
at
weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:156)
at
weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:117)
at
weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java
:63)
at
com.phiware.core.entities.DimensionDOFactoryBean_hdpd2x_EOImpl.create(Dimens
ionDOFactoryBean_hdpd2x_EOImpl.java:113)
at
com.phiware.core.entities.DimensionDOFactoryBean_hdpd2x_EOImpl_WLSkel.invoke
(Unknown Source)
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:93)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:2
2)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Similar Messages

  • ClassNotFoundException  (error in lookup  : stub not found by client) ??

    SampleServer.java_
    import java.rmi.*;
    public interface SampleServer extends Remote
    public int sum(int a,int b) throws RemoteException;
    SampleServerImpl.java_
    import java.rmi.*;
    import java.rmi.server.*;
    import java.rmi.registry.*;
    public class SampleServerImpl extends UnicastRemoteObject implements SampleServer{
    SampleServerImpl() throws RemoteException
    super();
    public int sum(int a,int b) throws RemoteException
    return a + b;
    public static void main(String args[])
    //set the security manager
    try
    // System.setSecurityManager(new RMISecurityManager());
    //create a local instance of the object
    SampleServerImpl Server = new SampleServerImpl();
    //put the local instance in the registry
    Naming.rebind("SAMPLE-SERVER" , Server);
    System.out.println("Server waiting.....");
    catch (java.net.MalformedURLException me)
    System.out.println("Malformed URL: " + me.toString());
    catch (RemoteException re)
    System.out.println("Remote exception: " + re.toString());
    SampleClient .java_
    import java.rmi.*;
    import java.rmi.server.*;
    public class SampleClient
    public static void main(String[] args)
    // set the security manager for the client
    //System.setSecurityManager(new RMISecurityManager());
    //get the remote object from the registry
    try
    System.out.println("Security Manager loaded");
    String url = "rmi://172.16.5.41:1099/SAMPLE-SERVER";
    SampleServer remoteObject = (SampleServer)Naming.lookup(url);
    System.out.println("Got remote object");
    //narrow the object down to a specific one
    //System.out.println("Location: " + System.getProperty("LOCATION"));
    // make the invocation
    System.out.println(" 1 + 2 = " +
    remoteObject.sum(1,2) );
    catch (RemoteException exc)
    System.out.println("Error in lookup: " + exc.toString());
    catch (java.net.MalformedURLException exc)
    System.out.println("Malformed URL: " + exc.toString());
    catch (java.rmi.NotBoundException exc)
    System.out.println("NotBound: " + exc.toString());
    errors_
    Error in lookup : java.rmi.UnmarshalException :error unmarshalling return;
    nested exception is : java.lang.ClassNotFoundException :SampleServerImpl_Stub
    dynamic code loading is not working in the client.
    the server is working fine.
    thanks

    yeah.i have my codebase files D: drive on windows .when running the server i used
    java  -Djava.rmi.server.codebase=file://d:/ -Djava.security.policy=policy.all SampleSeverImpli got these errors
    Exception in thread "main" java.security.AccessControlException: access denied (
    java.io.FilePermission \\d read)
            at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:323)
            at java.security.AccessController.checkPermission(AccessController.java:
    546)
            at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
            at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
            at java.io.File.exists(File.java:731)
            at sun.net.www.protocol.file.Handler.openConnection(Handler.java:80)
            at sun.net.www.protocol.file.Handler.openConnection(Handler.java:55)
            at java.net.URL.openConnection(URL.java:945)
            at sun.rmi.server.LoaderHandler.addPermissionsForURLs(LoaderHandler.java
    :1021)
            at sun.rmi.server.LoaderHandler.access$300(LoaderHandler.java:52)
            at sun.rmi.server.LoaderHandler$Loader.<init>(LoaderHandler.java:1129)
            at sun.rmi.server.LoaderHandler$Loader.<init>(LoaderHandler.java:1110)
            at sun.rmi.server.LoaderHandler$1.run(LoaderHandler.java:865)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.server.LoaderHandler.lookupLoader(LoaderHandler.java:862)
            at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:385)
            at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
            at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
            at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
            at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.jav
    a:197)
            at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:157
    5)
            at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
    732)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
            at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
            at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
            at sun.rmi.transport.Transport$1.run(Transport.java:159)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:5
    35)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTranspor
    t.java:790)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
    .java:649)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
    utor.java:885)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
    .java:907)
            at java.lang.Thread.run(Thread.java:619)
            at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
    n Source)
            at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
            at sun.rmi.server.UnicastRef.invoke(Unknown Source)
            at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
            at java.rmi.Naming.rebind(Unknown Source)
            at SampleServerImpl.main(SampleServerImpl.java:27)when i used just java -Djava.security.policy=policy.all SampleServerImpl
    everythin was fine at the server .
    it gave the output Server waiting...
    but at the client i got these errors when i tried
    java -Djava.rmi.server.codebase=file://d:/ SampleClient   or   java -Djava.security.policy=policy.all SampleClient
    C:\>java -Djava.security.policy=policy.all SampleClient
    Security Manager loaded
    Exception in thread "main" java.security.AccessControlException: access denied (
    java.net.SocketPermission 172.16.5.41:1099 connect,resolve)
            at java.security.AccessControlContext.checkPermission(Unknown Source)
            at java.security.AccessController.checkPermission(Unknown Source)
            at java.lang.SecurityManager.checkPermission(Unknown Source)
            at java.lang.SecurityManager.checkConnect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at java.net.Socket.<init>(Unknown Source)
            at java.net.Socket.<init>(Unknown Source)
            at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
    ource)
            at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
    ource)
            at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
            at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
            at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
            at sun.rmi.server.UnicastRef.newCall(Unknown Source)
            at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
            at java.rmi.Naming.lookup(Unknown Source)
            at SampleClient.main(SampleClient.java:16)172.16.5.41 was my server.the rmiregistry was running on the same machine on which the server was running

  • Error during lookup of remote ejb CaseService - Oracle ACM 12C Standalone

    StandAlone Setup:
    CD %ORACLE_HOME%\soa\common\bin
    set QS_TEMPLATES=%ORACLE_HOME%\soa\common\templates\wls\oracle.soa_template_12.1.3.jar, %ORACLE_HOME%\osb\common\templates\wls\oracle.osb_template_12.1.3.jar
    qs_config.cmd
    Then ran config.cmd from WLS and extended BPM domain, then was able to see composer app in deployment.
    AdminServer Args:
    set USER_MEM_ARGS=-Xms512m -Xmx3096m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=1024m
    Error
    ====
    Error during ejb lookup from bpm services client.
    Error during lookup of remote ejb CaseService .
    Contact Oracle support if exception can not be fixed.
            at oracle.bpm.client.impl.casemgmt.CaseManagementServiceRemoteClient.get
    CaseService(CaseManagementServiceRemoteClient.java:86)
            at oracle.bpm.casemgmt.customactivity.notification.NotificationCallbackU
    til.getCaseService(NotificationCallbackUtil.java:158)
            at oracle.bpm.casemgmt.customactivity.notification.NotificationCallbackU
    til.isActivityRegistered(NotificationCallbackUtil.java:167)
            at oracle.bpm.casemgmt.customactivity.notification.NotificationCallbackU
    til.registerEmailActivity(NotificationCallbackUtil.java:83)
            at oracle.bpm.casemgmt.fabric.CaseManagementServiceEngine.stateChanged(C
    aseManagementServiceEngine.java:1340)
            at oracle.integration.platform.blocks.mesh.FabricLifecycle.notifyListene
    rs(FabricLifecycle.java:54)
            at oracle.integration.platform.blocks.mesh.FabricLifecycle.setState(Fabr
    icLifecycle.java:41)
            at oracle.integration.platform.blocks.mesh.MeshImpl.postDeployInit(MeshI
    mpl.java:204)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
    on(AopUtils.java:318)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
    inpoint(ReflectiveMethodInvocation.java:183)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
    ReflectiveMethodInvocation.java:150)
            at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEven
    tAspect.java:71)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
    ReflectiveMethodInvocation.java:172)
            at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
    cAopProxy.java:202)
            at com.sun.proxy.$Proxy324.postDeployInit(Unknown Source)
            at oracle.integration.platform.kernel.FabricKernelInitializerServlet$1.r
    un(FabricKernelInitializerServlet.java:1008)
            at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run
    (WorkManagerExecutor.java:184)
            at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManag
    er.java:184)
            at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    Caused By: javax.naming.NameNotFoundException: While trying to lookup 'ejb.bpm.c
    ase.CaseService' didn't find subcontext 'bpm'. Resolved 'ejb'; remaining name 'b
    pm/case/CaseService'
            at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basic
    NamingNode.java:1180)
            at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.jav
    a:265)
            at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.j
    ava:187)
            at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:21
    0)
            at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:22
    4)
            at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.j
    ava:253)
            at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:426)
            at javax.naming.InitialContext.lookup(InitialContext.java:411)
            at oracle.bpm.client.impl.casemgmt.CaseManagementServiceRemoteClient.get
    CaseService(CaseManagementServiceRemoteClient.java:80)
            at oracle.bpm.casemgmt.customactivity.notification.NotificationCallbackU
    til.getCaseService(NotificationCallbackUtil.java:158)
            at oracle.bpm.casemgmt.customactivity.notification.NotificationCallbackU
    til.isActivityRegistered(NotificationCallbackUtil.java:167)
            at oracle.bpm.casemgmt.customactivity.notification.NotificationCallbackU
    til.registerEmailActivity(NotificationCallbackUtil.java:83)
            at oracle.bpm.casemgmt.fabric.CaseManagementServiceEngine.stateChanged(C
    aseManagementServiceEngine.java:1340)
            at oracle.integration.platform.blocks.mesh.FabricLifecycle.notifyListene
    rs(FabricLifecycle.java:54)
            at oracle.integration.platform.blocks.mesh.FabricLifecycle.setState(Fabr
    icLifecycle.java:41)
            at oracle.integration.platform.blocks.mesh.MeshImpl.postDeployInit(MeshI
    mpl.java:204)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
    on(AopUtils.java:318)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
    inpoint(ReflectiveMethodInvocation.java:183)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
    ReflectiveMethodInvocation.java:150)
            at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEven
    tAspect.java:71)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
    ReflectiveMethodInvocation.java:172)
            at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
    cAopProxy.java:202)
            at com.sun.proxy.$Proxy324.postDeployInit(Unknown Source)
            at oracle.integration.platform.kernel.FabricKernelInitializerServlet$1.r
    un(FabricKernelInitializerServlet.java:1008)
            at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run
    (WorkManagerExecutor.java:184)
            at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManag
    er.java:184)
            at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    >
    Please help. The problem does not occur with Integrated WLS. I think the config scripts are correctly running from JDev.

    Hi,
    It's not easy to tell what's wrong with your example.
    Maybe you could send me a zip and I'll check when I have some time.
    By the way, you're asking a question about the lookup of an EJB3, I wrote an article that covers that topic.
    It should give you some interesting input.
    http://m-button.blogspot.com/2008/07/reminder-on-how-to-use-ejb3-with.html
    Regards.

  • Java syntax error : RFC Lookup

    My UDF Source code has an syntax error: missing return statement }
    but i can´t find the error.
    any ideas ?
    //write your code here
    String content = "";
    MappingTrace importanttrace;
    importanttrace = container.getTrace();
    // filling the string with our RFC-XML (with values)
    String m ="<?xml version="1.0" encoding="UTF-8"?><ns0:Z_GET_PRODH xmlns:ns0="urn:sap-com:document:sap:rfc:functions"><IN_MATNR>2100018693</IN_MATNR></ns0:Z_GET_PRODH>";
    RfcAccessor accessor = null;
    ByteArrayOutputStream out = null;
    try
         // 1. Determine a channel (Business system, Communication channel)
         Channel channel = LookupService.getChannel("xxxxxxxxxx","yyyyyyyy");
         // 2. Get a RFC accessor for a channel.
         accessor = LookupService.getRfcAccessor(channel);
         // 3. Create a xml input stream representing the function module request message
         InputStream inputStream = new ByteArrayInputStream(m.getBytes());
         // 4. Create xml payload
         XmlPayload payload = LookupService.getXmlPayload(inputStream);
         // 5. Execute lookup.
         Payload result = accessor.call(payload);
         InputStream in = result.getContent();
         out = new ByteArrayOutputStream(1024);
         byte[] buffer = new byte[1024];
         for (int read = in.read(buffer); read > 0; read = in.read(buffer))
              out.write(buffer, 0, read);
         content = out.toString();
    catch(LookupException e)
         importanttrace.addWarning("Error while lookup " + e.getMessage() );
    catch(IOException e)
         importanttrace.addWarning("Error " + e.getMessage() );
    finally
         if (out!=null)
               try
              out.close();
               catch (IOException e)
                   importanttrace.addWarning("Error while closing stream " + e.getMessage() );
         // 7. close the accessor in order to free resources.
         if (accessor!=null)
               try
              accessor.close();
               catch (LookupException e)
                   importanttrace.addWarning("Error while closing accessor " + e.getMessage() );
    Message was edited by:
            Gordon Breuer

    I have a solution without DOM parser. The XML code is seen as a sting and the code looks for a specific tag. In my case it is OUTPUT, you can adjust the code to your tag.
    String content = "";
    MappingTrace importanttrace;
    importanttrace = container.getTrace();
    // filling the string with our RFC-XML (with values)
    String m = "<rfc:ZZSG_TEST_XSLT_LOOKUP xmlns:rfc="urn:sap-com:document:sap:rfc:functions">"
                                + "<INPUT>" + request + "</INPUT></rfc:ZZSG_TEST_XSLT_LOOKUP>";
    RfcAccessor accessor = null;
    ByteArrayOutputStream out = null;
    try
    // 1. Determine a channel (Business system, Communication channel)
    Channel channel = LookupService.getChannel("Airline_Group_Two","RFC");
    // 2. Get a RFC accessor for a channel.
    accessor = LookupService.getRfcAccessor(channel);
    // 3. Create a xml input stream representing the function module request message.
    InputStream inputStream = new ByteArrayInputStream(m.getBytes());
    // 4. Create xml payload
    XmlPayload payload = LookupService.getXmlPayload(inputStream);
    // 5. Execute lookup.
    Payload result = accessor.call(payload);
    InputStream in = result.getContent();
    out = new ByteArrayOutputStream(1024);
    byte[] buffer = new byte[1024];
    for (int read = in.read(buffer); read > 0; read = in.read(buffer)) {
    out.write(buffer, 0, read);
    content = out.toString();
    catch(LookupException e)
    importanttrace.addWarning("Error while lookup " + e.getMessage() );
    catch(IOException e)
    importanttrace.addWarning("Error " + e.getMessage() );
    finally
    if (out!=null) {
    try {
    out.close();
    } catch (IOException e) {
    importanttrace.addWarning("Error while closing stream " + e.getMessage() );
    // 7. close the accessor in order to free resources.
    if (accessor!=null) {
    try {
    accessor.close();
    } catch (LookupException e) {
    importanttrace.addWarning("Error while closing accessor " + e.getMessage() );
    //returning the result – RFC-XML.response
      int start = content.indexOf("<OUTPUT>") + 8;
      int end = content.indexOf("</OUTPUT>");
      if (end > start && start > 8)
        content = content.substring(start,end);
    return content;

  • There was an error to lookup cluster groups.

    Hi,
    I'm quite new to the SQL Server. I have installed SQL 2012 cluster installation and I received an error when I was installing second node of the cluster. First node installed without any issue. Please see the following error.
    There was an error to lookup cluster groups. Error: There was a failure to call cluster code from a provider. Exception message: There are no more endpoints available from the endpoint mapper.
    Thanks,
    Thisaru.

    What version of the installation media are you using? I would recommend installing service pack 1 on the first node and use an installation media that included service pack 1 to add the second node.
    Now to understand the issue better, are there any other error messages reported by the installation process?
    Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
    Blog |
    Twitter | LinkedIn
    SQL Server High Availability and Disaster Recover Deep Dive Course

  • Dovecot "Error: Auth lookup disconnected unexpectedly" ????

    I can not send/receive mail, checked the logs and in the SMTP (mail.log) I am seeing...
    +Feb 6 21:31:53 atlserver postfix/pipe[75252]: AFA35A7CB9C9: to=<[email protected]>, origto=<[email protected]>, relay=dovecot, delay=164507, delays=164501/6.1/0/0.61, dsn=4.3.0, status=deferred (temporary failure)+
    +Feb 6 21:31:54 atlserver postfix/pipe[75265]: 24E41A7DF5BE: to=<[email protected]>, relay=dovecot, delay=77792, delays=77785/6.8/0/0.42, dsn=4.3.0, status=deferred (temporary failure)+
    +Feb 6 21:31:54 atlserver postfix/pipe[75249]: 2447AA7DF215: to=<[email protected]>, relay=dovecot, delay=77990, delays=77983/6.8/0/0.42, dsn=4.3.0, status=deferred (temporary failure)+
    +Feb 6 21:31:54 atlserver postfix/pipe[75260]: B10BBA7D51F4: to=<[email protected]>, origto=<[email protected]>, relay=dovecot, delay=109963, delays=109956/6.7/0/0.42, dsn=4.3.0, status=deferred (temporary failure)+
    +Feb 6 21:31:54 atlserver postfix/pipe[75258]: B011EA7BAFA2: to=<[email protected]>, origto=<[email protected]>, relay=dovecot, delay=269109, delays=269102/6.7/0/0.42, dsn=4.3.0, status=deferred (temporary failure)+
    mailaccess.log is saying...
    +deliver(jeremy): Feb 06 21:19:40 Error: Auth lookup disconnected unexpectedly+
    +deliver(jeremy): Feb 06 21:19:40 Error: Auth lookup disconnected unexpectedly+
    +deliver(jeremy): Feb 06 21:19:40 Error: Can't connect to auth server at /var/run/dovecot/auth-master: Operation timed out+
    +deliver(jeremy): Feb 06 21:19:40 Error: Can't connect to auth server at /var/run/dovecot/auth-master: Operation timed out+
    +deliver(jeremy): Feb 06 21:19:41 Error: Auth lookup disconnected unexpectedly+
    +deliver(jeremy): Feb 06 21:19:41 Error: Auth lookup disconnected unexpectedly+
    +deliver(jeremy): Feb 06 21:19:41 Error: Can't connect to auth server at /var/run/dovecot/auth-master: Operation timed out+
    +deliver(jeremy): Feb 06 21:24:36 Error: Auth lookup disconnected unexpectedly+
    +deliver(jeremy): Feb 06 21:24:36 Error: Auth lookup disconnected unexpectedly+
    Anyone have any suggestions/ideas for me to get things working again?
    Thanks!

    I have the same errors. All mail is held in the queue with the status of temporary failure. The smtp log reports:
    Feb 11 07:32:30 melkior postfix/pipe[9742]: 576E57D85D: to=<[email protected]>, relay=dovecot, delay=0.4, delays=0.01/0.03/0/0.36, dsn=4.3.0, status=deferred (temporary failure)
    I have tried deleting and adding the user. Using the "Configure Mail Service..." button in Server Admin > Mail > Overview.
    Here is the postconf -n
    melkior:~ ladmin$ postconf -n
    biff = no
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    content_filter = smtp-amavis:[127.0.0.1]:10024
    daemon_directory = /usr/libexec/postfix
    debugpeerlevel = 2
    enableserveroptions = yes
    header_checks = pcre:/etc/postfix/customheaderchecks
    html_directory = /usr/share/doc/postfix/html
    inet_interfaces = all
    localrecipientmaps = proxy:unix:passwd.byname $alias_maps
    mail_owner = _postfix
    mailboxsizelimit = 0
    mailbox_transport = dovecot
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    mapsrbldomains =
    messagesizelimit = 20971520
    mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
    mydomain = tekpretendco.com
    mydomain_fallback = localhost
    myhostname = melkior.tekpretendco.com
    mynetworks = 127.0.0.1
    newaliases_path = /usr/bin/newaliases
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    recipient_delimiter = +
    relayhost =
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = _postdrop
    smtpdclientrestrictions = permit_mynetworks permitsaslauthenticated rejectrblclient zen.spamhaus.org permit
    smtpdenforcetls = no
    smtpdhelorequired = yes
    smtpdhelorestrictions = rejectinvalid_helohostname rejectnon_fqdn_helohostname
    smtpdpw_server_securityoptions = gssapi,cram-md5
    smtpdrecipientrestrictions = permitsaslauthenticated permit_mynetworks rejectunauthdestination checkpolicyservice unix:private/policy permit
    smtpdsasl_authenable = yes
    smtpdtlsCAfile = /etc/certificates/melkior.tekpretendco.com.76F12568C7D121101AA913CF1AB01EC1036A 2FE0.chain.pem
    smtpdtls_certfile = /etc/certificates/melkior.tekpretendco.com.76F12568C7D121101AA913CF1AB01EC1036A 2FE0.cert.pem
    smtpdtls_excludeciphers = SSLv2, aNULL, ADH, eNULL
    smtpdtls_keyfile = /etc/certificates/melkior.tekpretendco.com.76F12568C7D121101AA913CF1AB01EC1036A 2FE0.key.pem
    smtpduse_pwserver = yes
    smtpdusetls = yes
    unknownlocal_recipient_rejectcode = 550
    virtualaliasmaps =

  • How does the Error Row Definition and Error Message Lookup setup work?

    Suppose I use web ADI to load data to PA_TRANSACTION_INTERFACE_ALL (This is Oracle standard Interface table for Projects)
    I call a Importer (The Importer is called post upload of data to above Interface Table). The Importer will update the Interface table columns (TRANSACTION_STATUS_CODE) and (TRANSACTION_REJECTION_CODE) with values based on the clearing all validations. If validation fails, the column, TRANSACTION_STATUS_CODE is updated with value 'R' and TRANSACTION_REJECTION_CODE has the error code. This error code is stored in the Lookup, with Lookup Type = 'TRANSACTION REJECTION REASON'
    I define the Error Row Definition as follows -
    select * from PA_TRANSACTION_INTERFACE_ALL where TRANSACTION_STATUS_CODE = 'R' and BATCH_NAME = $param$.batchname (BATCH_NAME is populated in the Web ADI Template)
    I define the Error Message Lookup as -
    select meaning from apps.fnd_lookup_values where lookup_type ='TRANSACTION REJECTION REASON'
    and language='US' and lookup_code = $param$.TRANSACTION_REJECTION_CODE
    I have defined the , Document Row : Interface Attribute Mapping - with the column, ORIG_TRANSACTION_REFERENCE (THe column with the Unique value for a row and links the Excel row with the Interface table)
    I feel my setups are fine. Still why the Error -
    An error has occurred while running an API import. The ERRORED_ROWS step 275:ER_501996, parameter number 1 must contain the value BIND in attribute 1.

    Duplicate post -- https://community.oracle.com/thread/2615675

  • Error when lookup JNDI

    Hi all,
    I'm using Netbeans 5, Hibernate 3.2 cr2 and Jboss 4.0.3SP1, mysql 5
    When I try to run the project from netbeans 5, I got the following error. Anything not right that cause the error?
    08:05:53,246 INFO [STDOUT] 1111
    08:05:53,246 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrapperDataSource
    So far from what I find out, it looks like the error happens at sessions = (SessionFactory)ctx.lookup(jndiName) line, because I don't see the output of "2222". Below is the function of getSessionFactory() that resides in my HibernateUtil.java
        public static SessionFactory getSessionFactory() {
            SessionFactory sessions = null;
            try {
                Context ctx = new InitialContext();
                String jndiName = "java:jdbc/cis";
                            System.out.println("1111");
                sessions = (SessionFactory)ctx.lookup(jndiName);
                            System.out.println("2222");
                    } catch (NamingException ex) {
                throw new InfrastructureException(ex);
            return sessions;
    Below is my mysql-ds.xml in Jboss
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- $Id: mysql-ds.xml,v 1.3.2.1 2004/12/01 11:46:00 schrouf Exp $ -->
    <!--  Datasource config for MySQL using 3.0.9 available from:
    http://www.mysql.com/downloads/api-jdbc-stable.html
    -->
    <datasources>
      <local-tx-datasource>
        <jndi-name>jdbc/cis</jndi-name>
        <connection-url>jdbc:mysql://localhost:3309/test</connection-url>
        <driver-class>com.mysql.jdbc.Driver</driver-class>
        <user-name>root</user-name>
        <password>password</password>
        <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
        <!-- sql to call when connection is created
        <new-connection-sql>select count(*) from t_department</new-connection-sql>
          -->
        <!-- sql to call on an existing pooled connection when it is obtained from pool
        <check-valid-connection-sql>select count(*) from t_department</check-valid-connection-sql>
          -->
        <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
        <metadata>
           <type-mapping>mySQL</type-mapping>
        </metadata>
      </local-tx-datasource>
    </datasources>Really appreciate some help.
    Thank you.
    Regards,
    Jap

    I can't tell you what is exactly wrong, but I can tell you how to figure out what's going on. The good thing is that your ctx.lookup is returnng something. The bad part is that you are not casting it to the right object type (i.e. it appears that the object returned by ctx.lookup is not of type SessionFactory. In you descriptor, it lookups like the object java:jdbc/cis is a DataSource, however, you haven't specified the data source class. Usually, when you create a datasource, you specify the class as java.sql.DataSource. Figure out where you can specify that in the configuration. I'm pretty sure that's the type returned by your context.lookup, so you could swap out SessionFactory for DataSource.
    A clever way to solve this problem is to realise that ctx.lookup is returning an object. If you do
    Object obj = ctx.lookup(jndiName);
    System.out.println(obj.toString());You can figure out two things: 1) the object exists in jndi, 2) you may be able to determne the class type of the object from what printed out.

  • Technical error on Lookup in ccBPM

    Hi,
    After we patch Pi server form sp14 to 23 we get error :
    Technical error occurred during Lookup in ccBPM
    And on TCO  SLG1 - Application log is  "Alert category ZFI-CAX_LOOKUP does not exists".
    Any help.
    regards

    Hi spantaleoni,
    Thanks for reply, I am new on PI, Can you explain what you mean by But the alert category still exist??.
    I patch Pi installation and now We have problem on ccBPM flow to RKI (Lookup Company))
    On  SLG1 - Application log I have som red entry :
    Alert category PROCESS ALERT does not exist Message no. SALERT012 and
    Alert category ZFI-CAX_LOOKUP does not exist Message no. SALERT012. It is the only massages I have .
    Regards

  • Docuprestment service start error (symbol lookup error)

    hi everyone,
    I am using Documaker EE on linux environment and unable to start the docupresentment and docfactory service:
    The following error occurs:
    docupresentment service error:
    [oracle@istream-devlinux3 docupresentment]$ ./docserver.sh start
    docserver.sh: INFO: Docupresentment ulimit settings:
    core file size (blocks, -c) 0
    data seg size (kbytes, -d) unlimited
    scheduling priority (-e) 0
    file size (blocks, -f) unlimited
    pending signals (-i) 44934
    max locked memory (kbytes, -l) 50000000
    max memory size (kbytes, -m) unlimited
    open files (-n) 131072
    pipe size (512 bytes, -p) 8
    POSIX message queues (bytes, -q) 819200
    real-time priority (-r) 0
    stack size (kbytes, -s) 10240
    cpu time (seconds, -t) unlimited
    max user processes (-u) 131072
    virtual memory (kbytes, -v) unlimited
    file locks (-x) unlimited
    [oracle@istream-devlinux3 docupresentment]$ 2011-12-13 02:08:38,539- INFO-[WD-Watchdog-main]-[?:?]-com.docucorp.watchdog.Watchdog.watch: Oracle Docupresentment Watchdog Server
    2011-12-13 02:08:38,711- INFO-[WD-Watchdog-main]-[?:?]-com.docucorp.watchdog.Watchdog.watch: Version 200.024
    2011-12-13 02:08:38,846- INFO-[WD-Watchdog-main]-[?:?]-com.docucorp.watchdog.Watchdog.watch: Running Java version 1.6.0_24-b07 from Sun Microsystems Inc. on Linux 2.6.18-194.el5xen with 4 processors.
    idswatchdog.exe: symbol lookup error: /usr/oracle/oracle_insurance_1/documaker/bin/libnpc.so: undefined symbol: _ZN5NPipeC1ElPciii
    docfactory service error:
    [oracle@istream-devlinux3 bin]$ ./docfactory.sh start
    docfactory.sh: INFO: DocumentFactory ulimit settings:
    address space limit (kbytes) (-M) unlimited
    core file size (blocks) (-c) 0
    cpu time (seconds) (-t) unlimited
    data size (kbytes) (-d) unlimited
    file size (blocks) (-f) unlimited
    locks (-L) unlimited
    locked address space (kbytes) (-l) 50000000
    nofile (-n) 131072
    nproc (-u) 131072
    pipe buffer size (bytes) (-p) 4096
    resident set size (kbytes) (-m) unlimited
    socket buffer size (bytes) (-b) 4096
    stack size (kbytes) (-s) 10240
    threads (-T) not supported
    process size (kbytes) (-v) unlimited
    [oracle@istream-devlinux3 bin]$ docfactory_supervisor: symbol lookup error: /usr/oracle/oracle_insurance_1/documaker/bin/libnpc.so: undefined symbol: _ZN5NPipeC1ElPciii
    could anybody help me solve this error
    thanks in advance.
    Edited by: user13050759 on Dec 12, 2011 9:12 PM
    Edited by: user13050759 on Dec 13, 2011 3:20 AM
    Edited by: user13050759 on Dec 13, 2011 3:22 AM

    I suspect the unresolved symbol is environmental. What distribution, gcc c and c++ runtime are installed? This symbol is contained in the libnpc.so shared object when I run nm on the DSO that is supposed to load.

  • Error to lookup  ejb

    HI,
    what is this error:
    java.lang.NoClassDefFoundError: java/lang/AssertionError
    at weblogic.security.subject.DelegatingSubjectStack.<clinit>(DelegatingS
    ubjectStack.java:18)
    at weblogic.security.service.SubjectManagerImpl.<init>(SubjectManagerImp
    l.java:40)
    at weblogic.security.service.SubjectManagerImpl.ensureInitialized(Subjec
    tManagerImpl.java:277)
    at weblogic.jndi.WLInitialContextFactoryDelegate.<clinit>(WLInitialConte
    xtFactoryDelegate.java:137)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
    extFactory.java:131)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    65)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
    at javax.naming.InitialContext.init(InitialContext.java:222)
    at javax.naming.InitialContext.<init>(InitialContext.java:198)
    at JNDIUtil.getContextFull(JNDIUtil.java
    :174)

    Jen,
    "Jen" <[email protected]> wrote in message news:3f823e8e$[email protected]..
    what is this error:
    java.lang.NoClassDefFoundError: java/lang/AssertionError
    at weblogic.security.subject.DelegatingSubjectStack.<clinit>(DelegatingS
    ubjectStack.java:18)
    at weblogic.security.service.SubjectManagerImpl.<init>(SubjectManagerImp
    l.java:40)Looks like you're trying to run weblogic 8.1 under JDK 1.3.1. Weblogic 8.1
    needs JDK 1.4.1 to run under.
    Slava

  • WSA error DNS lookup failed

    hi,
    When i try to download a file from let say xyz.com i am not able to do so.Policy trace show below result
    User Information
    User Name: r5893
    Group Membership: NBKDOM\r5893, NBKDOM\Limit_Login_Single, NBKDOM\MMS_Access Group, NBKDOM\Screen Saver, NBKDOM\Domain Users, NBKDOM\MMSGroup, NBKDOM\Purchasing&GS-Kuwait, NBKDOM\AllUsers, NBKDOM\Outlook Users, NBKDOM\Administration-Kuwai, NBKDOM\BOUsers, NBKDOM\MYNBKUSERS, NBKDOM\Purchasing Requests - Administration, NBKDOM\EVGROUP001
    User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
    Custom URL Category: Allow sites
    Policy Match
    Cisco IronPort Data Security policy: None
    Decryption policy: None
    Routing policy: Global Routing Policy
    Identity policy: Users
    Access policy: NBK_Users
    Final Result
    Request blocked
    Details: DNS lookup failed
    Trace session complete

    Hi Asim,
    I would investigate the DNS by establishing an SSH session to the M1 interface.  Do an 'nslookup xyz.com' and see if it resolves.  If it does not resolve, you may want to check your DNS server.
    -Vance

  • When Install NWtrail 7.0 error "Reverse lookup of address '-64.-88.0.103'

    message  Reverse lookup of address '-64.-88.0.103' failed.
    pls advise.
    Thx in advance.

    This issues has been resolved.
    I gave static IP: 10.10.0.10 to my Windows XP system (Virtual PC) and then added the following line in host file:
    10.10.0.10 jakkasap.ent.localhost.com jakkasap
    Thanks,
    Praveen Jakka.

  • Typecast error while lookup (J2EEworkmanager to commonJ workmanager)

    Hi,
    I am using plain web application where i want to use commonJ workmanager to do same i have done following steps
    1. Define work manager in weblogic.xml
    <work-manager>
    <name>LogWorkmanager</name>
    <min-threads-constraint>
    <count>5</count>
    </min-threads-constraint>
    </work-manager>
    2. Define resource in web.xml file
    <resource-ref>
    <res-ref-name>LogWorkmanager</res-ref-name>
    <res-type>commonj.work.WorkManager</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    3. Use JNDI mapping to get workmanager as:
    InitialContext ic = new InitialContext();
    commonj.work.WorkManager wm = (commonj.work.WorkManager)ic.lookup("java:comp/env/LogWorkmanager");
    Here at step 3 I am getting classcast exception as java.lang.ClassCastException: weblogic.work.j2ee.J2EEWorkManager.
    Could you please guide me where I am making mistake as I have defined resource ref point to commonj.workmanager and used same name in lookup method still why i am getting J2EEWorkManager instead of commonJ workmanager.
    Thanks,
    Yuvraj

    Can you run a little test. See if the following works:
    In your web.xml
        <!-- default weblogic work manager -->
        <resource-ref>
            <res-ref-name>default</res-ref-name>
            <res-type>commonj.work.WorkManager</res-type>
            <res-auth>Container</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>In your code you can use something like:
    import commonj.work.WorkManager;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.IOException;
    public class TestServlet extends HttpServlet {
        protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            getDefaultWorkManager();
        private WorkManager getDefaultWorkManager() {
            WorkManager defaultWorkManager = null;
            try {
                Context context = new InitialContext();
                defaultWorkManager = (WorkManager) context.lookup("java:comp/env/default");
                System.out.println("My default workmanager " + defaultWorkManager);
            } catch (NamingException e) {
                e.printStackTrace();
            return defaultWorkManager;
    }

  • RFC lookup error

    Hi all,
    I am doing an RFC lookup to increment counter. I am facing a problem.
    I followed the code written by Michael. https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    My udf is as shown below: -
    String content = "";
    MappingTrace importanttrace;
    importanttrace = container.getTrace();
    java.util.Map param = container.getTransformationParameters();
    String MSGID = (String) param.get (StreamTransformationConstants.MESSAGE_ID);
    // filling the string with our RFC-XML (with values)
    String m="<?xml version="1.0" encoding="UTF-8"?><ns0:_-GLB_-ZGT_RFBIBL00_COUNTER xmlns:ns0="urn:sap-com:document:sap:rfc:functions"><IM_V_FILENAME>CA10.NCH.FCIPAY04</IM_V_FILENAME><IM_V_MSGID>"MSGID"</IM_V_MSGID><IM_V_WRNO>DEVWR0001725</IM_V_WRNO></ns0:_-GLB_-ZGT_RFBIBL00_COUNTER>";
    importanttrace.addWarning("Input value is  "+m);
    RfcAccessor accessor = null;
    ByteArrayOutputStream out = null;
    try
    // 1. Determine a channel (Business system, Communication channel)
    Channel channel = LookupService.getChannel(receiverBS,"CC_RFC_RCV_AMS_R3F_DEVWR001725");
    // 2. Get a RFC accessor for a channel.
    accessor = LookupService.getRfcAccessor(channel);
    // 3. Create a xml input stream representing the function module request message.
    InputStream inputStream = new ByteArrayInputStream(m.getBytes());
    // 4. Create xml payload
    XmlPayload payload = LookupService.getXmlPayload(inputStream);
    // 5. Execute lookup.
    Payload result = accessor.call(payload);
    InputStream in = result.getContent();
    out = new ByteArrayOutputStream(1024);
    byte[] buffer = new byte[1024];
    for (int read = in.read(buffer); read > 0; read = in.read(buffer)) {
    out.write(buffer, 0, read);
    content = out.toString();
    catch(LookupException e)
    importanttrace.addWarning("Error while lookup " + e.getMessage() );
    catch(IOException e)
    importanttrace.addWarning("Error " + e.getMessage() );
    finally
    if (out!=null) {
    try {
    out.close();
    } catch (IOException e) {
    importanttrace.addWarning("Error while closing stream " + e.getMessage() );
    // 7. close the accessor in order to free resources.
    if (accessor!=null) {
    try {
    accessor.close();
    } catch (LookupException e) {
    importanttrace.addWarning("Error while closing accessor " + e.getMessage() );
    //returning the result u2013 RFC-XML.response
    if ((content.substring(143,150)).equals("NOENTRY"))
    ExceptionThrower.generate("INVALID INPUT DEVWR NUMBER OR ID" );
    return "Nothing";
    else
    return (content.substring(143,155));
    The problem i am facing is that, i am not able to pass the IM_V_MSGID parameter to the function module.
    The other 2 parameters i can pass. that is IM_V_FILENAME and IM_V_WRNO.
    i am able to extract the message ID using
    java.util.Map param = container.getTransformationParameters();
    String MSGID = (String) param.get (StreamTransformationConstants.MESSAGE_ID);
    and displayed it in SXI_MONITOR trace also using importanttrace.addWarning("Input value is  "+m);
    i got the correct MSGID in the trace.But the problem is that this value is not getting passed to the FM. Cos the table is supposed to increment the counter whenever the MSGID value changes.
    I tried hardcoding the MSGID value to 'abc' or '123' like values but the same thing happended. The counter will not increment. The FM is working perfectly when i run it and change the MSGID values manually.
    Thanks
    Pratichi

    Hi,
    We have done this by creating an FM in XI ABAP stack:
    FUNCTION Z_ZBXI_GET_PRE_MSG_ID.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_CURRMSGID) TYPE  CHAR40
    *"  EXPORTING
    *"     VALUE(E_PREMSGID) TYPE  CHAR40
    DATA: lv_currmsgid type SXMSPMAST-MSGGUID,
          lv_parentmsgid LIKE SXMSPMAST-PARENTMSG,
          lv_premsgid LIKE SXMSPMAST-MSGGUID.
    lv_currmsgid = i_currmsgid.
    select single PARENTMSG from SXMSPMAST into lv_parentmsgid where MSGGUID = lv_currmsgid.
    e_premsgid = lv_parentmsgid.
    ENDFUNCTION.
    You need to call this FM through RFC lookup UDF in your mapping.
    Let me know if it works for you.
    Regards,
    Shweta

Maybe you are looking for

  • To Adobe Representatives: How do I get my money back?

    Dear Adobe, I am awaiting the full and official release of LR3.2 so I can evaluate any SIGNIFICANT improvements in performance. As can be seen by following postings on this list, many people, like myself, are having performance issues on equipment th

  • How do i get firefox to not be in full screen mode without a mouse or keyboard?

    for some reason Firefox switched to full screen mode and i can't get out of it. I'm using Firefox on a tablet PC running windows 8.1 so using F11 or a mouse is not an option. at least i assume it's full screen mode. i can't see my bookmarks bar, my a

  • Adobe Bridge CC Unable to Open

    I installed the files for the output extension on Adobe Bridge CC. After installing the files I am unable to open Adobe Bridge. I have searched for a solution to the problem but cannot find one.

  • Payment amount is greater than invoice amount error

    Payment amount is greater than invoice amount error when doing incoming payment regards kavitha S

  • Asset purchase

    Dear all While creating asset po it given following error pls help G/L account 200020010 cannot be used (please correct) Message no. ME045 Diagnosis Comparison of the field selection strings from the G/L account 200020010 and the account assignment c