Mapping exception error in MM-SUS interface

Hi..
I am doing MM-SUS Standard Interfaces, when we are sending the Goods Receipt from R/3 to SUS it is throwing the mapping exception eror. yesterday it was working fine.
Today its not working , I have not made any changes.
it is throwing error in SXMB_MONI. i.e
   <SAP:Category>Application</SAP:Category>
  <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
  <SAP:P1>com/sap/xi/tf/_MM2SUSGoodsReceipt_</SAP:P1>
  <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>
  <SAP:P3>RuntimeException in Message-Mapping transformation</SAP:P3>
  <SAP:P4>: Cannot produce target element /ns:ServiceAcknow~</SAP:P4>
In Trace it is showing the error like this.
<Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_MM2SUSGoodsReceipt_ Thrown: com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns:ServiceAcknowledgementInformation/ServiceAcknowledgement/ID. Queue does not have enough values in context. Target XSD requires a value for this element, but target-field mapping does not produce one. XML instance is probably not valid for source XSD, or target-field mapping does not fulfil requirements of target XSD. at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:406) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:134) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:127) at
Pls suggest me , how can i resolve this error.
Regards,
Pasi.

can you please check with the data which was sent yesterday and run the interface , if it is working then i guess in the latest data u are getting the queue values with the more occurance, thats why u r getting this error.
may be u r getting more ID values in ServiceAcknowledgement Node where ID element would be having less occurance.
-Madhav

