LookupXRef not throwing any exception

Hi All,
We are using ESB Cross referencing out of box functionality provided with 10.1.3.3 SOA Suite.We have a case where we need to have some busineess logic when the value we are trying to look up in the Cross Ref table doesnot exists , in that case we tried to use needAnException(set to true()) field in the lookupXRef function inside the transformation.However its not throwing any exception in the BPEL Process.Instead it is avoiding other fields in getting populated underneath it in that complex type.As a result we are losing important business data inside the BPEL Process.Same is the case for PopulateXRefRow function as well while we are trying to insert a duplicate value into the Cross referencing table from BPEL Process.
We need an exception for the above two cases.Are there any work arounds for these.
We are in an urgent need of it.Can any one help us?
Regards,
Venkat.

hi,
after using XREFTOOL to create my cross referencing:
D:\productORACLE\10.1.3.1\SOA\Oracle_1\integration\esb\bin>xreftool.bat -shell
listTablesTotal number of xref tables: "1"
No. TableName
1. MONREF
listColumns MONREFTotal number of columns for xref table "MONREF" : "2"
No. ColumnName
1. SAP
2. SIEBEL
>
i try to use (after a reboot of soa suite), xpath function xref:populateXRefRow inside a assign task of my bpel 10.1.3.3.
i have the following exception :
Message handle error.
An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: XPath expression failed to execute.
Error while processing xpath expression, the expression is "xref:populateXRefRow('monref','sap','123','siebel','2','ADD')", the reason is FOTY0001: type error.
Please verify the xpath query.
ORABPEL-05002
Message handle error.
An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: XPath expression failed to execute.
Error while processing xpath expression, the expression is "xref:populateXRefRow('monref','sap','123','siebel','2','ADD')", the reason is FOTY0001: type error.
Please verify the xpath query.
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:171)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
Is there a solution or did i miss something ??
i try to use the same xpath function inside a ESB project (xslt transformation)
<xsl:value-of select='xref:populateXRefRow("MONREF","SAP",/tns:name,"SIEBEL",ora:generateGUID(),"ADD")'/>
and i've got the error message :
XML-22016: (Error) Extension function namespace should start with 'http://www.oracle.com/XSL/Transform/java/'.

