Message Mapping activation error-Source code has syntax errors in UDF

Hi all,
I wrote a small UDF for sum of 2 numbers:
import
udf.*
public String getsum(String a, String b, Container container) throws StreamTransformationException{
int c = Integer.parseInt(a);
int d = Integer.parseInt(b);
int e = packageDemo.getSum(c,d);
return e+"";}
In imported archives, i imported pack.jar
In D:\udf , I have packageDemo.java, packageDemo.class, aii_map_api.jar, pack.jar(has the other 3)
packageDemo.java :-
package udf;
public class packageDemo{   
    public static int getSum(int a,int b)
        int c= a+b;
        return c;
Did i miss anything?? Icant activate message mapping for 2 errors:-
1.package udf does not exist
2.Function getsum, Line 3:
cannot find symbol symbol : variable packageDemo location: class com.sap.xi.tf._xml_mm_int e = packageDemo.getSum(c,d); ^Note: /usr/sap/P7R/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapd4214d3099dc11dd9470001d090e4bbe/source/com/sap/xi/tf/_xml_mm_.java uses or overrides a deprecated API.Note: Recompile with -Xlint:deprecation for details.Note: /usr/sap/P7R/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapd4214d3099dc11dd9470001d090e4bbe/source/com/sap/xi/tf/_xml_mm_.java uses unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.2 errors
Edited by: NagaDurga Nannapaneni on Oct 16, 2008 1:07 PM

Hi ,
Think the error is coming because the content in imported archive is not being taken into message mapping at all...so package, class, method ..nothing is identified.
Can anyone suggest the solution..
Thanks,
Durga

Similar Messages

  • Source code has syntax error in SAP PI7.1 Mapping Test

    HI All,
    IN SAP P7.1  created simple two data types, message types and Message Mapping with only 2 fields. While testing the mapping in Message Mapping it is giving the error as
    Source text of object Message Mapping: MM_Source_to_Target | http://abc.com has syntax errors:
    Source code has syntax error:
    I am able to activate the Datatypes and Message Types but not able to activate the Messge mapping.
    Please if any body faced the same problem please give the solution.
    One more thing is I am able to test the Message Mapping available in BASIS 7.1 Software Component objects. It is executing successfully...
    but otherthan this SWC it not working success fully.....
    Regards
    Sridhar Goli

    Hi David,
    please check the default trace. It may contain the entry:
    Error in compiling : java.io.IOException: Not enough space
    If that's the case, maybe there's too little space for the swap file/device.
    You should ensure that at least 2X (preferably 3X) of Heap (-Xmx) is configured as real swap
    Hope that helps.
    Regards,
    Gábor Klauzer

  • Message Mapping Activation Error

    Hi,
    Can any one help me.....
    My scenario is MQ -> XI -> RFC
    While I did the message mapping activation,
    the error message shown "C:\usr\sap\XIT\DVEBMGS00\j2ee\cluster\server0.\temp\classpath_resolver\Map11441a7066c411dab32f000c2961ecf\source\com\sap\xi\tf\_MM_GET_SDCR_.java (System can't find the path)
    Does anybody have any idea what could be wrong?
    Thanks.
    Edy

    Dear anand,
    Thanks for your helps!
    I have solved the problem this noon and the root cause
    is that the C drive is too full to fit in anything...
    That's reason why I have this kind of message.
    Thanks again!
    Edy

  • EMac optical drive: Reads but ceased writing.  I get "Sense key=MEDIUM ERROR, Sense Code=0x0C, WRITE ERROR.  Drive is Pioneer DVD-RW DVR-127D.

    eMac optical drive: reads fine but has ceased writing.  One day it's working fine, burning DVDs, then after repeated attempts stops copying and gives the following error message:  "Sense key=MEDIUM ERROR, Sense Code=0x0C, WRITE ERROR".  Drive is Pioneer DVD-RW DVR-127D.  Is this a software issue or is the drive half dead?  Get the same result with either Popcorn or Toast 10.