Similar Messages

  • SXMB_MONI : Mapping exception error - cause unknown

    Hi! ALL
    I am getting a mapping exception error....
    However, if i copy the payload and run it through my test tab it is getting processed successfully.
    Is there any other way i can debug this issue....as i do not see any problem with payload or the message mapping and I am getting the following  error...
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_mm_204: RuntimeException in Message-Mapping transformatio</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Your help is greatly appreciated!!
    Thank you,
    Patrick.

    Dear Patrick,
    As our experts told you can trace by using ST01 and select your ID and start the trace then again test be editing and reactivating the scenario and test it again then you ill came to know if in case any issues.
    1. Other way to test the scenario is Goto RWB--> Component Monitoring --> Select Adapter Monitoring --> Then select the TEST MESSAGE TAB and give Interface details inputs or copy or take your pay load from MONI and past here and check and changes are to be made and then test the message there itself .
    2. Also as u can test the message in Message Mapping TEST TAB and test the mapping and also parallely do Cache Refresh in SXI_CACHE.
    3. You can also check the status of the message in SYSEM STACK of message monitoring this is different from RWB message moni
    [http://Host name:PORT/MessagingSystem/monitor/systemStatus.jsp]
    4. YOu can also trace the message through this system stack also.
    Regards:
    Amar Srinivas Eli
    Edited by: Amar Srinivas Eli on Jan 30, 2009 8:53 AM

  • Hibernate Mapping Exception Error reading resource: Help Please

    I've downloaded Hibernate this weekend and have been working at getting this up and running in my spare time. I've run into a problem and can't seem to find the solution. I'm hoping some one here can help me out.
    I'm running MyEclipse
    MySQL
    and Hibernate 2 in a struts application
    I've only got one form and table that I'm trying to map right now, but I get the above error when I run this line of code.
    Configuration cfg = new Configuration().addClass(AddCustomerForm.class);
    Does anyone have any ideas. Here are the important sections from the two configuration files
    <!-- hibernate.cfg.xml-->
    <hibernate-configuration>
        <session-factory>
            <!-- properties -->
            <property name="connection.username">PaintTracker</property>
            <property name="connection.url">jdbc:mysql://127.0.0.1:3306/PaintTracker</property>
            <property name="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
            <property name="connection.password">PaintTracker</property>
            <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
            <property name="show_sql">true</property>
            <mapping resource="com/PaintTracker/struts/form/AddCustomerForm.hbm.xml"/>
        </session-factory>
    <!--AddCustomerForm.hbm.xml -->
    <hibernate-mapping>
         <class name="com.PaintTracker.struts.form.AddCustomerForm" table="customer">
              <id name="customerID" column="CustomerID" type="java.lang.Long" unsaved-value="0">
                   <generator class="identity"/>
              </id>
              <property name="firstName" column="FirstName" type="java.lang.String"/>
              <property name="lastName" column="LastName" type="java.lang.String"/>
              <property name="streetAddress" column="StreetAddress" type="java.lang.String"/>
              <property name="middleInitial" column="MiddleInitial" type="java.lang.String"/>
              <property name="city" column="City" type="java.lang.String"/>
              <property name="state" column="State" type="java.lang.String"/>
              <property name="zipCode" column="ZipCode" type="java.lang.String"/>
              <property name="phoneNumber" column="PhoneNumber" type="java.lang.Long"/>
              <property name="emailAddressLeft" column="EmailAddressLeft" type="java.lang.String"/>
              <property name="emailAddressRight" column="EmailAddressRight" type="java.lang.String"/>
              <property name="company" column="Company" type="java.lang.String"/>          
         </class>
    </hibernate-mapping>

    ok finally gotten back to this and rewrote a bunch of the code. I'm getting almost the same error, but not quite.
    I'm still getting org.hibernate.MappingException: Error reading resource: but it is pointing to the first mapping resource located inside the hibernate.cfg.xml.. so I know it is finding and making it inside the hibernate.cfg.xml.
    this is the code that the exception occurs in.
    the actual line is the configuration.configure(); in the else statement.
    public HibernateUtil(URL url2) {
              Configuration configuration = new Configuration();
              log.info("configuration_static is null");
              log.debug("configuring configuration_static from " + url2);
              try {
                   if (url2 != null)
                        configuration.configure(url2);
                   else
                        configuration.configure();
                   this.sessionFactory = configuration.buildSessionFactory();
                   log.info("Configuration complete");
              } catch (HibernateException e) {
                   log.error(e);
                   System.out.println(e);
                   configuration = null;
                   log.info("Configuration failed.  Setting config to null!");
         }The resource I am trying to read is located correctly (eclipse lets you navigate to and choose the xml file to use.. it then builds the hibernate.cfg.xml file for you.)
    here is a copy of the resource that is giving me a problem... whichever resource I have listed first is the one the exception is thrown for... so I'm hoping I just have something mixed up in the way I'm writing my xml files.
    <hibernate-mapping package="com.WorkoutTracker.db.model">
         <class name="com.WorkoutTracker.db.model.User" table="user">
              <id name="userID" column="userId" type="java.lang.Long" unsaved-value="0">
                   <generator class="increment"/>
              </id>
              <property name="userFName" column="userFName" type="java.lang.String"/>
              <property name="userLName" column="userLName" type="java.lang.String"/>
         </class>
    </hibernate-mapping>

  • Send Alerts(e-mail) for errors in SXMB_MONI(message mapping exceptions)

    Good afternoon !
            I´m configuring SAP Netweaver PI 7.0(SP13) to use Alert Framework to send Alerts when errors occurs in the interfaces processing.
            I just achieved configure to send alerts when errors ocurrs in the Adapter Framework but, I can´t configure correctly to send alerts when errors ocurred only in SXMB_MONI(for example, message mapping exception in asyncronous interface).
            I just followed the instructions at Michal Krawczyk
    weblog(/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step) and, initially, this was not sufficient to start to send alert when errors occurs only on SXMB_MONI, so, I researched and found some configurations to do in CCMS(started from here: http://help.sap.com/saphelp_nw70/helpdata/en/e3/bf3b7a8ccb8040b638ff732c551aeb/content.htm), jobs to start events collectors, etc, and after this, I could see a mail for an message mapping exception. BUT, this message, sent from CCMS to ALM, doesn´t carry out all the message parameters, like message Id, sender(service, interface), receiver(service, interface), that is very important to help to find the message with errors to be solved.
            There is somebody here that already done the Alert configuration to send messages for errors found only in SXMB_MONI(Monitor for processed XML Messages) ?
            There is a better way to achieve this ?
            Thank you for your attention,
            Wilson Rodrigo dos Santos
            SAP Netweaver XI/PI Consultant

    Hi
    Go through these links and follow it.
    ALERTS CONFIG AND STUFF
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
    XI: Alerts - Step by step
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    http://help.sap.com/saphelp_nw04s/helpdata/en/d0/d4b54020c6792ae10000000a155106/frameset.htm
    Triggering by Calling a Function Module Directly.
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Alerts with variables from the messages payload (XI) u2013 UPDATED
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    Simple Steps to Get Descriptive Alerts from BPM in XI
    /people/community.user/blog/2006/10/16/simple-steps-to-get-descriptive-alerts-from-bpm-in-xi
    Triggering XI Alerts from a User Defined Function
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Throwing Smart Exceptions in XI Graphical Mapping
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    /people/sukumar.natarajan/blog/2007/01/07/how-to-raise-alerts-from-abap-proxy
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    /people/sravya.talanki2/blog/2006/11/22/error-handling-framework-xiout-of-the-box-episode-1
    /people/ginger.gatling/blog/2005/06/16/integrating-alerts-into-uwl--its-no-problem
    /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3
    /people/aravindh.prasanna/blog/2005/12/24/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-2
    /people/aravindh.prasanna/blog/2005/12/23/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part--1
    http://help.sap.com/saphelp_nw2004s/helpdata/en/56/d5b54020c6792ae10000000a155106/content.ht
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/abb2e7ff6311d194c000a0c93033f7/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    check this links.
    https://www.sdn.sap.com/irj/sdn/forums
    Trouble shooting Alert configuration:
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
    Alert Inbox
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm
    Alert Notification Step-by-Step
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
    Defining Alert Classifications
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
    Triggering Alerts
    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm
    Setting up alerts
    Setting up alerts in RZ20
    Alert Management
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e04141e8-0f11-2a10-adaa-9d97b062c2df
    Alert Notification
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90f449a8-a6db-2910-a386-d2b5999f5751
    /people/matt.kangas/blog/2006/06/27/personalized-alert-delivery
    Thanks
    Saiyog

  • Error: com.sap.engine.interfaces.messaging.api.exception.RetryControlException: Receiver Determination did not find any receivers at all

    Hello,
    I have an issue configuring a simple File Adapter Content Conversion, it will be great to give me some support as I'am new in the PO Environment.
    Iam reading a flat file and trying to write into an XML in the same FTP server
    I have a 1 to 1 Mapping as follows
    And my Content Conversion at Sender side Looks like this
    After running the configuration Iam getting following error message
    Error: com.sap.engine.interfaces.messaging.api.exception.RetryControlException: Receiver Determination did not find any receivers at all
    My System is the SAP Netweaver Process Intgration 7.4 single Java stack
    Do you have any idea how to fix this issue?
    Many thanks in advance
    Khadim

    Hi evrybody
    I have enabled the tracing of ICO and have seen that my payload for the message mapping is ok,.
    <ns:hartgeldbest_ERP_KT xmlns:ns="http://xxxxxx.de">
    <Recordset>      
    <header> 
         <gesellschaft>03</gesellschaft> 
         <filiale>000</filiale>
         <satzart>11</satzart>
         <datum>00000000</datum>
         <kennzeichen>1</kennzeichen>
    </header>
    </Recordset>
    </ns:hartgeldbest_ERP_KT>
    The issue is on detrmining the RECEIVER in the Main-XML
    <sap:Main xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sap="http://sap.com/xi/XI/Message/30" versionMajor="3"versionMinor="1" SOAP:mustUnderstand="1">
    <sap:MessageClass>ApplicationMessage</sap:MessageClass> 
    <sap:ProcessingMode>asynchronous</sap:ProcessingMode>
    <sap:MessageId>ae41678e-da87-11e3-cd0f-0000006831a2</sap:MessageId>
    <sap:TimeSent>2014-05-13T10:16:43Z</sap:TimeSent>
    <sap:Sender> 
    <sap:Party agency="http://sap.com/xi/XI" scheme="XIParty"/> 
    <sap:Service>CC_Hartgeldbest_File2Idoc</sap:Service>
    </sap:Sender>
    <sap:Receiver> 
    <sap:Party agency="" scheme=""/> 
    <sap:Service/>
    </sap:Receiver>
    <sap:Interface namespace="http://xxxxx.de">hartgeldbest_KT_async_out</sap:Interface>
    </sap:Main>
    Is it possible that the receiver is overwritten due to the Content Conversion? Because if I set my Message Protocol to "File" the receiver determination will work.
    Any idea?
    Thx
    Khadim

  • BPM Error in Transformation Step: Interface Mapping not found

    Hi,
    Can you help me on this? I have a tranformation step in my BPM that combines a request and response message of a previous Send step to create a Source message for the next Send step. However, on my transformation step, I got the mapping error in workflow log: Interface mapping http://gl.euhreka.com/learning/skillsoft/catalogSy.YGLXI_OM_MergeRequestAndHandleResponseAB_To_PollFo (SWCV=DF8549309ECE11DFB58DF3570A341E0F) not found
    Do you have any idea about this error? My mapping program is working fine. I also checked if the container elements assigned to the transformation steps are correct. 
    Can you suggest of other way on how can I achieve on merging 2 messages (request and response) and set it to the Request for another send step?
    Thanks,
    Jenny

    Hello,
    I already solved the problem. The namespace and Operation mapping name is too long that's why it cannot be located at runtime.
    After the rename, another error appeared.
    "Incorrect XML format after mapping: Root-Tag expected instead of Messages"
    There are no useful information on the trace:
      <?xml version="1.0" encoding="utf-8" ?>
    - <MappingTrace>
      <Trace level="1" type="T">Mapping http://test YGLXI_OM_Merge , Software Component Version DF8549309ECE11DFB58DF3570A341E0F</Trace>
      <Trace level="1" type="T">Mapping Step 1 , Type XSLT , Program PollForReport_Merge</Trace>
      <Trace level="2" type="T">Call XSLT processor with stylsheet PollForReport_Merge.xsl.</Trace>
      <Trace level="2" type="T">Returned form XSLT processor.</Trace>
      </MappingTrace>
    Here is myXSLT program:
    <?xml version='1.0' encoding='utf-8' ?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  >
         <xsl:template match="/">
              <YGLXI_MT_PollForReportRequest>
                   <customerID>
                        <xsl:value-of select="//customerID"/>
                   </customerID>
                   <customerPassword>
                        <xsl:value-of select="//customerPassword"/>
                   </customerPassword>
                   <reportIDHandle>
                        <xsl:value-of select="//reportHandle"/>
                   </reportIDHandle>
              </YGLXI_MT_PollForReportRequest>
         </xsl:template>
    Here is my source message:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
          <ns1:YGLXI_MT_InitiateFullCourseListingRequest xmlns:ns1="http://gl.euhreka.com/learning/skillsoft/catalogSynchronization">
             <customerID>ZZZ</customerID>
             <customerPassword>XXX</customerPassword>
             <reportFormat>VVV</reportFormat>
             <mode>VCC</mode>
             <userName>CC</userName>
          </ns1:YGLXI_MT_InitiateFullCourseListingRequest>
       </ns0:Message1>
       <ns0:Message2>
          <ns1:YGLXI_MT_InitiateFullCourseListingResponse xmlns:ns1="http://gl.euhreka.com/learning/skillsoft/catalogSynchronization">
             <reportHandle>SADA</reportHandle>
          </ns1:YGLXI_MT_InitiateFullCourseListingResponse>
       </ns0:Message2>
    </ns0:Messages>
    I tested my program in Operation mapping and it is working. How come it is not in BPM?
    Thanks,
    Jenny

  • SOAP Sender Error - com.sap.engine.interfaces.messaging.api.exception

    Hi,
    I am testing a SOAP Sender Channel using a SOAP Client and getting the following error. I have read almost all the posts related to errors in SOAP Channel and also have checked my URL which is correct. AS mentioned in many of the posts, my url goes like
    https://<host>:<port>/XISOAPAdapter/MessageServlet?channel=:DEMO:SOAP_s_GETLIST&version=3.0&SenderService=DEMO&interface=si_os_GETLIST&interfaceNamespace=<namespace>
    This is the error that I get when sending a message to the interface
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP:Body>
          <SOAP:Fault>
             <faultcode>SOAP:Server</faultcode>
             <faultstring>Server Error</faultstring>
             <detail>
                <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                   <context>XIAdapter</context>
                   <code>ADAPTER.JAVA_EXCEPTION</code>
    <text>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: XIProxy:PARSE_APPLICATION_DATA:
         at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1041)
         at sun.reflect.GeneratedMethodAccessor1044_10001.invoke(Unknown Source)*
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
                </s:SystemError>
             </detail>
          </SOAP:Fault>
       </SOAP:Body>
    </SOAP:Envelope>
    Has Anybody got this problem before? Is it any problem with the SOAP Adapter itself or with the data that is going in the message? If so, What is the possible solution for this?
    Thanks,
    Rashmi.

    Hi Rashmi,
    I also think your problem is data related.
    Check the response in your SAP PI message monitor (SXMB_MONI) when you trigger a request using SoapUI. It sometimes provides a bit more detail. You design (data types, message types, service interfaces etc.) was done in SAP PI 7 then an Abap Proxy was generated from the service interface?
    Sometimes there is an issue between the XSD data type declaration in SAP PI and the conversion to Abap data types that takes place when a proxy is generated from a PI Service Interface.
    Check the data that you pass in your request, especially those like datetime fields. Maybe even change some of the data type definitions (like datetime) to a string (request & response) & then test through SoapUI & see if you still get the error. Then you can work out how to best resolve it.
    Best Regards, Trevor

  • Handling Java Mapping Exception in BPM Transformation step

    Dear SDN members,
    I have developed a File to File scenario using BPM as follows.
    Step 1:
    Sender file adapter picks the file from FTP server and using file content conversion mapped to XML structure.
    Step 2:
    BPM will recieve the XML payload , immediately in the block a transformation step is called with an interface mapping. In the interface mapping a Java mapping will be executed with certain data validations on the XML payload. If found any invalid data is there a suitable excptions will be raised . Here the transformation step should be catch the error and control should be sent to exception block to place the recived file as a error file.
    else if the transformation is executed with out any issues, the file will be placed in success folder.
    But in the transformation step, though java mapping thorwing exceptions, the control not going into exception block, instead it is continuing to next step i.e the file is placing in the success folder.
    Can anybody tell me, how to handle the exceptions raised in java mapping in the BPM transformation step?
    I have refered all the SDN blogs, forums related to this issue, but could not able to find the answer. Please help me?
    Thanks & Regards
    Vijayanand Poreddy

    Hi Abhishek,
    Once the file is picked from FTP server then sent to BPM,
    the BPM steps
    Step1:
    -->Recive
    Step 2:
    Block Starts
       ---Block Start: New Transaction
       ---Block End : New Transaction
       ---Exception : Error
    Step 3 
    Inside the Block
    Transformation Step
       --Interface Mapping: <IM Name>
       -- Check box ticked for Create New Transcation
       -- Exceptions
          --System Error: Error
       --Source Message: Message recieved in Recieve Step (Step 1)
    Step 4:
      --Send
      --Source Maessage: Output message from the Transformation Step
    Block End
    Inserted a Exception Branch for Block
    Steps inside Exception Branch
      -Control
        --Throw Alert
       --Alert Name
    In the above scenario
    The transformation step is not throwing error even my interface mapping going to error. The same transformation step if i place outside the block next to recieve step, then the transformation step is throwing error and BPM stops the process.
    Also, when transformation is inside the block, i have used the exception handling on the send step inside the block. here it is throwing error as the source message payload is empty. because in the preceding transformation step the interface mapping is failed due to which there the target will not be filled. But even though it is not entered into exception block.
    Regards
    Vijayanand Poreddy

  • Exception Error   =/

    Hello, java newb here.
    I have been working on one of my assignments for school. Where as we haven't gotten into GUI yet ... the many required output options of the assignment make it seem almost crazy not to have an interface to navigate with. I have probably bitten off a lot more than I can chew by trying to use tools I'm not ready for yet. I'm trying to learn to create an interface at this time on my own, and when I can get that to work I will begin trying to integrate the actual inputs and outputs of the assignment.
    Anyways, I am getting the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: IntroTest3/java
    What I don't understand is the code compiles without errors. Its when I try to run the program that the message is displayed. Can anybody advise me as to perhaps what could be happening between compile time and run time? I don't expect anybody to give me any answers or fix my lousy code. Just trying to learn what to look for when it comes to identifying errors.I will paste the code below. By the way, yes I did insert/modify a lot of pieces from some of the tutorial codes or my textbook codes because I don't know enough to fill in the gaps on my own.
    import javax.swing.JInternalFrame;
    import javax.swing.JDesktopPane;
    import javax.swing.JMenu;
    import javax.swing.JMenuItem;
    import javax.swing.JMenuBar;
    import javax.swing.JFrame;
    import javax.swing.KeyStroke;
    import java.awt.event.*;
    import java.awt.*;
    public class IntroTest3 extends JFrame implements ActionListener
    {//BEGIN INTROTEST3 CLASS
    private JDesktopPane desktop;               // Declare a new desktop frame (Instance variable)
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    public IntroTest3()               // Constructor for IntroTest3 class
         {//BEGIN INTROTEST3 CONSTRUCTOR
         super( "Grade Calculator v1.3" );     // Title bar text
         int inset = 50; // This indents the window?
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
         setBounds(inset, inset,
    screenSize.width - inset*2,
    screenSize.height - inset*2);
         desktop = new JDesktopPane();          // Make a new desktop frame
         getContentPane().add( desktop );     // Create the content pane for the desktop frame
         setJMenuBar(createMenuBar());          // Menu bar will be made in createMenuBar()
    desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE); // Faster dragging???
         }//END INTROTEST3 CONSTRUCTOR
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    protected JMenuBar createMenuBar()                
         {//BEGIN CREATEMENUBAR
    //- "menuBar" is the menu bar -
         JMenuBar menuBar = new JMenuBar();          // Create new menu BAR
    *     FIRST MENU - " ADD GRADES ". INCLUDES ITEMS: "REGISTER A NEW CLASS",     *
    *     AND "INSERT GRADES".                                   *
    //- "add_menu" is first option on menu bar -
         JMenu add_menu = new JMenu(" Add Grades ");     // Create the first menu on the bar
    add_menu.setMnemonic(KeyEvent.VK_A);          // Set mnemonic to keystroke A?
         menuBar.add( add_menu );               // Add the menu to the menu bar
    //- "reg_class" is first item under menu -
    //- option "add_menu"               -
         JMenuItem reg_class = new JMenuItem(" Register A New Class "); //New option under Add Grades menu
    reg_class.setMnemonic(KeyEvent.VK_R); // Set mnemonic to keystroke R
    reg_class.setAccelerator(KeyStroke.getKeyStroke(
    KeyEvent.VK_R, ActionEvent.ALT_MASK));     // Uh, whatever that is ;O
    reg_class.setActionCommand("reg"); // Assign command "reg" to initiate
    reg_class.addActionListener(this); // and add it to ActionListener
    add_menu.add(reg_class);
    //- "insert_g" is next item under menu -
    //- option "add_menu"               -
         JMenuItem insert_g = new JMenuItem(" Insert New Grades "); //2nd option under Add Grades menu
    insert_g.setMnemonic(KeyEvent.VK_I); // Set mnemonic to keystroke I
    insert_g.setAccelerator(KeyStroke.getKeyStroke(
    KeyEvent.VK_I, ActionEvent.ALT_MASK));     // ....
    insert_g.setActionCommand("ins"); // Assign command "ins" to initiate
    insert_g.addActionListener(this); // and add it to ActionListener
    add_menu.add(insert_g);
    return (menuBar);
         }//END CREATEMENUBAR
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // React to menu selection          -
    public void actionPerformed(ActionEvent e)
         {//BEGIN ACTIONPERFORMED
    if ("reg".equals(e.getActionCommand()))
              { //new
         createFrame1();
         else if ("ins".equals(e.getActionCommand()))
              { //new
         createFrame2();
         else
         quit();
         }//END ACTIONPERFORMED
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // Create frame for registering a new class          -
    protected void createFrame1()
    {//BEGIN CREATEFRAME1
    RegFrame frame = new RegFrame();          // New frame RegFrame
    frame.setVisible(true);
    desktop.add(frame);                    // Add new frame to desktop
    try
         {                              // What the fuck is THIS shit?
    frame.setSelected(true);
    } catch (java.beans.PropertyVetoException e) {}
    }//END CREATEFRAME1
    // Create frame for inserting new grades          -
    protected void createFrame2()
    {//BEGIN CREATEFRAME2
    InsFrame frame = new InsFrame();          // New frame InsFrame
    frame.setVisible(true);
    desktop.add(frame);                    // Add new frame to desktop
    try
         {                              // What the fuck is THIS shit too?
    frame.setSelected(true);
    } catch (java.beans.PropertyVetoException e) {}
    }//END CREATEFRAME2
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //Quit the application.
    protected void quit()
    System.exit(0);
    *     COPIED CREATE AND SHOW GUI PIECE FOR TESTING
    private static void createAndShowGUI()
         {//BEGIN CREATEANDSHOW
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    IntroTest3 frame = new IntroTest3();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Display the window.
    frame.setVisible(true);     
         }//END CREATEANDSHOW
    public static void main(String[] args)
         {//BEGIN MAIN
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable()
              {//BEGIN SOME SHIT
         public void run()
         createAndShowGUI();
    });//END SOME SHIT
    }//END MAIN
    // TEST TEST TEST
    class InsFrame extends JInternalFrame
    static final int xOffset = 40, yOffset = 40;
    public InsFrame() {       
         super(" Insert New Grades ",
    true, //resizable
    true, //closable
    true, //maximizable
    true);//iconifiable
    //...Create the GUI and put it in the window...
    //...Then set the window size or call pack...
    setSize(300,300); //Set the window's location.
    setLocation(xOffset, yOffset);
    // TEST TEST TEST
    class RegFrame extends JInternalFrame
    static final int xOffset = 30, yOffset = 30;
    public RegFrame() {       
    super(" Register a New Class ",
    true, //resizable
    true, //closable
    true, //maximizable
    true);//iconifiable
    //...Create the GUI and put it in the window...
    //...Then set the window size or call pack...
    setSize(300,300); //Set the window's location.
    setLocation(xOffset, yOffset);
    Something else that I don't really understand is when I had the classes RegFrame and InsFrame to create the frames, located in different files, I had problems. The end of the main file, IntroTest3 kept giving me errors saying " 'class' or 'interface' expected."
    My teacher gave us this command the other day: javac -classpath . <filename>.java
    He said that this tells the file that the public classes it is looking for will be at the same location (in the same directory). I tried this on some sample code in the lab and it worked with what I had, but I guess not here....
    However, when I was messing around trying different things, I pasted RegFrame and InsFrame into the same file at the bottom as it is in the above code. After removing "public", it compiled.
    So I'm not sure why it occured the way it did.
    Anyways if anybody has any advice I would really be grateful, and I promise I'm not one of those obnoxious people who expects somebody on a forum to do their homework for them! Thank you and I'm sorry if I ramble. =(

    Exception in thread "main" java.lang.NoClassDefFoundError: IntroTest3/javaYou're invoking it like this, aren't you:
    java IntroTest3.java
    That's wrong. The argument to java should be a class name, not the name of the source file or even the filename of the class.
    So what's happening is that the JVM thinks that you're telling it to execute the class called "java" in a package called "IntroTest3".
    You should be doing:
    java IntroTest3

  • Getting error while running the Interface using AGENT

    Hi All,
    i am not able to run the interface using Agent service which running in the another machine, while running i am getting error message like
    java.lang.Exception: Error during Session launching
         at com.sunopsis.dwg.dbobj.SnpSession.remoteExecute(SnpSession.java)
         at com.sunopsis.graphical.l.or.e(or.java)
         at com.sunopsis.graphical.r.z.actionPerformed(z.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    i ran the Agent services in Comment prompt, there i am getting the error like follows
    java.lang.NullPointerException
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.t(e.java)
    at com.sunopsis.dwg.cmd.h.y(h.java)
    at com.sunopsis.dwg.cmd.e.run(e.java)
    at java.lang.Thread.run(Unknown Source)
    here i have mentioned the steps which i followed for creating agent service.
    i have two machine namely A and B both having the ODI
    i am going to use the B machine as a centralized server. so i edited the odiparams.bat file in B machine in ODI locaiton and filled the repository information
    from A machine i opened the Topology and created the Agent service there i mentioned the HOST name as "B" and port number 20300. and i configure the logical agent aswell
    from B machine i started the Agent service like agentscheduler "-port=20300".
    Agent service launched seccessfully.
    From A machine i tested the Agent. that also shown the successful window message.
    then i started running the interface using the agent i am getting the error which i have mention in the beginging.
    Interface which i ran will do the text file to table loading, so i kept that file in particular location in B machine( i have configure this location when i created the file data store in topology in A machine).
    Please help me to solve the problem...
    thanks
    nidhi
    Edited by: knidhi on Nov 26, 2009 6:54 PM

    Thanks For your Reply,
    I ran the agent as you said. here is my observation
    from the Machine B where agent is actually running, i could able to run the interface using agent service.
    but from the machine A while running the interface i am getting the following error message
    java.lang.Exception: Error during Session launching : Error during Session Preparation : You are trying to execute a session with an agent that is undefined in your repository. Please check the agent -NAME parameter.
         at com.sunopsis.dwg.dbobj.SnpSession.remoteExecute(SnpSession.java)
         at com.sunopsis.graphical.l.or.e(or.java)
         at com.sunopsis.graphical.r.z.actionPerformed(z.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    i have created both physical and logical agent with the same name "DEMO_AGENT", and i ran the agent in the Machine B like
    agentscheduler "-port=20301" "-name=DEMO_AGENT"
    Please help me to solvethe issue...
    Thanks
    Nidhi
    Edited by: knidhi on Nov 27, 2009 11:04 AM
    Edited by: knidhi on Nov 27, 2009 11:04 AM
    Edited by: knidhi on Nov 27, 2009 11:05 AM

  • Formatting  XML file to avoid mapping parser error

    Hi,
    We have requirement in our project to process input xml file which is of the below format:
    <message>
    <data>
    <xml version=1.0 code=utf/>
    <test>
    <data>book</data>
    </test>
    </data></message>
    Since <xml>  tag is at the middle it is throwing a exception error in mapping.
    Actual requirment is that we need
    <test>
    <data>book</data>
    </test>
    The xml of the above format is generated by some external system which PI  need to pick it.
    I think  is not possible in XSLT mapping as it is not starting with xml tag .
    So please let me know pointer ot resolve the issue.
    Thanks in advance.

    Hi Yeshwanth,
    If this input XML. Then it is valid XML.
    <message>
      <data>
        <xml version="1.0" code="utf" />
        <test>
          <data>book</data>
        </test>
      </data>
    </message>
    Please paste the error message, input and expected output XML.
    Regards,
    Raghu_Vamsee
    Edited by: Raghu Vamsee on Aug 25, 2011 12:10 PM

  • Error in SFP (SOAP Exceptional error)

    Hi,
    I have ECC 6 and Adobe livecycle designer 7.1 installed in my system. When Im trying to design
    layout in SFP (via. layout button) it is taking me to Adobe form designer(i have done
    with interface and print program step) however when im executing this (test run or print form) it is giving me "SOAP Exceptional error". Also, in SM59 ADS connection test is getting failed. Is there
    any seeting from netweaver side I have to do. Can anybody please let me know regarding this.
    Im an ABAPer and not sure about these settings and scenarios.
    Rgds
    Sudhanshu

    Hi,
    Ask any Basic person to look into the installation and if any other support packs need to be configured..
    This is not the work of an ABAPer. Get in touch with the BASIS person
    Regards
    Shiva

  • Getting an "uncaught exception" error when trying to Scan a document via D-Link DPR-1260 print sever (worked in prior versions of Firefox)

    I'm using the interface (Firmware V1.24) on a D-Link DPR-1260 Print Server, connected to an Epson Printer/Scanner. When I hit the "Scan" button, I get an "uncaught exception" error. This firmware has been working for years (at least back to Firefox 3.x), but no longer works with Firefox V6.0

    Nothing really, but... The firmware runs in a web browser. It's been working fine for years and no longer works since I got the latest version of Firefox. It does, however, still work in IE (V9) so I do have a way to use my existing hardware.
    I tried D-Link and Google search for any information about this, but came up empty. I was hoping that there might be similar problems with other software with Firefox 6.0.2 and someone might have a work-around or there might be a patch coming soon. At the very least, someone associated with Firefox might be interested that they've apparently broken something that used to work.

  • ABAP Mapping Programm error  Urgent

    I am getting mapping error in ABAP Mapping programm. plz help me how to solve
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--
    Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">APPLICATION_PROGRAM_ERROR</SAP:Code>
      <SAP:P1>Z_HBS_PAYROLL_MAPPING</SAP:P1>
      <SAP:P2>SAP-ABAP</SAP:P2>
      <SAP:P3>UNCAUGHT_EXCEPTION</SAP:P3>
      <SAP:P4>Program Z_HBS_PAYROLL_MAPPING=========CP Include Z_HBS_PAYROLL_MAPPING=========CM001 Line 1</SAP:P4>
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error in mapping program Z_HBS_PAYROLL_MAPPING (type SAP-ABAP, kernel error ID UNCAUGHT_EXCEPTION) An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause Dereferencing of the NULL reference</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    Hi,
    I think this exception you need to catch it in the ABAP..
    This may help u- http://help.sap.com/saphelp_47x200/helpdata/en/55/bff20efe8c11d4b54a006094b9456f/content.htm
    just cross verify with this guide-
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    Regards,
    moorthy

  • MAPPING MAPPING configuration error

    I am getting MAPPING configuration error while running this code using Tomcat 4.1 on my website whereas it is running at my local webserver
    Please HELP
    ERROR LOG
    StandardHost[site.winwinhosting.net]:MAPPING configuration error for request URI /
    NewsFile read: java.lang.NullPointerException:name can:+t be null NewsFile read: java.lang.NullPointerException: name can:+t be null NewsFile read:
    java.lang.NullPointerException: name can:+t be null
    Bunty
    <%@ page import = "java.io.*, java.util.*,java.net.URL,java.awt.*" %>
    <HTML>
    <head></head>
    <body>
    <%
    // Read in the text file newsfile.txt
    ServletContext context = getServletContext();
    String file = (context.getRealPath("news.txt"));
    //String file = "news.txt";
    StringBuffer stringbuffer = new StringBuffer("");
       FontMetrics fm;
        Font f1;
        String str;
        String s;
        String tmp;
        String param;
        int i;
        int disp;
        int tot;
        int pos;
        int pos1;
        int ImageDepth;
        int TextDepth;
        int fmW;
        int dd;
        int width;
        int height;
        int j;
        char ch;
    str = new String(" * Online : News * Ticker * ");
    tmp = new String("");
    param = new String("");
    String s3,s2,s1, news = new String();
    try {
    DataInputStream in = new DataInputStream(new BufferedInputStream(new FileInputStream(file)));
    //DataInputStream in = new DataInputStream((new URL( file)).openStream());
    //stringbuffer.append(in.readLine());
    //stringbuffer.append("   *   ");
    //s1 = stringbuffer.toString();
    //out.println(s1);
    while((in.readLine())!= null)
    s2=in.readLine()+ "\r";
    stringbuffer.append(s2);
    stringbuffer.append("   *   ");
    //news += s2 + "\n";
    //out.println(s2);
         in.close();
    catch(Exception e) {
         System.out.println("NewsFile read: "  + e);
    %>
    <%
    news=stringbuffer.toString();
    //out.println(news);
    %>
    <marquee><%=news%></marquee>
    </body>
    </html>

    I think it is not able to locate your source file(New.txt). Try putting an output statement and see what is the patth it is printing and check whether it is the correct path where is your news.txt is located.
    Bye

Maybe you are looking for

  • ITunes won't open at all

    I've had iTunes 7 for awhile now, and it wasn't till recently that I started to experience problems. When I try to open iTunes, it registers that iTunes.exe is running in the Task Manager, but then it stops. They iTunes.exe prog disappears. There is

  • PDF prints from Acrobat 9 formatting off and security limitation after mac 10.9.2 OS security update

    When I print to Acrobat from Word, the output formatting gets messed up (single lines turn to doubles, column to right shifts to the left) ; I can't combine two documents; AND I get a security erro message when I try to reduce file size.

  • Cannot import templates into DVDSP.....

    Hello everybody... Got a little trouble with DVD SP. I can see that all templates are no offered when I open the program so I try to import a new one from the corresponding folder... but nothing happens. DVDsp just doesn´t do it. Any hint about this

  • How to implement the WIP in production planning module?

    Hi Gurus, Good afternoon! We are planning to Implement the WIP in Production Planning Module. Current set-up, we create production order and confirmed for all process in production transaction especially the consumption of raw materials and Goods rec

  • FLV, SCORM, SumTotal Issue

    Hi Everyone - I'm trying to use a few videos in a Captivate course that needs to be SCORM compliant. When the videos are FLVs, they won't play in our LMS (SumTotal not sure of the version but I believe it is older maybe 6). When i converted them to S