Persistance Exception & Mapping Exception

2010-11-29 11:08:43,406 main FATAL [com.ofss.fc.app.card.service.card.CardAccLinkageApplicationService] (CardAccLinkageApplicationService.java:109) FCRRunTimeException from CardAccLinkageApplicationService.addCardAccLinkage
com.ofss.fc.infra.das.exception.PersistenceException: Unknown entity: com.ofss.fc.domain.card.entity.card.CardAccLinkage
     at com.ofss.fc.infra.das.orm.hibernate.HibernateExceptionTranslator.translate(HibernateExceptionTranslator.java:110)
     at com.ofss.fc.infra.das.orm.hibernate.HibernateExceptionTranslator.translate(HibernateExceptionTranslator.java:113)
     at com.ofss.fc.infra.das.orm.hibernate.HibernateSessionWrapper.save(HibernateSessionWrapper.java:597)
     at com.ofss.fc.framework.repository.AbstractRepository.insert(AbstractRepository.java:64)
     at com.ofss.fc.framework.domain.service.MaintenanceDomainService.create(MaintenanceDomainService.java:213)
     at com.ofss.fc.domain.card.service.card.CardAccLinkageService.addCardAccLinkage(CardAccLinkageService.java:54)
     at com.ofss.fc.app.card.service.card.CardAccLinkageApplicationService.addCardAccLinkage(CardAccLinkageApplicationService.java:102)
     at com.ofss.fc.app.card.service.card.TestingStub.testUploadFile(TestingStub.java:38)
     at com.ofss.fc.app.card.service.card.TestingStub.main(TestingStub.java:56)
Caused by: org.hibernate.MappingException: Unknown entity: com.ofss.fc.domain.card.entity.card.CardAccLinkage
     at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550)
     at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1338)
     at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:98)
     at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
     at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
     at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
     at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
     at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
     at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)
     at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
     at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
     at com.ofss.fc.infra.das.orm.hibernate.HibernateSessionWrapper.save(HibernateSessionWrapper.java:589)
     ... 6 more
2010-11-29 11:08:43,626 main FATAL [335.com.ofss.fc.infra.das.orm.toplink.TopLinkDataAccessManager] (TopLinkDataAccessManager.java:70) [< 1-8913-5547-5227 >]      ELCM Class not found
java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at com.ofss.fc.infra.das.orm.toplink.TopLinkDataAccessManager.initialize(TopLinkDataAccessManager.java:66)
     at com.ofss.fc.infra.das.orm.toplink.TopLinkDataAccessManager.rollbackTransaction(TopLinkDataAccessManager.java:100)
     at com.ofss.fc.app.Interaction.rollbackOrCommit(Interaction.java:941)
     at com.ofss.fc.app.Interaction.manageLastInteraction(Interaction.java:671)
     at com.ofss.fc.app.Interaction.close(Interaction.java:580)
     at com.ofss.fc.app.Interaction.close(Interaction.java:543)
     at com.ofss.fc.app.card.service.card.CardAccLinkageApplicationService.addCardAccLinkage(CardAccLinkageApplicationService.java:117)
     at com.ofss.fc.app.card.service.card.TestingStub.testUploadFile(TestingStub.java:38)
     at com.ofss.fc.app.card.service.card.TestingStub.main(TestingStub.java:56)
Caused by: java.lang.NoSuchMethodError: oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Loracle/toplink/tools/sessionconfiguration/XMLSessionConfigLoader;Ljava/lang/String;Ljava/lang/ClassLoader;ZZZ)Loracle/toplink/publicinterface/Session;
     at com.ofss.elcm.domain.DBSessionManager.buildDatabaseSession(DBSessionManager.java:188)
     at com.ofss.elcm.domain.DBSessionManager.<init>(DBSessionManager.java:118)
     at com.ofss.elcm.domain.DBSessionManager.getInstance(DBSessionManager.java:134)
     ... 13 more
2010-11-29 11:08:43,636 main DEBUG [335.com.ofss.fc.infra.das.orm.hibernate.HibernateDataAccessManager] (HibernateDataAccessManager.java:164) [< 1-8913-5547-5227 >]      CLOSE_FORCE:com.ofss.fc.app.Interaction:manageLastInteraction:677:

