Strange problem in AFW custom module (question for gurus)

Hi there SDN'ers,
I have I very strange problem with an additional Adapter Module I developed.
My scenario is: IDOC -> JDBC (Oracle)
Well, to make a long story short, say that before the JDBC Receiver cc can write my data to the db, I have to do (inside the channel) kinda java mapping in order to produce an XML document that is acceptable for it. So in my module I manipulate the payload via DOM. No problem here.
The strange story is: at first attempt, the Adapter fails (see error below), while after 5 minutes, when automatically trying again, it succeeds.
Just because I put some stuff in the message audit log, what I can tell you is this weird thing:
1. at first, no XML document exists in the payload, but in place of it there's this string:
org.apache.crimson.tree.XmlDocument@745501c6
which seems to be a toString() of something I don't (or don't know to) use directly
2. at the second attempt, even in the audit log I can actually see the weel-formed XML document ready for the JDBC adapter, and in fact data are written to the db.
?? WHAT COULD THIS BE CAUSED BY ??
Say also that the the other way around (JDBC->IDOC) with another very similar module works perfectly.
Thanks.
Alex
<b>Delivery of the message to the application using connection AFW failed, due to: ERROR occured parsing request:com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 6f, 72, 67(:main:, row:1, col:3)(:main:, row=1, col=3) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 6f, 72, 67(:main:, row:1, col:3).</b>
P.S. -> 6f, 72, 67  is "org", that is the first three letter of the weird payload I get at first attempt.

