Sapscript Debugging help

Hi Experts,
i am new to SAP Script ,i want to debugg sapscript MEDRUCK when i create Purchase order thorugh ME21N .
i tried to do through SE71 =->utilities->active debugger..
print out is getting but debugger is not stopping at MEDRUCK .
I want to stop debugger at MEDRUCK and Printprogram when i create Purchase order through ME21N tcode.i have done all required NACE sttings and print out is getting.
Please help.

You Can debug a SAP Script by activating debugger in two ways
1.In SE71->Menu->Utilities->Activate Debugger, then debugger will be get activated and when your print program is executing Script Debugger will be in active and you can proceed with your debugging.
2. Goto se38-> RSTXDBUG ->Execute this same as going thru in se71-> Menu, now debugger will be activated.
for details refer this link:
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
Regards,
Maha

Similar Messages

  • Sapscript Debug Medruck

    Hi,
    I have to debug the medruck form for a delivery plan "ME32l". To print the plan, I have to repeat a print message in the transaction "me32l".
    If I now start the sapscript debugger in SE71, it´s not reacting. The form is being printed, but without stopping in the debugger.
    How can I debug this form?
    If I use the print preview for an order in the order transaction "ME23N", it is stopping in the debugger...
    Thank You for Your help!
    Cheers

    Ok, maybe it´s easier for You to try the following, then You maybe can see my problem:
    Go to ME23N and print an order. Therefore create a new message or copy an old one and save the order. Try to debug the sapscript form now.
    I´m nearly sure, the debugger wouldn´t stop.
    The procedure in ME32L is the same... And I know, that form and program are set correctly, cause when I´m doing "blind" changes in the sapscript form, I can see it on the print out...
    Thank You!

  • Hi    sapscript pl help

    hi all
    my code is given below::
    data:
        zlv_netpr type netpr,
        zlv_netwr type netwr, 
        zlv_diff     type netpr,
      Loop at TABLE in_tab.
        case in_tab-name.
           when 'ITAB-NETPR'.
              MOVE in_tab-value TO zlv_netpr.   "  HERE I AM GETTING ERROR.'
    *( in_tab-value is an amount field in sapscript.)
           when 'ITAB-NETWR'.
              MOVE in_tab-value TO zlv_netwr.
        endcase.
      endloop.
    zlv_diff = zlv_netpr - zlv_netwr.
      READ TABLE out_tab with key name = 'ITAB-DIFF' .
      out_tab-value = zlv_diff.
      MODIFY out_tab INDEX sy-tabix.
    the above code is in the calling program of PERFORM.
    I AM GETTING ERROR and error is 'in_tab-value'  cannot be interprete as number.
    i am passing amout field from SAPSCRIP FORM to calling program i.e. 'PERFORM AND FORM'  INSIDE FORM. 
    I HAVE TO CALCULATE IN SIDE 'FORM' OF CALLING PROG, BUT IT IS GIVING ERROR- CANNOT CONSIDER AS NUMBER.
    IF I CHANGE THE DATA TYPE OF PASSING FIELDS TO CHAR THEN I AM NOT ABLE TO DO CALCULATION .
    PL CORRECT THE ABOVE CODE SO THAT I CAN DO CALCULATIONS.
    PL HELP AS THIS HAS BEEN PENDING FOR LONG.
    THANX
    ROCKY

    Hi rocky..
    try this out...
    data:
    zlv_netpr type c,
    zlv_netwr type c,
    zlv_diff type c.
    Loop at  in_tab.
    case in_tab-name.
    when 'ITAB-NETPR'.
    MOVE in_tab-value TO zlv_netpr. " HERE I AM GETTING ERROR.'
    *( in_tab-value is an amount field in sapscript.)
    when 'ITAB-NETWR'.
    MOVE in_tab-value TO zlv_netwr.
    endcase.
    endloop.
    the fields of in_tab and out_tab are always character types...
    try to move into  zlv_netpr of type c of sufficient length.
    let me know if it helps u..
    sai ramesh

  • Need Debugging Help

    Hi All
    I am learning Plugins developement for InDesign CS2. In the SDK there is a ww-plugins.pdf, in which it mentioned how we will develop a plugins. I have tried but not able to do it. When I am making plugins the following error I am getting. I know it is a simple project settings.
    ================================================
    Could not find or load the file WFPActionComponent.cpp for target Debug for project WFP.mcp.
    Could not find or load the file WFPDialogController.cpp for target Debug for project WFP.mcp.
    Could not find or load the file WFPDialogObserver.cpp for target Debug for project WFP.mcp.
    Could not find or load the file WFPNoStrip.cpp for target Debug for project WFP.mcp.
    Could not find or load the file WFPID.cpp for target Debug for project WFP.mcp.
    Could not find or load the file WFP.fr for target Debug for project WFP.mcp.
    Could not find or load the file PublicPluginDbg.Lib for target Debug for project WFP.mcp.
    Could not find or load the file PMMSLRuntimeDbg.Lib for target Debug for project WFP.mcp.
    Could not find or load the file PMGlobalChainDbg.Lib for target Debug for project WFP.mcp.
    Could not find or load the file SDKPlugInEntrypoint.cpp for target Debug for project WFP.mcp.
    Could not find or load the file SDKInfoButton.r for target Debug for project WFP.mcp.
    ===============================================
    Below are the path settings
    Target Setting: {project}../debug/SDK.
    Please someone help me.
    Thanks
    Rajeev Kumar

    Hi
    I am again back to give some more inputs.
    As I import the project below Notification/Errors I am getting. I think you well uderstand by this.
    ==================================
    The following access path in target Debug of project WriteFishPrice.mcp cannot be found:
    {Project}../../../source/precomp/codewarrior/(debug)
    The following access path in target Debug of project WriteFishPrice.mcp cannot be found:
    {Project}../../../source/precomp
    The following access path in target Debug of project WriteFishPrice.mcp cannot be found:
    {Project}../../../source/public/interfaces
    The following access path in target Debug of project WriteFishPrice.mcp cannot be found:
    {Project}../../../source/public/includes
    The following access path in target Debug of project WriteFishPrice.mcp cannot be found:
    {Project}../../../source/public/widgets/includes
    The following access path in target Debug of project WriteFishPrice.mcp cannot be found:
    {Project}../../../source/sdksamples/common
    The following access path in target Debug of project WriteFishPrice.mcp cannot be found:
    {Project}../../../build/mac/debug
    The following access path in target Debug of project WriteFishPrice.mcp cannot be found:
    {Project}../../../external/afl/includes
    The following access path in target Debug of project WriteFishPrice.mcp cannot be found:
    {Project}../../../external/boost
    The following access path in target Debug of project WriteFishPrice.mcp cannot be found:
    {Project}../../../build/mac/debug/packagefolder/contents/macos
    The following access path in target Release of project WriteFishPrice.mcp cannot be found:
    {Project}../../../source/precomp/CodeWarrior/(Release)
    The following access path in target Release of project WriteFishPrice.mcp cannot be found:
    {Project}../../../source/precomp
    The following access path in target Release of project WriteFishPrice.mcp cannot be found:
    {Project}../../../source/public/interfaces
    The following access path in target Release of project WriteFishPrice.mcp cannot be found:
    {Project}../../../source/public/includes
    The following access path in target Release of project WriteFishPrice.mcp cannot be found:
    {Project}../../../source/public/widgets/includes
    The following access path in target Release of project WriteFishPrice.mcp cannot be found:
    {Project}../../../source/sdksamples/common
    The following access path in target Release of project WriteFishPrice.mcp cannot be found:
    {Project}../../../build/mac/release
    The following access path in target Release of project WriteFishPrice.mcp cannot be found:
    {Project}../../../external/afl/includes
    The following access path in target Release of project WriteFishPrice.mcp cannot be found:
    {Project}../../../external/boost
    The following access path in target Release of project WriteFishPrice.mcp cannot be found:
    {Project}../../../build/mac/release/packagefolder/contents/macos
    ================================
    Please suggest me.
    Thanks
    Rajeev

  • Paid debugging help

    I'm nearing the end of a deadline for a project (tomorrow)
    that has proven to be too much for me to handle on my own in the
    time allowed. I'm still new to Flex and I'm not able to debug some
    of the issues as quickly as I'd like. If anyone can provide some
    help on this I'm willing to pay for your services. I have a project
    posted on Elance for further infromation:
    http://www.elance.com/c/rfp/main/jobInfo.pl?jobid=14566430&catId=10216&ajax=2

    As we may wait for a long time before seeing such a tool if we ever do, I will describe my own tip.
    I never build long formulas in a single task.
    I build components in contiguous cells then, when every component behaves correctly, I gather them in a single formula.
    It's an efficient time saver and it helped me to keep some hair on my head
    Yvan KOENIG (from FRANCE jeudi 20 novembre 2008 23:06:28)

  • Debugging Help - NetBeans IDE

    I am trying to debug java programs in NetBeans IDE but when I start the debugger using F7 Key, it points to some old class file that I had debugged previously.
    Can somebody suggest what's going on? What setting do I need to do in order to debug my current class file/ source code.
    Any help would be greatly aprpeciated.....
    Thanks!

    VShan wrote:
    Dude ... I know that That makes you look even more stupid...
    but I thought may be somebody would have came across this kind of problemMaybe someone has come across my problem too, which is how to pass the flight medical for a PPL with eyes that are sub-marginal, but I don't ask that here because it's not the right place.
    Capice?

  • Debugging help required

    Hi,
    Am new to webdynpro. I have created a simple webdynpro application and now i want to debugg it.
    but however , In the sap j2ee engine when i set the debugging status of the server to ON, and refresh the server the server does not seem to be running properly. yello colour comes on the server instead of green.
    can anyone help on this?
    Regards,
    Rashmi.

    Hi Rashmi,
    When you set the debugging status of the server to ON, it takes some time to restart the server.
    So, check after sometime, it would show status as green.
    And then go to debug option, there choose debug as..
    one wizard appears there configure your appication for debugging.
    Then click on debug button.Your debugging starts.
    Don't forget to put break points.
    Regards,
    Bhavik

  • One works vi, one doesn't. debugging help.

    The attached vi sends a series of xml files to two separate servers. The files configure a camera; turn it on; then, turn it off. It works over and over again. When I add the same code to a more complicated vi, something hangs up. I'm looking for a suggestions, other than running highlighted that might help me debug this.
    Thanks
    Attachments:
    Dazle.vi ‏68 KB

    Hi exo,
    You may also want to try setting a breakpoint in your code, then step through it.  You can set a breakpoint from the Tools Palette (View » Tools Palette).  From the Tools Palette, click the Set/Clear Breakpoint button.  You can now set breakpoints in the code, which will halt execution.  You can then step throught the execution using the Step Into, Step Over, and Step Out of buttons, which are all found on the toolbar.  Like Andre said, you can also use Probes to debug your application.  These tools are explained in more detail in the link below, please let me know if you have any other questions!
    LabVIEW Debugging Techniques
    Regards,
    Erik J.
    Applications Engineer
    National Instruments

  • Segfaulting on full container operations - debugging help

    Hi all -
    I have some data that has been through lots of dbxml upgrades and the last two upgrades have full container operations segfaulting. I was able to ignore this data for a year but now its coming back to haunt me. All full container operations, such as reindex, add/remove index, and trying to dump all data either through dump or getDocuments segfault. It's data specific and my container is 16GB. I want to be able to provide more info that the basic gcc stacktrace but I'm not sure. I have recompiled dbxml and bdb with debug flags but I'm not sure where to go from there - I get more or less the same undetailed information on the bug (below). Is it because I'm running the test through the shell? I want to help myself but its been quite some time since I have written any C++. If there is ANY other way to get my documents out of this DB I'm happy to dump and reload but everything segfaults that I can think of. I'm sure its just an ancient data issue.
    Thanks in advance!
    #0 0x00002b1b0d060f80 in DbXml::NsFormat::unmarshalInt64 () from /usr/local/xmldb/lib/libdbxml-2.5.so
    #1 0x00002b1b0d077a21 in DbXml::NsRawNode::setNode () from /usr/local/xmldb/lib/libdbxml-2.5.so
    #2 0x00002b1b0d05cecb in DbXml::NsEventReader::getNode () from /usr/local/xmldb/lib/libdbxml-2.5.so
    #3 0x00002b1b0d05d07f in DbXml::NsEventReader::endElement () from /usr/local/xmldb/lib/libdbxml-2.5.so
    #4 0x00002b1b0d05d355 in DbXml::NsEventReader::next () from /usr/local/xmldb/lib/libdbxml-2.5.so
    #5 0x00002b1b0d049625 in DbXml::EventReaderToWriter::doEvent () from /usr/local/xmldb/lib/libdbxml-2.5.so
    #6 0x00002b1b0d049a92 in DbXml::EventReaderToWriter::start () from /usr/local/xmldb/lib/libdbxml-2.5.so
    #7 0x00002b1b0d133cc8 in DbXml::DocumentDatabase::reindex () from /usr/local/xmldb/lib/libdbxml-2.5.so
    #8 0x00002b1b0d103d61 in DbXml::Container::reindex () from /usr/local/xmldb/lib/libdbxml-2.5.so
    #9 0x00002b1b0d10ad72 in DbXml::Container::setIndexSpecificationInternal () from /usr/local/xmldb/lib/libdbxml-2.5.so
    #10 0x00002b1b0d10b648 in DbXml::Container::setIndexSpecification () from /usr/local/xmldb/lib/libdbxml-2.5.so
    #11 0x00002b1b0d16f1a0 in DbXml::XmlContainer::setIndexSpecification () from /usr/local/xmldb/lib/libdbxml-2.5.so
    #12 0x00002b1b0d16f52b in DbXml::XmlContainer::deleteIndex () from /usr/local/xmldb/lib/libdbxml-2.5.so
    #13 0x000000000040f67e in DeleteIndexCommand::execute ()
    #14 0x0000000000427475 in Shell::mainLoop ()
    #15 0x000000000042c7f9 in main ()

    Hi Vyacheslav -
    Sorry to not have the line number - I was having some missing magic incantations in my library loading so it wasn't finding the symbols. Full bt with line number is below. I'll look into this as well but if you've seen this before I'd be happy to hear about it! BTW, when not run in debug this is a SEGFAULT but when run under debug its an assertion error. I am using the exact same test case and getting different results.
    No idea what the first version was - it was about 5 years ago. Everything worked fine until the 2.5.16 upgrade, which happened to fix bugs that OTHER containers were having so it was a must. I can go document by document but I literally have 16GBs of documents (49307 docs). I get the segfault when I try to do any full container query so getting all ids for example isn't working. I'll keep plugging on this part - was just looking for a cursor-ish way to find out which one is making things upset.
    Thanks again
    Liz
    #0 0x00000037dec30265 in raise () from /lib64/libc.so.6
    #1 0x00000037dec31d10 in abort () from /lib64/libc.so.6
    #2 0x00002b1f3fb24a27 in DbXml::assert_fail (expression=0x2b1f3fba1bc2 "data.data", file=0x2b1f3fba1ae0 "src/dbxml/nodeStore/NsEventReader.cpp", line=665) at src/dbxml/DbXmlInternal.cpp:21
    #3 0x00002b1f3fa3c3cf in DbXml::NsEventReader::getNode (this=0x7fff7e6887b0, parent=0x27215420) at src/dbxml/nodeStore/NsEventReader.cpp:665
    #4 0x00002b1f3fa3c648 in DbXml::NsEventReader::endElement (this=0x7fff7e6887b0) at src/dbxml/nodeStore/NsEventReader.cpp:874
    #5 0x00002b1f3fa3c7ae in DbXml::NsEventReader::next (this=0x7fff7e6887b0) at src/dbxml/nodeStore/NsEventReader.cpp:508
    #6 0x00002b1f3fa2307c in DbXml::EventReaderToWriter::doEvent (this=0x7fff7e6886e0, writer=0x7fff7e6889b0, isInternal=true) at src/dbxml/nodeStore/EventReaderToWriter.cpp:160
    #7 0x00002b1f3fa23955 in DbXml::EventReaderToWriter::start (this=0x7fff7e6886e0) at src/dbxml/nodeStore/EventReaderToWriter.cpp:146
    #8 0x00002b1f3fa5b15c in DbXml::NsWriter::writeFromReader (this=0x7fff7e6889b0, reader=@0x7fff7e6887b0) at src/dbxml/nodeStore/NsWriter.cpp:104
    #9 0x00002b1f3fa25d0b in DbXml::NsDocumentDatabase::getContent (this=0x167b7180, context=@0x16a84368, document=0x16a842d0, flags=0) at src/dbxml/nodeStore/NsDocumentDatabase.cpp:111
    #10 0x00002b1f3fb2b409 in DbXml::Document::id2dbt (this=0x16a842d0) at src/dbxml/Document.cpp:888
    #11 0x00002b1f3fb2e267 in DbXml::Document::getContentAsDbt (this=0x16a842d0) at src/dbxml/Document.cpp:530
    #12 0x00002b1f3fb8017d in DbXml::XmlDocument::getContent (this=0x16a844a8, s=@0x7fff7e688c60) at src/dbxml/XmlDocument.cpp:145
    #13 0x00002b1f3fb197c9 in DbXml::DbXmlNodeValue::asString (this=0x16a84490) at src/dbxml/Value.cpp:507
    #14 0x00002b1f3fb8a263 in DbXml::XmlValue::asString (this=0x7fff7e689010) at src/dbxml/XmlValue.cpp:299
    #15 0x000000000040d16a in PrintCommand::execute (this=0x167a7a90, args=@0x7fff7e689160, env=@0x7fff7e689880) at src/utils/shell/PrintCommand.cpp:83
    #16 0x0000000000427dda in Shell::mainLoop (this=0x7fff7e689900, in=@0x7fff7e689240, env=@0x7fff7e689880) at src/utils/shell/Shell.cpp:66
    #17 0x0000000000416d4b in IncludeCommand::execute (this=0x167a7870, args=@0x7fff7e689580, env=@0x7fff7e689880) at src/utils/shell/IncludeCommand.cpp:56
    #18 0x0000000000427dda in Shell::mainLoop (this=0x7fff7e689900, in=@0x647790, env=@0x7fff7e689880) at src/utils/shell/Shell.cpp:66
    #19 0x000000000042eac0 in main (argc=1, argv=0x7fff7e689ad8) at src/utils/shell/dbxmlsh.cpp:248
    Edited by: eleddy on Feb 22, 2011 2:39 PM

  • Lenovo T520 Debugging Help

    I recently wiped the HDD of my T520 and installed Arch from scratch from a thumb drive (side note: it's been a while since I did a fresh install and I found the new method really great). About a week later (2 days ago), I ran a system update (-Syu) and updated several packages, linux among them. Seeing that, I rebooted. After seeing the BIOS stuff and selecting to boot to Arch (I don't have it auto-select, even though I only have one partition), the screen goes black and nothing ever happens. The Wifi light turns on, but the HDD read light doesn't. I booted from my install media and tried to see if the systemd journal said anything helpful, but the logs look like they never picked up after rebooting after my latest update. My next thought was the chroot and run another system update. I updated linux again, but still no boot. During both updates, the output indicated that new image creation was successful.
    Any ideas on how to begin debugging this?
    FWIW, I'm using efibootmgr to boot and I see that it has had issues with kernel upgrades in the past (https://bbs.archlinux.org/viewtopic.php?id=156670&p=1), but this machine never had 3.6 or 3.7 on it (the earliest still in the cache is 3.10.3 and the latest is 3.10.7; I've never cleared the cache).

    After 5 days of  frustrations of how to try to identify the cause of "AC plugged in but not charging" message.My Lenovo 3000V100 has suddenly started recharging.At one moment it recharges up to 99% and stops recharging, at times it just shows 3 % remaining and stops recharging and now its showing 100% fully charged.
    I dont understand this, whats a turn around to this?
    Also, are there any drivers for download  -IntelWin DVD drivers for this 3000V100 running on Windows Vista/media drivers.My hard disk was formatted, and i never created any recovery disc.I have at least re-installed few other drivers though.

  • Forms DEBUG - help

    Hello all.
    I need to debug a list of forms which are running in a remote server. Because of the setup we have, i can not run them in the developer tool. I need to test them using the web based environment we have installed. I used to enable the debug mode in windows by adding the clause "/debug". I tried adding this in the web address that's calling the forms, but it didn't work. Could you please help me out?
    Thanks in advance.

    what do you mean when you say that i also attach my linux run form with Windows Forms builder?
    I use windows forms builder just to make the make the changes i need. Because of the nature of the forms, i can neither run nor compile them in windows.
    What i do, is to upload them to our linux server, compile them with a script i run from the command line, and move the fmx to the right folder. That's how i'm able to run them, otherwise i can't. If i try to run them in windows it raises an error message saying there's no http listener running in my local box...
    On the other hand, I tried to run them using the "DEBUG=YES" flag, but nothing happened. I used to work with forms 4.5, and at that time, when i wanted to debug a form i just made a shortcut with that same flag. Something like: "F45RUN.EXE formname.fmx /debug=yes", so, I tried something similar in this case...
    The URL I use to run the forms is "http://as4.ajc.bz:8889/forms/frmservlet/atisweb". I added the flag you mentioned at the end. Something like "http://as4.ajc.bz:8889/forms/frmservlet/atisweb debug=yes"... but it didn't work.
    Any other ideas?

  • Debug Help bbp_create_req_back

    Hello Friends, I need a little help here.  I am trying to populate the trackingno field from SRM to R/3 on the PR/PO.
    Here is a snipet of my code which is in a loop. Everything else works except trackingno:
    data:
    ls_header          TYPE          bbp_pds_sc_header_d
    MOVE ls_header-object_id TO req_items_wa-trackingno.
              MODIFY req_items
                FROM req_items_wa
                  TRANSPORTING trackingno
    Any ideas?  Also, does anyone have step by step instructions on debugging this badi?  Thanks in advance.

    hi,
      to debug back-end related Badi is some thing different then other Badi. i used to debug back-end badi like this. i hard code break-boint 'user-name' in bbp_create_req_back implementation.
      we have a method 'TRANSFER' in BUS2121. after u create the SC which will wait for approval goto SWO1 and execute this method, here first time only bebug mode will gets call if you try 2nd time it won't trigger. so write your all coding and but the hard code break point while SC waiting for Approval goto SWO1 with BUS2121 and execute TRANSFER method u will get into debug mode.
    thank you,
    regards,
    john.

  • Logical Debugging Help

    Help!
    I've written an application that isn't working exactly like I think it should. The program is supposed to compare two files. If there is a string in file one that is not in file two, then it is supposed to write that string to a third file. To help clarify, the first file is a final list of students that are taking the class. The second file is a list of students that attended for that session (they will be registering electronically). Therefore, I need the program to exam the two lists and tell me who was absent. At the moment, it will work for the first absent person (ie. it writes the student information to the third file so I know they are absent) but it seems to just stop working after that. I'm sure there is a problem with the logic...but I can't figure out where. Below is the code that i'm using. I'd appreciate any assistance!
    Thanks!
    John
    public void actionTaken(){
    try {
    //File with final registration list
    classList = new BufferedReader(new FileReader("classList.txt"));
    //File that has recorded attendance
    studentInput = new BufferedReader(new FileReader("studentInput.txt"));
    // String written to this file if they were absent.
    absent = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("Absent.txt", true)));
    // First while loop examines every line that is in the classList.txt file. Should advance to the next line after the nested while loop executes.
    while ((cLT = classList.readLine()) != null){
    // Nested while loop examines every line in the studentInput.txt
    while ((sIT = studentInput.readLine()) != null){     
    //If statement checks to see if a student has logged in.
    if (cLT.equals(sIT)){
    countTemp++; //countTemp is tripped if the student has logged in.
    studentInput.close(); //Closes file after the entire file has been examined.     
    //If statement checks the countTemp to see if the student registered.
    if (countTemp == 0){ //Writes to the absent file if this line is true.
    absent.newLine();
    absent.write(cLT);
    absent.close();
    countTemp = 0; //reinitialized to test next student name.
    classList.close(); //Closes file after the entire file has been examined.
    } catch (IOException x) {

    You close the student attendance file (studentInput) after you read the first student name from the class list!!!
    Unless the files are going to get really big, I wouldn't do it this way. I'd create a Map of students who attended. Then I'd go through the names list and see if the names are present in the map. That way you could re-use the map for every student name.
    If you don't want to do it that way, you're going to have to make assumptions about the ordering of the two name lists, and whether one is necessarily a subset of the other.

  • I2c debugging help needed with an oscillascope

    Hello,
    I am trying to debug my i2c slave device and was hoping that someone could explain how to use an oscillascope to debug it and how to set up the vi to use the oscillacope to test my scl and sda values.
    Thanks,
    rbme

    Hi rbme,
    Depending on the oscilloscope you are using to debug your i2c device, there might be an instrument driver located at ni.com/idnet. The instrument driver will allow you to control the oscilloscope with a set of software routines reducing software development time.
    Regards,
    Andy L.
    Applications Engineer
    National Instruments

  • Need Debugging Help, Please

    Hi, I am going to bother you after my fruitless attempts to debug the code shown below. The message is "NoSuchMethodError: value" and I am very confused by the message.
    The message on the console is:
    Exception in thread "Main Thread" java.lang.NoSuchMethodError: value
         at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getAccessType(ClassInfoImpl.java:339)
         at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getProperties(ClassInfoImpl.java:228)
         at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getProperties(RuntimeClassInfoImpl.java:87)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:127)
         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:49)
         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
         at com.sun.xml.bind.v2.model.impl.RegistryInfoImpl.<init>(RegistryInfoImpl.java:51)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.addRegistry(ModelBuilder.java:232)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:201)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:327)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:198)
         at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
         at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
         at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:124)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:133)
         at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
         at com.register.jaxb.JAXBUnMarshaller.unMarshall(JAXBUnMarshaller.java:18)
         at com.register.jaxb.JAXBUnMarshaller.main(JAXBUnMarshaller.java:64)
    and the source code is shown below:
    package com.register.jaxb;
    import generated.*;
    import javax.xml.bind.*;
    import javax.xml.validation.SchemaFactory;
    import javax.xml.validation.Schema;
    import org.xml.sax.SAXException;
    import java.io.*;
    import java.util.List;
    public class JAXBUnMarshaller {
         public void unMarshall(File xmlDocument) {
              try {
                   JAXBContext jaxbContext = JAXBContext.newInstance("generated");
                   Unmarshaller unMarshaller = jaxbContext.createUnmarshaller(); // this line is java:18
                   SchemaFactory schemaFactory = SchemaFactory
                             .newInstance("http://www.w3.org/2001/XMLSchema");
                   Schema schema = schemaFactory.newSchema(new File(
                             "gen_source/catalog.xsd"));
                   unMarshaller.setSchema(schema);
                   CustomValidationEventHandler validationEventHandler = new CustomValidationEventHandler();
                   unMarshaller.setEventHandler(validationEventHandler);
                   JAXBElement<CatalogType> catalogElement = (JAXBElement<CatalogType>) unMarshaller
                             .unmarshal(xmlDocument);
                   CatalogType catalog = catalogElement.getValue();
                   System.out.println("Journal Title: " + catalog.getJournalTitle());
                   System.out.println("Publisher: " + catalog.getPublisher());
                   List<JournalType> journalList = catalog.getJournal();
                   for (int i = 0; i < journalList.size(); i++) {
                        JournalType journal = (JournalType) journalList.get(i);
                        List<ArticleType> articleList = journal.getArticle();
                        for (int j = 0; j < articleList.size(); j++) {
                             ArticleType article = (ArticleType) articleList.get(j);
                             System.out.println("Article Edition: "
                                       + article.getEdition());
                             System.out.println("Title: " + article.getTitle());
                             System.out.println("Author: " + article.getAuthor());
              } catch (JAXBException e) {
                   System.out.println(e.toString());
              } catch (SAXException e) {
                   System.out.println(e.toString());
         public static void main(String[] argv) {
              File xmlDocument = new File("catalog.xml");
              JAXBUnMarshaller jaxbUnmarshaller = new JAXBUnMarshaller();
              jaxbUnmarshaller.unMarshall(xmlDocument);
         } // this line is java:64
         class CustomValidationEventHandler implements ValidationEventHandler {
              public boolean handleEvent(ValidationEvent event) {
                   if (event.getSeverity() == ValidationEvent.WARNING) {
                        return true;
                   if ((event.getSeverity() == ValidationEvent.ERROR)
                             || (event.getSeverity() == ValidationEvent.FATAL_ERROR)) {
                        System.out.println("Validation Error:" + event.getMessage());
                        ValidationEventLocator locator = event.getLocator();
                        System.out.println("at line number:" + locator.getLineNumber());
                        System.out.println("Unmarshalling Terminated");
                        return false;
                   return true;
    }

    user537770 wrote:
    Hi, I am going to bother you after my fruitless attempts to debug the code shown below. The message is "NoSuchMethodError: value" and I am very confused by the message. When you post code, please put it in code tags (you can find an example on the FAQ page, or in the welcome pages at the top of the thread).
    As for your problem, I'm way out of my comfort zone here, but the source code for ClassInfoImpl would suggest that the 'value' method is being invoked on an annotation called 'XmlAccessorType'; and since annotations only came in with version 5, I'm wondering if you have some sort of jar/jdk/jvm incompatibility. You might want to check that all of these are in sync.
    Winston

Maybe you are looking for