9 Replies Latest reply: Aug 24, 2011 3:00 PM by Mikereiche-Oracle RSS

    Issue with Initializing ODSI Profiler MBean.

    user738507
      Hi All,

      We have an ODSI 10Gr3 cluster of 2 servers, with Oracle Data Service Integrator Profiler MBean deployed to the Admin server. The Profiler was configured properly and working fine, all of a sudden we see there is an initialization error on managed server 2 as shown in the below stack. Managed server 1 doesn't have any of the errors reported.

      On Managed server 2 we see the following error: (I am not able to post the full stack)

      A Security Provider Exception occurred in a non-default AuditProvider com.bea.common.security.internal.legacy.helper.AuditChannelConfigHelper_myrealm_ODSIProfiler>
      java.lang.Exception: Audit Profiler not initialized properly

      at java.lang.Thread.run(Thread.java:619)
      java.lang.Exception: Audit Profiler not initialized properly
           at com.bea.dsp.audit.DSPProfilerProviderImpl.writeEvent(DSPProfilerProviderImpl.java:103)


      The mapping expression for /XXXXXX/XXXXX in the update operation for update to data service ld:XXXX has an unexpected type quantifier. (expected 1 but mapping expression is ?)>
      java.lang.Exception: Audit Profiler not initialized properly
           at com.bea.dsp.audit.DSPProfilerProviderImpl.writeEvent(DSPProfilerProviderImpl.java:103)
           

      Please advice.

      Regards

      Edited by: user738507 on Jun 2, 2011 1:49 PM

      Edited by: user738507 on Jun 2, 2011 1:52 PM
        • 1. Re: Issue with Initializing ODSI Profiler MBean.
          Mikereiche-Oracle
          Since you have the source code, you could look at line 103 - and see that the exception is thrown when _buffer is null. So you could try to figure out why is null, it's supposed to get set at line 1179.

          _buffer = new DSPAuditEvent[_buffersize];

          Any exception thrown earlier in that method would leave _buffer null.  Look for an earlier exception in the server log file.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
          • 2. Re: Issue with Initializing ODSI Profiler MBean.
            user738507
            Thank you for the update. I will look into the code.

            looking at the error messages there are no errors, but warning messages as shown below:

            <May 26, 2011 5:45:01 AM EDT> <Warning> <ODSI> <BEA-000000> <primeodsi> <ld:logical/Call/XXXX.ds [Update Map T1007] The mapping expression for /XXXX/XXXX in the update operation for update to data service ld:physical/XXXXX has an unexpected type quantifier. (expected 1 but mapping expression is ?)>
            <May 26, 2011 5:45:06 AM EDT> <Warning> <Socket> <BEA-000449> <Closing socket as no data read from it during the configured idle timeout of 5 secs>

            Do we have to enable debug on the server to get more information?
            • 3. Re: Issue with Initializing ODSI Profiler MBean.
              Josh-Oracle
              Look at your update map for ld:logical/Call/XXXX.ds. In the update map, find the update block for ld:physical/XXXXX. In the update block, the mapping expression /XXXX/XXXX can evaluate to 1 item or 0 items. The place it is used expects strictly 1 item.

              http://download.oracle.com/docs/cd/E13162_01/odsi/docs10gr3/datasrvc/Understanding%20Update%20Maps.html
              • 4. Re: Issue with Initializing ODSI Profiler MBean.
                Mikereiche-Oracle
                The warning message about the update map is not related to the problem with the Profiler being broken.

                You have the source code, and you are able to see what is printed to System.err (as in the error(Exception e) method). So you can add System.err.println() calls to trace execution. For some reason _buffer is not getting initialized, or it is getting set to null after it is initialized. Since this used to work, you should look closely at any changes that you've made.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
                • 5. Re: Issue with Initializing ODSI Profiler MBean.
                  user738507
                  Thank you for the information. As this is our production server, I am not able to put the debug the application. I am not able to get the issue replicated on any-other instances.

                  Can you help us in understanding why the issue would happen on one instance of the cluster and not on the other one? The application is deployed via admin server and Server1 and Server 2 should behave same way we are having tough time understanding why they are not behaving the same way and one works fine and other one is not. We have tried re-deploying the application, but that didn't help either.

                  please advice,
                  regards,

                  Edited by: user738507 on Jun 9, 2011 2:01 PM
                  • 6. Re: Issue with Initializing ODSI Profiler MBean.
                    Mikereiche-Oracle
                    Do the things I have already suggested. I have nothing else to add.
                    • 7. Re: Issue with Initializing ODSI Profiler MBean.
                      user738507
                      We have deployed the DSPProfilerAudit.jar file in our troubled server. The error in nohup file I got is the same as before...please advice

                      <Jun 28, 2011 5:39:57 AM EDT> <Error> <Security> <BEA-090058> <A Security Provider Exception occurred in a non-default AuditProvider com.bea.common.security.internal.legacy.helper.AuditChannelConfigHelper_myrealm_ODSIProfiler>
                      java.lang.Exception: Audit Profiler not initialized properly
                           at com.bea.dsp.audit.DSPProfilerProviderImpl.writeEvent(DSPProfilerProviderImpl.java:99)
                           at com.bea.common.security.internal.legacy.service.AuditChannelImpl$V1Adapter.writeEvent(AuditChannelImpl.java:103)
                           at com.bea.common.security.internal.service.AuditServiceImpl.writeEvent(AuditServiceImpl.java:83)
                           at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
                           at $Proxy7.writeEvent(Unknown Source)
                           at weblogic.security.service.Auditor.writeEvent(Unknown Source)
                           at com.bea.ld.server.audit.AuditDispatcher.doDispatch(AuditDispatcher.java:100)
                           at com.bea.ld.server.audit.AuditDispatcher.run(AuditDispatcher.java:84)
                           at java.lang.Thread.run(Thread.java:619)
                      java.lang.Exception: Audit Profiler not initialized properly
                           at com.bea.dsp.audit.DSPProfilerProviderImpl.writeEvent(DSPProfilerProviderImpl.java:99)
                           at com.bea.common.security.internal.legacy.service.AuditChannelImpl$V1Adapter.writeEvent(AuditChannelImpl.java:103)
                           at com.bea.common.security.internal.service.AuditServiceImpl.writeEvent(AuditServiceImpl.java:83)
                           at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
                           at $Proxy7.writeEvent(Unknown Source)
                           at weblogic.security.service.Auditor.writeEvent(Unknown Source)
                           at com.bea.ld.server.audit.AuditDispatcher.doDispatch(AuditDispatcher.java:100)
                           at com.bea.ld.server.audit.AuditDispatcher.run(AuditDispatcher.java:84)
                           at java.lang.Thread.run(Thread.java:619)
                      java.lang.Exception: Audit Profiler not initialized properly
                           at com.bea.dsp.audit.DSPProfilerProviderImpl.writeEvent(DSPProfilerProviderImpl.java:99)
                           at com.bea.common.security.internal.legacy.service.AuditChannelImpl$V1Adapter.writeEvent(AuditChannelImpl.java:103)
                           at com.bea.common.security.internal.service.AuditServiceImpl.writeEvent(AuditServiceImpl.java:83)
                           at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
                           at $Proxy7.writeEvent(Unknown Source)
                           at weblogic.security.service.Auditor.writeEvent(Unknown Source)
                           at com.bea.ld.server.audit.AuditDispatcher.doDispatch(AuditDispatcher.java:100)
                           at com.bea.ld.server.audit.AuditDispatcher.run(AuditDispatcher.java:84)
                           at java.lang.Thread.run(Thread.java:619)
                      java.lang.Exception: Audit Profiler not initialized properly
                           at com.bea.dsp.audit.DSPProfilerProviderImpl.writeEvent(DSPProfilerProviderImpl.java:99)
                           at com.bea.common.security.internal.legacy.service.AuditChannelImpl$V1Adapter.writeEvent(AuditChannelImpl.java:103)
                           at com.bea.common.security.internal.service.AuditServiceImpl.writeEvent(AuditServiceImpl.java:83)
                           at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
                           at $Proxy7.writeEvent(Unknown Source)
                           at weblogic.security.service.Auditor.writeEvent(Unknown Source)
                           at com.bea.ld.server.audit.AuditDispatcher.doDispatch(AuditDispatcher.java:100)
                           at com.bea.ld.server.audit.AuditDispatcher.run(AuditDispatcher.java:84)
                           at java.lang.Thread.run(Thread.java:619)
                      java.lang.Exception: Audit Profiler not initialized properly
                           at com.bea.dsp.audit.DSPProfilerProviderImpl.writeEvent(DSPProfilerProviderImpl.java:99)
                           at com.bea.common.security.internal.legacy.service.AuditChannelImpl$V1Adapter.writeEvent(AuditChannelImpl.java:103)
                           at com.bea.common.security.internal.service.AuditServiceImpl.writeEvent(AuditServiceImpl.java:83)
                           at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
                           at $Proxy7.writeEvent(Unknown Source)
                           at weblogic.security.service.Auditor.writeEvent(Unknown Source)
                           at com.bea.ld.server.audit.AuditDispatcher.doDispatch(AuditDispatcher.java:100)
                           at com.bea.ld.server.audit.AuditDispatcher.run(AuditDispatcher.java:84)
                           at java.lang.Thread.run(Thread.java:619)
                      java.lang.Exception: Audit Profiler not initialized properly
                           at com.bea.dsp.audit.DSPProfilerProviderImpl.writeEvent(DSPProfilerProviderImpl.java:99)
                           at com.bea.common.security.internal.legacy.service.AuditChannelImpl$V1Adapter.writeEvent(AuditChannelImpl.java:103)
                           at com.bea.common.security.internal.service.AuditServiceImpl.writeEvent(AuditServiceImpl.java:83)
                           at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
                           at $Proxy7.writeEvent(Unknown Source)
                           at weblogic.security.service.Auditor.writeEvent(Unknown Source)
                           at com.bea.ld.server.audit.AuditDispatcher.doDispatch(AuditDispatcher.java:100)
                           at com.bea.ld.server.audit.AuditDispatcher.run(AuditDispatcher.java:84)
                           at java.lang.Thread.run(Thread.java:619)
                      java.lang.Exception: Audit Profiler not initialized properly
                           at com.bea.dsp.audit.DSPProfilerProviderImpl.writeEvent(DSPProfilerProviderImpl.java:99)
                           at com.bea.common.security.internal.legacy.service.AuditChannelImpl$V1Adapter.writeEvent(AuditChannelImpl.java:103)
                           at com.bea.common.security.internal.service.AuditServiceImpl.writeEvent(AuditServiceImpl.java:83)
                           at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
                           at $Proxy7.writeEvent(Unknown Source)
                           at weblogic.security.service.Auditor.writeEvent(Unknown Source)
                           at com.bea.ld.server.audit.AuditDispatcher.doDispatch(AuditDispatcher.java:100)
                           at com.bea.ld.server.audit.AuditDispatcher.run(AuditDispatcher.java:84)
                           at java.lang.Thread.run(Thread.java:619)
                      java.lang.Exception: Audit Profiler not initialized properly
                           at com.bea.dsp.audit.DSPProfilerProviderImpl.writeEvent(DSPProfilerProviderImpl.java:99)
                           at com.bea.common.security.internal.legacy.service.AuditChannelImpl$V1Adapter.writeEvent(AuditChannelImpl.java:103)
                           at com.bea.common.security.internal.service.AuditServiceImpl.writeEvent(AuditServiceImpl.java:83)
                           at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
                           at $Proxy7.writeEvent(Unknown Source)
                           at weblogic.security.service.Auditor.writeEvent(Unknown Source)
                           at com.bea.ld.server.audit.AuditDispatcher.doDispatch(AuditDispatcher.java:100)
                           at com.bea.ld.server.audit.AuditDispatcher.run(AuditDispatcher.java:84)
                           at java.lang.Thread.run(Thread.java:619)
                      java.lang.Exception: Audit Profiler not initialized properly
                           at com.bea.dsp.audit.DSPProfilerProviderImpl.writeEvent(DSPProfilerProviderImpl.java:99)
                           at com.bea.common.security.internal.legacy.service.AuditChannelImpl$V1Adapter.writeEvent(AuditChannelImpl.java:103)
                           at com.bea.common.security.internal.service.AuditServiceImpl.writeEvent(AuditServiceImpl.java:83)
                           at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:597)
                           at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
                           at $Proxy7.writeEvent(Unknown Source)
                           at weblogic.security.service.Auditor.writeEvent(Unknown Source)
                           at com.bea.ld.server.audit.AuditDispatcher.doDispatch(AuditDispatcher.java:100)
                           at com.bea.ld.server.audit.AuditDispatcher.run(AuditDispatcher.java:84)
                           at java.lang.Thread.run(Thread.java:619)
                      • 8. Re: Issue with Initializing ODSI Profiler MBean.
                        Mikereiche-Oracle
                        Same advice as last two times.
                        • 9. Re: Issue with Initializing ODSI Profiler MBean.
                          Mikereiche-Oracle
                          You've reported that after modifying the DSPProfiler source code again, the DSPProfiler again works properly. It's not clear what the changes were that created and fixed the problem.

                          enclosing the code of every public method with try{ ... } catch(RuntimeException e) { e.printStackTrace(); } would be helpful in case of future problems.