Issue with Jar files in UDF for RFC LookUp

Hi,
I am writing a UDF for RFC LookUp.
In the import statement of UDF, I used the JAR File : com.sap.aii.mapping.lookup.*;
The code inside the UDF uses LookupService.getChannel.
When I test the UDF, It shows an error ( ^ ) at LookupService.getChannel.
Could you please help me in understanding why Am I getting this error at all?
Thanks In Advance.
Rohan

Hi,
I have used 'com.sap.aii.mapping.lookup.LookupService', and I got the following message error:
G:/usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map1c5a7dc23dcf11dda79f001e4f342f87/source/com/sap/xi/tf/_MM_MT_PlannedOrder_to_ZLOIPLO_.java:3: package aii_map_api does not exist import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.;import aii_map_api.jar;import com.sap.aii.mapping.lookup.LookupService;*
^
Also in the above message there are 3 packages that I have not used at all and still I see them in the message.
Any reason?
Rohan.

Similar Messages

  • Issue with .jar file (double clicking)

    Hi.
    I've been having a problem with a certain .jar file when I attempt to double click it. From my understanding, I was under the impression that when someone double clicks a .jar file, the contents are supposed to execute by itself (kind of like a .exe file, I guess?)
    I've been able to successfully create my .jar file and have been able to run it through a command prompt in Windows using the following:
    java -jar testjar.jar
    However, whenever I try to double click on the testjar in the folder it is located in, a command prompt quickly pops up and goes away. I've been able to tell I'm getting an error, mainly consisting of something along the lines of "Exception in thread "main" java.lang.NoClassDefFoundError: ...
    I'm not entirely sure what information is needed for support, but I'd be more than happy to provide what is necessary. Thanks in advance!

    I've been having a problem with a certain .jar file when I attempt to double click it. From my understanding, I was under the impression that when someone double clicks a .jar file, the contents are supposed to execute by itself (kind of like a .exe file, I guess?) Only if it has a manifest file which specifies the main class
    java -jar testjar.jar
    However, whenever I try to double click on the testjar in the folder it is located in, a command prompt quickly pops up and goes away. I've been able to tell I'm getting an error, mainly consisting of something along the What does your program do? It's possible that it runs and then closes before you can notice when you double click. It's also possible that the java version that double click is invoking is different from what you're using on the command line.

  • Issue with jar file

    i've written a fairly simple app that involves a while loop. when i run the application using the command line, it works perfectly. however, if i bundle all the files up into a jar file and double click to run that, it gets most of the way through the while loop then appears to stop with no errors thrown or anything. here is the code:
    import java.io.*;
    import javax.swing.*;
    public class ConvertImage
       public static void main (String[] args) throws IOException
          try
             UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
          catch (Exception e) {}
          JFrame frame = new JFrame ("Image Converter");
          frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
          JTextArea ta = new JTextArea (25, 60);
          frame.getContentPane().add (ta);
          frame.pack();
          ta.setText("Image Converter (c) T.Allen 2006\n");
          ta.append("--------------------------------------------------------\n");
          ta.append("\n");
          frame.show();
          JFileChooser chooser = new JFileChooser();
          int status = chooser.showOpenDialog (null);
          while (status == JFileChooser.APPROVE_OPTION)
             File file = chooser.getSelectedFile();
             // Open ID text entry
             String[] details = InputFrame.showInputDialog();
             if(!details[0].equals(null))
                 // Run image conversion
                 resizeImage ri = new resizeImage();
                 ri.resize(file.getPath(), details[0]);
             // Add confirm message to JTextArea ta
             ta.append("Image converted successfully for product :"+details[0]+"\n");
             status = chooser.showOpenDialog (null);
    }the app seems to get through to just before the line:ta.append("Image converted successfully for product :"+details[0]+"\n");then nothing. the program does not stop responding as i am able to shut it down using the red x button and the image output is correct as well. it seems really odd that it works fine until i stick it together as a jar file!
    here is the command i use to create the jar file:
    jar cmf ConvertImage.mf Convert.jar ConvertImage.class InputFrame.class InputFrame$1GetData.class resizeImage.class copyright.jpg images
    and my manifest file looks like this:
    Manifest-Version: 1.0
    Main-Class: ConvertImage
    (there is a blank line at the end of the manifest file.)
    Does anyone know why the jar file isn't working as it should?

    public static void main (String[] args) throws IOExceptionSo if something in the program throws an IOException, the program ends abnormally. But you should see the stack trace of the exception in your console.
    But if you don't have a console (and you probably don't) then you don't see the stack trace.
    Declaring your main method like that is okay for quick and dirty command-line programs where you can't be bothered to catch exceptions because you're going to throw the code away anyway. But if you're going to put the code in a jar file then you need a more professional standard of programming. Catch the exceptions in the program and notify the user when they occur.

  • A serious issue with excel file read in ODI

    hi gurus,
    Issue with excel file read is that we can read only one file by setting the path from ODBC Data Source Administrator-->System DNS -->Select Work book
    what i want to read the dynamic path(Every time I cant go back and set the Work book to select the excel file..
    So i came up with a solution to write a Vbscript that convert the excel to csv my problem got solved for dynamic paths the script is as follow:
    Set objArgs = WScript.Arguments
    For I = 0 to objArgs.Count - 1
    FullName = objArgs(I)
    FileName = Left(objArgs(I), InstrRev(objArgs(I), ".") )
    Set objExcel = CreateObject("Excel.application")
    set objExcelBook = objExcel.Workbooks.Open(FullName)
    objExcel.application.visible=false
    objExcel.application.displayalerts=false
    objExcelBook.SaveAs FileName & "csv",23
    objExcel.Application.Quit
    objExcel.Quit
    Set objExcel = Nothing
    set objExcelBook = Nothing
    Next
    Now this script convert the xls file to csv with comma seprated values
    e.g in excel sheet if data is ABC XYZ PQR
    csv will come with ABC,XYZ,PQR
    here the delimiter is , i want the delimiter as pipe | who's ascii code is 124
    but if i change 23 with 124 its not working i getting the error cannot save as...
    can anyone tell me that what should be the correct code for pipe
    so that the output is ABC|XYZ|PQR
    AS WE CAN USE THE SCRIPTS IN TOOLS
    Edited by: 789141 on Sep 14, 2010 11:33 PM

    I dont have the answer for your question but i have different approach in handling multiple Excel File.
    Step 1. Copy a sample source Excel File and Call it Final.xls .
    Step 2. Map this Final.xls to DSN and in Topology call this Final.xls
    Step 3. Do the Reversing and Map and test the Interface . Once its done.
    Step 4. Create a Package and using a http://odiexperts.com/?p=1426 get the list of all the Excel File
    Step 5 . Using this http://odiexperts.com/?p=273 create a Loop to Read the Excel File name
    Step 6 . Copy using OdiFileCopy to Final.xls and run your interface .
    Step 7. Increment the Loop and copy your next File for Final and run the interface
    Step 8 . Finally you will be able to read all the Excel File .
    Step 9 . Delete the source file [ Optional ]
    Hope this helps.

  • I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I would first of all trash the preference file for InDesign, make sure the application is closed then find the prefs in
    /Users/USER NAME/Library/Preferences/Adobe InDesign and just throw the entire folder away, it will generate a new one after you launch InDesign again.
    Now launch InDesign and see if the problems are resolved.
    If not I would repair your permissions on your hard drive wih disk utility, and if that fails then di-install InDesign and re-install that single application.
    Let me know if any of these suggestions work for you
    I will be checking my email although you might have to wait for a response as I will be taking a microlight flight over the Victoria Falls tomorrow. Yay can hardly wait.

  • Issue with Sender File FCC

    Hi Experts,
    I have an issue with Sender File FCC Adapter. The file being picked is of type TXT and it is tab seperated. The first line contains the field names and from next line onwards we have values for those fields.
    The field names and field values are tab seperated. Even inserting a single letter in some field value manually disrupts the whole setup & alignment of the TXT file and the Sender File CC is unable to pick up the file from the shared folder. If the first file is errorenous and after that a correct TXT file is posted, it fails to pick up the correct file as it is trying to pick the errorenous file first.
    The Error thrown is :
    "Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 2 according to structure 'ABCD':java.lang.Exception: ERROR in configuration / structure 'ABCD.': More elements in file csv structure than field names specified!"
    I have two questions:
    1. Is there a way to handle such a scenario? For e.g., the errornous TXT file gets picked but throws error in PI.
    2. Is there an alternative that the sender FCC channel picks up the correct files and filter out the errorneous ones ? ?
    Thanks,
    Arkesh

    Hi Arkesh,
    I think you are passing more number of fields than expected. Please check paramters defined and send the data accordingly.
    In the processing parameters tab of sender file adapter, you have an option called Archive faulty source files, below to that you would have option to enter the " Directory for Archiving files with Errors".
    I hope this helps you....
    Thanks,

  • Issue with attachment file name

    Hi All,
    This is about an issue with attachment file name:
    we have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
    Regards
    kiran

    we have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
    - <SAP:Payload xlink:href="cid:payload-4CED452F17C601BDE10080000A492050---sap.com">
      <SAP:Name>1 .Header1.txt</SAP:Name>
    Error we are getting is
    Cannot cast 'Header' to boolean] in class com.sap.aii.mappingtool.flib7.NodeFunctions method createIf[Header, com.sap.aii.mappingtool.tf7.rt.Context---27a73bfa]
    So we have to change the File name Header1.txt to something which we can cast to creatif....(we cannot tell the sendr to change the file name as its is set already)
    Thanks for interste and assisting
    Regards
    Kiran

  • Issue with corrupted file when dragging to timeline

    Has anyone ever had an issue with a files audio becoming corrupted when moving the file from the editing window to the timeline.  I am also seeing the my camtasia mp4 becomes blurry on the timeline but plays fine in the editing screen.
    I had not problem with camtasia Mp4s previously and today I have had so many issues with premier pro

    Hi,
    Even i faced this issue before...the problem with file adapter is the attribute nxsd:quotedBy takes &quot; as default even if u dont mention it takes the same and now after the quotes it immediately expects | wch is not there in the data and it throws the error...now the fix for the problem is put some symbol for nxsd:quotedBy wch u never expect in the data some thing like less than or greater than symbol ....some thing like below
    <element name="FieldTwo" type="string" nxsd:style="terminated"
    nxsd:terminatedBy="|" nxsd:quotedBy="<"/>

  • Issues with RAW files from my 7D

    I have Aperture 1.5.6 on my computer and the software updater says that is the current version. I shoot with a 20D and a 7D. I upload my raw files to Aperture and edit them from there and then process for a jpeg. However, every time I upload a raw file from my 7D I get the following message when I click on it to edit it: Unsupported Image format.
    Any words of advice, other than just buy Aperture 3??

    I have Aperture 2.X and had zero issues with RAW files from a 7D, so I think the problem is you are on 1.X. Converting to DNG first was a good suggestion if you don't want to purchase 3.X. Yet another reason to hate proprietary raw image file formats.......

  • Sharpening issues with RAW files

    Hi,
    I have downloaded lightroom 5 as a one month trial and have been playing with the program. I am not an experienced user and are wondering if I am doing something wrong, have wrong settings applied or if it is the known sharpening bug that messes with my photos. I know that sharpening and noise reduction includes a bug that does not let you export pictures 1/3 of original size with sharpening/noise intact. However, in my case, this also happens with RAW files. I do not crop or change size/resolution to any of the photos, but the sharpening is still not working. Photos look great in develop mode, but when I click on library mode to export them, all sharpening disappears!
    Is this the same bug previously reportered "only for pictures 1/3 of original size", or do I have some strange settings applied?
    I was loving lightroom 5 up until I noticed this, and now I am reluctant to buy the product...
    I'd be greatful if anyone has any input on this!
    Thanks in advance

    I have Aperture 2.X and had zero issues with RAW files from a 7D, so I think the problem is you are on 1.X. Converting to DNG first was a good suggestion if you don't want to purchase 3.X. Yet another reason to hate proprietary raw image file formats.......

  • There seems to be a problem with the file download. For troubleshooting tips, please visit our customer support page

    There seems to be a problem with the file download. For troubleshooting tips, please visit our customer support page.

    Thank you for the update Dlawrenceusa.  I would recommend reviewing the installation logs for the updates that are failing to apply to determine the exact cause of the failure.  You can find details on how to locate and interpret the installation log files at Creative Cloud Help / Troubleshoot install issues with log files | CC.  You are welcome to post any specific error messages you discover to this discussion.

  • Issues with Safari 3.0.1 for windows

    Issues with Safari 3.0.1 for windows (at work):
    Lenovo T60 with intel core duo T7200 @2.00Ghz plus additional monitor (Lenovo ThinkVision) in extended desktop mode running Windows XP Pro 2002, SP2
    1. Taskbar is configured to autohide: when Safari is the top (active) window, it remains on top. If the taskbar pops up, it does so behind the Safari window, because I cannot see it.
    2. If an open Safari window is dragged to the external (secondary) monitor, then maximized, it disappears to the side. It is not closed. I can still find it via Alt-tab or in the task bar and can, by right-clicking ‘Move’ from the taskbar use the arrow keys to move the window back into place. Clicking to reduce the window, then re-maximizing leads to the window disappearing to the side again.
    3. In general my impression is that this does not function at a ‘beta’ level, but more of an ‘alpha’ level. Still very buggy.
    Jcw
    iMacIntel Duo 2Gh   Mac OS X (10.4.7)   1G-RAM, 250vRAM
    iMacIntel Duo 2Gh   Mac OS X (10.4.7)   1G-RAM, 250vRAM

    This is a beta...thats why they give you the option to report probs via the bug icon. Since you are having these probs try and report them, I am not sure if apple has the time to scan these forums to try and find the big probs that people are having. So unless you report bugs, (and wait until the final realease) then they might never get noticed and or fixed.

  • I am having a issue with getting data useage alerts for my iphone 4s

    I am having a issue with getting data useage alerts for my iphone 4s from AT&T.  I do not download anything huge at all.
    I looked into it and figured out that the phone dials out nightly at 12:29am every night.   I went into my settings and went to general..about..diagnostics and useage..then diagnostics and useage data to see this.  I then clicked don't send...but I am still getting useage alerts.  Can anyone help me please...
    Thanks

    Honestly, from reading the thread linked, they all come off as a bunch of whiney people that cannot be bothered to help themselves.
    Little to nothing in that thread indicates an issue beyond inept consumers.  Yes, I read several pages on the incessant gripes.  Very few made any actual attempts to troubleshoot issues before whining about the "Apple issue" and those that did actual troubleshooting got their issues resolved.
    So no, Apple has nothing to fix beyond a few specific devices that are experiencing hardware issues.
    If you have actually put forth effort and done the basic troubleshooting, take the device to Apple for evaluation and possible replacement.  Whining will get nothing accomplished.

  • Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    These links might provide some information that may be of help.
    http://support.apple.com/kb/TA20831
    https://discussions.apple.com/message/2035035?messageID=2035035
    I've encountered this error myself upon occasion.  If I remember correctly, it was a permissions/ownership issue with the some of the files I was copying.

  • How to use javap with jar files ?

    how to use javap with jar files ?
    thanks

    As long as the jar is on the class path, your gold. So,
    javap -classpath myjar.jar mypackage.MyClass
    Chuck

