Java Mapping (Not Working)

Hi....
I have done java mapping using file to file scenario....
I have created two data types, two message types, two message interfaces... in imported archives i have imported
dom4j-1.6.1.zip and itext.jar files..
i have written my java code like this:
package com.xmltopdf;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import com.lowagie.text.xml.XmlToPdf;
public class MyXmlToPdf {
public MyXmlToPdf(String inputFile, String outputFile){
try {
XmlToPdf xtp = new XmlToPdf();
System.out.println("Ravi");
xtp.parse(new FileInputStream(inputFile), new FileOutputStream(outputFile));
}catch(Exception e ) {
System.out.println(e);
in message mapping i have invoked "MyXmlToPdf(String,String) constructor like this:
MyXmlToPdf xmt= MyXmlTOPdf("C:
source
filetofile.xml","C:
source
file.pdf");
return "";
and i have configured my communication channel, reciever determination, sender aggrement, reciver aggrement, and interface determination.....
so please tell me whether my code is correct or not... if its correct why i am not getting the pdf file.. if its not correct please tell me whats wrong in my code...
Thanks & Regards
Ravi Shankar B

Hi ,
select XMLTOOLKIT option in Operation mapping and execute it.
I am not sure we can call java program in XSLT Program,but alternative is copy the code and use it in XSLT mapping it self,that means your XSLT program will become with JAVA extensions.
then in Operation mapping level select SAPXMLTOOL kit option and execute it. i hope it will work. if it is not working then you have deploy some JAXP files on server,because the way execution of XSLT Mpaping program got changed,like when eve you executing XSLT with extnasions( if you are not using XMLTOOL kit option) then you have to use latest version of JAXP.JDK files.
Regards,
Raj

Similar Messages

  • Java does not work at all upon using the update manager to update to firefox 3.6.10 for Ubuntu 9.0.4

    OS: Ubuntu 9.0.4
    Browser: Firefox 3.6.10
    upon updating to firefox 3.6.10, java does not work at all.
    websites that use java do not work at all anymore, when they worked just fine before the updating thru update manager. e.g. hulu website cannot play any of the shows.
    i can give the folder of bookmarked pages i tried.
    how to do that on here, i've yet to see if possible.
    i can even give saved text from the terminal concerning certain attempts.
    when i updated thru update manager, it gave some weird java plugin that wasn't there before "The IcedTea Web Browser Plugin IcedTea6 Java Web Browser Plugin (execution of applets on webpages)".
    i uninstalled this as instructed by an answer found in one of the pages i saved, cuz it was conflicting w/another java program the updater said i needed. right now, i don't remember for sure what it was. it perhaps was realplayer flash or Java itself. w/all the hours/days of searching i put in, it's difficult if not downright impossible for me to remember all the specifics of what i tried.
    i've searched throughout many webpages (including many searches on mozilla, ubuntu, java, etc) for instruction in fixing the problem.
    oh, and incidentally, on the Java site, when i try the verify test of Java, firefox pops up with that yellow bar right below the slew of tabbed website windows, giving the statement "additional plugins are required to display all the media on this page. (w/link to) install missing plugins ." which is what i do, go thru the requesting plugin installation. it comes up with, guess what, the IcedTea Java Plugin. i click on the 'next' in the "Plugin Finder Service" box that pops up, & all it gives me is "No plugins were installed. IcedTea ...Plugin failed. and the link 'find out more about plugins or manually find missing plugins'". the link takes me to some of the very things/plugins that wouldn't install in the first place. the Java test failure is a LOL funny, as what plugin it is saying is required (IcedTea) is a recommended alternate program to display the very test in the first place.
    i followed the given instructions on those many searched pages, in every case (barring what i may have just plain missed), but to no avail.
    i've even gone to the point of trying to reinstall the previous 3.5.13 firefox version, from mozilla site. even that wouldn't install.
    i've tried installing Java for my sys direct from it's site. nada.
    now it's time for me to post the problem & perhaps someone will come up with some kind of "dummy" way to fix it.
    until then many sites a regularly use are totally useless to me on this fast puter.
    the only way i can get to use such sites, are two choices: 1. use a dinosaur laptop, which is slower than molasses & cannot handle to any streaming stuff, or 2. use an available internet access puter at the library. but useage for ea person per day is limited to only one hour a day. and one can end up waiting for an hour or more ( in the busiest periods) to even get to use one.
    so, is there anyone at all, who knows any for-sure working fix for this problem?
    thanks muchly :^D
    p.s. i can't pay anybody any money for such help, as is required in certain sites (e.g. Java website), cuz i don't have any.
    i can pay in labor tho, if there is someway to find someone who can physically be at this puter w/me, taking me step-by-step
    sorry for the 20-pg essay. i hope it was all clearly understood. if, not, well, clear communication is always what is needed, ask away.

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • HT1338 I installed Mac OSX Snow Leopard 10.6.3 And now my Java is not working, what can I do to fix's this?

    I installed Mac OSX Snow Leopard 10.6.3 And now my Java is not working,what can I do to fix's this?

    Run Software Update to get to 10.6.8 and update Java.

  • Java Plugin not working with firefox 3.o.13  and linux.

    this is my ln -s to the plugin at /usr/lib/mozilla/plugins
    libjavaplugin_oji.so -> /usr/local/jdk1.6.0_16/jre/plugin/i386/ns7/libjavaplugin_oji.so
    Any ideas why java is not working?
    Here's the ln -s again:
    #pwd
    #/usr/lib/mozilla/plugins
    # ls -l
    lrwxrwxrwx 1 root root 63 Sep 28 20:41 libjavaplugin_oji.so -> /usr/local/jdk1.6.0_16/jre/plugin/i386/ns7/libjavaplugin_oji.so
    Here are my java stats:
    # java -version
    java version "1.6.0_16"
    Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
    Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
    Firefox 3.0.13:
    Mozilla/5.0 (X11; U; Linux i686;
    Gentoo Linux:
    # uname -a
    Linux tma 2.6.30-gentoo-r5 #10 SMP Sun Sep 20 21:52:19 PDT 2009 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux
    I installed java from a jdk*.sh file and set the class path in /etc/bash/bashrc (not that it matters.
    The appletviewer does work.

    solved: I knew you all knew I could figure this out.
    #cp -R /usr/lib/mozilla/plugin/ /usr/lib/firefox-mozilla/
    asuming this is true:
    tma plugins # pwd
    /usr/lib/mozilla/plugins
    tma plugins # ls -l
    total 4
    lrwxrwxrwx 1 root root 63 Sep 28 20:41 libjavaplugin_oji.so -> /usr/local/jdk1.6.0_16/jre/plugin/i386/ns7/libjavaplugin_oji.so
    tma plugins #

  • Alternate Access Mapping not working for Zone : Intranet

    One of our client want to set Alternate Access Mappint (intranet) with url "intranet.theirDomain.com" with local IP address.
    is it possible?
    subsequest to my previous question (
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/3f39711e-301a-40e8-aa7a-855fa2c268b1/alternate-access-mapping-not-working?forum=sharepointadmin )
    I want to ask one more question
    Can we configure "intranet.theirDomain.com" with local IP address for any other zone?
    or
    If there is ".com" within the url then it can't be configured for InTRAnet?
    Thanks
    S H A J A N

    The names for the zones don't matter. You could use the 'extranet' zone for another intranet name if you wanted, the names are just to make it a bit more friendly for beginners.
    What you describe sounds routine, you create a web application with a name, then use an AAM to allow users to access it with a more friendly name. Frequently you end up creating
    http://intranet.domain.com and
    http://intranet as an AAM, or vice versa.
    You can use .com for an intranet site, you would need to add the site as an A Host record in your DNS server so that traffic is sent to your internal server rather than out into the wider world.

  • Value mapping not working properly

    Hi All,
    I am using value mapping twice in same mapping program. But only 1 field is coming with value and other is taking same value from source payload, can you please tell me what can be issue here?
    Value mapping 1 -
    Context - http://sap.com/xi/XI
    SenderParty- SenderSchema
    ReceiverParty- ReceiverSchema
    Value Mapping table in ID -
    Value mapping at field 2 -
    Context - http://sap.com/xi/XI
    SenderParty1- SenderSchema1
    ReceiverParty2- ReceiverSchema2
    Value Mapping table in ID -
    Source payload -
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_VM_Send xmlns:ns0="http://xyz.com/Rashmi_CollectPatternDemo">
       <Record>
          <Emp_ID>123</Emp_ID>
          <Name>rash</Name>
          <Surname>sumit</Surname>
          <Gender>Male</Gender>
         <Grade>E2</Grade>
      </Record>
    </ns0:MT_VM_Send>
    Target Payload -
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_VM_Receiver xmlns:ns0="http://xyz.com/Rashmi_CollectPatternDemo">
    <Record>
    <Emp_ID>123</Emp_ID>
    <Full_Name>rash sumit</Full_Name>
    <Designation>E2</Designation>
    <Gender>M</Gender>
    <Travel_Mode>Train</Travel_Mode>
    </Record>
    </ns0:MT_VM_Receiver>
    Here travel_mode is coming perfect, but designation is same as defined in source payload. Why here Value mapping not working???
    Thanks & regards,
    Rashmi Joshi

    Hi Rashmi,
    The problem would either be in cache update or your mapping. Please provide the sceenshot of mapping (after clicking the value mapping function).
    you can also choose the option to throw error in value mapping function, so it will throw error when value not found.
    regards,
    Harish

  • Java 7 not working on new (4/2/13) OS 10.8 machine

    I downloaded Java 7 and the app is not working.
    Checked it on Java site and it is not functioning.
    Validated Java is enabled in browser
    Cleared Cache...
    Not sure what else to do.
    Was going to uninstall and re-install with security off, but am not sure how to uninstall. My first Mac....
    Thanks in advance.

    I had a similar problem running Java with OSX 10.8.3.  Even after performing the latest software update (including Safari 6.0.4) in addition to download and installation of the latest version of Java (version 7 update 21), Java did not work. And the “Java icon” was absent from the “system preferences” menu (should be at the bottom under the tab “other”). Very strange! But I found a solution: 1.) Go to “Library > Internet Plug-Ins”; 2.) Move all JavaAppletPlugins to trash (I moved “JavaAppletPlugin (1.7.10.18).plugin” and “JavaAppletPlugin.plugin”); 3.) Download and run the latest Java update; 4.) re-launch Safari.
    That solved my problem and I can run Java applications in Safari. Again......

  • Java is not working any more

    The last 6 months Java has not worked at all. I have Java 1.4.2 and 5.0 installed. I have tried re-installation, emptying buffers, resettings safari, using other browsers, created new user account in OSX and so on. I have tried all the tricks in the book and I have talked with other people that have the same problem without being able to find a solution.
    My theory is that everything went wrong with the last java update, and I'm wondering whether Apple will release another update also including Java 1.6. I have waited quite long now, hoping for a update, but it doesn't seem to happen. Does anybody have some ideas on what I can do to get Java working again.

    HI punsk and Welcome to Apple Discussions ...
    Since you're having so much trouble with Java, you might consider backing up your files and doing a complete erase and reinstall. Not an Archive and Install, ERASE and start over. Once you do that, go to Software Updates available from the Apple menu; Apple/Software Updates and start from scratch.
    If you do this, after this is finished, run Disk Utility from your Applications/Utilities folder and Repair Disk Permissions.
    Also, on your iBook. Make sure you have available drive space for updates. Open Disk Utility, select MacintoshHD in the panel on the left, then look down right side of window and you'll see:
    Capacity and Available. Make sure your Available drive space is at least 20% of the total drive.
    Carolyn

  • Java 7 not working on OSX 10.8.3

    I need some help with Java 7.
    I am trying to open my photo lab software, however, it keeps giving me a message saying I need to download the Java Runtime Environment. I clicked on the link and it brought me to the Java site. I sucessfully download the software but it still doesn't work even though Java test show's it's working.
    I'm running OS X 10.8.3.
    I downloaded the softwared using Firfox don't know if that makes a difference.
    I've checked my Java setting and they all seem to be enabled. At this point I have not idea whats going on. I didn't have this problem before and can't figure out what to do.

    I had a similar problem running Java with OSX 10.8.3.  Even after performing the latest software update (including Safari 6.0.4) in addition to download and installation of the latest version of Java (version 7 update 21), Java did not work. And the “Java icon” was absent from the “system preferences” menu (should be at the bottom under the tab “other”). Very strange! But I found a solution: 1.) Go to “Library > Internet Plug-Ins”; 2.) Move all JavaAppletPlugins to trash (I moved “JavaAppletPlugin (1.7.10.18).plugin” and “JavaAppletPlugin.plugin”); 3.) Download and run the latest Java update; 4.) re-launch Safari.
    That solved my problem and I can run Java applications in Safari. Again......

  • Java Safari Not Working

    Hi all, I am running 10.4.11 with the new safari but now I believe my java is not working right anymore. I am getting the mug with arrows and no response when I try to upload photos onto places like facebook and costco. I have gone through the software update but it says I am all up to date. As well, I need to access the following site:
    http://www.cra-arc.gc.ca/esrvc-srvce/tx/ndvdls/myccnt/menu-eng.html
    and the following comes up...
    "Java applet unable to load"
    then..
    +On Macintosh Operating Systems:+
    +Mac OS X version 10.4.+
    +Browsers Supported:+
    +Safari 2.0.4 (Webkit 419.3 or higher).+
    +Apple JVM 1.4.2_07 to 1.4.2_16;+
    +Apple JVM 1.5.0_05 or higher.+
    +Safari 3.0.4 (Webkit 523.12 or higher).+
    +Apple JVM 1.4.2_07 to 1.4.2_16;+
    +Apple JVM 1.5.0_05 or higher.+
    Any help?

    Commiserating with you Seanifer - I cannot get Java-based Webinars (Citrix) to load either. As a test of a theory, I tried to load the same webinars in Firefox. It too didn't load - I suspect it's an issue specifically with Java and not necessarily with Safari.
    I too have all software updated - I'm running in Leopard v10.5.6, running Safari v3.2.1 and Java Web Start 12.2.0. Firefox v3.0.6
    We might want to begin with temporarily removing the plist for Java. Do you know how to do this (I do - I'm asking so as to know how detailed my assistance should be for you).
    I have the following Java components loading in this order:
    Java applet versions
    J2SE 5.0 32bit
    Java SE 6 64-bit
    J2SE 5.0 64bit
    J2SE 1.4.2 32-bit
    Java application versions
    J2SE 5.0 32bit
    Java SE 6 64-bit
    J2SE 5.0 64bit
    J2SE 1.4.2 32-bit
    I believe these are the "default" settings as seen in my Java Preferences panel.
    Rolling-up my sleeves on this one! Stay tuned.
    - mp

  • Java apps not working right

    I lately have found problems with Java apps not working correctly. For example, in Yahoo Widgets I cannot get any widget preferences to display; in Apple's Java Preferences for J2SE 5.0 the preference window opens but is blank; and in JBidwatcher the buttons are missing in main and preference windows.
    When I log in as another user I find all those apps work properly, so it seems to be something wrong within my User folder. I tried reinstalling the Java J2SE50ReIease4 but it didn't help. Is there something I can delete and/or reinstall to fix this problem?

    Ditto here,
    I made the mistake of thinking I could throw away the preferences in the Java folder and new pref's would automatically replace the missing pref's, much to my surprise no such thing happened. My settup is the same as yours, except my OS is 10.4.8.
    Someone please help.
    Thanks,
    BJZTX
    G5 D2GHz   Mac OS X (10.4.7)   G4 Notebook 10.3

  • Java applet not working savevid keepvid

    Hi all,
    I'm sure I'm not the only one who has been confounded by Java applets not working in certain download web services; in my case, keepvid.com and savevid.com to download copies of youtube videos.  It has been a huge headache and even debilitating in my case.  I teach film and video to middle schoolers, and we often use youtube as a resource for our class projects. 
    I found a solution today, I think, and wanted to share it:
    I installed the browser called "Torch" and it seems to work fine, so far.

    thanx 4 replying
    using the browser to view Applet is not recomended that is because if u change the the source-code and recompile the applet then run it using the broswer it will run the old-version
    Also i've found the solution here
    http://www.cs.utah.edu/classes/cs1021/notes/lecture03/eclipse_help.html

  • Java & Flash not working in safari

    Hello Friends,
    why java & flash is not working in safari?
    I have checked Java preferences, tab called general tab, and the checkboxes, both checked. java version run on the termial & it confirmed java by displaying it's version. running perfect.
    The problem is java & flash not working in safari, might be because of , so?
    when ever i open sites like web design company for project i wasn' t able to open such sites...
    kindly guide me for the same.
    Thanks,
    John Millard
    Edited by: 951029 on Aug 6, 2012 4:01 AMJavatester site<a/>, so?
    when ever i open sites like web design company for project i wasn' t able to open such sites...
    kindly guide me for the same.
    Thanks,
    John Millard
    Edited by: 951029 on Aug 6, 2012 4:01 AM

    Flash is totally unrelated to Java, so what you're saying is that certain plugins are not working under Safari of which one just happens to be Java. You're the second one I see make mention of that, but the fact remains that you'd need to ask Apple what is going on with their browser.

  • HT1338 i think my java is not working properly what do i do

    i think my java is not working properly what do i do

    Java 7 updated  for 10.7-10.8
    Released Feb 1, 2013,  fixes 50+ security flaws
    http://www.esecurityplanet.com/patches/oracle-responds-to-java-security-flaws-wi th-50-fixes.html
    Download and install
    https://www.java.com/en/download/faq/java_mac.xml
    For Java versions 6 and below OS X 10.5-10.6 machines
    Apple supplies their own version of Java. For Mac OS X 10.6 and below, use the Software Update feature available under the Apple menu to check that you have the most up-to-date version of Java 6 for your Mac.
    https://www.java.com/en/download/faq/java_6.xml
    Java SE 6 End of Public Updates
    After February 2013, Oracle will no longer post updates of Java SE 6 to its public download sites. We highly recommend downloading and installing Java 7.
    If your considering upgrading OS X from 10.6.8 to 10.8 via AppStore to run Java 7
    Be forewarned no PowerPC based programs or driver software will run any longer.
    Check here BEFORE you upgrade OS X!
    http://roaringapps.com/apps:table
    Alternatives if you must run Java 7
    If Apple disabled Java 6 in 10.6, and you can't upgrade OS X to 10.8, then your pretty much done with Java in OS X because Oracle won't issue updates for Java 6 anymore.
    However you can install Windows 7 and continue to use Java 7+ there until support for Windows 7 ends in 2020.
    Windows in BootCamp or Virtual Machine?
    If your on 10.6, I very highly recommend the free Virtualbox for the virtual machine software as it gets updates, VMFusion and Parallels have moved on with only 10.7+

  • Java currently not working, but was working previously. Change occurs around updates.

    I need Java to upload info to a GoDaddy website. Java was working in January, then did not work. It worked again after an update, then stopped working about the time of another Firefox update. Currently, Java is not working, but I am able to upload thru Internet Explorer. I seem to have the latest Java for Firefox installed, it is enabled so I am at a lost. Did an update not install properly? I am really at a lost since success and failure seem to be tied to Firefox updates.

    >
    You should be aware that this is a forum for discussion for Java developers. It is not an end user support forum.
    At any rate your issue is a problem with the site in question. "java.lang.NoClassDefFoundError: PChatPanel" means that resources the program needs cannot be found. This is a problem with that site and you will have to address it with them in order to resolve it. Nobody else can help you with this because it is a site problem and beyond our control.

Maybe you are looking for

  • Java Mapping sample code

    HI all, I want to learn how java mapping can be done in XI. I have created a javaMapping class implements StreamTransformation . I am not getting what code should be written in execute method. I have included all the jar files required. Please can an

  • Calling Remote enabled Function module in java using RFC Destination

    Hi We are on Portal 7.3 ehp1 sp9. Steps followed are : RFC Destination called "SAP_RFC" has been created as below : Configuration -> Destinations -> RFC Destinations Connection and Transport: Load balancing :Yes Provided : SystemID / MS Server / MS S

  • Regarding ReadDateTime in C#

    Hi, In java writeExternal method we are inserting sql date object. I guess this is how tangosol will accept (I am not sure) private java.util.Date EFFECTIVE_FROM; if (EFFECTIVE_FROM != null) out.writeDate(242, new java.sql.Date(EFFECTIVE_FROM.getTime

  • Finding the privledged folder?  Adobe XI pro on XP

    I've got the following code: myTrustedSaveAs = app.trustedFunction( function ( doc, path ) app.beginPriv(); doc.saveAs({ cPath: path, bCopy: true, bPromptToOverwrite: true app.endPriv(); myTrustedOpenDoc = app.trustedFunction( function ( path ) app.b

  • How do I open separate playlist windows in itunes?

    I need to open a playlist on my computer and a playlist on my ipod at the same time.