You seem to be using Hibernate, not TopLink?
When do you get this error, how have you mapped your classes, what are you doing, etc?
James : http://www.eclipselink.org

Similar Messages

  • 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

  • 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

  • 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

  • Mapping exception

    Hi All,
    I have one mapping exception
    Here i describe my mapping
    Descrption:(line break)
    Text:----
    maximum length=132
    The above fields are Source fileds.
    "Full Description" is the target field.
    Here i mapped
    Description and Text field mapped UDF and finally mapped to Fulldescription.
    In the UDF: return string1System.getProperty("line.separator")string2;
    so this  mapping correct and successfully process with line break when the for example Text Fied data:my country is India
    in XI XML message mapping like that :<Full Description> Descrption: my country is India</Full Description>
    Here we pass one condition if full description field more than 2000 chacters it throw error and cancel the process and  send mail to particular person.
    In this case we test the mapping
    Text Field data: my country is India and i am belongs andhrapradesh..........
    (more than 2000 chacters)
    This above Text field data is in Paragraph wise,so when we can test it XI mapping can read the first line of the paragraph only not readed second line more than 2000 chacters. so at that time it not throws any error.In this case also it is successful
    But we need error when more 2000 chacters.so my question how to read all lines of the data? Can you please help me out.
    Thank you very much in advance.
    Regards
    Sateesh

    Hi Sateesh,
    Just add one more line to your UDF code. It will work.
    String temp = string2.replaceAll("\n","");
    return string1 System.getProperty("line.separator")temp;
    This would resolves your issue.
    Regards,
    Swetha.

  • Run-time mapping exception in JDBC Scenario

    Hello There,
                We are working on a "Communication between IDOC and JDBC" Scenario where in the IDOC is successfully getting called in SAP XI from an SAP R/3 system. But!, when we try to map the IDOC structure with a JDBC Database structure through a manually created XSD, it gives the following run-time mapping exception :
    "During the application mapping com/sap/xi/tf/_RequestMapping_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformation"
    The following is the XSD that we have created manually for the Target JDBC database table structure which shows the parent-child relationship of the database and is causing the above stated exception :  
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by sekhar (MSS) -->
    <!W3C Schema generated by XMLSPY v2004 rel. 4 U (http://www.xmlspy.com)>
    <xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
         <xs:element name="ACCOUNT_GROUP" type="xs:byte"/>
         <xs:element name="AUTHORIZATION_GROUP" type="xs:byte"/>
         <xs:element name="CITY" type="xs:string"/>
         <xs:element name="CITY_CODE" type="xs:short"/>
         <xs:element name="COMPANY_CODE" type="xs:short"/>
         <xs:element name="COUNTRY_CODE" type="xs:byte"/>
         <xs:element name="COUNTRY_KEY" type="xs:byte"/>
         <xs:element name="CREATED_DATE" type="xs:short"/>
         <xs:element name="CUSTOMER_CLASSIFICATION" type="xs:boolean"/>
         <xs:element name="CUSTOMER_NUMBER" type="xs:short"/>
         <xs:element name="DISTRICT" type="xs:string"/>
         <xs:element name="FAX_NUMBER" type="xs:int"/>
         <xs:element name="FIRST_NAME" type="xs:string"/>
         <xs:element name="GROUP_KEY" type="xs:byte"/>
         <xs:element name="HOUSE_NUMBER" type="xs:date"/>
         <xs:element name="INDUSTRY_KEY" type="xs:byte"/>
         <xs:element name="INTIAL_CONTACT" type="xs:byte"/>
         <xs:element name="LAST_NAME" type="xs:string"/>
         <xs:element name="LOCATION_NUMBER" type="xs:string"/>
         <xs:element name="NAME_PERSON" type="xs:string"/>
         <xs:element name="POSTAL_CODE" type="xs:int"/>
         <xs:element name="REGION" type="xs:string"/>
         <xs:element name="REGIONAL_MARKET" type="xs:byte"/>
         <xs:element name="TELEPHONE_NUMBER" type="xs:long"/>
         <xs:element name="VENDOR_ACCOUNT" type="xs:byte"/>
         <xs:element name="resultset">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="row"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="row">
              <xs:complexType>
                   <xs:choice maxOccurs="unbounded">
                        <xs:element ref="CUSTOMER_NUMBER"/>
                        <xs:element ref="COUNTRY_KEY"/>
                        <xs:element ref="FIRST_NAME"/>
                        <xs:element ref="LAST_NAME"/>
                        <xs:element ref="LOCATION_NUMBER"/>
                        <xs:element ref="AUTHORIZATION_GROUP"/>
                        <xs:element ref="INDUSTRY_KEY"/>
                        <xs:element ref="GROUP_KEY"/>
                        <xs:element ref="ACCOUNT_GROUP"/>
                        <xs:element ref="CUSTOMER_CLASSIFICATION"/>
                        <xs:element ref="VENDOR_ACCOUNT"/>
                        <xs:element ref="REGIONAL_MARKET"/>
                        <xs:element ref="INTIAL_CONTACT"/>
                        <xs:element ref="COMPANY_CODE"/>
                        <xs:element ref="CREATED_DATE"/>
                        <xs:element ref="NAME_PERSON"/>
                        <xs:element ref="CITY"/>
                        <xs:element ref="CITY_CODE"/>
                        <xs:element ref="COUNTRY_CODE"/>
                        <xs:element ref="DISTRICT"/>
                        <xs:element ref="FAX_NUMBER"/>
                        <xs:element ref="HOUSE_NUMBER"/>
                        <xs:element ref="POSTAL_CODE"/>
                        <xs:element ref="REGION"/>
                        <xs:element ref="TELEPHONE_NUMBER"/>
                   </xs:choice>
              </xs:complexType>
         </xs:element>
    </xs:schema>
    IS THERE ANY OTHER WAY OF ACHIEVING THE ABOVE TASK OF AUTOMATICALLY GENERATING THE REQUIRED DESTINATION STRUCTURE ON THE JDBC TARGET SYSTEM SIDE ?. PLEASE ADVICE ASAP.
    REGARDS ......
    K. Venkat!.

    Try setting the classpath properly. It seems the runtime evironment is unable to find the compiled class files. Nothing else is wrong.
    --Anil                                                                                                                                                                                                                                                                                           

  • OneToMany Mapping Exception - can anybody help

    SEVERE: >>java.lang.ExceptionInInitializerError: null
    javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupExceptionException Description: predeploy for PersistenceUnit [dmsPU] failed.
    Internal Exception: Exception [TOPLINK-7154] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: The attribute [mPackagepartses] in entity class [class com.adityas.jpa.masters.part.MPart] has a mappedBy value of [part] which does not exist in its owning entity class [class com.adityas.jpa.masters.packageParts.MPackageparts]. If the owning entity class is a @MappedSuperclass, this is invalid, and your attribute should reference the correct subclass.
    oracle.toplink.essentials.exceptions.EntityManagerSetupException: Exception Description: predeploy for PersistenceUnit [dmsPU] failed.
    Internal Exception: Exception [TOPLINK-7154] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: The attribute [mPackagepartses] in entity class [class com.adityas.jpa.masters.part.MPart] has a mappedBy value of [part] which does not exist in its owning entity class [class com.adityas.jpa.masters.packageParts.MPackageparts]. If the owning entity class is a @MappedSuperclass, this is invalid, and your attribute should reference the correct subclass.
    Local Exception Stack:
    Exception [TOPLINK-7154] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/21/2007))): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: The attribute [mPackagepartses] in entity class [class com.adityas.jpa.masters.part.MPart] has a mappedBy value of [part] which does not exist in its owning entity class [class com.adityas.jpa.masters.packageParts.MPackageparts]. If the owning entity class is a @MappedSuperclass, this is invalid, and your attribute should reference the correct subclass.
         at oracle.toplink.essentials.exceptions.ValidationException.noMappedByAttributeFound(ValidationException.java:1118)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataValidator.throwNoMappedByAttributeFound(MetadataValidator.java:297)
         at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.RelationshipAccessor.getOwningMapping(RelationshipAccessor.java:127)

    @Entity
    @Table(name = "m_part", catalog = "dms_dev")
    public class MPart implements java.io.Serializable {
         // Fields
         private static final long serialVersionUID = -7784550511312653300L;
         private Integer partPk;
         private MWarehouse warehouse;
         private String partNo;
         private String venderPartNo;
         private String partName;
         private Integer group2;
         private Integer issueUom;
         private Integer purchaseUom;
         private String warrantyAppl;
         private String returnable;
         private String salvageValue;
         private Double mrp;
         private Double ndp;
         private Double venderPrice;
         private String partLocation;
         private Double stockInHand;
         private Double minQty;
         private Double openQty;
         private String decsription;
         private Integer crtBy;
         private Date crtDt;
         private Integer updBy;
         private Date updDt;
         private Integer partGroup;
         private Set<TReqApprDtl> reqApprDtls = new HashSet<TReqApprDtl>(0);
         private Set<TPcrInfo> pcrInfos = new HashSet<TPcrInfo>(0);
         private Set<TPoReceive> poReceives = new HashSet<TPoReceive>(0);
         private Set<MPackageparts> packagepartses = new HashSet<MPackageparts>(0);
         private Set<TPoReturn> poReturns = new HashSet<TPoReturn>(0);
         private Set<TAncillaryDtls> ancillaryDtlses = new HashSet<TAncillaryDtls>(0);
         private Set<TPoDetails> poDetailses = new HashSet<TPoDetails>(0);
         // Constructors
         /** default constructor */
         public MPart() {
    @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "part")
         public Set<MPackageparts> getMPackagepartses() {
              return this.packagepartses;
         public void setMPackagepartses(Set<MPackageparts> packagepartses) {
              this.packagepartses = packagepartses;
    @Entity
    @Table(name = "m_packageparts", catalog = "dms_dev")
    public class MPackageparts implements java.io.Serializable {
         // Fields
         private static final long serialVersionUID = -3528271808797143260L;
         private Integer packagePartPk;
         private MPart part;
         private MComplaint complaint;
         private Double reqQuantity;
         private Integer crtBy;
         private Date crtDt;
         private Integer updBy;
         private Date updDt;
         // Constructors
         /** default constructor */
         public MPackageparts() {
    @ManyToOne(fetch = FetchType.EAGER)
         @JoinColumn(name = "PART_PK", nullable = false)
         public MPart getMPart() {
              return this.part;
         public void setMPart(MPart part) {
              this.part = part;
    Yes it is mentioned as ManyToOne mapping.

  • Mapping Exception when using Business service

    Hi
    I am using a business service for my IDOC to File scenario and its working fine. But when i am using the same Business service in many work spaces for the same scenario, its giving me an Mapping Exception and the one that was working also giving the same problem. Why its so and it could be solved by using a business system in the scenario. But how the problem is happening?
         Guide me through this.
    Thanks
      Vinod

    Hi, MK
    In XI 3.0 Exchange Infrasturcture, SXMB_MONI (XML Error messages) under SOAP Header --> Error
      <SAP:Stack>During the application mapping com/sap/xi/f/_mMa_Fle_To_SDS a com.sap.a.u.mc.i.BeRimEcepio a thown: Fatal Error: com.sap.enielbxlprr.Parser~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    I am looking container element to display this messages in my alert cagegory ???
    you know SXMB variables but i could't found to display this error how to found out SAP: stack variable please help
    Thanks

  • Throw message mapping exception

    Hi All,
    In message mapping, I am using User defined function for validating 2 fields of the input file. Through this funtion, I want to throw an message mapping exception incase the validation fails.
    Can anybody let me know, how can we forcefully throw an exception using java program.
    Thanks in advance,
    Ashish.

    Hi,
      You can use something as an incoming schema to validate, see this weblog and at last screen shot you see the result of validations,
    /people/jacob.vandborg/blog/2005/11/29/schema-validation-of-incoming-message
    You can also see a much detailed validation document here,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/99593f86-0601-0010-059d-d2dd39dceaa0
    i think you donot need at this level but just for understanding, (This is for incoming file validations)
    Or
    you may also use node functions to check if values are coming or not, like exists, and if the value do not exist send a blank space to prevent runtime mapping exceptions,
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii     point 6
    All this can be tried,
    All the best,
    Anirban.

  • Simple xml file mapping exception

    How come a file with this content works fine:
    <?xml version="1.0" encoding="utf-8" ?>
    <ns:Data xmlns:ns="http://natoil.com/xi/XI/TestFile">
    <Name>Joe</Name>
    </ns:Data>
    But a file with this content gives a mapping exception:
    <?xml version="1.0" encoding="utf-8" ?>
    <Data>
    <Name>Joe</Name>
    </Data>
    How can I get the second version to work? What am I not understanding?
    thanks-

    Hi Henry:)
    to achive your scenario:
    1. go to the <b>Message Type</b> of your file message (repository)
    2. remove <b>XML namespace</b> - you can leave it empty
    3. check if your mapping based on this message type works - now it shouldn't show the namespace when you go to <i>Source Document View</i> of the Source message
    4. recreate message interface
    5. activate it all again  
    6. now your scenario without the namespace should work:) 
    Regards,
    michal
    Message was edited by: Michal Krawczyk

  • (Persistance API) bo exception thrown from em.persist

    Hi,
    I am testing for various error conditions , and trying to write an entity which has column defined as unique, and there is already an instance with that value in table.
    Although the entity does not get persisted(because of the unique constraint) , there is no exception thrown , and the app does not have any way of knowing that something went wrong.
    What's is the best way of handling error in the persistence layer?
    Thanks,
    here is my code :
    @Table(name="SYSTEMUSER")
    public class SystemUser implements Serializable
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    @Column(unique=true, nullable= false)
    private String email;
    try
                   em.persist(user);
              } catch(Exception e)
              System.err.println(e.toString());
              }

    Try posting this on the EJB forum:
    http://forum.java.sun.com/forum.jspa?forumID=13

  • Create a web service from java bean and map exceptions to SOAP faults

    Hi,
    We have to expose our Session stateless EJB3 as web services. I've tried to use annotations and jdev wizard "java bean to web service" and it works fine.
    Our problem now is that our methods can throw a business exception that contains a list of error message strings to be presented on the client.
    I did not find any way to use annotations to make it build a wsdl with soap fault mapped to our exception class. Neither I could to make the wizard to create wsdl with faults.
    As we are exposing already designed and implemented classes as web services, I think the bottom-top (java->wsdl) approach is better that top->botton (wsdl->java). Therefore, I'm looking for a possibility to generate the web services from the java beans and have the exception be mapped to a soap fault message.
    We are using jdev 10.1.3.1 and OAS 10.1.3.1., is there a way to map exceptions to soap faults using bottom->top approach?
    thank you

    A couple of links that may be of help:
    http://www.netbeans.org/servlets/ReadMsg?listName=nbj2ee&msgNo=1218
    My last question concerning web services:
    I have already written a session bean and I'd like to add some methods
    as a web service to it, how do I do that?
    Or I can only create another bean for a webservice and cannot modify the
    original one?You might create web service with existing sources and select you bean. New web services with appropriate lookup method will be generated.
    All web service method, that will be exposed in web service, you
    should add itself (Pop-up menu Web Service -> Add operation)
    http://usersguide.netbeans.org/files/documents/40/73/Chapter9-WebServices.pdf

  • Mapping Exceptions

    How do we deal with Exceptions in mapping

    Hi,
    to add on-
    1) You can write a mapping logic in such a way that, if mapping fails, send an Email/Send an Error File
    2) Sending an Alert - http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/content.htm
    For mapping Exceptions-
    For mapping exceptions~
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    /people/sap.user72/blog/2005/02/23/raising-exceptions-in-sap-xi-mapping
    Hope this helps,
    Regards,
    Moorthy

  • Exception JComboox :Exception in thread "AWT-EventQueue-0" java.lang.NullPo

    Hi, I mapped a vector object to the JComboBox. I'm using the observer pattern to update the ComboBox box whenever there is an message receives.If an update is received I just add the data to the vector and to refresh the ComboBox bu calling the UpdateUI() method. When more updates received same time i'm getting the following exception.
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
         at javax.swing.plaf.basic.BasicComboBoxUI.paintCurrentValue(BasicComboBoxUI.java:1059)
         at javax.swing.plaf.basic.BasicComboBoxUI.paint(BasicComboBoxUI.java:850)
         at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
         at javax.swing.JComponent.paintComponent(JComponent.java:740)
         at javax.swing.JComponent.paint(JComponent.java:1003)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4930)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4883)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4826)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4633)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Please assist me in fixing this issue if anyone came across this issue.
    Thanks.

    I just add the data to the vector and to refresh the ComboBox bu calling the UpdateUI() methodYou should NOT be updating the vector.
    That is NOT what the updateUI() method is used for.
    The proper way to update a component is to udate the MODEL The model will then notify the VIEW so it can repaint itself. Also, make sure the code is executed on the EDT. Read the section from the Swing tutorial on Concurrency.

  • Error: [129]: transaction rolled back by an internal error:  [129] transaction rolled back by an internal error: exception 141000274: exception 141000274: TRexUtils/ParallelDispatcher.cpp:275 message not found; $message$=

    Hello Gurus,
    I have a couple of calculation views in HANA and each of them has text fields (like Employee Name, Country Name etc.).
    As part of my project requirement, I have join those two views and get all the fields that exist in them.
    When I am doing so, I am getting a weird error as shown below.
    Error: [129]: transaction rolled back by an internal error:  [129] transaction rolled back by an internal error: exception 141000274: exception 141000274:
    TRexUtils/ParallelDispatcher.cpp:275
    message not found; $message$='TSR HTKD JFSDFM'
    Please check lines: 59,
    Upon, researching further, I could see that the value 'TSR HTKD JFSDFM' is the value in text field of Employee Name.
    I did try to increase the length of the field and change the data types but nothing has worked.
    Could you please help me in getting this one resolved.
    Thanks,
    Raviteja

    Hi,
    I am exactly facing the same issue:
    Error: [129]: transaction rolled back by an internal error:  [129] transaction rolled back by an internal error: exception 141000274:
    But i found a fix :-) .....
    This may be a very late reply but it would help people who desperately searching for an answer for this issue.
    I used CAST function .. The problem is, we are selecting data from table and of course we dont know the size of the data (attribute) @ runtime. We assign the length by looking at the table attr length or view op attr length. But what happens is the junk data which exceeds the limit of the allocated space hence we get this error.
    So i used CAST function to truncate the excess junk values (may be spaces).
    Example:
    I have a ATTR view of date in the format YYYY-MM-DD which means 10 char size.
    In my CALC view I have created date OP column of VARCHAR(10) but I get the above error for no reason. Eventhoug i am 100% sure about my ATTR date would be max of 10 char my CALC view is failing @ runtime.
    So i did a CAST on date as CAST(my_date as varchar(10)) and the magic happend. It works .......
    But you need to be careful in using this because if you use CAST you may lose data. Careful. In my case i dont.
    Somebody from HANA team should look at this issue from SAP and solve this. I am sure it is a serious bug from HANA (eventhough i am using SAP HANA SP09 Rev 92 the most latest as of today !!!!!!!!!! )
    Enjoy....
    Thanks & Regards
    Prakash K