Ok guys, I got that workin'.
I don't know why - and don't think I'll have the time to investigate further - but it seems the implementation of DOM Document used by XI is different the first time AFW executes my module, so here my workaround.
if (docOut instanceof org.apache.crimson.tree.XmlDocument) {
   org.apache.crimson.tree.XmlDocument tmpDocOut = (org.apache.crimson.tree.XmlDocument)docOut;
   tmpDocOut.write(out);               
} else {
   out.write(docOut.toString().getBytes());
Regards,
Alex

Similar Messages

  • Strange problem when using custom authentication schema

    Hello,
    I'm building a custom authentication system for the application. Basically, I followed the blog post from Martin: http://www.talkapex.com/2009/03/custom-authentication-status.html
    However, the authentication seems working fine at the beginning when running the page 101 from Application Builder and log in, but when I log out from the application (redirect back to page 101) and try to log in with the same credentials, it gives error message "Invalid Login Credentials ". Also, when the application is accessed from public (open page 101 directly using another computer), the authentication doesn't work at all.
    Furthermore, I checked the table apex_workspace_access_log and found out that it has "AUTH_SUCCESS" even if using the fake credentials and the login failed (I use "apex_util.set_authentication_result (p_code => 3);" when auth function return false).
    I couldn't find the cause of the problem, then I created the same custom authentication in apex.oracle.com. The problem doesn't appear anymore. To make sure they are same, I have double checked the custom authentication in both the development environment and the apex.oracle.com.
    This is very strange to me and I don't know where to looking for the problem. Could you give me some advice of what may cause this problem. Thanks in advance!

    I found the problem myself. The cause is the VPD, the account table has VPD policy applied, which prevented public access.

  • What will be input for custom module developed for JDBC adapter

    Hi,
    I have a scenario SQLDB -> Xi -> R3 .
    Here I have added a custom module before callsapadapter module.
    As I know the sequence of module calling will be as follows :
    1. Standard jdbc adapter
    2. custom module
    3. callsapadapter
    Standard jdbc adapter has a select query . After that what will be the input format for my custom module .Will it be the xml structure of my source Data type or will it be a resultset or will it be a inputstream(stream of xml fomat????).
    And then in which format i need to generate the output format for CallSapAdapter.
    Regards

    Hello Moni,
    SAP has a wonderful feature in ABAP. There are some Runtime Errors that you can <i>catch</i>. This is somewhat similar to the Exception Handling procedure in Java / C++. So here's how you go about it....
    Sometimes there might some calculations that we do, multiplication , for example, where the result of the arithmetic operation is known only at run-time. And the recepient for this result may not always be of the right type to take the result. Consider the following code:
    parameters a type i obligatory.
    data : b type i,
           c type i.
    b = 99999999.
    ** Assume that the user has entered 99999999 for the value of the parameter a.
    c = a * b.    " 99999999 * 99999999 "
    write c.
    This program will certainly give a short dump saying that there was an arithmetic overflow. But we can actually avoid this Shor Dump and handle the situation quite elegantly. consider the following.
    parameters a type i obligatory.
    data : b type i,
           c type i.
    b = 99999999.
    CATCH SYSTEM-EXCEPTIONS ARITHMETIC_ERRORS = 1.
    ** Assume that the user has entered 99999999 for the value of the parameter a.
       c = a * b.    " 99999999 * 99999999 "
    ENDCATCH.
    if sy-subrc ne 0.
      write: 'There was an arithmetic overflow in the calculation.'
    else.
      write c.
    endif.
    This way you can actually avoid the short dump and make the system set a value for sy-subrc. Based on the avlue of the sy-subrc, you can go ahead with further processing / error-handling, as the case may be.
    Here, ARITHMETIC_EXCEPTIONS is called an <i>exception group</i>. For more information on what other run-time errors can be <i>caught</i>, and What the various exception groups contain, please refer to the online documentation for the CATCH statement.
    Regards,
    Anand Mandalika.

  • Custom module templates for Web Apps

    Just wanting to see if there's anyone out there who knows if the custom module templates from the September release are available for Web Apps?  I can't seem to get them to work.
    When placing {module_webapps,8168,a template=”/custom/wap-contract.tpl”} I get a "No Items Found" response. I would appreciate help as this would be very useful in building Web Apps and I can't find documentation on it
    Thanks

    They do work with Web Apps, I've been able to use it successfully. Here is the only documentation I can find on it so far:
    http://helpx.adobe.com/business-catalyst/partner/using-custom-templates-modules.html
    Curious though, when  you get "No items found" that means there are no web app items to show. So we don't really know if your custom template worked or not. If you can get some items to show up and they use the default layout, then we know something is wrong.
    Hope this helps,
    Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

  • Problem while setting custom Challenge Questions in 11gR2

    Hi all,
    I am trying to add some custom Challenge Questions in 11gr2 but it is throwing error . For this first i added questions in Look up and then in customResources_en.properties and then i restarted OIM server.
    when a user is logging for the first time he has to set his challenge question there i am getting error like:
    JBO-29000: Unexpected exception caught: oracle.iam.ui.platform.exception.OIMRuntimeException, msg=JBO-29000: Unexpected exception caught: java.util.MissingResourceException, msg=Can't find resource for bundle java.util.PropertyResourceBundle, key KEY_WHATTHEHELL
    JBO-29000: Unexpected exception caught: java.util.MissingResourceException, msg=Can't find resource for bundle java.util.PropertyResourceBundle, key KEY_WHATTHEHELL
    Localized message not available. Error returned is: Can't find resource for bundle java.util.PropertyResourceBundle, key KEY_WHATTHEHELL
    Here My custom challenge question is:WHATTHEHELL.
    Its an urgent requirement, so reply ASAP.
    Thanks In Advance.

    If you are going for Localizing Challenge Questions and Responses
    http://docs.oracle.com/cd/E27559_01/admin.1112/e27149/app_localizing.htm#OMADM5054

  • Strange problem with backgroung processing of BDC for Transcation CLMM

    Folks,
    I have encountered strange problem with BDC.I created an ALV report from output i select any number of rows and hit insert class button on top. If i select less than 10 row and use this statement
    call transaction 'CLMM' mode 'N'
    ,it works fine but if i select more than 10 rows ,the sy-subrc after this statement  
    call transaction 'CLMM' mode 'N'
    is 1001 means an error. I cant understand this problem of Mode N. if  i put statement
    call transaction 'CLMM'
    (foreground processing) here ,everything works fine. Do you have any idea?
    Nirad

    Hi,
    The problem is due to the screen size which can differ between foreground and background mode.
    A screen with 10 table rowsin foreground does not necessarily mean same number of rows would be available in background mode.
    Hence its always better to create recording with Simulate Background Mode as checked.
    When you enter transaction code 'CLMM' in SHDB transaction and start recording, check Simulate Background Mode.
    Hope this helps!
    Cheers,
    Vikram

  • Strange problem with NWDS - Custom code vanishes!

    Hi all:
    I am very much new to SAP NWDS world. I have got background in core Java coding and now trying to pick up the Java WebDynpro for which I am practising some examples in SAP NWDS.
    I have got a Java WebDynpro application with 2 views. In the implementation tab of one view I am trying to put in some custom code for the function  :
    public void wdDoInit()
        //@@begin wdDoInit()
        //@@end
    However after I hit the Save all metadata button, the custom code vanishes and the function wdDoInit() goes back to the initial form ( shown above ). As a result I cant save the custom code.
    Any help with this issue?
    Cheers!
    Thanks
    Anindya

    Yes that's what  I thought. But couldn't really find any forum on WebDynpro Java. So I put it in the NetWeaver Platform forum!
    Thanks and regards,
    Anindya

  • What is the problem with Adobe Customer/Tech support for Premiere Pro?!?!?!

    Today Adobe closed the NINTH support ticket - since mid-January - on my problem with Premiere Pro CC - it crashes on startup (just after the splash screen loads). From what I gather on here, I am not alone with this problem. It's apparently rather common!
    I've left message after message and, as I said, NINE tech support tickets (most recent #0185443350). All have been closed or withdrawn without ANY help, reply or solution. Yet my monthly Cloud charge is reliably withdrawn from my bank account!
    I need access to a working program! I use this in my studio business and my customers have been waiting since the end of January! This is now costing me money and customers!
    Adobe - Apparently you don't particularly care about your customers. I am NOT impressed and, at this point, I'm starting get a little pissed off. It's been almost six months and.....NOTHING!
    And YES, all of my drivers are up to date, etc. I've reinstalled. Updated drivers. Etc etc etc, ad nauseum!
    NOTHING WORKS!
    -Rowen Poole

    Hi Rowen,
    I sent you a PM. I hope I can help you resolve this issue.
    Thanks,
    Kevin

  • VSL Sequencing question for gurus

    I've been making rehearsal tracks in Logic Express using the onboard patches of my old Yamaha EX-5 synth, but I need to move up in to actual sequencing for production. I've got some money and some time to learn, so here are my questions:
    I already have:
    -Logic Express 8
    -Controller kbd & midi interface
    -MacBook Pro with 4gb RAM and 500gb external FW/eSATA drive
    I'm planning on purchasing:
    -VSL Special Edition: Extended
    -Altiverb 6 (Regular)
    To do the actual orchestral sequencing, will I need to upgrade to Logic Pro? Is there any other software or hardware I'll need to buy to get started with VSL?
    Producing professional-grade orchestral mock-ups is my mid-term goal here. I've been composing symphonic works in Finale for 10 years, and want to make the leap from score to sound - so I'd appreciate any advice you'd be willing to offer.
    Advance thanks.

    there is no other special software or hardware other than a reasonably powerful computer and plenty of storage. VSL is a pretty detailed library so if you load very large libraries your macbook pro and 4 Gb could struggle, although that can be mitigated by a fast external drive. and you can optimise your library quite a bit.
    altiverb is fantastic but space designer is very good also - though look around for some other IRs other than the stock logic ones. i have the results of altiverbs stage postioning algorithm and i must say that sounds really fantastic and would help realism greatly for you.
    so i would suggest:
    - stage positioning from altiverb
    - space designer that comes with LP8 pro and put a little platinumverb after it.
    be prepared to do some optimisations with your current setup. but while you are about it...
    with logic pro, you can make your scores sound as they look. you do this by manipulating midi data in the environment. its very easy - easier than it sounds anyway.
    you can use program changes, or now with LP8, because certain meta data can be chased, you can actually use the dynamic markings and symbols to change the articualtions on an instrument.
    say you had a violin part. the first bar is tremelo, the second pizz, and the third stoccato. instead of having a different track for all these articualtions, you can set things up so that you could drag a tremelo marking onto the note and that would switch the VSL instrument to play tremelo. then you could type in pizz with the text tool, you would have to assign it a value in order to distinguish it from the other text-meta markings such as 'arco' or 'sordini' or whatever. but then IT would change the instrument to play pizz. in the third bar you can drag a stoccato note onto the page and the instrument would change to playout stocatto.
    and the thing is, while you could do that in previous versions of logic, they wouldn't chase. that means now if you stopped the sequencer in the third bar where the instrument had been switched to playing stoccato, and then started it in the second bar around half way through, logic would chase the last meta value - pizz - and so it would switch to pizz.
    so that means you can make your score look exactly right and have it sound exactly right with incredible detail. i don't think any other DAW allows this with such detail.
    i currently use EXS based instruments and program changes to make the switches. thats because i was doing this before 8 when meta values didn't chase. but i plan to make the conversion as soon as i get some down time and update my templates. it works extremely well, and with the EXS, you can have 128 articualtions for one instrument. i currently have 11 in my 1st violins which is about as much as i need.
    some people may advise you that your setup will choke as being not powerful enough - but i would take that with a pinch of salt. i was running very large mock-ups on my old G4 with less than 2GBs of RAM. the key is to optimise and not run vast quantities of things you don't need. i think you won't lose much by trying on your current rig first. but the EXS is much more CPU efficient than 3rd party soft instrument plugs such as VSL, so it could possibly push your machine a bit.

  • Question for gurus

    Can anybody give a reasonable explanation to the below phenomenon:
    - I have a Nokia E61;
    - I have a laptop with MS and WIDCOMM BT stacks;
    - when I try to install "Nokia E61 Bluetooth modem" driver, this modem NEVER works, and the modem does not respond;
    - but if I install something like Standard Modem over Bluetooth link, everything is fine - this modem responds, connects to the Internet, etc.
    So, my question is: WHY?
    Were Nokia people too clever to forget to make their own driver work? Or there is some other reason?
    And what about performance? Does the usage of the generic driver instead of special one affect the performance of the device? Will EDGE work on Standard BT modem link?

    standard modem over bluetooth link is part of the ms bluetooth stack i think, so this will be used most of the time. if the device needed a specfic driver it would use the nokia one.
    the driver will not affect performance.
    if you have edge, i would ask the network about it.

  • Strange problem with module WIC-4ESW on 1751-V

    Hi all,
    Cisco 1751-V witch WIC-4ESW IoS : c1700-adventerprisek9-mz.124-4.XC.bin
    CCME 4.0.1
    interface FastEthernet0/1
    description ** To Cisco AP 1200 **
    switchport trunk encapsulation dot1q
    switchport mode trunk
    interface FastEthernet0/2
    description ** To Cisco IP PHONE 7960 **
    switchport access vlan 99
    The strange problem is that in module 4ESW the led of activity they remain fixed, for both of the ports Fa0/1 and Fa0/2. ?_?
    With the previous IOS ( c1700-adventerprisek9-mz.124-5a.bin )the leds they work normally.
    Bha!
    Tnx so much for any answer!

    hmmm.. so u think there is no way to revive the messages?
    Nokia 8800e-1 (ARTE), V 05.21, 30-11-2007, RM-233
    Phones used: Nokia 3600, 6110, 6600, 8210, 8910i, 9500, N70, N91, 8800 SIROCCO
    Sony Erricsson: K900, T610
    Motorola, V3, L7

  • Strange problems with memory dimms(Banks) in imac 27in mid2010

    Hello dear Apple community. I had a really strange problem with memory dimms(modules anyway)
    I have one really good imac 27in with i7 but as you know after some years the lcd screen became yellowish and cloudy
    So i decided to clean it as i have some knowledge and i did that to others lcd screens with success.
    OK so after successfully cleaning and working like new ( i mean not the external screen with magnets but the lcd internally)i started it.
    Before dismantling my memory was 16gb ( 4x4 dimms)
    After starting it a strange problem arise without any reason! Memory reduced TO 8 GB!!!! memory banks on the right as we seeing it didnt worked at all
    and it was not from dimms because i swapped them..!!!
    So after a lot of thinking and asking tech guys to take a second opinion all the saying (including me that logic board failed for some strange reason.
    Some days before i installed CCleaner and also Onyx because after a lot of installations and uninstallations my mac became a little sluggish..
    I thought that some serious preferences files removed or some hardware settings deleted with Onyx ( is very good and powerful program that can fix the pc and also destroy it in a second) so i removed and reset all preferences. But nothing changed.. So i put a new hard drive and reinstall OXS to see if something can change.
    After formating HD to appleHFS+ saw system profiler that still couldn't see all banks(16gb). I remove logic board and i put another processor i7 that i have as a back up and still nothing( some saying that only these 2 things must be faulty if memory banks not working , processor an logic board and sometimes reinsatlling OS can fix it as i mentioned before. But still nothing...
    So from my nerves and after so much testings and no sleeping for 2 days as it was working i pulled off the memory modules from the right bank i put them again ( off course nothing changed) and i close it. After i restarted it like a miracle finally i saw that i have again 16gb in system profiler!!
    Tech guys here please give me an explanation to this because i gooing crazy! What happened and after i pulled off the dimms while it was working the problem fixed?? It is not recomended at all this action. I forgot to mention that i did Apple hardware test and nothing found..
    Sorry for long post.

    Okay great news...  My memory problems are solved and my Mac Mini is now running at 8 gigs of Ram. I tried the suggested DD3 1333 which  the computer wouldn't even recognize.
    So after visiting the Apple Store in the Fair Oaks VA shopping mall; they suggested that I try DDR3 8500 ram.    I visited Micro Center in Vienna VA, and I purchased BGreg's Suggested Crucial Brand Ram.  10 minutes after I got home the Mac Mini booted on the 1st try with 8 gigs of Ram.
    Some venting that Apple hopefully will read and mention to their resellers....
    The people in the Apple section of MicroCenter in Vienna at first argued that the Mac Mini only supports 4 gigs. EVEN AFTER I SHOWED THEM THE SPECS on the Apple website.  The clerk (who I am calling a clerk because by no means was he a "specialist") even suggested that the Apple site was wrong.  On a later visit to MicroCenter to purchase the DDR3 8500, that the people at Apple recomended; Microcenter even suggested and argued that I needed DDR3 1333 and NOT DD3 8500.  THIS WAS AFTER I TOLD THEM THAT Mac Mini WOULD NOT RECOGNIZE the DD3 1333 Dimms.   Working in retail myself I don't go along with the concept that the customer is always right, however in this instance clearly I was.
    I should point out that some of the staff in Microcenter really do try hard, however like with any business it only takes a few "know it all" bad examples to turn customers off.
    Curious post thought; I wasted about $75 in gas driving to and from Microcenter because of their bad advice. 

  • JNI gives strange problem

    Hi,
    I m facing a strange problem while creating jclass/jmethod objects for a JNI interface function.
    Here my program uses Java for GUI and C++ for low level module. JNI is the interface.
    I need to invoke a GUI method from c++ module in a loop.In this case I m keeping a global reference for the jclass object. and creating jmethodID as and when it is required to invoke GUI method.
    But sometimes GetStaticMethodID fails to create method ID and once it happenes, it will happen continuisly. further cannot call GUI method..
    Some times it even fails to create Jclass object.
    I m using j2sdk1.4.0
    Please give me inputs for this strange behaviour of JNI.

    Hi,
    I m facing a strange problem while creating
    jclass/jmethod objects for a JNI interface function.
    Here my program uses Java for GUI and C++ for low
    level module. JNI is the interface.
    I need to invoke a GUI method from c++ module in a
    loop.In this case I m keeping a global reference for
    the jclass object. and creating jmethodID as and when
    it is required to invoke GUI method.
    But sometimes GetStaticMethodID fails to create method
    ID and once it happenes, it will happen continuisly.
    further cannot call GUI method..
    Some times it even fails to create Jclass object.
    I m using j2sdk1.4.0
    Please give me inputs for this strange behaviour of
    JNI.Hi, did you ever figure this out? I am having similar issues.

  • ODI 11g 11.1.1.7 with Win64 bit OS : Starange problem : Right click does not work for Create new data server in Topology.

    ODI 11g 11.1.1.7 with Win64 bit OS : Strange problem : Right click does not work for Create new data server in Topology.
    On right click nothing happens at all. I have  reinstall the ODI multiple times with right installer. issue persist.
    Please help.

    Hi,
    Did you use the generic installer or the win32 one ? You should use the former with Win64.
    You can also check that your version of Java is supported in the certification matrix.
    Regards,
    JeromeFr

  • Very strange problem: Error for Overall result  due to a custom infocube?

    Hi,
    I have a strange problem:
    In my query the sumgt function doesn't work for the calculation of a percentage (es: 'KFA' %A SUMGT 'KFA').
    The coloumn of the formula is full of red X.
    Using Nodiv() the percentage are all zeroes.
    I use a custom infocube for this query that is a copy of an infocube standard with some other infoobject custom. In the infocube standard the formula work and the sumgt is correct!.
    It is possible that there are some parameter to be set at infocube level that make the SUMGT wrong?
    I'm sorry for my poor english,
    Alberto
    Message was edited by:
            Alberto Maggini

    Alberto,
                   Your problem might be a UNIT problem. If you are using key figures in a formula with different units, you will have the "red X" outcome.
                   Try using the NODIM() function in each formula element.
    Regards,
    L. Felipe

Maybe you are looking for

  • I'm having a problem with loops and indexes. (indices? ha)

    I'm building a Frequency Histogram table. I have a Histogram method below me, but it's showing up errors for the lines I put in bold. The error is "cannot find "i" variable". What should I do? Thanks in advance for the help. public void histogram(int

  • Is there a way to create a web or simlar link to a local database only?

    So my situation is this I have an access 2007 database that stores the names of customers and their usual orders. I want to create a link to this database somehow so that anyone on the network can access something like a search page that will be stor

  • Photos do not appear in projects Aperture 3.5.1

    When selecting a project on the sidebar, the photos that it contains do not appear in the main viewer area. If that particular project then appears under the automated "Recent" header, selecting it allows the photos to appear as normal.

  • Struts controller classes and ADF in JDeveloper 10.1.3 EA

    I've noticed that ADF Struts has changed quite a bit from JDev 10.1.2. In the previous version of ADF Struts, the default data action class was oracle.adf.controller.struts.actions.DataForwardAction. In version 2 of ADF Struts, the default action cla

  • To make the quicktime control bar hide itself ? HTML

    Hi everybody, i want to stream my quicktime H264 movies on my website. No problem so far. I do that easily. However, is there a way (by adding a html code, or a plugin) to make the quicktime controller bar hide itself when it's not useful. I mean : i