Similar Messages

  • 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

  • Dbms_job.submit - job is restarting but - not throwing any exceptions

    We have a job that is a simple loop that looks for (wakes up by) looking for messages coming in using DBMS_PIPE.
    The job has been restarting arbitrarily but - we're not seeing messages generated via any of the associated exception handlers.
    No idea why it's restarting when it fails.... currently - I'm just looking for a way to have the dbms_job.submit call NOT automatically restart if it has issues.
    Currently just calling as such:
    DBMS_JOB.submit(jobno, 'pkg_package.listen;');
    Running on 10.2.0.4.0
    Any insight is appreciated.
    Is there a way to prevent it from automatically restarting and - is there something I should be looking for specifically around dbms_job when it comes to the exception handling in the packages/procedures it's running??
    Thanks.

    We generate a log record in a table using an autonomous procedure when an exception is raised.
    Where I'm seeing the log records stating an issue with the job - I'm also seeing the tracefile / alerts being generated.
    When the job starts - we log a record stating it's started....
    In many instances - I'm seeing it log a start but - there's no corresponding trace file (i.e. - it wasn't manually started - it was processing and - then - without exception 'died' - didn't generate an error but - just started up again).
    I've no idea what's going on here. I've validated that everywhere through the underlying package the job is running that the exceptions are being logged. Yet - it's arbitrarily starting up again on some occassions (and - I can't seem to find any general commonality around when this is happening or - what would be causing it).
    So - I'm thinking this is an issue with the DBMS_JOB or - something else funky going on....
    As an FYI - This job is simply a loop that waits to receive a message on DBMS_PIPE that then fires off a package procedure when it receives the message.
    In the interim - to alleviate data issues as a result of it processing the same data twice - I'm trying to prevent it from auto restarting... is there a way to do this?

  • Why Overridden method do not throw Broder exception

    Why Overridden method of derived class do not throw Broder exception than the method that is in base class

    Why Overridden method of derived class do not throw
    Broder exception than the method that is in base classWhat is a Broder Exception?
    I don't understand your question?
    You are asking something about overriding a method:
    http://java.sun.com/docs/books/tutorial/java/IandI/override.html

  • VM exits without throwing any exception if it can't reserve enough heap.

    Hi,
    I have spent the whole day searching for a solution to this problem or atleast to get some clue in any of the forums but still not able to :(
    I have a simple application just as simple as HelloWorld program that prints some message,say "Hi There", using a JOptionPane. I have created the .exe using InstallAnywhere and have specified the parameters to reserve heap as follows:
    -Xms300M -Xmx2048M -Xmn80MUnfortunately, I have a total of only 1GB RAM on my system and since I have specified -Xmx2048, the application closes immediately without even throwing OutOfMemoryException.
    When I tried launching the same application using command prompt specifying the same parameters to reserve heap (java -Xms300M -Xmx2048M -Xmn80M -cp . ClassName), I could see the following error:
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    I can see the above error message only when I launch it from command prompt and not when I launch it from InstallAnywhere's .exe.
    However, I can see the above error message in the latter case if I keep the Ctrl key hold down while launching the application. If I dont hold down the Ctrl key, the application console simply appears for a moment and closes before user can see what exactly is happening.
    Is there any way of flagging some error message to the user to indicate that VM couldn't reserve the specified heap size since it's not presently available before closing?
    Any help in this regard would be highly appreciated.
    Thanks,
    Umesh

    jschell wrote:
    The most curios is if I reinstall the system I can allocate a heap of 2048m to the next crash !!!Presuming that you are not mis-reporting or mis-evaluating something...
    linux-x86 On Linux virtual memory relies on file space that exists on the harddrive which is dedicated to that purpose.
    The file space is just like any other file space.
    If that file space fills up, for any reason, then the OS will appear to run out of memory for applications.
    The one time this happened to me the virtual space was mapped such that regular files were using the space. Specifically my log files. So as the log files grew the application memory decreased.And if the crashed JVM generates a core file...

  • I have set my password manager to remember passwords for sites. I have not entered any exceptions. However, it never remenbers any, nor does it prompt me to remember. I cannot use this feature because it is never visible to me. Any suggestions?

    I never see any prompts which ask me if I wish to have Firefox remember my password for a particular site. Therefore I can never store any.

    * Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode.
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Automatically start Firefox in a private browsing session"

  • When i rendering large table from Ajax using jquery that table not Displaying and not throwing any error also. why ? in IE 8,9,10

    Hi,
    when i rendering large HTML table from Ajax using jquery , table not displaying in browser why ? but visible in  chrome and mozilla.

    Hi,
    Post questions about html, css and scripting for website developers to the IE Web Development forum.
    http://social.msdn.microsoft.com/Forums/ie/en-US/home?forum=iewebdevelopment
    Include with your question a link to your website or a mashup that shows the issue.
    If you are using the file: protocol.... MSIE browsers have security restriction for running active content from the file system.
    Regards.
    Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to
    raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us
    Rob^_^

  • Update row count is not working but its not throwing any error

    i m using obiee 11.1.1.6.8, where i cant do update row count in physical layer and tools---update row count...nothing was afffected
    iand i cant update rowcount option in physical layer of obieee.
    please help me

    Did u check in Physical DB whether it has data or not? If it has data,Try deleting that table from physical layer and import again.
    Thanks,

  • My runtime is not throwing any errors. please help.

    hi this is part of my code.
    try {
    Runtime r = Runtime.getRuntime();
    Process p = r.exec("fping -c 1 " + laten);
    if ((p == null)) {
    out.println("Could not connect");
    catch (IOException io) {
    System.err.println(io.toString());
         out.println(laten +" not a valid IP address");
    the String variable laten which is an IP address is 123.123.123.wrong, i made it wrong on purpose to catch errors, but what will p equal if laten can not be fpinged? and is this code correct to catch unpingable IP addresses? thanks in advance.

    The returned process is not null, you have to check the return value of the process:
    Runtime r = Runtime.getRuntime();
    Process p = r.exec("fping -c 1 " + laten);
    int returnValue = p.waitFor();
    if (returnValue != 0) {
       System.out.println("Could not connect");
    }

  • NCo throws an Exception calling BAPI_MATERIAL_SAVEDATA?

    I've been successful in calling BAPIs from NCo (BAPI_CHARACT_CREATE, BAPI_CLASS_CREATE, BAPI_VENDOR_FIND, BAPI_VENDOR_GETDETAIL)....
    However when calling BAPI_MATERIAL_SAVEDATA, I always get the following Exception being thrown:
    Index was outside the bounds of the array.
       at SAP.Connector.Rfc.RfcStructureUtil.ToRfcStructure(Object obj, Byte[] dest, Type t, Encoding encoding, Boolean isUnicode, PropertyInfo[] propinfos, RfcStructInfo structInfo)
       at SAP.Connector.Rfc.RfcStructureUtil.GetITabFromList(SAPConnection conn, Object list, Type t, RfcStructInfo structInfo, Int32 itab)
       at SAP.Connector.Rfc.RfcClient.PrepareClientParameters(Type classType, MethodInfo m, Boolean isTQRfc, Object[] MethodParamsIn, RFC_PARAMETER[]& paramsIn, RFC_PARAMETER[]& paramsOut, RFC_TABLE[]& tables, ParameterMap[]& paramMaps)
       at SAP.Connector.Rfc.RfcClient.RfcInvoke(SAPClient proxy, String method, Object[] methodParamsIn)
       at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn)
       at SAP_MM_Test.SAPProxy1.Bapi_Material_Savedata(BAPI_MARA Clientdata, BAPI_MARAX Clientdatax, String Flag_Cad_Call, String Flag_Online, BAPI_MPOP Forecastparameters, BAPI_MPOPX Forecastparametersx, BAPIMATHEAD Headdata, String No_Dequeue, String No_Rollback_Work, BAPI_MPGD Planningdata, BAPI_MPGDX Planningdatax, BAPI_MARC Plantdata, BAPI_MARCX Plantdatax, BAPI_MVKE Salesdata, BAPI_MVKEX Salesdatax, BAPI_MARD Storagelocationdata, BAPI_MARDX Storagelocationdatax, BAPI_MLGT Storagetypedata, BAPI_MLGTX Storagetypedatax, BAPI_MBEW Valuationdata, BAPI_MBEWX Valuationdatax, BAPI_MLGN Warehousenumberdata, BAPI_MLGNX Warehousenumberdatax, BAPIRET2& Return0, BAPIPAREXTable& Extensionin, BAPIPAREXXTable& Extensioninx, BAPI_MEANTable& Internationalartnos, BAPI_MAKTTable& Materialdescription, BAPI_MLTXTable& Materiallongtext, BAPI_MFHMTable& Prtdata, BAPI_MFHMXTable& Prtdatax, BAPI_MATRETURN2Table& Returnmessages, BAPI_MLANTable& Taxclassifications, BAPI_MARMTable& Unitsofmeasure, BAPI_MARMXTable& Unitsofmeasurex) in C:\Dev\SAP_MM_Test\SAPProxy1.vb:line 220
       at SAP_MM_Test.Form1.Button1_Click(Object sender, EventArgs e) in C:\Dev\SAP_MM_Test\Form1.vb:line 114"     String
    I even tried calling the Method with all parameters set to Nothing and also get the same error.  I tested some of the other BAPI I listed will all Nothing parameters and it does not throw any exceptions.  Almost seems as if the Proxy generated classes did not get created properly or something?
    Has anyone else successfully called BAPI_MATERIAL_SAVEDATA from NCo 2.0?
    PS...I was successful in calling the BAPI from SE37 with the exact same data, therefore I know I have all the mandatory parameters specified (HeadData, ClientData, ClientDatax...etc)
    Anything obvious in the following code?:
    =======================================
         ' Connection String
         Dim cs As String = "ASHOST=10.83.180.239 SYSNR=10 CLIENT=110 USER=CMCHUG2 PASSWD=********"
         ' construct the proxy with connection string
         Dim proxy As New SAPProxy1(cs)
         ' Header Data
         Dim HeadData As New BAPIMATHEAD
         HeadData.Material = "000000000000000754"            ' Material NUmber (PAD to 18)
         HeadData.Ind_Sector = "U"                           ' Industry Sector
         HeadData.Matl_Type = "ERSA"                         ' Material Type (ERSA=Space Parts / HERS=Manufacturer Part)
         HeadData.Basic_View = "X"                           ' Need at least 1 view
         ' Client Data
         Dim ClientData As New BAPI_MARA
         ClientData.Matl_Group = "01"                        ' Material Group
         ClientData.Base_Uom = "EA"                          ' Base Unit of Measure
         ' Set the ClientData Indicator Table
         Dim ClientDataX As New BAPI_MARAX
         ClientDataX.Matl_Group = "X"
         ClientDataX.Base_Uom = "X"
         ' Short Description (TABLE)
         Dim ShortDesc As New BAPI_MAKTTable
         Dim sDescr As New BAPI_MAKT
         sDescr.Langu = "E"                                  ' Language
         sDescr.Matl_Desc = "Short Desc Test"               ' Short Description (Max 40)
         ShortDesc.Add(sDescr)
         Dim tblRet As New BAPIRET2
         Dim tblRetMsg As New BAPI_MATRETURN2Table
         proxy.Bapi_Material_Savedata(ClientData, ClientDataX, Nothing, Nothing, Nothing, Nothing, HeadData, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, tblRet, Nothing, Nothing, Nothing, ShortDesc, Nothing, Nothing, Nothing, tblRetMsg, Nothing, Nothing, Nothing)
    Exception Thrown Here!!!

    Reiner,
    Tried what you suggested, still get the same results.  This the 3rd development system I try this from. In all cases I generated proxies via drop and drop of the SaveData Method under StandardMaterial (BOR).  Since it was just generated the MetaData should be up to date?, good suggestion thought, I could see where that might be a problem going against different backends.
    My lastest attempt (I am quickly running out of ideas), was to generate a Standalone Proxy containing the SaveData method.  Same Results :{ 
    I was able to create Standalone Proxies for the other Business Objects I'm using (Characteristics, Class..etc) without a hitch. (Except for "Class", complaining about the Class name generated (Public Class Class...so I renamed to sapClass).  Using the Standalone Proxy Class I might try from Visual Studio 2005 to see if I get the same results.
    Also encountered another problem when trying to Add the whole BOR object StandardMaterial to the Proxy (so I would have access to a few of the Methods....this failed with some Java out of memory error....I would have to attempt this again to capture the exact error....when I get time I'll put that in another post).

  • PrintWriter methods throw NO exceptions!

    Hi,
    According to the PrintWriter javadoc:
    "Methods in this class never throw I/O exceptions. The client may inquire as to whether any errors have occurred by invoking checkError()."
    I think this sounds strange in Java language, since it has the Exceptions mechanism...does any one know the reason why it is like this?
    Regards

    With unchecked exception, it will still terminate my function mid-way!
    Here is a concrete example:
    public void method1() {
       try {
          ... open database then read 1 entry ...
          file.println("Entry is "+x);
          method2();
          ... close the DB connection properly.
       } catch(DBException ex) {
          ... deal with the DB failure accordingly
    public void method2() {
       try {
          ... open a webconnection then read 1 webpage ...
          file.println("Webpage is" + y);
          ... now close the web connection
       } catch(webException ex) {
          ... deal with the Web failure in a web-specific way
    }If println throws exception (checked or unchecked), then I must wrap method1 AND method2
    in yet another try/catch block. Otherwise, the function will die halfway, and my database or web connection
    will be in a funky state.
    By not throwing any exception (unless OutOfMemory or other dire situation),
    I can write method1 and method2 without worrying about it.
    And then at the end, I just check to see if all the writes succeeded or not.

  • How to throw an exception that is not treated as error

    Hi,
    I have a repository manager displayed as /root/myrepository. Now when someone who's not authorized clicked it, I wish an error message will display on top in red, but not throw an exception as System Error.
    Now my implementation is to throw an ResourceException in getChildren() of the node. But when the user clicked on /root/repository, a System Error screen appeared, but what I want is just an error message.
    Any help is much appreciated~
    I don't know how to attach the screenshots. My MSN is [email protected]
    Thanks,
    Ray

    If you want to disallow getChildren altogether, throw an AccessDeniedException. If you want to hide specific children, just don't put them into the result list.
    Best regards, Julian

  • Any exception makes OC4J stop to work

    after throwing any exception,
    OC4J stops to work,
    can't handle all the coming request again
    if I got a bug in my web application,
    ....?

    borber wrote:
    Hi,
    I have Windows7, the last version of the Skype.
    after connection any call (video and audio, any contact) in a few seconds I'm getting message "Skype stoped to work properly. Windows close the programm", and Skype is getting closed.
    I was trying to deinstall Skype and download and install it again, but all the same.
    Thank you everyone for the help.
    Hi!  the thread which link is pasted below is a compilation of the suggestions and procedures that fixed Skype related problems in many cases.  I hope that the suggestions there would also help resolve the issues in your case.
    Skype Problems Troubleshooting Procedures (Windows)
    CONTACT SKYPE CUSTOMER SERVICE   |  HOW TO RECORD SKYPE VIDEO CALLS  | HOW TO HANDLE SUPICIOUS CALLS AND MESSAGES   |  WINDOWS PROBLEMS TROUBLESHOOTING   |  SKYPE DOWNLOAD LINKS  
    MORE TIPS, TRICKS AND UPDATES AT
    skypefordummies.blogspot.com

  • HT1473 i am not able to add mp4 file to itune.What may be the issue.While adding mp4 file i am not getting any error message from itune.Please help.

    I am not able to add mp4 or mov files to my itune.itune is also not throwing any error message,I am bit confused.Which formats of video file can be added to itunes??I have itunes of 11.0.2.26 version and iphone 4s-6.1.3 version.

    I am not able to add mp4 or mov files to my itune.itune is also not throwing any error message,I am bit confused.Which formats of video file can be added to itunes??I have itunes of 11.0.2.26 version and iphone 4s-6.1.3 version.

  • H.264 Not Throwing Errors?  Size Limit?

    Hello,
    I've been experiencing a very odd issue that I'm trying to narrow down. I've discovered the joys of H.264, and converted some smaller files (20-30 minute files) using this codec. (I used to use Sorensen 3).
    Now I have a 2-hour video clip (without audio at this point) that I'm trying to transcode to H.264. The odd thing is, after approximately 24 hours of encoding (yes, it's a 2-hour clip, so I know it will take a while), the resultant file is empty.
    By empty, I mean that it's either 0k, 4k, or 8k. All the while, QT Pro did not throw any errors to me.
    I should have enough disk space for conversion, and have tried it on two different models (Mac Mini--I forget the speed, and G4 400MHz), both with the same result. I'm also using QT 7.0.3 and turned off sleep on both machines (including drive sleep).
    Any ideas of what I might be missing? Two other factors that I different is that the shorter clips I would convert the size to 320x240, whereas the larger clip I'm keeping at 720x480, and the data rate I would clip on the smaller files to 500kb/s and the larger one at 1000kp/b and 1500 kb/s.
    Thanks for any ideas!
      Mac OS X (10.4.3)  

    What would those "several things" be that you've already tried?
    It wouldn't hurt to know something about the project, your machine, and other things, either:
    FAQ: What information should I provide when asking a question on this forum?

Maybe you are looking for

  • SWF problem in Dreamweaver CS3 and strange Script file

    Hi folks, I am using Dreamweaver CS3 and tried to upload a SWF file today. The SWF includes three buttons, one for video, another for audio and one for text. Before loading up to DW all three parts played fine. But when I uploaded to DW and my site,

  • Can't find location on iPad after upgrade

    Upgraded yesterday to iOS 8.1, and now my iPad "can't determine location" . Find my iPhone turned on, location services enabled. First tried to reset settings, then tried erasing all settings and data, then load backup. Finally did a restore via iTun

  • Purchase Requisition workflow escalation

    Hi All, I need help with purchase requisition workflow escalation. The workflow for the requisition escalate to the next level if not approved within 24 hours.So i dont want the workflow to escalate on weekend. I want to know what can i do. Tx Rosi

  • ACS EAP-TLS

    Hello Experts... i have a problem when using ACS 5.1 with AP1141 through EAP-TLS authentication method. when i try to connect my laptop , it's authenticated sucessfully , but when i try to authenticate third party Black Box using EAP-TLS , i have an

  • BAPI executing examlpe

    Hi Friends, i am trying to develop a java application and i need to fetch data from backend. I understand, we can use JCo, JAVA RESOURCE ADAPTER, ENTERPRISE CONNECTOR, J2EE CONNECTOR. Can you please let me know which is better suited for a stand-alon