Checking the actual instance of reference, like "instance of" in Java

Hi All,
I have a method that has the ability to return a number of Z exception class types.  All of these exception classes inherit from the same super Z exception class.  This means that when called the callee only needs to catch the super Z exception class (and pass it on if required). 
However, I would now like to be able to tell which instance it actually is, but only have a reference to the super class.  In Java there is a comparison "instance of" which you can use like an if statement asking if particular reference you have is referening to an instance of a particular class, which you pass to the other side of the if as a string literal.
Does ABAP have a utility class anywhere (as I couldn't find it in the keywords) to do the same thing?
Many thanks,
Alex.

hi, you can try the code like following:
assume C is a class type you defined.
data: B  TYPE REF TO C,
      R  TYPE REF TO OBJECT.
CREATE OBJECT R TYPE C.
R = B.
strname = CL_ABAP_CLASSDESCR=>GET_CLASS_NAME( R ).
you will get a absolute class name of B.
hope it will be helpful
thanks

Similar Messages

  • Possible to check  the memory allocation with out given new keyword in java

    hi sir !
    if it is possible to check the memory allocation. before given the NEW.. and after given the NEW....
    and plz suggest me..
    thanks

    If you can't read and understand the API docs, you have no use for the information.
    And most likely, you don't need this information anyway, even though you think you do.

  • Exception occured while retrieving the Flowtrace XML for the Composite Instance; java.lang.ClassNotFoundException: Failed to load class oracle.bpel.services.workflow.WorkflowException

    When i try to view the FlowTrace i'm getting the following exception in EM
    Unable to display Flowtrace due to exception while initializing object, please review logs for detailed information.
    >> Exception occured while retrieving the Flowtrace XML for the Composite Instance; ECID: 0000JzmIFk95EgPquci8UH1HtzlR0000HC
    >> java.rmi.UnmarshalException: Problem finding error class; nested exception is:
    >>> java.lang.ClassNotFoundException: Failed to load class oracle.bpel.services.workflow.WorkflowException
    >>> at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
    >>> at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
    >>> at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_1036_WLStub.getAuditTrail(Unknown Source)
    >>> at oracle.soa.management.internal.ejb.EJBLocatorImpl.getAuditTrail(EJBLocatorImpl.java:473)
    >>> at oracle.sysman.emai.model.sca.share.composite.FlowTraceModel.setFloatraceModelInfo(FlowTraceModel.java:172)
    >>> at oracle.sysman.emai.model.sca.share.composite.FlowTraceModel.initialize(FlowTraceModel.java:79)
    >>> at oracle.sysman.emai.model.sca.EMEntityModel._initializeEntityData(EMEntityModel.java:28)
    >>> at oracle.sysman.emai.model.sca.common.SCAEntityObject.initializeSCAData(SCAEntityObject.java:124)
    >>> at oracle.sysman.emai.model.sca.SCAObject.initializeData(SCAObject.java:66)
    >>> at oracle.sysman.core.model.util.ModelUtil$EMObjectResetter.initOrResetEMObject(ModelUtil.java:319)
    >>> at oracle.sysman.core.model.util.ModelUtil$EMObjectResetter.access$000(ModelUtil.java:280)
    >>> at oracle.sysman.core.model.util.ModelUtil.initializeMBEMObjects(ModelUtil.java:231)
    >>> at oracle.sysman.core.model.util.ModelUtil.initializeAllEMObjects(ModelUtil.java:128)
    >>> at oracle.sysman.core.model.util.ModelUtil.initializeAllEMObjects(ModelUtil.java:101)
    >>> at oracle.sysman.emSDK.adfext.ctlr.EMPagePhaseListener.doPrePrepareModel(EMPagePhaseListener.java:867)
    >>> at oracle.sysman.emSDK.adfext.ctlr.EMPagePhaseListener.beforePhase(EMPagePhaseListener.java:795)
    >>> at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.beforePhase(ADFLifecycleImpl.java:551)
    >>> at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchBeforeEvent(LifecycleImpl.java:100)
    >>> at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:191)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:23)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:238)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:274)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:75)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
    >>> at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:472)
    >>> at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
    >>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    >>> at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    >>> at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    >>> at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
    >>> at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:164)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    >>> at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
    >>> at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:179)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.sysman.core.model.targetauth.EMLangPrefFilter.doFilter(EMLangPrefFilter.java:158)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    >>> at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    >>> at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    >>> at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    >>> at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    >>> at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    >>> at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
    >>> at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
    >>> at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    >>> at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    >>> at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
    >>> at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
    >>> at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
    >>> at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    >>> at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >>> Caused by: java.lang.ClassNotFoundException: Failed to load class oracle.bpel.services.workflow.WorkflowException
    >>> at weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate.java:208)
    >>> at weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate.java:135)
    >>> at weblogic.rmi.utils.Utilities.loadClass(Utilities.java:305)
    >>> at weblogic.rjvm.MsgAbbrevInputStream.resolveClass(MsgAbbrevInputStream.java:436)
    >>> at weblogic.utils.io.ChunkedObjectInputStream$NestedObjectInputStream.resolveClass(ChunkedObjectInputStream.java:268)
    >>> at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
    >>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
    >>> at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
    >>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
    >>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
    >>> at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:208)
    >>> at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:599)
    >>> at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:235)
    >>> at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
    >>> at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_1036_WLStub.getAuditTrail(Unknown Source)
    >>> at oracle.soa.management.internal.ejb.EJBLocatorImpl.getAuditTrail(EJBLocatorImpl.java:473)
    >>> at oracle.sysman.emai.model.sca.share.composite.FlowTraceModel.setFloatraceModelInfo(FlowTraceModel.java:172)
    >>> at oracle.sysman.emai.model.sca.share.composite.FlowTraceModel.initialize(FlowTraceModel.java:80)
    >>> at oracle.sysman.emai.model.sca.EMEntityModel._initializeEntityData(EMEntityModel.java:29)
    >>> at oracle.sysman.emai.model.sca.common.SCAEntityObject.initializeSCAData(SCAEntityObject.java:125)
    >>> at oracle.sysman.emai.model.sca.SCAObject.initializeData(SCAObject.java:66)
    >>> at oracle.sysman.core.model.util.ModelUtil$EMObjectResetter.initOrResetEMObject(ModelUtil.java:319)
    >>> at oracle.sysman.core.model.util.ModelUtil$EMObjectResetter.access$000(ModelUtil.java:280)
    >>> at oracle.sysman.core.model.util.ModelUtil.initializeMBEMObjects(ModelUtil.java:231)
    >>> at oracle.sysman.core.model.util.ModelUtil.initializeAllEMObjects(ModelUtil.java:131)
    >>> at oracle.sysman.core.model.util.ModelUtil.initializeAllEMObjects(ModelUtil.java:102)
    >>> at oracle.sysman.emSDK.adfext.ctlr.EMPagePhaseListener.doPrePrepareModel(EMPagePhaseListener.java:869)
    >>> at oracle.sysman.emSDK.adfext.ctlr.EMPagePhaseListener.beforePhase(EMPagePhaseListener.java:795)
    >>> at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.beforePhase(ADFLifecycleImpl.java:552)
    >>> at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchBeforeEvent(LifecycleImpl.java:100)
    >>> at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:192)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:23)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:238)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:276)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:77)
    >>> at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:54)
    >>> at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:472)
    >>> at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
    >>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    >>> at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    >>> at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    >>> at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
    >>> at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:166)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
    >>> at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
    >>> at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
    >>> at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:183)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.sysman.core.model.targetauth.EMLangPrefFilter.doFilter(EMLangPrefFilter.java:158)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    >>> at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    >>> at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    >>> at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    >>> at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    >>> at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    >>> at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    >>> ... 9 more

    Hi Manish,
    It seems that you are using a custom security provider and the weblogic server is not able to find the class / jar file that contains the class.
    java.lang.ClassNotFoundException: Failed to load class com.msl.security.providers.SessionPrincipal]
    Make sure you have all the required jar files in the server classpath.
    You can use the JarScan utility to find the jar that contains the class.
    Refer the below link regarding the jarScan.
    http://weblogic-wonders.com/weblogic/2011/01/26/finding-jar-files-using-jarscan/
    Regards,
    Anandraj
    http://weblogic-wonders.com

  • ITunes library mysteriously dissapeared (not the actual files where they are stored) and once I transfered songs back to iTunes, some purchased songs had been corrupted (missing tags

    Last week, I purchased around 9-10 songs. The previous day, I had played songs from my iTunes library... everything working normal. The day after purchasing those 9-10 songs... I noticed that my entire songs in my library (and playlist) where gone, essentially being re-set like new. I updated my iTunes version, re-started my PC and still... nothing was showing up except those 9-10 songs. I did the next logical thing which was to check the actual music folder that stores the songs. They where all there. It did not make any sense as I had not done or noticed anything unsual while using iTunes before. Now, I want to mention that I use a DJ software (mixvibe) with the ION Discovery DJ that pulls tracks from iTunes. For the past couple of months they both have worked great. Fast forwarding to my issue, I went ahead and copied all the music back to iTunes. I spent a good hour making sure that everything worked and re-created my playlists. One thing that struck me as odd was that while checking everything... some songs that I had purchased recently and even a couple of months ago that I've used on my mixvibe software... had the track info deleted. The only information was the track name, ex. (01 - Bird One). For some reason, they were dumped into a "Unknown Artists" file. There was a good 20-25 songs that had this issue. The one thing that I noticed was that when I would highlight the song within the Uknown Artist folder... All of the information including cover art was showing up at the bottom of the folder (if you are familiar with Windows 7 you know what I'm talking about). How can it be that all of the actual information was still there yet not showing up in iTunes? I had to manually go one by one of those 20-25 songs and add all of the track info (as much as I could). I was also able to recover some of the cover art but not all. It seems like the files got corrupted. Can I re-download these tracks again or how can I get them to how they were originally? HELP!

    I find the best way to do this is to right click on the song in iTunes and convert then select convert ID3 tags to V1.1 this usually completes the tag and adds all the missing info, provided it is in iTunes corectly.
    Were these songs you Dled or ripped form a cd directly?

  • Help! how to check the SQL run in Oracle?

    Hi all,
    I have a problem. the developer said the SQL written in Java code are not the one executed in Oracle DB. that mean the query is some how manipulated by some PL/SQL so the final query run in Oracle is different. So can someone teach me how to check the actual SQL run in Oracle?
    Thanks a lot.
    Regards,
    Jason

    Hi Michel Thanks. But it looks like the query stored in v$sqlarea is not the final executable SQL. for example, the code in application is "select column_A from default_table where column_A = ?" and this ? will be given some value in run time. the query stored in v$sqlarea will be like "select column_A from default_table where column_A = :1"... what is this :1?
    Also if some PL/SQL procedure appends some condition to the SQL, is it possible to view the full query from database side?
    ok, let me try trace and tkprof first.

  • Costing Report to Check the Result of MR21

    Hi all,
    I have tried to change the Sales Order Material Value with MR21. The results can be checked with MB52.
    However, I want to check the actual results in accounting and costing aspect.
    Could suggest any costing reports that can trace and analysis the costing Sales cost?
    Cheers,
    Simon

    Hi Simon
    Use T code CKMPCD and you can see the Price Change docs... You can filter the docs based on Mat No / Period/ etc
    It will show you the desired acc/CO docs
    Br, Ajay M

  • App Server changes the actual exception thrown [URGENT]

    Hello All,
    I am getting a very typical problem with SJS Platform Edition 8.1_01. I have a form to delete a record from table which throws an exception with oracle error in message as "ORA-02292: integrity constraint (some_constraint name) violated - child record found" .
    Another code checks the message and converts it into more user friendly message to be displayed. This word fine when application runs in Studio. Problem arises when the application is deployed on Application Server. Here, the message is provided when same exception is thrown as "java.rmi.RemoteException: Unidentified Trap Session : nested exception is: java.rmi.RemoteException: nested exception is: java.rmi.RemoteException: "
    Since this doesn't contain any ORA error no. the message is not converted to user friendly message.
    I am not able to find out the reason for this as the same code works well on IBM Websphere studio/ App Server and also works fine on Sun Java Studio {jstudio_04Q4}.
    Is there any configuration change that I need to do on SJS Platform Edition 8.1_01 or is there any setting which truncate the actual message of exception because in log I can see the whole message as "java.rmi.RemoteException: Unidentified Trap Session : nested exception is: java.rmi.RemoteException: nested exception is: java.rmi.RemoteException: Remote Entity Remove:  delete from CARD_MASTER where CARD_TYPE = ? ORA-02292: integrity constraint (ORACLE.FK_PROMO_CARD) violated - child record found"
    Please help ASAP as this is becoming very critical.

    I'm not sure what do you mean that it works with Studio?
    You can see an exception text when you execute the SQL?
    To check the actual exception text, you need to catch
    the exception on the server side (i.g. in a Session Bean),
    make sure the transaction is rolled back (if you need so),
    and re-throw it as a checked exception to make sure the
    text is untouched.
    Regards,
    -marina

  • To group the data by checking the year

    I need to design a report with details based on year.i have employee details with their date of join.I want to display the fields by grouping the year alone.For eg employees joined in the year 2000,2001,2002 etc.Like this i have to display.How to check the year alone?(not like getting date as input)

    You can extract  year from the filed 'date of join ' and put it in another internal table together with employee id . and sort the internal table by year . you can use this sorted internal table for printing

  • Checking the Financial Period

    Hi Everybody,
    Every time im trying to add a journalEntry it fails because of the dates.
    The dates are from 2004 and the current financial period that im working with is 2004 as well but it still fails.
    The financial period is the whole year so i dont need to check the month.
    Anybody has ideas about the reason for the failure?
    Ronen Racz

    Hi Rasmus,
    the code is not the problem because it works fine when the financial period is 2006 and the dates are also 2006.
    when i change all the dates and the period to 2004, it stops working...
    does it check the computer date or something like that?
    Ronen
    p.s.
    if you still want to see the code its the first message in there
    Re: adding and updating journalentries

  • How to check the compilation time of C++ code on Xcode 6

    how to check the compilation time of C++ code on Xcode 6

    import java.util.Calendar;
    Calendar rightNow = Calendar.getInstance();  // gets the current date and time to millisec
    Calendar earlyTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 6).set(Calendar.MINUTE, 30);
    Calendar lateTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 8).set(Calendar.MINUTE, 0);
    if (rightNow.compareTo(earlyTime)> 0 && rightNow.compareTo(lateTime) < 0){
    // do something
    }Try this.

  • The truth about objects, references, instances and cloning (Trees and Lists

    Hello
    As a few of you may have know from my postings over the past few weeks, ive been building my first real java ap and trying to learn along the way, hitting a few snags here and there.
    One main snag i seem to have been hitting a fair bit is objects and instances, im kinda learning on how they work and what they mean but as a php programmer it seems to be very different.
    as pointed out to me if you have objectA=objectB then in php you have two objects that share the same value but in java you have still one object value and one object pointing to the value.
    sooo my first question is
    if i have this
    Object objA=new Object()
    Object objB=objA()then object A creates a new memory allocation for the object data right? and object B is simply a reference to the object A memory allocation right?
    so therefore there is no instance of objectB? or is there an instance of object B but it just takes up the same memory allocation as object A?
    anyway, what is the point of being able to say objB=objA what can that be used for if not for making a copy of an object (i understand now that it doesnt copy an object)
    My second question (which i think i actually understand now, but im posting it to see if the answers may help others)
    If i have a List structure (e.g. arraylist) then when i add a datatype such as a treemap does it not add the changed treemap, ill try and explain with code
    ArrayList mylist=new ArrayList()
    Treemap myTree=new Treemap()
    myTree.put("hello","howdy");
    myTree.put("bye","cya");
    mylist.put(myTree);
    System.out.println(mylist.toString());
    myTree.put("another","one");
    mylist.put(myTree);
    System.out.println(mylist.toString());now to be honest ive not actually tried that code and it may actually procude the right results, but from my experience so far that similar sort of thing hasnt been working (by the way i know the above code wont compile as is :p)
    anyway what i assume is that will output this
    [Hello,howdy,bye,cya] <<this is the first system out
    [Hello,howdy,bye,cya,another,one  <<this is the second system out
    Hello,howdy,bye,cya,another,one] <<this is the second system out
    where it should produce this
    [Hello,howdy,bye,cya,
    Hello,howdy,bye,cya,another,one]
    Why when I update the treemap does the arraylist change, is this because the thing that is being put in the array list is infact not an object but simply a reference to an object?
    thanks for everyones help so far :)

    as pointed out to me if you have objectA=objectB then
    in php you have two objects that share the same value
    but in java you have still one object value and one
    object pointing to the value.Some years ago, I built a small website managing data saved in an XML file using PHP. Being used to Java, I used an OO approach and created classes managing data structures and having setter/getter methods. The fact that PHP did actually create a copy of any object being passed as and argument made me crazy. This way, I wasn't able to reach the same instances from several different places in my code. Instead, I had to put a certain operator ("&" I think) before any reference to force PHP not to make a copy but pass the reference. I also found a note on the PHP site saying that copying was faster than passing the reference, which I actually couldn't believe. If I'm not wrong, they changed the default behaviour in PHP5.
    if i have this
    Object objA=new Object()
    Object objB=objA()then object A creates a new memory allocation for the
    object data right? and object B is simply a reference
    to the object A memory allocation right?The statement "new <Class>" allocates memory. The reference itself just takes up a few bytes in order to maintain some administrative data (such as the memory address). References are basically like pointers in C, though there's no pointer arithmetics and they can't point to any arbitrary place in memory (only a legal instance or null).
    so therefore there is no instance of objectB? or is
    there an instance of object B but it just takes up
    the same memory allocation as object A?There is an instance of objectB, but it's just the same instance that objectA is pointing at. Both references objectA and objectB contain the same memory address. That's why they'd produce a result of "true" if compared using the "==" operator.
    anyway, what is the point of being able to say
    objB=objA what can that be used for if not for making
    a copy of an object (i understand now that it doesnt
    copy an object)Sometimes you don't want to make a copy, as 1) it consumes more memory and 2) you'd lose the reference to it (making it more difficult to tell what instance is actually accessed). If there was no way to pass a reference to an object into a method, methods wouldn't be able to affect the original instance.
    Why when I update the treemap does the arraylist
    change, is this because the thing that is being put
    in the array list is infact not an object but simply
    a reference to an object?The ArrayList doesn't change at all. It's the instance that's being changed, and the ArrayList has a reference to it.

  • How do I get a reference to the SecurityServices instance in my web appl?

    I would like to use the audit provider of weblogic to log audit event that I send from my servlet. For writing a auditevent I need a reference to the AuditService instance. How do I obtain that? IS there any static class through with I can get references to the security services?
    Lakshmi

    Pete,
    The Thread class's public static Thread currentThread() method will return a reference to the Thread object that represents the thread of execution that is live when the method is invoked. More simply, it provides a reference to the currently executing thread.
    So you could use this as a key in a hashtable to represent which thread has a lock on some entity:
       // "hash" is a hashtable
       // entity is an Object representing something that is locked (like
       // a record number or a resource identifier)
       hash.put(Thread.currentThread(),entity);I think this answers your question, unless I misunderstood you.
    Damian

  • Failed to initialize the network. Check if another instance of agent is

    Out of the blue a small number of my Windows XP PCs get the following error
    when logging in. Usually appears while login script page is on screen:-
    Failed to initialize the network. Check if another instance of agent is
    running. Contact the system administrator
    Once XP has loaded ok I can manually start the Remote Management service.
    Some PCs are intermittent and don't seem to get it again but a couple get it
    every login. I removed the client and reinstalled. I removed the Remote
    Management service and re-installed. Re-registered the PC Workstation but no
    change for those who get it every day.
    I did find this:-
    Failed to initialize the network. Check if another instance of agent is
    running. Contact the system administrator
    Source: Remote Management Agent
    Severity: Critical
    Possible Cause: The Remote Management Agent is unable to bind to the IPX or
    IP port that is being used for Remote Management service, or the ports are
    being used by some other application running on the managed workstation.
    Action: Uninstall any third-party remote control agent or remote control
    application using these ports from the managed workstation.
    Possible Cause: The protocol stack is corrupted.
    Action: Reinstall the protocol stack.
    Possible Cause: The managed workstation is not connected to the network, or
    the network is down.
    Action: Connect the managed workstation to the network.
    I don't have any third party remote control agent installed and I've tried
    the refresh of the IP protocol stack. Surprised this has started as we have
    not made any changes to the network or software. We run NW Client 4.83sp1
    and NW5.1 sp5.
    Anybody else had this and cleared it completely?

    Further developments:
    It looks like it's a fault in the nic. it's a Compaq NC3120 Fast Ethernet
    card. It used to work, but since I've wiped out the card drivers that were
    in use, I'm at HP's mercy. They are telling me that the card is no longer
    under warranty and won't even tell me what driver to look for. Anything I've
    managed to find has the exact same symptoms:
    Client works, ping to IP addresses work, ping to www.yahoo.com (etc) doesn't
    work, although winipcfg shows a DNS server the same as every other machine I
    have.
    Internet explorer doesn't work, even with IP addresses to local servers.
    And of course, zenrc32 doesn't work, wsreg32 doesn't work.
    Does anyone know of a way of making the NC3120 work on a win98 machine?
    Shall I just go buy a couple dozen netcards from a more reputable company
    than compaq?
    Chris Denby
    IT Coordinator
    Rainy River District School Board
    Fort Frances, Ontario
    Canada
    "Chris Denby" <[email protected]> wrote in message
    news:[email protected]...
    > I have this message on windows 98. In addition to that, the wsreg32.log
    > reads work station import error -1 (UNKNOWN).
    > This happened after ghosting down to the machine and finding that it had a
    > different card. The client adapted easily to a new card, but the
    zenrc32.exe
    > won't run.
    >
    > I've checked to make sure it wasn't running by renaming the zenrc32.exe to
    > zenrc32.ex so it wouldn't run on start up. Then after the machine was
    > started up, I changed it back and ran it and it died immediately with the
    > same error.
    >
    > I have uninstalled the client through admin\unc32 and removed all traces
    of
    > the client then reinstalling, but no luck.
    >
    >
    > <[email protected]> wrote in message
    > news:1XuQc.3739$8%[email protected]...
    > > Did you ever get this solved?
    > > I've got the same thing going on with one Win2000 machine in my
    > > department. He can log into the network just fine but can not get to the
    > > internet.
    > > I've tried re-installing the protocol stack; no luck. I've searched hi
    and
    > > low for any other agent running on the machine with no luck. I've
    searched
    > > the registry for hours for all keys that would start programs or agents
    at
    > > start. Can't find anything. I've check for services, checked for fire
    wall
    > > problems, viruses. No luck. Since its only one machine I can re-image it
    > > with no problem, but I'm curious and want to find out whats going on in
    > > case the problem reapears or grows to other machines.
    > > Any help out there???
    > >
    > > > Out of the blue a small number of my Windows XP PCs get the following
    > > error
    > > > when logging in. Usually appears while login script page is on
    screen:-
    > > >
    > > > Failed to initialize the network. Check if another instance of agent
    is
    > > > running. Contact the system administrator
    > > >
    > > > Once XP has loaded ok I can manually start the Remote Management
    > service.
    > > > Some PCs are intermittent and don't seem to get it again but a couple
    > > get it
    > > > every login. I removed the client and reinstalled. I removed the
    Remote
    > > > Management service and re-installed. Re-registered the PC Workstation
    > > but no
    > > > change for those who get it every day.
    > > >
    > > > I did find this:-
    > > >
    > > > Failed to initialize the network. Check if another instance of agent
    is
    > > > running. Contact the system administrator
    > > >
    > > > Source: Remote Management Agent
    > > >
    > > > Severity: Critical
    > > >
    > > > Possible Cause: The Remote Management Agent is unable to bind to the
    IPX
    > > or
    > > > IP port that is being used for Remote Management service, or the ports
    > > are
    > > > being used by some other application running on the managed
    workstation.
    > > >
    > > > Action: Uninstall any third-party remote control agent or remote
    control
    > > > application using these ports from the managed workstation.
    > > >
    > > > Possible Cause: The protocol stack is corrupted.
    > > >
    > > > Action: Reinstall the protocol stack.
    > > >
    > > > Possible Cause: The managed workstation is not connected to the
    network,
    > > or
    > > > the network is down.
    > > >
    > > > Action: Connect the managed workstation to the network.
    > > >
    > > > I don't have any third party remote control agent installed and I've
    > > tried
    > > > the refresh of the IP protocol stack. Surprised this has started as we
    > > have
    > > > not made any changes to the network or software. We run NW Client
    > 4.83sp1
    > > > and NW5.1 sp5.
    > > >
    > > > Anybody else had this and cleared it completely?
    > > >
    > > >
    > > >
    > > >
    > > >
    > >
    >
    >

  • Hello! Could you tell me which configuration is the best for graphic works, like making large POSTERS or BANNERS (for instance 2800X500 cm)???

    Hello! Could you tell me which configuration is the best for graphic works, like making large POSTERS or BANNERS (for instance 2800X500 cm)???

    scorpiorey wrote:
    I just create file and send it to printer-house.
    Never done that size files (posters) before, so, didn't know it would be such problem.
      Model Name:          MacBook Pro
      Model Identifier:          MacBookPro8,1
      Processor Name:          Intel Core i7
      Processor Speed:          2.8 GHz
      Number of Processors:          1
      Total Number of Cores:          2
      L2 Cache (per Core):          256 KB
      L3 Cache:          4 MB
      Memory:          4 GB
      Boot ROM Version:          MBP81.0047.B24
      SMC Version (system):          1.68f98
    this is what i have. now i know that it's not enough
    If that's what you're using and it actually works, albeit slowly, I'd suggest taking The hatter's advice and go with the 6 core Mac Pro with  24GB of RAM and the 5870 video card. The RAM could come from here: http://eshop.macsales.com/shop/memory/Mac-Pro-Memory#1333-memory

  • How to check the availability of a SCS-Instance

    Hi.
    We want to use HP serviceguard for our HA solution - but we do not want to pay so much money for the SAP serviceguard extensions. So we do it ourselves...
    My question: how to check the availability of the SCS-Instance on regular basis on os level?
    - is it enough to check the enqueue and message server process? I don't think so :o)
    - is it enough to check the latest entry of this file?
    /usr/sap/<SID>/SCS<SYSNR>/work/available.log
    some typical entry of this file looks like these:
    Unavailable 30.04.2009 17:03:07 - 04.05.2009 11:32:33
    Available   04.05.2009 11:33:33 - 05.05.2009 17:33:05
    Available   05.05.2009 17:35:36 - 05.05.2009 17:35:36
    Available   05.05.2009 17:37:51 - 06.05.2009 08:49:11
    Other ideas?
    Thanks for your help!
    Martin

    Hi,
    what type of script you want to run at OS level, u can check the status in MMC itself if you are using windows or u can check the status in index.html informaiton page or u can use JCMON at OS level to check the status.
    -Srini