    Are you using Roxio Toast? That error seems to be discussed a lot in the Roxio forums. Scroll down this thread:
    http://forums.support.roxio.com/topic/1686-the-drive-reported-an-error-sense-key medium-error-etc/
    and you'll find a step-by-step troubleshooting scheme.

  • Map Request DTD has syntax-errors

    I checked the Map Request DTD with xmlspy and get syntax errors. The error positions are:
    <!ELEMENT jdbc_query (#PCDATA, hidden_info?)>
    <!ELEMENT legend column+ >
    <!ELEMENT column entry+ >
    Who can help me? From where can i get a correct Map Request DTD or XML Schema?
    thanks
    Message was edited by:
    bluemi

    hi d_wilhelm
    ok, the expression "well-formed" was not correct, i meant syntax-errors
    thanks for your answer

  • XI 2.0 Message Mapping Activation Problem

    Hi All,
    When I attempt to activate a message mapping, I receive the following message:
    Activation of change list cancelled
    Check Result for Object Message Mapping ZHRMD_A05toEAI | http://com.sl.xi:
    *Starting Compilation
    *Error while Compiling
    This is a rather large IDoc, so I'm wondering if it's a memory problem. Do you know where I can "Check Result"? The actual mapping is very routine, so I don't think it's a syntax problem.
    Any help is greatly appreciated!
    Kind Regards,
    Jeff
    Message was edited by: Jeff Kocur

    It does appear to be a resource issue. Following your suggestion, I ran a test and received this message:
    Messages:C:\jdk1.3.1_11\bin\javac -encoding UTF8   -classpath .;.\system-lib\boot.jar;.\system-lib\jaas.jar -extdirs .\additional-lib;.\services\deploy\work\applications\ExchangeRepository -d C:\WINNT\TEMP\12_9_21_22_10_2004 C:\WINNT\TEMP\12_9_21_22_10_2004\com\sap\xi\tf\_ZHRMD_A05BtoEAIZHRMD_A05B_.java
    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError
         <<no stack trace available>>
    Compilation error

  • Message Mapping of Recursive Source Structure?

    Hello,
    a mapping needs to be implemented from a custom source structure to an IDoc. An XSD has been provided for the source structures which contains recursive elements --> an element of a specific type contains another element with the same type.
    If I import the XSD then the type of the recursive element is displayed in "red", but I still can expand it. If I want to use the source structure in the message mapping I cannot expand the recursive elements anymore. Does anyone of you have an idea how to handle this? I want to avoid XSLT if possible.
    Thank you!

    Hi again Florian,
    please have a look at [Structure Overview in Message Mappings on SAP help|http://help.sap.com/saphelp_nwpi71/helpdata/en/e3/92be7c6cd34fd485c967144e302fb6/content.htm]. There is a paragraph on Recursive Structures:
    ...It is possible to map these elements in the mapping editor in a rudimentary fashion by using the context menu to expand a specific number of subnodes and then use them in target-field mappings...
    That works for both source and target message.

  • ESS source code check in error in CMS

    Hi Guys,
    Am getting the following error when trying to check in the ESS source code in the CMS NWDI .
    com.sap.cms.util.exception.CMSUnexpectedException: cannot load file: /usr/sap/trans/CMS/inbox/SAPESS06_0-20000512.SCA Error: Could not extract file SOURCEARCHIVES/DTRSAP_ESS.sc from archive /usr/sap/trans/CMS/inbox/SAPESS06_0-20000512.SCAAdditional error message is:No space left on device (errno:28)
    Though it said no space left, I was able to check in MSS PCUI_GP after this message was thrown when checking in ESS source code.
    I was also able to successfully check in and import all other .SCA files except for ESS.
    Appreciate any inputs.
    regards
    Sam

    Hi Sameer,
    The ESS component is the largest component to be imported and can be problematic in terms of space and memory available to the server. It is more than double the size of the mss package.
    This error is clear, you have ran out of space on you disk. Clear up the disk and ensure that you have around 5gb of space free.
    Regards
    Daniel

  • I keep getting this message when I open my outlook mail - syntax error in arguments.  What is it and how do I fix it?

    I keep getting the message - syntax error in arguments when I open Outlook.  Why? And how do I correct it? 

    Hi,
    I don't know the exact fix for your problem, but there is a thread on the Microsoft answers page that talks about this error message being related to a particular key.
    And if you remove that key, you can fix Windows update. See below for the detailed information and scroll to the bottom to see where someone found the fix:
    http://answers.microsoft.com/en-us/windows/forum/windows_other-windows_update/windows-update-error-code-80072ee2/fb87f203-69d9-4cd5-bbb1-ba8d0781be3e
    Thanks,
    Michelle

  • Query code cotains Syntax Errors

    Hello Experts,
    In the process of upgrading from 4.6 to 6.0 ECC SAP version, we had some issues at the moment of testing Queries from SQ01 transaction, nevertheless almost all the problems with queries were solved by regenerating them all over again from SQ01 for Queries and SQ02 for Infosets.
    Everything was OK so far, until I tested this Query related to PCH Logical Database and realized that It had Syntax Errors and can't run, and the other 5 Queries related to the same Logical Database are having the same Syntax Errors and they can not be fixed by executing the Query from SQ01 or regenerating the Infoset (PCHORG) from SQ02.
    I guess the Syntax Errors must be fixed by regenerating the code in the new version, but how can I do this?
    Or, is there another process I am skipping to achieve this?
    Any ideas on this?
    Thanks in advance!

    Hello VitorDFPinheiro thanks for your answer,
    I tried to modify the errors manually but in first Instance this is not possible whitout an Access Key and secondly I think this is not the best practice due the code for queries is generated Automaticaly.
    Nevertheless I tried to correct this syntax errors by copying the code and pasted it into a new Z program and compile it, the compiler threw even more errors when I corrected the first one, so I think that this is not the way to procced.
    I guess that there should be a way to "regenerate" the query and this "regeneration" must reorganize the code and its syntax.
    Any other suggestions?
    Edited by: memo_cv on Oct 11, 2010 6:56 PM

  • Message Mapping activation Problem

    Hi
    when i activate my message mapping , I am getting an error message like there is not enough disk space, which quite straight forwardly asks me to go and look the space of the XI drive. I looked into it and i have got only a few MB space left out(less that n 50 MB). Now what files can i delete to regain the space back?
    kindly advice.
    regards
    krishna

    NO - THIS IS YOUR DATABASE!
    Do you run a backup from DB13?
    if so, run redo log copy save delete - this deleted the log file after taking two copies.
    The redo logs will be somewhere like
    oracle\<SID>\origloga
    oracle\<SID>\origlogb
    oracle\<SID>\oraarch
    oracle\<SID>\sapbackup
    Again. run from DB13 and not delete from O/S

  • Message failed in PI: Status code 200 But Error During Response Parsing:

    Hi
    I have integration scenario for sending PO/PO change/Proact from R/3 to SNC, everything was working till yesterday morning and suddenly all messages are failing in SAP PI with below error. We have not done any changes. The strange thing is this is failing in dev as well as in QA.
    HTTP Status Code 200 Received But Error During Response Parsing: No XI Response Received XML element Envelope missing in SOAP message header (SAP XI Extension)
    I can see some messages in sxmb_moni (we have not configured this) from sender component "Integration_Server_SID" and it's failed with below message
    Proxy calls are not permitted on sender or
    receiver side on the IS (client)
    Thanks,
    Nishant

    HTTP Status Code 200 Received But Error During Response Parsing: No XI Response Received
    XML element {http://schemas.xmlsoap.org/soap/envelope/}Envelope missing in SOAP message header (SAP XI Extension)
    Same problem answered in this discussion....check if it helps:
    Re: BW to File scenario
    Regards,
    Abhishek.

  • Message Mapping : conversion of source value 2,520,926.08 to 2,520,926

    Hi,
    The value coming from Idoc at source side is 6,999,432.08.
    I want the value to be passed at target side as 6,999,432
    I do not want .08
    How i will do the message mapping. Can someone help me out.
    Thanks,

    Ashish,
    I have tested this and all works as you expect.  I have also provided two examples due to confusion as to whether you want the decimal places.  You stated in an earlier post 'I do not want .08, i want .00' but in your last post that 'Source Value be 22345.45 or 22345.78 or 22345.99.........target value should be 22345'
    Two decimal places .00
    LHS field_in --> floor (arithmetic function) to give you the integer value required (rounded down) --> format number (second arithmetic function and indicate a format of 0.00 to represent two decimal places) --> RHS field_out
    Source       Target
    22345.45    22345.00 
    22345.78    22345.00
    22345.99    22345.00
    No decimal places (integer)
    LHS field_in --> floor (arithmetic function) to give you the integer value required (rounded down) --> RHS field_out
    Source       Target
    22345.45    22345 
    22345.78    22345
    22345.99    22345
    I hope this clears up your issue
    Regards,
    Mike

  • Mapping exceptions to source code lines

    From a JD-newbee: When an exception is thrown, it is always nice to get to know the exact line in the source code that caused the exception. I am currently unable to get such info, and suspect that this is due to JIT-compiling being active, but have been unable to figure out how to disable the JIT. Could anyone please let me know how to disable the JIT, or, if that's not the solution to my problem, tell me what I should do?

    Hi,
    try this report [https://wiki.sdn.sap.com/wiki/display/Snippets/SearchforStringsinABAPSourceCode].
    For counting the lines you specify a search string of
    The includes for classes can be specified by
    ZCL_XY*
    Best regards
    Thomas
    Edited by: Thomas Schulz on May 4, 2010 1:33 PM

  • I dont really think that the math header has syntax errors.

    Hi,
    This is a very serious accusation from make.
    Mini:Evaluator develop$ make
    bison -d grammar.y
    grammar.y: conflicts: 24 shift/reduce
    flex rules.l
    cc -0 -o Evaluator grammar.tab.c lex.yy.c -ly -ll -lm
    In file included from grammar.y:3:
    /usr/include/architecture/i386/math.h:310: error: syntax error before numeric constant
    /usr/include/architecture/i386/math.h:355: error: syntax error before numeric constant
    make: * [Evaluator] Error 1
    Mini:Evaluator develop$
    Any ideas as to why I would be getting these two errors?

    Often it is because you forgot a semicolon or something in the header file before, or the source file. Eliminate files (or lines) one by one until the error goes away.

Maybe you are looking for

  • Changing the quantity of Schedule line for an product runtime

    Hi CRM friends, When I am saving the Order after changing the quantity (say from <b>5 to 10</b>); Now base on some conditions, quantity must be reverted back to the original quantity (i.e to 5). This has to be done while saving the order in a Call ba

  • Occasional bursts of noise after installing Yosemite

    Since installing Yosemite on my late 2008 Mac Pro, I have been experiencing occasional loud bursts of static from my speakers - possibly 3 or 4 times a day - lasting 5-10 seconds. There does not appear to be any relationship to what applications are

  • No records retrieved error when records are there?

    Hi This is frm-40350 No records retrieved and it is happening on the detail block even though records are retrieved. I am currently testing an enhancement to an existing form that can be called by other forms. I noticed that when calling this form fr

  • How do I set the transition between access points would be fine?

    Hello everyone, We have an organization Wirless controller 2504 with 20 aironet access-point (700 series) Once I defined  all the access points I noticed that the transition between them is not working fine... I mean that clients can not walk around

  • Uninstalling LR2

    What is the best method and procedure for installing LR2 and then reinstalling fresh again. I am having some bugs in LR2 and need to test out uninstalling the application. See my posting below regarding the global selection and modification issues I