Maybe you are looking for

  • How do I set the placementID of portlet at runtime?

    Hi, I want to know the position of portlets on the page. Below is my requirement, I have 2 column layout on my page and each column has 3 different portlets. So when the first time it loads page load the page user see some portlets on each column, wh

  • Unable to get jarsigner to sign jar file using pkcs11 smartcard

    I'm using a JDK jdk1.6.0_14 with a datakey smartcard with the below info in pkcs11.cfg file: name = DK330 library = c:\windows\system32\dkck232.dll I have also configured the java.security file to include the security.provider.10=sun.security.pkcs11.

  • Built-in or open source AudioPlayer in Flex 4.5

    Is there an AudioPlayer, similar to VideoPlayer, that has built-in buttons (play, stop, pause, ...), progress bar, volumn control...?

  • Condition Record Table Download from R/3-CRM

    Hi, We have created the condition table A922 in the R/3 system we have used the Tcode CND_MAP_CUST_CORR to generate the condition table and downloaded the objects DNL_CUST_CND,DNL_CUST_CNDALL and DNL_CUST_PRC But the new condition table is not gettig

  • Request status changed!

    Hi, in the manage tab of data target when i see the status of the request it is yellow and added records and transferred records has adifference of almost 40000. but when i click monitor button, it goes to the monitor screen with following msg      "