Maybe you are looking for

  • Null value in Nested table of nested table for xml guru Steve Muench

    The procedure I am using takes xml document with nested levels and insert into single table using DBMS_XMLSave.insertXML. I am able to insert into table without any error message but when I am selecting row from table, it is showing null values in al

  • Receiver File Error while using Dynamic Configuration

    Hi All, My Scenario is from SAP IDOC --> PI --> FIle... In the mapping i have used the dynamic variable substitution for the receiver file.... The Dyanamic file will be alwasy generated irrespective of the condition for the Mapping... Now Whenever SA

  • Setting up monitering and alerts OAS 10.1.2.0.2

    Hi I have oracle application server 10.1.2.0.2 installed. I have a single OC4J instance which has a single application deployed to it. I want to set up alerts such that if the application's memory usage (or the memory usage of the OC4J instance) goes

  • XML Processing Approaches with Java

    When I want to manipulate and retrieve data from XML file, I used to use DOM or SAX, and this is JAXP API from Sun. Some people told me I should use XPath instead, since it's easier for coding. But we need to use apache's xalan library. What do u thi

  • AlazarTech ATS460 LabVIEW VIs

    Has anybody programmed the ATS460 Digitizer card from AlazarTech using the LabVIEW VIs supplied by this company?? I have a few questions and will appreciate if someone who has worked on it can help me out. Thanks!