Exception in Mass Case Tester

While using the Mass Case Tester for reporting, I am getting the following exception:
*"Think cycle has not stabilised after 20 iterations. This is probably due to a fault in the inferencing listener."*
This is coming up when I am trying to generate any of the following:
Exhaustive Sample
Random Sample
Decision GraphWhat could be the possible causes for this?
Following is the entire error message and the stack trace:
Exception: IllegalStateException
Message: Think cycle has not stabilised after 20 iterations. This is probably due to a fault in the inferencing listener.
Source: Oracle.Determinations.Engine
HelpLink:
TargetSite: Void Think()
Stack Trace:
at Oracle.Determinations.Engine.Local.LocalSession.Think()
at Oracle.Determinations.Engine.Local.LocalSessionSync.Think()
at Oracle.Determinations.Engine.Local.LocalSession.RequireThink()
at Oracle.Determinations.Engine.Local.LocalRelationship.SetInternal(EntityInstance source, List targets, List notTargets, Boolean uncertain)
at Oracle.Determinations.Engine.Local.RelationshipRule.Think(LocalSession session, List instances)
at Oracle.Determinations.Engine.Local.LocalSession.ThinkStep()
at Oracle.Determinations.Engine.Local.LocalSession.Think()
at Oracle.Determinations.Engine.Local.LocalSessionSync.Think()
at Oracle.Determinations.Engine.Local.LocalSession.RequireThink()
at Oracle.Determinations.Engine.Local.LocalSessionSync.CreateEntityInstance(Entity entity)
at Oracle.Modeling.MassCaseTester.RulebaseChecker.CreateInstances(ArrayList contextChildren, Entity entity, Int32 instanceCount, EntityInstance owningInstance)
at Oracle.Modeling.MassCaseTester.RulebaseChecker.BuildSolution(Double dSlice, Boolean bTop, EntityInstance owningInstance)
at Oracle.Modeling.MassCaseTester.RulebaseChecker.Check()

The bug that I mentioned in the stack trace turned out to indeed be the source of the issue. It is a bug in 10.1 when inferred relationships are used when the engine is using what is called "Immediate" think mode, as opposed to the usual "Deferred" think mode that virtually everything uses. As it happens the MCT is one of the few tools we have that uses immediate think mode.
I've found a workaround, which ironically uses an inferencing listener to fix the issue. I will have to email it to you as I can't attach anything to the public discussion forum.
The issue is already fixed for our next release, so should not be an issue in future.
Edited by: Stephen French on Sep 2, 2010 7:20 PM

