Throwing MbeanException wrapping custom exception

Iam throwing a mbean exception which wraps a custom exception from mbean.
Iam invoking this mbean from wlst(python script) and Iam trying to catch this MBeanException
When i try to use the getCause method i get the following exception .
"java.rmi.UnmarshalException: Problem finding error class; nested exception is:
java.lang.ClassNotFoundException: Failed to load class oracle.webcenter.lifecycle.exception.LifecyclePortalGuidMisMatchException"
Please note that the python script is aware of the custom exception (LifecyclePortalGuidMisMatchException).
For testing purpose, to confirm this, i have also created an instance of LifecyclePortalGuidMisMatchException in python (before invoking the mbean)
The complete exception stack
java.rmi.UnmarshalException: Problem finding error class; nested exception is:
java.lang.ClassNotFoundException: Failed to load class oracle.webcenter.lifecycle.exception.LifecyclePortalGuidMisMatchException
javax.management.MBeanException
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
at javax.management.remote.rmi.RMIConnectionImpl_1035_WLStub.invoke(Unknown Source)
at weblogic.management.remote.common.RMIConnectionWrapper$16.run(ClientProviderBase.java:919)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.security.Security.runAs(Security.java:61)
at weblogic.management.remote.common.RMIConnectionWrapper.invoke(ClientProviderBase.java:917)
at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:993)
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 org.python.core.PyReflectedFunction.__call__(Unknown Source)
at org.python.core.PyMethod.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.core.PyObject.invoke(Unknown Source)
at ora_mbs$py.invoke$8(/ade/aimmanue_pt/oracle/oracle_common/common/wlst/lib/ora_mbs.py:56)
at ora_mbs$py.call_function(/ade/aimmanue_pt/oracle/oracle_common/common/wlst/lib/ora_mbs.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyFunction.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.core.PyObject.invoke(Unknown Source)
at LifecycleHandler$py._doScopeImport$26(/ade/aimmanue_pt/oracle/as11gr1wc/common/script_handlers/LifecycleHandler.py:892)
at LifecycleHandler$py.call_function(/ade/aimmanue_pt/oracle/as11gr1wc/common/script_handlers/LifecycleHandler.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyFunction.__call__(Unknown Source)
at ExpImpHandler$py.importGroupSpaces$9(/ade/aimmanue_pt/oracle/as11gr1wc/common/script_handlers/ExpImpHandler.py:113)
at ExpImpHandler$py.call_function(/ade/aimmanue_pt/oracle/as11gr1wc/common/script_handlers/ExpImpHandler.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyFunction.__call__(Unknown Source)
Could you let me who why iam not able to get the cuase of the exception when the client is aware of the exception
Edited by: user510156 on Aug 20, 2012 6:43 AM
Edited by: user510156 on Aug 20, 2012 6:49 AM

Hi,
There is no API to provide this functionality. The reason is the XI message processing is through pipeline as you know. And this is nothing but SAP specific services. So you can not alter them as they are. For the request that you are asking, you will have to edit the pipeline step that populates the SAP:ERROR node. For this, we need to identify which service does this and then if it is possible to write a user exit, etc...So in this case, I would suggest you go with raising an OSS note.
However, can you please tell us why is this required? I can understand to send a message/mail if you get an error or something like that. But I am not able to figure out in what scenarios would you require this kind of error display.
Thanks and Regards,
Sarath.

Similar Messages

  • Webservices and custom exception handling

    hi all,
    I have one ejb method which promote as webservices.
    @WebMethod
    @Oneway
    public void test(String arg) throws STARS21BOException{
    my Custom Exception class STARS21BOException extends from EjbException and it has no-arg constructor.
    but when i deploy on server i get following exception.
    if i remove throws clause from method, it is working fine.
    javax.xml.ws.WebServiceException: Unable to create JAXBContext
         at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:158)
         at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:87)
         at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:271)
         at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:351)
         at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:201)
         Truncated. see log file for complete stacktrace
    Caused By: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
    java.lang.StackTraceElement does not have a no-arg default constructor.
         this problem is related to the following location:
              at java.lang.StackTraceElement
              at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace()
              at java.lang.Throwable
              at java.lang.Exception
              at public java.lang.Exception sg.com.stee.stars21.showcase.business.jaxws.STARS21BOExceptionBean.causedByException
              at sg.com.stee.stars21.showcase.business.jaxws.STARS21BOExceptionBean
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:148)
         at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:87)
         at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:271)
         at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:351)
         Truncated. see log file for complete stacktrace
    Caused By: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
    java.lang.StackTraceElement does not have a no-arg default constructor.
         this problem is related to the following location:
              at java.lang.StackTraceElement
              at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace()
              at java.lang.Throwable
              at java.lang.Exception
              at public java.lang.Exception sg.com.stee.stars21.showcase.business.jaxws.STARS21BOExceptionBean.causedByException
              at sg.com.stee.stars21.showcase.business.jaxws.STARS21BOExceptionBean
         at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
         at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
         at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)
         Truncated. see log file for complete stacktrace
    >
    <Apr 23, 2010 10:51:33 AM SGT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1271991082383' for task '2'. Error is: 'weblogic.application.ModuleException: Exception activating module: EJBModule(ejb-showcaseEJB.jar)

    newt.mm wrote:
    @WebMethod
    @Oneway
    public void test(String arg) throws STARS21BOException{
    }As per method signature it is asynchronous web service however you are trying to throw soap fault. Isn't the soap fault is also a kind of response?
    Do you really want your web method to be asynchronous?

  • Custom exceptions and carrying forward stack trace

    Hi, I have a question on exception handling.
    I have written an application which has several custom exceptions. When an exception occurs, sometimes I throw it and then when its caught, wrapping it in another exception like so:
    } catch (Exception e){
    throw new CollectionFailedException(this.getName() + " could not get collection", e);
    This works fine, but when I output the stacktrace, it only goes as far as the new exception, making things more difficult to debug. Is there any way of incrementing the stack trace using the first exception?
    Many thanks for any help offered!
    Marc

    Marc, this is expected behaviour. When you throw a new exception, the stacktrace starts off at the new one. A really nice explanation and sample code for creating new Exceptions and extending the Exception class is located at:
    http://www.javaworld.com/javaworld/jw-09-2001/jw-0914-exceptions.html
    Good luck, fstream

  • Weblogic 6.1sp2 custom exceptions being transformed to remoteexceptions

    Hi,
    We've recently ported our application from weblogic 6.0sp2 to weblogic 6.1sp2.
    In our ejbs we throw custom exceptions in our business logic, but somehow, in
    weblogic6.1sp2, these are being transformed into ejbexception/remoteexceptions.
    Do you have any ideas what we may be doing wrong?
    Thanks

    Thanks,
    we were doing that, but our custom exceptions were inheriting from RuntimeException
    instead of Exception which was the cause of the problem because weblogic 6.1 is
    more strict than weblogic 6.0.
    Diana
    Matthew Shinn <[email protected]> wrote:
    Hi Diana,
    Make sure your custom exceptions are declared in the throws clause of
    the
    home\remote\localHome\local interface methods. If they are not declared
    in the
    throws clause of your interface methods, they will be wrapped in RemoteExceptions
    or EJBExceptions before being thrown to the client.
    - Matt
    Diana wrote:
    Hi,
    We've recently ported our application from weblogic 6.0sp2 to weblogic6.1sp2.
    In our ejbs we throw custom exceptions in our business logic, but somehow,in
    weblogic6.1sp2, these are being transformed into ejbexception/remoteexceptions.
    Do you have any ideas what we may be doing wrong?
    Thanks

  • How to access custom exception in client side in web services?

    I have an interface and implementation of a java web services. One method in it throws a custom exception indicating the error type (authrization fails, db connection lost, etc...). But in the generated proxy file, the catched exception for the correspondent method becames java.lang.Exception. I check the code and found the actual thrown exception is com.apache.soap.SOAPExcetion. In the client code, I printed out all the SOAPExcetion and related Fault messages but could not find my original custom exception info. I need this custom exception to be accessed to the client so the client knows what's wrong.

    for current user, SPGroup.ContainsCurrentUser
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spgroup.containscurrentuser.aspx
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Native C++ Custom Exception Not Recognized

    Hi,
    I'm having a problem with the native part of my code when throwing a custom exception. It is never caught when the exception is thrown in a separate class, it always falls in the generic catch(...) section. I know this problem has something to do with JNI and Java since running a C++ test program doing the same thing recognizes the exception and catches it.
    My Program is something like this
    Java Part:
    public class RunException {
      public static void main(String args[]) {
         doSomething();
    }C++ Part:
    class CustomException: public exception {
       public :
           exception() {};
    class CatchException: public exception {
       public:
          doSomething() {
            try {
               throwException->throwException();
               throw CustomException(); //this would have been caught in catch(CustomException)
            }catch(CustomException e) {
             //never goes in here
            catch(int e) {
             //this works
            catch(...) {
            //always goes ends up here here
    class ThrowException {
      public:
        throwException() {
           throw CustomException(); //this ends up in catch(...)
           //throw 1 - throwing an integer would work
    } I'm not sure what's causing this but I'm guessing it has something to do with loading and linking or maybe some sort of JVM security policy/behavior? Any help would be greatly appreciated.
    Edited by: z3n3r on Nov 13, 2008 7:51 PM

    Never seen this. Some comments on your C++:
    class CustomException: public exception {
    public :
    exception() {};That should be CustomException() {}
    }catch(CustomException e) {That should be catch (CustomException &e). Never catch exceptions by value.
    throwException() {That should be throwException() throw(CustomException) {}, although good old MSVC still ignores it 15 years later ...

  • Raise custom exception

    Hi experts,
    I have synchronous scenario and in response inbound message I have Fault type ft_my_error_message.
    My question is: how I can raise my custom exception ft_my_error_message in mapping.
    I would like to send some information in my custom exception and catch it in ABAP proxy. With
    throw new StreamTransformationException("my message"); 
    I’m losing response message and in ABAP proxy I don’t know is my custom error occurred or something else.
    Thanks
      Vedran

    Hi Vedran
    Based on the discussion above, it looks like the JDBC call returns the error on the RESPONSE message and do not have a FAULT message type, is that right? Also, you mentioned ABAP proxy, so I'm guessing your scenario is synchronous Proxy to JDBC.
    If the JDBC call does not have a FAULT message, AFAIK I don't think you can map this back to the Proxy fault message.
    An alternative approach would be to map back the JDBC response to the Proxy response, and handle this in the ABAP proxy.
    In the proxy coding, you can check for the values in the response for an indicator of the error. If an error happens, you can raise an exception there. You can check out the link below on how to raise fault messages in the proxy.
    https://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/content.htm
    If you use the application log, or have access to error information from a BAPI return table, you can also use these directly to complete the fault message. In this case, you only need to call the methodCL_PROXY_FAULT=>RAISE of the proxy runtime to trigger the error:
    CALL METHOD cl_proxy_fault=>raise
      EXPORTING
       exception_class_name   = <Name of Exception Class>  
       application_log_handle = < Application Log: Handle of a Protocol>  
       bapireturn_tab         = < Table with BAPI Return Information>.
    The exception class name would be the proxy generated class based on the custom fault type that you declared for the proxy service interface.
    Once the exception is raised in the ABAP proxy, you will see this as an "Application Error" in SXMB_MONI of your ECC system.
    Rgds
    Eng Swee

  • How to use customized exception

    Hi all,
    I have a problem using struts-action-mappings.
    I have a method for update in my app module, and i'm using that method with data action.
    In that method, I have to throw my customized exception to user if there is error. I just don't know how to catch the exception and display it in page.
    I've read about struts page flow diagram elements and know there are Exceptions and Global Exceptions. But i still don't know how to use them.
    What i want to know is can I relate my custom exception with Exceptions/Global Exceptions in struts diagram? And if so, can anybody show me an example for it?
    Thanks

    1.Create a method GET_ACTORS using RH_GET_ACTORS,
    2.Create a container element 'Actors' type string with multiline.
    3.Create Task, where you can call the Method GET_ACTORS  and pass the Container values of 'Actors' from Method->Task->Workflow
    4.Create a Step type before creating the Step mail and include the previous Task.
    5.Now you can create the step Mail. Give the Recipient Type as 'Expression'-> Select the Container Element 'Actors' from WF container
    But remember the values should be Passed from the task to Workflow in Binding correctly.
    Regards,
    Sriyash

  • Custom Exceptions

    Hi all,
    Is it possible to throw custome exceptions from web services that can be caught in the clients of the Web service? If so, how can this be done?
    I have a java class exposed as a web service that throws custom exceptions, but the client gets these exceptions as SOAP Fault. I see that the client proxy, that is generated by 9iAS, has the method signature for all my methods as throwing Exceptions. Does this need to be changed manually in the client proxy??
    Any ideas would be greatly appreciated.
    Regards,
    Vijay

    I see a problem with how OC4J 10.1.3 handles custom exceptions in a bottom-up web service. I think the DP4 version handled this better unless I 'm missing something.
    I have a bottom-up web service whose methods throw a custom exception declared as:
    public class RemoteWebServiceException extends Exception implements Serializable {
    // 4 attributes
    The WSDL generated by OC4J 10.1.3DP4 (works better for me) looks like this:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    <complexType name="RemoteWebServiceException">
    <sequence>
    <element name="faultActor" type="string" nillable="true"/>
    <element name="faultCode" type="QName" nillable="true"/>
    <element name="faultString" type="string" nillable="true"/>
    <element name="localizedMessage" type="string" nillable="true"/>
    <element name="message" type="string" nillable="true"/>
    </sequence>
    </complexType>
    The WSDL generated by OC4J 10.1.3 (creates problems for me) looks like this:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    <complexType name="RemoteWebServiceException">
    <sequence/>
    </complexType>
    My exception class has not changed. My build process has not changed. I use oracle.j2ee.ws.tools.wsa.cli.ant.GenProxy task. Do I need to pass some extra flags with the OC4J 10.1.3 production version to get the same behavior as DP4?

  • Handing Arguments To Custom Exception

    Hi,
    I've written the simple custom exception class below
    public class JAMException extends Exception
         public void JAMException(String area, String type)
              System.out.println("There is a " + type + " problem in " + area);
    }As you can see I want to be able to take in two string arguments which will be used in the output message to the user.
    I utilise the exception like so..
    try
          //something
    catch (JAMException("Virtual Band","InterruptedException"))     //Area, Type
    }However the code above results in the following error
    <identifier> expected
    catch (JAMException("Virtual Band","InterruptedException"))I've never really seem a exception take in arguments so Im wondering if this is possible? Also I want the JAMException class to be a generic exception class to handle IOExceptions, EOFExceptions etc.. Is the above approach correct?
    Help would be really appreciated!

    Thanks for the advice, I've got my JAMException working as you suggested above but when it comes to implementing it, there are certain places where I can't throw it, for example the run() method in a thread. when I attempt to do this i get "overridden method does not throw JAMException". I understand the logic behind this I was just wondering how I can get around it...
    Below is an example of a method that works
    private boolean connect() throws JAMException
         exl.addMessage("Virtual Band");
         try
              data_group = InetAddress.getByName(data_address);
              data_socket = new MulticastSocket(data_port);
              data_socket.setTimeToLive(10);
              System.out.println("TTL: " + data_socket.getTimeToLive());
              data_socket.joinGroup(data_group);
              data_socket.setSoTimeout(500); // 500 ms timeout on functions like receive and send..
              Random r = new Random();
              int x = (int)(r.nextFloat() * 255.0);
              voice_address = voice_address + x;
              System.out.println("Sending my audio to multicast ip=" + voice_address);
              System.out.println("Connect ok!");
              return true;
         catch (Exception e)
              throw new JAMException("Virtual Band", "General Exception");
    //          e.printStackTrace();
              //return false;
    This is the way I was doing the run() method, doesn't work
    public void run() throws JAMException
         System.out.println(">>>>>>> THREAD RUNNING");
              long last = System.currentTimeMillis() - send_intervall;           while (thread != null) {
              if (System.currentTimeMillis() - last > send_intervall)
                   try
                        String msg = "alive:" + my_name + ":" + voice_address + ":";
                        DatagramPacket hi = new DatagramPacket(msg.getBytes(), msg.length(),
                        data_group, data_port);
                        data_socket.send(hi);
                        last = System.currentTimeMillis();
                   catch(Exception e)
                        throw new JAMException("Virtual Band", "General Exception");
    }Anybody got any idea how to get around this problem??

  • Adding a new UDF throws a null pointer exception and modifying user.xml

    Hello,
    I have a two part question.
    i. I am trying to add a UDF (using Advanced>User Configuration..Attributes) to a fully configured OIM i.e. oim with reconciliation and provisioning from and to resources but it throws a null pointer exception. Look at the log, I see
    ===============Excerpt form the log file==========
    [2012-01-26T11:28:14.447-05:00] [oim_server1] [NOTIFICATION] [] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 0000JKQq8vZ8dpC5nFk3yZ1Evvpt000LzY,0] [APP: oim#11.1.1.3.0] [dcid: c62f3a4b80d21e6f:ef93519:134587d39c4:-7ffd-0000000000022a3e] [[
    ---Stack Trace Begins[[This is not an exception. For debugging purposes]]---
    oracle.iam.platform.authz.impl.OESAuthzServiceImpl.doCheckAccess(OESAuthzServiceImpl.java:210)
    oracle.iam.platform.authz.impl.OESAuthzServiceImpl.hasAccess(OESAuthzServiceImpl.java:188)
    oracle.iam.platform.authz.impl.OESAuthzServiceImpl.hasAccess(OESAuthzServiceImpl.java:180)
    oracle.iam.platform.authz.impl.AuthorizationServiceImpl.hasAccess(AuthorizationServiceImpl.java:173)
    oracle.iam.configservice.impl.ConfigManagerImpl.checkAuthorization(ConfigManagerImpl.java:1899)
    oracle.iam.configservice.impl.ConfigManagerImpl.addAttribute(ConfigManagerImpl.java:177)
    oracle.iam.configservice.api.ConfigManagerEJB.addAttributex(Unknown Source)
    ... 21 lines skipped..
    oracle.iam.configservice.api.ConfigManager_5u0nrx_ConfigManagerRemoteImpl.addAttributex(ConfigManager_5u0nrx_ConfigManagerRemoteImpl.java:864)
    ... 13 lines skipped..
    oracle.iam.configservice.api.ConfigManagerDelegate.addAttribute(Unknown Source)
    oracle.iam.configservice.agentry.config.CreateAttributeActor.perform(CreateAttributeActor.java:266)
    oracle.iam.consoles.faces.mvc.canonic.Model.perform(Model.java:547)
    oracle.iam.consoles.faces.mvc.admin.Model.perform(Model.java:324)
    oracle.iam.consoles.faces.mvc.canonic.Controller.doPerform(Controller.java:255)
    oracle.iam.consoles.faces.mvc.canonic.Controller.doSelectAction(Controller.java:178)
    oracle.iam.consoles.faces.event.NavigationListener.processAction(NavigationListener.java:97)
    ... 24 lines skipped..
    oracle.iam.platform.auth.web.PwdMgmtNavigationFilter.doFilter(PwdMgmtNavigationFilter.java:115)
    ... weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    oracle.iam.platform.auth.web.OIMAuthContextFilter.doFilter(OIMAuthContextFilter.java:100)
    ... 15 lines skipped..
    weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    ---Stack Tracefor this call Ends---
    [2012-01-26T11:28:14.447-05:00] [oim_server1] [NOTIFICATION] [IAM-1010010] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 0000JKQq8vZ8dpC5nFk3yZ1Evvpt000LzY,0] [APP: oim#11.1.1.3.0] [dcid: c62f3a4b80d21e6f:ef93519:134587d39c4:-7ffd-0000000000022a3e] [arg: 1] [arg: null] [arg: USER_MANAGEMENT_CONFIG] [arg: CREATE_ATTRIBUTE] ********** Entering the Authorization Segment with parameters:: LoggedInUserId = 1, target resourceID = null, Feature = USER_MANAGEMENT_CONFIG, Action = CREATE_ATTRIBUTE **********
    [2012-01-26T11:28:14.448-05:00] [oim_server1] [NOTIFICATION] [IAM-1010021] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 0000JKQq8vZ8dpC5nFk3yZ1Evvpt000LzY,0] [APP: oim#11.1.1.3.0] [dcid: c62f3a4b80d21e6f:ef93519:134587d39c4:-7ffd-0000000000022a3e] [arg: [InternalObligation: name: noop, values: [true], convertToObligation: false, InternalObligation: name: noop, values: [true], convertToObligation: false]] Validating the Internal Obligations: [InternalObligation: name: noop, values: [true], convertToObligation: false, InternalObligation: name: noop, values: [true], convertToObligation: false]
    [2012-01-26T11:28:14.448-05:00] [oim_server1] [NOTIFICATION] [IAM-1010022] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 0000JKQq8vZ8dpC5nFk3yZ1Evvpt000LzY,0] [APP: oim#11.1.1.3.0] [dcid: c62f3a4b80d21e6f:ef93519:134587d39c4:-7ffd-0000000000022a3e] ---------- The list of Internal Obligation is satisfied, returning TRUE ----------
    [2012-01-26T11:28:14.448-05:00] [oim_server1] [NOTIFICATION] [IAM-1010026] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 0000JKQq8vZ8dpC5nFk3yZ1Evvpt000LzY,0] [APP: oim#11.1.1.3.0] [dcid: c62f3a4b80d21e6f:ef93519:134587d39c4:-7ffd-0000000000022a3e] [arg: Decision :PERMIT\nObligations from policy: ] ********** Exiting the Authorization Segment with result Decision :PERMIT[[
    =============Excerpt ends==============
    Is there a reason why this is and how do I get by it.
    ii. Can I just add the field directly within the MDS>file/user.xml? Would there be an issue with changing an existing attribute metadata using the user.xml?

    Pradeep thank you for your response. it was helpful. However, I also found the responses to both my questions.
    i. The null pointer exception was due to using a complex query I was using in the LOV query. I tried a simple query and that worked fine.
    ii. For modifying the user defined attributes one can consult the following forum post:
    OIM 11g - Change UDF Field Type form String to LOV
    Thanks

  • What factors should be taken into account for Custom Exceptions

    hi,
    I just want to know that What factors should be taken into account for making Custom Exceptions.
    any examples will appreciated.
    regards,
    vjoy

    Do you want this to be checked exception? If so extend it from Exception or subclass of it. If it is unchecked exception (not forced by javac to be caught by callers), then extend it from RuntimeException or subclass of it. Exceptions are serializable objects and so have serialVersionID field. Also, to allow for exception chaining, define a constructor that accepts "cause" (http://java.sun.com/j2se/1.4.2/docs/guide/lang/chained-exceptions.html)

  • Weblogic throwing "null SOAP element Exception" in multi-part SOAP response

    Hi All,
    I'm using weblogic 10. My application is a webservice client generated using '*clientgen*', which is running on weblogic, and
    is invoking a remotely hosted webservice ( Remotely hoseted webservice may not be running on weblogic).
    I've the wsdl file of remotely hosted webservice.
    Now the problem is with WSDL file (I suppose), have a look at this.
    *&lt;message name="m1"&gt;*
    *&lt;part name="body" element="tns:GetCompanyInfo"/&gt;*
    *&lt;/message&gt;*
    *&lt;message name="m2"&gt;*
    *&lt;part name="body" element="tns:GetCompanyInfoResult"/&gt;*
    *&lt;part name="docs" type="xsd:AnyComplexType"/&gt; ------&gt; assume all elements inside this complex type can be nil or minOccurs set to '0'*
    *&lt;part name="logo" type="xsd:AnyOtherComplexType"/&gt; ------&gt; assume all elements inside this complex type can be nil or minOccurs set to '0'*
    *&lt;/message&gt;*
    &lt;portType name="pt1"&gt;
    &lt;operation name="GetCompanyInfo"&gt;
    &lt;input message="m1"/&gt;
    *&lt;output message="m2"/&gt; -----&gt; multi part message.*
    &lt;/operation&gt;
    &lt;/portType&gt;
    Now here is sample message for the request(I've composed this message for this question):
    &lt;soap:Envelope&gt; MESSAGE1
    &lt;soap:header/&gt;
    &lt;soap:body&gt;
    &lt;tns:m2&gt;
    &lt;tns:GetCompanyInfoResult&gt;
    Blah Blah....
    &lt;/tns:GetCompanyInfoResult&gt;
    &lt;tns:docs&gt;
    Blah Blah....
    &lt;/tns:docs&gt; Assume no data for 'logo', so it's not returned. Since all its elements can be nillable.
    &lt;tns:m2&gt;
    &lt;/soap:body&gt;
    &lt;/soap:Envelope&gt;
    First of all, is this SOAP response is valid? I'm not sure about *'message' and 'parts' in SOAP*, but according to XML schema standards it's invalid.
    Because, according to *'message' m2, 'logo' is missing*, eventhough all it's elements are nillable in such case there should be *&lt;logo/&gt;* at the end.
    I mean valid message should be like below
    &lt;soap:Envelope&gt; '*MESSAGE2*'
    &lt;soap:header/&gt;
    &lt;soap:body&gt;
    &lt;tns:m2&gt;
    &lt;tns:GetCompanyInfoResult&gt;
    Blah Blah....
    &lt;/tns:GetCompanyInfoResult&gt;
    &lt;tns:docs&gt;
    Blah Blah....
    &lt;/tns:docs&gt;
    *&lt;tns:logo/&gt; ------------------&gt; here is the change compared to above message. empty element.*
    &lt;tns:m2&gt;
    &lt;/soap:body&gt;
    &lt;/soap:Envelope&gt;
    Now the concerns are :
    (1) Which is a valid response? Message1 or Message2
    (2) If message1 is valid then why is weblogic throwing an exception 'null SOAP element', I suppose this is due to missing 'logo' element.
    (To confirm this I've used tcpmonitor and found message1 as response but weblogic is still throwing 'null SOAP Element' exception,
    which confirms it needs 'logo' as well, I suppose &lt;logo/&gt; at least). Is there any workaround for this in weblogic for multi-part messages?
    (3) If message1 is invalid according to SOAP standards then You've answered my question. ---&gt; I need to talk to the webservice provider in this case.....
    Thanks in advance...

    Message 1 is not Basic Profile 1.1 compliant. It is specified by BP1.1 in section 4.4.1(http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html#Bindings_and_Parts) that when a wsdl:part element is defined using the type attribute, the serialization of that part in a message is equivalent to an implicit (XML Schema) qualification of a minOccurs attribute with the value "1", a maxOccurs attribute with the value "1" and a nillable attribute with the value "false".

  • In FM 10  Table of contents wraps ok except the page number.

    In FM 10  Table of contents wraps ok except if the text just makes it to the end of the line the page the page number goes to the start of the next line. If the text is longer the text wraps fine and the page number goes right justified as it should.  What am I missing?

    Van,
       When you want to change several settings the same way in multiple paragraph formats, there is no need to do so one format at a time.
       To set all formats in all paragraphs and catalog entries:
    1) Open the paragraph designer and go to the appropriate tab.
    2) Type Shift-F8 to set all properties on the tab to "As Is".
    3) Set the properties you care about to the desired values.
    4) From the Commands pop-up in the lower-left corner, select Global Update Options.
    5) Click the All Paragraphs and Catalog Entries.
    6) Click Update.
      The properties you specified but no others have been changed.
      If you do not want to update all paragraphs or catalog entries, make a copy of your document. In the copy, delete all catalog entries you do not want to update. Perform the above steps. Import paragraph formats from the copy into the actual document(s).
            --Lynne

  • Raising Custom Exceptions in RMI

    hi all,
    i have a problem. i have an RMI server that makes use of some classes. in those classes, i am raising exceptions.
    problem is that the first time that those classes are called, the correct custom exception is raised.
    all the following times, i receive a java.util.EmptyStackException, and looking at the log file that i write, it seems that the call never reaches the inteded class.
    All the custom exceptions that i use extends the java.lang.Exception class
    can anyone explain me why i got this weird behaviour??
    thanx in advance and regards
    marco

    What was the resolution to this. I am getting an EmptyStackException running a application with 50 threads. I get this exception in one thread and recover OK. I get the exception in another thread and the whole process hangs! Any thoughts?

Maybe you are looking for