Maybe you are looking for

  • Downloaded New Version.....I've tried everything..nothing is working..HELP!

    Today i downloaded the newest version of iTunes 6.0.2.23....and i ran the installation and just as it looks to end, the InstallShield window says this message exactly as it follows... The iTunes for Windows installer has completed. The installation w

  • Why does search in the iTunes Store on the Mac produce different results than in the new Podcaster app?

    If I search in the iTunes Store (in iTunes) on my Mac for this word: msworld I get two Podcasts I can subscribe to. If I do the same search in the new Podcaster IOS app, I get no matching items as a result. Does anyone know why or how to solve this p

  • ABAP roles v/s Portal Roles

    Hi All, Currently I was going through  EP security docs where I came across this "An important difference between ABAP roles and Portal roles is that in the portal,no authorizations are defined for the backend application itself. This must still be d

  • Mountain lion start up problems

    I downloaded Microsoft lion for the first time today on my mac book pro 2011 edition. since it has restarted I haven't been able to get past the white screen with the apple and circle. I have pressed command and alt and r but this just connects me to

  • Font color (using css) does not work on ImageHyperlink

    Hello, I cannot change the font color of an ImageHyperlink. I am using a CSS style for ImageHyperlink. The CSS style that I applied is working fine for font-size and background-color but not for the color property. The behavior is the same on IE7 and