Similar Messages

  • Unsupported feature in Mass Case Tester

    Hi,
    I am getting an unsupported feature error in Mass Case Tester when I am trying to use reference data for priming my rulebase.
    Please let me know what could be the possible cause of this error. Is the use of reference data not supported in the current released version of MCT?
    The details of the error are:
    This is an unsupported feature
    Exception: Exception
    Message: This is an unsupported feature
    Source: Oracle.Policy.Modeling.MassCaseTester
    HelpLink:
    TargetSite: Boolean Check()
    Stack Trace:
    at Oracle.Modeling.MassCaseTester.RulebaseChecker.Check()
    Thanks,
    Aakarsh

    Unfortunately you are correct - reference data is unsupported in the current released version of the MCT.
    It is planned to have it fixed for the 10.2 release.

  • Can not open OPA Mass Case Tester

    When I click to run Mass case tester, the following error will appear, anyone knows the reason?
    By the way, OPA rules engine can work well. OPA version is 10.0. My system language is Chinese.
    Can not load files or procedure set" Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” .System can not find the file.
    Exception: FileNotFoundException
    Message: Can not load files or procedure set“Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” System can not find the file
    Source: Oracle.Policy.Modeling.MassCaseTester
    HelpLink:
    TargetSite: Void .ctor()
    Stack Trace:
    在 Oracle.Modeling.MassCaseTester.Controls.WebBrowser..ctor()
    在 Oracle.Modeling.MassCaseTester.HTMLViewer.InitializeComponent()
    在 Oracle.Modeling.MassCaseTester.HTMLViewer..ctor(IApplication app, Page page, FileType fileType)
    在 Oracle.Modeling.MassCaseTester.Forms.frmMain.GettingStarted()
    在 Oracle.Modeling.MassCaseTester.Forms.frmMain.StartUp(IProgressListener listener)
    在 Oracle.Modeling.MassCaseTester.Forms.frmMain.frmMain_Load(Object sender, EventArgs e)

    What's the build number of OPA 10.0 are you using? Have you installed the prerequisites?

  • Unable to investigate all relevant rulebase paths using Mass Case Tester

    I have been trying to generate a series of test cases for a global level attribute in the rulebase using the Mass Case Tester in 10.1 and have found that it does not seem to see all the relevant paths that are involved in proving the goal fact and doesn't seem to want to use all the base-level attributes that I know are involved. From the investigations I've done so far, it appears as if it is getting stuck at the first row of one of the rule tables in the rulebase and only seems to be investigating the attributes in that row.
    Can you please advise whether this is indeed what is happening. I have supplied a range of values for many of the relevant base level attributes, but it does not seem to be using them. It only seems to think it needs answers for 7 base level attributes, but I know that there should be many more than that. Is this a known issue or is there something that I am doing wrong?

    Hi Anthony,
    Long time, no see. Thanks for this. We were hoping not to have write our own utility, but I was starting to think that this was probably going to be the only way forward for us.
    I have done a bit of additional experimentation with the MCT since my last post and everything seems to confirm that it does not actually seem to to find all the paths through the rulebase that prove the goal. I have tried everything I can think of to try to trigger it to investigate the rules, including creating a new goal atttribute and writing new procedural rules to force it to investigate all the paths, but have had no luck so far. I would like to know why, but don't really have the time to debug the product to figure it out for myself, which is why I am posting this thread.
    I don't know whether it has something to do with the fact that the rulebase contains a lot of entities, or whether it is because most of the rules in question in this section of the rulebase are in an Excel spreadsheet, which doesn't compile properly. We have to run a special tool that Nick Miller wrote over the xgen file to get it into shape. (BTW, I have found this bug is still present in 10.1 when we were hoping it would be fixed, as this has been quite an issue for us. I have also been asked to use this project to evaluate 10.1 and discovered this yesterday.)
    Back to the MCT issue, if I run the MCT report without the answers file and just rely on the learned answers, it only ever asks me for values for 3 base level attributes, when there are actually 27 non-boolean attributes that prove the goal.
    If I create an xds file to use as reference data, the MCT throws an exception and says that the functionality is not supported. This was the same exception I got in version 9 of the product and the main reason why I am now trying to do this in version 10.1. I suspect this has something to do with the number of entities in the rulebase because there doesn't seem to be anyway to setup relationships between entities in the MCT, but am unable to confirm this. Can you please advise whether this is the case?
    Even though I shut the product down and restart it, in an attempt to get it to see changes to the rulebase, it still doesn't seem to recognise all the changes. Is it caching data, or writing something to another file somewhere that is not getting updated when the rulebase changes?
    Today I am going to try replacing the answers.xml file with a screen definition, to see if that works, although our rulebase doesn't actually use screen definitions as it is not used interactively. I will let you know how that goes. I just wanted to advise you of the problems we are experiencing with the product, but I don't really have too much more time to play around with this. It would be appreciated if any known issues with the product were properly documented, so that people like me don't waste time trying to get it to do things that it can't handle.
    Cheers
    Clare

  • G4 that will not boot from any disc EXCEPT the Apple Hardware Test CD

    We have a DP 1ghz Quicksilver PowerMac G4 that will not boot from any disc EXCEPT the Apple Hardware Test CD that came with the machine.
    We were in the process of installing 10.4 Tiger before placing it for sale.
    The Mac was originally OSX Server 10.1 that we later converted to a worksation running 10.3 Panther.
    It has 1 GB of memory, 80GB hardrive, 250MB Zip Drive and a Radeon 7500 video card.
    Since this machine only has a CD-R drive and not a DVD-R, we installed Tiger using another Mac via Target Disk Mode. The installation process went well, but when I tried to reboot I got a Kernel Panic right after startup screen with the grey Apple logo.
    On some reboots we get to the blue startup screen, others it stops at the grey Apple logo, others a black box like the a Kernel Panic - but with no text. Twice it went directly into Open Firmware.
    We have done the following during our troubleshooting:
    - Reseat RAM, Video Card, Hard Drive, Zip & CD-R connections
    - Remove RAM 1 stick at a time and reboot
    - Replace RAM with RAM from another working Quicksilver
    - Replace Video Card with one from another working Quicksilver
    - Zap PRAM
    - Reset CUDA switch
    - Unplug the MAC and remove everything (RAM, Battery, etc) for 30 minutes and try to reboot
    - Tried booting from the Macintosh Server G4 Software Restore CD
    - Tried booting from Mac OS X Server CD
    - Tried booting from AppleCare Protection Plan CD with TechTool
    - Tried booting from Diskwarrior CD
    - Tried booting from an external FireWire drive with a disk image of Tiger OS Install
    - Tried booting with the hard drive disconnected
    The Mac WILL boot from the Apple Hardware Test CD and will pass ALL of the extended tests.

    Conventional wisdom says that any Mac that will not boot up from a System/Install CD OS 9 or an Install CD Mac OS X, has a Hardware problem.
    The diagnostic CD is a red herring because it uses a very primitive method of reading the CD, and so does not properly represent the machines general ability to read CDs.
    I would look at the CD drive cables, etc, and see if another drive gives different results.
    You have not mentioned using the Startup Manager (option key at Startup) to do any checking:
    HT1310- Startup Manager: How to select a startup volume

  • Business messages are not pushed back to the aq exception queue in case of errors

    Hi,
    I have the scenario, where I have configured the business events in ebs and implemented the soa interface which consumes the event message from wf_bpel_q.
    SOA interface is able to pickup the messages succesfully and same message will be pushed back to the same queue with the status=READY in case of exceptions as well. Ideally as per default functionality of AQ, in case of errors, messages will be pushed to exception queue.
    Please suggest why mesages are not pushed back to exception queue in case of errror scenarios with the status='Errored'.  Please let me know what i have been missing here in the setup.
    Regards,
    Anjana

    Hi Anjana,
    I am not familiar with the SOA interface, so I can't help you in detail, but take a closer look to the following documents.
    Doc ID 1374461.1 ,  Doc ID 1075611.1 , Doc ID 1356146.1
    Maybe you hit a known bug ....
    Hope that helps.

  • Exception while running a test file as JUNIT test case

    Hi,
    I am trying to build a code using Eclipse to generate an "ear" file that can be used for deployment. The ear file is generated successfully but the build is not successful as the following exception is thrown while debugging a junit test case:
    javax.naming.CommunicationException: tdk.dk:389 [Root exception is java.net.SocketTimeoutException: connect timed out]
         at com.sun.jndi.ldap.Connection.<init>(Connection.java:197)
         at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
         at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1580)
         at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2616)
         at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:287)
         at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
         at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
         at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
         at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
         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 junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at junit.framework.TestSuite.runTest(TestSuite.java:208)
         at junit.framework.TestSuite.run(TestSuite.java:203)
         at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    Kindly suggest a solution.
    P.S. : All test cases are running fine except for one test case, whose error details are given.

    No it is not. The Oracle JDeveloper and ADF forum is for development questions around development with Oracle JDeveloper and ADF.
    If you use Eclipse through OEPE, you could post the question here
    Enterprise Pack for Eclipse
    If you don't use OEPE but Eclipse, then this forum may be a great source of help: http://stackoverflow.com/
    Frank

  • Got Exceptions XSLT mapping  while testing the scenarion.........

    Hi
    I got the following exceptions while testing the XSLT mapping scenario...
    Hi
    I have created a XSLT mapping with java conjunction... i have created a ZIP file and i have palced java class file, java file and xsl file in that ZIP file... I have imported this archive into imported archives... but when i am testing the application i got the follwoing exceptions
    <b>Details
    com.sap.engine.services.ejb.exceptions.BaseRemoteException:
    Exception in method transform.
    at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:182)
    at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:104)
    at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:304)
    at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
    at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native
    Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: java.lang.UnsupportedClassVersionError:
    DATEandTIME/Date_Time (Unsupported major.minor version
    49.0)
    at java.lang.ClassLoader.defineClass0(Native
    Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:448)
    at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingLoader.findClass(RepMappingLoader.java:175)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at com.sap.engine.lib.xsl.xpath.JLBLibrary.<init>(JLBLibrary.java:33)
    at com.sap.engine.lib.xsl.xpath.LibraryManager.getFunction(LibraryManager.java:69)
    at com.sap.engine.lib.xsl.xpath.functions.XFFunctionAvailable.execute(XFFunctionAvailable.java:24)
    at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:110)
    at com.sap.engine.lib.xsl.xpath.XPathProcessor.innerProcess(XPathProcessor.java:54)
    at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:41)
    at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:49)
    at com.sap.engine.lib.xsl.xslt.XSLIf.process(XSLIf.java:28)
    at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)
    at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)
    at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)
    at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)
    at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)
    at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:272)
    at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:457)
    at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:391)
    at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:392)
    at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:234)
    at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingTransformer.transform(RepMappingTransformer.java:150)
    at com.sap.aii.ibrep.server.mapping.ibrun.RepXSLTMapping.execute(RepXSLTMapping.java:81)
    at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingHandler.run(RepMappingHandler.java:80)
    at com.sap.aii.ibrep.server.mapping.rt.MappingHandlerAdapter.run(MappingHandlerAdapter.java:107)
    at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInterfaceMapping(ServerMapService.java:127)
    at com.sap.aii.ibrep.server.mapping.ServerMapService.transform(ServerMapService.java:104)
    at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.transform(MapServiceBean.java:40)
    at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:131)
    ... 10 more
    ; nested exception is:
    java.lang.UnsupportedClassVersionError:
    DATEandTIME/Date_Time (Unsupported major.minor version
    49.0)
    com.sap.engine.services.ejb.exceptions.BaseRemoteException:
    Exception in method transform.
    at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:182)
    at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:104)
    at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:304)
    at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
    at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native
    Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: java.lang.UnsupportedClassVersionError:
    DATEandTIME/Date_Time (Unsupported major.minor version
    49.0)
    at java.lang.ClassLoader.defineClass0(Native
    Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:448)
    at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingLoader.findClass(RepMappingLoader.java:175)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at com.sap.engine.lib.xsl.xpath.JLBLibrary.<init>(JLBLibrary.java:33)
    at com.sap.engine.lib.xsl.xpath.LibraryManager.getFunction(LibraryManager.java:69)
    at com.sap.engine.lib.xsl.xpath.functions.XFFunctionAvailable.execute(XFFunctionAvailable.java:24)
    at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:110)
    at com.sap.engine.lib.xsl.xpath.XPathProcessor.innerProcess(XPathProcessor.java:54)
    at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:41)
    at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:49)
    at com.sap.engine.lib.xsl.xslt.XSLIf.process(XSLIf.java:28)
    at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)
    at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)
    at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)
    at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)
    at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)
    at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:272)
    at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:457)
    at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:391)
    at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:392)
    at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:234)
    at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingTransformer.transform(RepMappingTransformer.java:150)
    at com.sap.aii.ibrep.server.mapping.ibrun.RepXSLTMapping.execute(RepXSLTMapping.java:81)
    at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingHandler.run(RepMappingHandler.java:80)
    at com.sap.aii.ibrep.server.mapping.rt.MappingHandlerAdapter.run(MappingHandlerAdapter.java:107)
    at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInterfaceMapping(ServerMapService.java:127)
    at com.sap.aii.ibrep.server.mapping.ServerMapService.transform(ServerMapService.java:104)
    at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.transform(MapServiceBean.java:40)
    at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:131)
    ... 10 more
    ; nested exception is:
    java.lang.UnsupportedClassVersionError:
    DATEandTIME/Date_Time (Unsupported major.minor version
    49.0)</b>
    Please help me....
    Best Regards
    Ravi Shankar B
    Message was edited by: RaviShankar B

    Hi
    Following is my XSLT code
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:javamap="java:DATEandTIME.Date_Time">
         <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
         <xsl:param name="inputparam" />
         <xsl:template match="/">
         <MT_TARGET>
              <date>
                   <xsl:if test="function-available('javamap:getDateValue')">
                       <xsl:value-of select="javamap:getDateValue($inputparam)"/>                    </xsl:if>
              </date>
              <time>
              <xsl:if test="function-available('javamap:getTimeValue')">
                       <xsl:value-of select="javamap:getTimeValue($inputparam)"/>                       <xsl:value-of select="$test"/>
              </xsl:if>
              </time>
              <project>
                        <xsl:value-of select= "//project"/>
              </project>
         </MT_TARGET>
         </xsl:template>
    </xsl:stylesheet>
    Following is my Java Code
    package DATEandTIME;
    import java.util.Map;
    import com.sap.aii.mapping.api.AbstractTrace;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    import java.util.*;
    import java.text.*;
    public class Date_Time {
                private static AbstractTrace trace = null;
                public static String getDateValue(Map inputparam)
                        trace = (AbstractTrace)inputparam.get(
                                 StreamTransformationConstants.MAPPING_TRACE );
                        Date now1 = new Date();
                        SimpleDateFormat formatter = new SimpleDateFormat ("yyyyMMd");
                        String dateString = formatter.format(now1);
                        return dateString;
                public static String getTimeValue(Map inputparam)
                            trace = (AbstractTrace)inputparam.get(
                                    StreamTransformationConstants.MAPPING_TRACE );
                            Date now1 = new Date();
                            SimpleDateFormat formatter = new SimpleDateFormat ("hhmmss");
                            String dateString1 = formatter.format(now1);
                            return dateString1;
    Best Regards
    Ravi Shankar B

  • How to duplicate return of RFC.Exception Application error to test fix

    I am calling a RFC using a sync step in an BPM process. I am checking for system error and have an exception branch. However we got the below error (probably due to the ECC system not being available at that precise moment or something) which was not trapped by the exception alert handling because this comes in as an Application error and not a System error. My questions are :
    1) How to handle this return of .Exception message so that the BPM raises the alert in the exception branch? I have read in other threads that we need to assign the below message structure as the Fault Message and set this under the Exceptions property of the Synchronous send step. If this is true, I am mostly interested in the below question so I can test this.
    2) How to duplicate this issue? I am not sure when exactly the .Exception message is returned on a RFC call, this is not configured anywhere on the ABAP side.
    <rfc:ZRFC_GET_DATA.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
            <Name>RFC_ERROR_COMMUNICATION</Name>
            <Text>CPIC-CALL: CMRCV on convId: 01667803
                   LOCATION    CPIC (TCP/IP) on local host with Unicode
                   ERROR       connection to partner broken
                   TIME        Mon Mar 16 11:21:51 2009
                   RELEASE     640
                   COMPONENT   NI (network interface)
                   VERSION     37
                   RC          -6
                   MODULE      niuxi_mt.c
                   LINE        905
                   DETAIL      NiPRead (xx.xx.xx.xx/yyyy, hdl 64)
                   SYSTEM CALL recv
                   COUNTER     2
            </Text>
            <Message>
                   <ID>RFC_ERROR_COMMUNICATION</ID>
                   <Number>null</Number>
            </Message>
    </rfc:ZRFC_GET_DATA.Exception>

    Is the error resolved means that the RFC is working fine?
    I think this error due to the RFC destination set to Non-unicode which is expecting unicode option
    Check the R/3 machine whether it is unicode or not try to set the RFC destination option of unicode  in other way and check the error getting replicated or not
    Rajesh

  • Persist does not throw any exception in a JUnit test

    I am implementing a JUnit test using Toplink as JPA provider. I must be missing something because I try to persist two times the same entity and no exception is thrown. Neither PersistenceException nor any other type of exception. The code cannot be easier:
    @Test
    public void testAddExistingTeam() throws Exception {
    Team team = new Team("team2");
    try{     
    EntityManagerFactory emf =
    Persistence.createEntityManagerFactory("fofo");
    EntityManager em = emf.createEntityManager();
    em.getTransaction().begin();
    em.persist(team);
    em.persist(team);
    em.getTransaction().commit();
    em.close();
    catch(Exception e){
    e.printStackTrace();
    Notice the two em.persist(team).
    This code does not seem to either enter the catch block or produce any sort of exception. On the other hand, I have checked that after the first
    em.persist(team); the team is really managed.
    The relevant parts of the Team class definition follow:
    @Entity
    @Table (name ="TEAM")
    public class Team implements Serializable {
    @Id
    @Column (name="NAME")
    private String name;
    @ManyToOne
    @JoinColumn (name="CLUB_NAME", referencedColumnName="NAME")
    private Club club;
    private Category category;
    private String email;
    @ManyToMany(mappedBy="teams")
    private List<Competition> competitions;
    public Team (String name){
    this.name = name;
    this.club = null;
    this.competitions = new ArrayList<Competition>();
    ....getters/setters....and more constructors.
    I am really puzzled by this issue. Somebody could help??? I would be really grateful!!!
    Josepma

    This is expected behavior as persist is a no-op if called on a managed entity (other than to cascade over relationships marked with cascade.Persist), and the first persist call makes the passed in team entity managed.
    Try calling em.flush(); and em.clear(); between the persist calls to get an exception.
    The first flush will ensure the team is inserted in the database, while clear will detach it so that the second persist call will try to insert the team. JPA providers are not required to throw the entityExistsException on persist - it can be delayed until the transaction is flushed or committed, so you are likely to get a PersistenceException from the commit instead of EntityExistsException from persist.
    Best Regards,
    Chris

  • Test workbench: test plan, test package, test case, test script, test tools

    i want to understand SAP terminology regardsing 'test workbench' terminology - its functions and its sequence.
    we creat test plan first , than test pacakge than assign it to tester.
    can u give sequence of this tcode and its function if u can provide documentaion too,
    tcodes:
    STWB_TC
    STWB_1
    STWB_2
    SCAT
    AND SECATT
    STWB_WORK
    i mwan what are the first step to last step regarding Testworkbench.
    thanks,
    regards.

    Hi ,
    STWB_TC  - Test Case
    STWB_1  - Test Catalogue
    STWB_2 - Test Organizer
    SCAT  - Test the object ( CATT) includes recordings ,parameters
    AND SECATT - Extended CATT
    STWB_WORK - This is a like a worlist to monitor test cases and CATT N ECATT
    Now Test Catalogue includes Test cases and test cases includes CATT which has test scripts which is organized in Test organizer .
    and to monitor this you use STWB_WORK.
    Please reward if useful.

  • Projects Test Plan - Test Case - Tester export of list

    Dear SAP Gurus
    I am trying to make an extract/ an spreadsheet of
    a Test Plan
    with assigned Test Packages
    with then again assigend Testers
    The reports I have been able to run does not have this option, is that something someone has tried.
    Best Regards
    Jeppe Kristensen

    Hi Fabricius
    Thank you very much, looks very good that does get me some part of the way, but not the whole way, unfortunatly.
    The most important thing for me at time is also to get the testers assigned to these test cases, I would like to be able to export a what I see in the screen test organizer.
    STWB_2
    Select a test plan
    Go intio test-plan management
    This I would love to be able to export or print.
    Best regards Jeppe
    Edited by: Jeppe Lærke Kristensen on Jul 14, 2011 5:56 PM

  • Use case/test cases

    hi every body,
    please can any body send the format of these with an example, would like to know what all these contain
    my id is [email protected]

    hi
    chk the link below..
    Test Case Format
    http://readyset.tigris.org/nonav/templates/test-case-format.html
    Use Case Format
    http://readyset.tigris.org/nonav/templates/use-case-format.html
    Reward if USeful
    Thanx & Regards..
    Naren...

  • Ran Hardware test on 17" 10.5.6 Error Code 2STF/3/3:ATA-100ata-6-master came up @ mass storage run area.

    Have a Powerbook G4 17" 1.57GHz BRV 4.8.4f1 Mem.1 GB HDr. ATA:3,ID:0, Ran HARDWARE Test 2.2 hit Mass Storage test area when Error Code 2STF/3/3:ATA-100ata-6-Master stopped test. Shut comp down by holding pwr button for 5 secs. Waited 20 minutes and restarted w/option button and ran test again hit Mass Storage and Error Code 2STF/8/ rest is same as previous error code. Something about Node pop up after running disk utility a few days ago. Comp is was running  very slow. Only change besides updates was Macdefender. Do I need to take it to be repaired at an Apple place? Thank you.

    First, you need to remove macdefender, which is a scam program. Apple note http://support.apple.com/kb/HT4650 provides these instructions:
    Removal steps
    Move or close the Scan Window.
    Go to the Utilities folder in the Applications folder and launch Activity Monitor.
    Choose All Processes from the pop up menu in the upper right corner of the window.
    Under the Process Name column, look for the name of the app and click to select it; common app names include: MacDefender, MacSecurity or MacProtector.
    Click the Quit Process button in the upper left corner of the window and select Quit.
    Quit Activity Monitor application.
    Open the Applications folder.
    Locate the app ex. MacDefender, MacSecurity, MacProtector or other name.
    Drag to Trash, and empty Trash.
    Malware also installs a login item in your account in System Preferences. Removal of the login item is not necessary, but you can remove it by following the steps below.
    Open System Preferences, select Accounts, then Login Items
    Select the name of the app you removed in the steps above ex. MacDefender, MacSecurity, MacProtector
    Click the minus button
    Now, after you do that, reboot your system. Bring up disk utillity and verify the disk. Preferred would be to boot from OS X on DVD or a Firewire backup, run Disk Utility and Repair Disk, but verify disk when Disk Utility is loaded from the hard drive should work. Write down any messages, like bad node or whatever.
    If you get a message that the program exits with a failure, then there is a disk error that Disk Utility won't be able to fix. That could mean buying Disk Warrior or TechTool Pro to fix the error. Disk Warrior tends to be the disk fix program of choice. Depending on the error, it's possible that Disk Utility won't be able to fix the problem, in which case the fix is usually a new hard drive. Note, a new hard drive will be cheaper than Disk Warrior (at $95 or so).
    Smart Utility from http://www.volitans-software.com/smart_utility.php will give you good insight into the condition of your hard drive, as it reports on your SMART sensors.

  • Exception while testing proxy service in Oracle Service Bus

    Hi
    I have created a cartridge in the Financial Message Designer with a Universal External message format and a XML External message format and also included the mappings in the same cartridge.A proxy service in Oracle Service Bus10Rg3 is configured to parse and transform the messages based on the mappings using the Java Callout actions to the Financial jar API's. However, when i test the proxy service, I am getting the following exception:
    Callout to java method "public static com.bea.alsb.financial.api.MessageWrapper com.bea.alsb.financial.api.TransformationAPI.transform(com.bea.alsb.financial.api.MessageWrapper,java.lang.String) throws com.bea.alsb.financial.api.TransformationException" resulted in exception: com.bea.alsb.financial.api.MessageWrapper$NullMessageDataObjectException: Null message data object in the MessageWrapper
    The first java callout is to the parseText method of ParseAPI and the result i.e. the message wrapper object is saved in the variable $txtMessage.This variable is passed as input to the transform method of TransformationAPI.This is where the null pointer exception is thrown. I have added alerts after the parse method and logged the value of the variable $txtMessage. It contains the java object reference but still the Transformation API throws null pointer exception.
    I have tested the same java callouts by writing a simple class calling each of these methods in the same order in Eclipse and provided the same input parameters.It works fine there.But in OSB, there seems to be some configuration issue which I am missing out on that leads to the null pointer exception.
    Has someone faced this earlier? Can you please help out.

    Any luck finding an answer? I have the same stack trace showing up while accessing a webservice in Weblogic 10.3.5.

Maybe you are looking for

  • An active component in a JCombobox

    I placed an own component, used to select a date in, a JComboBox, no problem so far. I wrote a simple renderer, place the component on a JPanel � works fine. Now my problem: If I click on the component, the JCombobox closes immediately. No mouse-clic

  • Pocketmac 4.1.25 will not run

    i have an Macbook Pro 2.4 Ghz Intel Core 2 Duo OSX version 10.5.6 and have tried a number of times to install Pocketmac for Blackberry 4.1.25.  I am using it with a Blackberry 8830 running verion 4.2. I contiunally get this error message.   "The appl

  • I want to protect my messages how do I do that?

    I want to protect my messages from others how can I protect the message plz help

  • Do I need 500GB or 1TB?

    Hi. I have an iMac w/ 500GB drive and am going to purchase a MacBook with 250 GB drive. I don't know whether to buy a 500gb or 1tb Time Capsule. I know that 500GB + 250GB = 750GB, and that common sense tells me I should buy a 1TB Time Capsule. But I'

  • Pages with Java crash subsequent pages

    With Mac Firefox 8.0 using a certain extension (that I have used for years), if I open a page that uses Java and then open another page right afterward, that causes Firefox to crash. If I open another tab and close the one running Java, another page