Getin error when implementing BADI

Hi All,
   I am geting an error while I am trying to implement the BADI FISPLIT.
  The error is "BADI definaition is FISPLIT is only provided for SAP internal use". how can I implement this BADI.
   Can anyone help me please.
Thanks.
lucky

That message leads me to believe that you can't implement this BADi as it suggests that it is for SAP internal use only.  If this is an hard error, I don't think that you will be able to proceed.
Regards,
Rich Heilman

Similar Messages

  • Graphics tab in REBDBU: Internal error when implementing extension

    Hello,
    Seek your kind help please.
    I have entered in the building master data using REBDBE. We have a tab called Graphics. The pictures etc of the building are uploaded using a software called Korasoft. When i am clicking on the Graphics tab, it is entering the screen but immediately afterwards flashing the following message, "Internal error when implementing extension".
    Doing a F1 on the error message shows the foll details:
    "Diagnosis
    An internal error occurred during the implementation of a customer-specific enhancement. A CHANGE-API module was called with an object reference (parameter IO_OBJECT) that was not instantiated in the required activity for changing (02). The API modules are function modules and begin with API_RE_.
    Procedure
    Within the BAdI implementation, transfer the parameter IO_OBJECT from the BAdI method directly to the API module. Make sure that the transferred instance is allowed to be changed."
    I found that the SAP note 1139014 causes this error message to be generated. Note 1139014 forms a part of support pack level 13 (release 600). Recently we have upgraded our systems from support pack level 8 to support pack level 13. Naturally even this note got implemented at that time.
    But now this note is causing this error message and so I will be grateful if someone can please tell me how to rectify the error.
    Regards,
    Suvarghya Dutta
    Edited by: Suvarghya Dutta on Feb 11, 2009 5:30 PM

    Hi Fabio,
    I would kindly ask you appy the SAP note [1521903|https://service.sap.com/sap/support/notes/1521903] and proceed as described in the note to resolve the issue.
    Hope this information is helpful for you.
    Regards, Franz

  • Internal error when implementing extension

    Hello everyone
    At the moment I create a new contract (transaction RECN) an error occurs and I can not solve.
    Someone could help me?
    Internal error when implementing extension (see long text)
    Message no. RECAAP093
    Diagnosis
    Call of GET_EXTENSION( ) method for enhancement CL_FILACI_VICN01_EXTENSION failed.
    It tried to use an add-on or customer-specific enhancement that is not implemented in your system.
    To be able to determine the technical attributes of enhancement CL_FILACI_VICN01_EXTENSION, the RECA_STORABLE_EXT Business Add-In has to supply the desired information. However, this was not the case. In an implementation of RECA_STORABLE_EXT, the GET_OBJNAME_EXT( ) method must supply the required enhancement CL_FILACI_VICN01_EXTENSION.
    Below is example code for GET_OBJNAME_EXT( ):
    CASE ID_OBJNAME_STD.
        WHEN '...'.
          APPEND 'CL_FILACI_VICN01_EXTENSION' TO CT_OBJNAME_EXT.
      ENDCASE.
    For more information, refer to the documentation for the RECA_STORABLE_EXT Business Add-In.
    Start BAdI Builder
    Procedure
    Contact your system administrator.
    tks a lot!

    Hi Fabio,
    I would kindly ask you appy the SAP note [1521903|https://service.sap.com/sap/support/notes/1521903] and proceed as described in the note to resolve the issue.
    Hope this information is helpful for you.
    Regards, Franz

  • Unicode error when implementing a BADI

    Hi All,
    I get a Unicode error when trying to implement either one of these two BADIs: ME_GUI_PO_CUST, ME_PROCESS_PO_CUST:
    In Unicode programs, the "-" character cannot appear in names, as it does here in the name "MMCNT_EKKO-BEDAT".
    There are two more similar errors. They all refer to the type group MMCNT, which is an SAP delievered object and is active. Has anyone ever encountered these errors?
    Thanks!
    Roman D.

    Hi,
    You did not mention which version of SAP you're using, but I just thought that the OSS Note 829031 might be relevant for you.
    Regards,
    Anand Mandalika.

  • Error when implementing CUA

    Hi,
    I wanted to implement a test of CUA with my DEV systems (DEV R3, DEV BW, and DEV SRM). When i've created the model distribution in my central system (DEV R3 client 030), and saved the model, i had the following error in my child system (DEV SRM) : "ERROR when starting the text comparison". I didn't have any error in the other systems (DEV R3 and DEV BW).
    I've checked my RFC connections, I don't know how to sove this problem.
    Thanks in advance for your aswers...
    Regards,
    Mohamed

    OK, I've solved the problem by myself.
    In fact, I didn't have an RFC user connection between my child system DEV SRM and my central system DEV R3. I had just RFC users connection between my central system and my child systems...
    Mohamed

  • How to catch thrown error when implementing HttpSessionBindingListener?

    I would like to write code to implement the class HttpSessionBindingListener for using the valueBound and valueUnBound method.
    As I have put some codes for inserting data in database when the valueBound method is invoked, I would like to catch the SQLException error when insertion fails. However, when i try the following:
    public class SessionTracker implements HttpSessionBindingListener
    throws Exception{
    Compilation error like the following appears:
    Class SessionTracker should be declared abstract; it does not define method valueUnbound(javax.servlet.http.HttpSessionBindingEvent) in interface javax.servlet.http.HttpSessionBindingListener
    My question is: How can I throw caught error?
    Thanks for replying!

    May be i should clarify a little bit?
    My question is: What error would the implemented method throw?

  • " Path not found() "error when implementing single sign on

    Hi,
    We are implementing single sign on so that when users click on the "Reports Login" he is navigated to the obiee presentation services screen. For the reports login we have a .asp page which directs to the presentation services.
    I have done the necessary changes in the instanceconfig and credentialstore xml files.
    I have been receiving a strange error when I click on the reports login. I get the error
    Path not found ()
    Error Details
    Error Codes: U9KP7Q94
    I have checked the presentation server log file and I see the below error
    Type: Error
    Severity: 45
    Time: Tue Mar 09 09:18:44 2010
    File: project/websubsystems/ssportal.cpp Line: 1907
    Properties: ThreadID-2672;HttpCommand-Dashboard;Proxy-;RemoteIP-127.0.0.1;User-;Impersonator-
    Location:
         saw.subsystem.portal
         saw.httpserver.request
         saw.rpc.server.responder
         saw.rpc.server
         saw.rpc.server.handleConnection
         saw.rpc.server.dispatch
         saw.threadPool
         saw.threads
    Path not found ()
    Can anyone provide me an input how to resolve this issue?
    This is bit urgent for me.
    Thanks

    Hi,
    Please ensure that the navigational attribute is checked at the attribute level and also at the Infocube level and also check that correct mapping of this navigational attribute is done at the Multiprovider level.
    Thanks,
    Venkat

  • ODBC Error when implementing BI Apps on SQL Server

    Hey,
    we are implementing BI Apps using SQL Server as the warehouse database, and we are running into the following errors when viewing the out-of-the-box reports:
    [ODBC SQL Server Driver][SQL Server]'concat' is not a recognized built-in function name
    [ODBC SQL Server Driver][SQL Server]Incorrect syntax near 'NULLS'..
    It appears that the standard reports are using Oracle-specific SQL functions that are not available in SQL Server. Yet BI Apps is supposedly certified with SQL Server.
    Have anyone else run into this issue? If so, how did you get around it?
    Thanks,
    Yi

    Ah, sorry, I misunderstood.
    Yes, the CONCAT_SUPPORT feature is checked for both value and default. However, CONCAT_NULL_RETURNS_NULL is not checked. Should I check it?
    It's great to know that you have it working on SQL server. I must be missing some configuration then.
    Thanks,
    Yi

  • Getting Exception when implementing badi 'hrpad00inftydb'

    Hi friends..
    My need is to update infotype 0207 when ever employee changes address thru ess.
    I implemented the badi 'HRPAD00INFTYDB' and inside it called 'HR_MAINTAIN_MASTERDATA'. But its giving the following two exception :
    1. Exception 'CX_HRPA_VIOLATED_PRECONDITION' occured in the    
        procedure "INITIALISE_PS_ADAPTER'.
    2. Exception named 'cx_sy_ref_is_initial' occured in the procedure 'HRXSS_PER_CLEANUP'.
    I have checked the implementation by running it separately. It is working fine and is updating 0207.
    Bt when i do the address change through portal, it is giving the above mentioned exceptions.
    Please post a solution, if possible.
    Thanks and Regards.
    abhi

    encountering the same error
    anybody has answer to these? why is the standard old FM for updating infotypes is not supported by this BADI?

  • Error while implementing BADI ME_GUI_PO_CUST

    Hi Experts,
    My requirment is to add a new tab in ME21N screen.We have to implement the BADI ME_GUI_PO_CUST and methods SUBSCRIBE and MAP_DYNPRO_FIELDS will create a new tab.however i have got a problem in method MAP_DYNPRO_FIELDS.
    i have defined 2 z fields and i have appended it in EKKo as well.now in method MAP_DYNPRO_FIELDS i have written the code like this...
    LOOP AT ch_mapping ASSIGNING <mapping>.
        CASE <mapping>-fieldname.
          WHEN 'ZZPAYMENT_AGRE'.      <mapping>-metafield =mmmfd_cust_03.      "mmmfd_mat_grp.
          WHEN 'ZZPROJECT'.           <mapping>-metafield = mmmfd_cust_04.
        ENDCASE.
      ENDLOOP.
    if i do like that...it's not displaying the new tab but when i replace any of the custome fields(mmmfd_cust_03,mmmfd_cust_04) with  "mmmfd_mat_grp.it is displaying the new tab.
    can any one tell me what is the wrong in my code.

    solved by myself

  • Error when implementing JPA domain model in separate JAR module

    Hi,
    I'm using JPA/TopLink Essentials to implement my domain model and services. From an architectural viewpoint I want to implement this as seperate Java project, while my View/Controller is implemented in another Java project. This last project has a dependency on the Model project. Deployment on an OC4J 10.1.3 is ok, but when I use a JSP, I get the following error. (Note that directly implementing my JPA classes in the View/Controller project does not give any errors.)
    Thanx, Ronald
    java.lang.NullPointerException     at oracle.toplink.essentials.ejb.cmp3.persistence.ArchiveFactoryImpl.createArchive(ArchiveFactoryImpl.java:64)     at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.findPersistenceArchives(PersistenceUnitProcessor.java:227)     at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.findPersistenceArchives(PersistenceUnitProcessor.java:210)     at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:239)     at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initializeFromMain(JavaSECMPInitializer.java:278)     at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.getJavaSECMPInitializer(JavaSECMPInitializer.java:81)     at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:119)     at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)     at com.trfsol.model.JPAResourceBean.getEMF(JPAResourceBean.java:23)     at com.trfsol.model.Service.getEmp(Service.java:28)     at com.trfsol.JPAServlet.doGet(JPAServlet.java:24)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)

    Servlet class:
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              Collection<Emp> emps = new Service().getEmp();
              for (Emp emp : emps) {
                   System.out.println("Emp " + emp.getEname());
    In which the Service class comes from the Model project.
    Service class:
    public EntityManagerFactory getEMF () {
    if (emf == null) {
    emf = Persistence.createEntityManagerFactory("default", new java.util.HashMap());
    return emf;
    public Collection<Emp> getEmp(){
    EntityManagerFactory emf = getE
    EntityManager em = emf.createEntityManager();
    try{
    Collection<Emp> result = em.createNamedQuery("findAllEmps").getResultList();
    return result;
    finally{
    em.close();
    Persistence.xml (in the META-INF dir of the Model project)
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">
    <persistence-unit name="default" transaction-type="RESOURCE_LOCAL">
    <provider>
    oracle.toplink.essentials.PersistenceProvider
    </provider>
    <class>com.trfsol.Dept</class>
    <class>com.trfsol.Emp</class>
    <properties>
    <property name="toplink.logging.level" value="FINE"/>
    <property name="toplink.jdbc.driver" value="oracle.jdbc.OracleDriver"/>
    <property name="toplink.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:ORCL"/>
    <property name="toplink.jdbc.password" value="tiger"/>
    <property name="toplink.jdbc.user" value="scott"/>
    </properties>
    </persistence-unit>
    </persistence>
    Regards, Ronald

  • AclOwner not owner error when implementing RDBMSRealm

    I am implementing a RDMBSRealm on WL6.1sp1. When I add an ACL/permission and
    grant it to a group, I got an error.
    I tried the example RDBMSRealm. I found out that adding groups and acls are
    actually persisted into the fileRealm,
    Only adding users are persisted to the database. What did I miss? Any
    suggestions will be appreciated.
    java.lang.InternalError: aclOwner not owner
         at
    weblogic.security.acl.internal.FileRealm.setPermission(FileRealm.java:871)
         at weblogic.security.acl.CachingRealm.setPermission(CachingRealm.java:1985)
         at
    weblogic.management.internal.RemoteRealmManagerImpl.grantPermission(RemoteRe
    almManagerImpl.java:270)
         at weblogic.management.configuration.Acl.grantPermission(Acl.java:72)
         at
    weblogic.management.console.actions.realm.DoAclPermissionFormAction.perform(
    DoAclPermissionFormAction.java:120)
         at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:167)
         at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
         at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
         at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2456)
         at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2039)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.management.configuration.RealmException: Acl.grantPermission - with
    nested exception:
    [java.lang.InternalError: aclOwner not owner]
         at weblogic.management.configuration.Acl.grantPermission(Acl.java:74)
         at
    weblogic.management.console.actions.realm.DoAclPermissionFormAction.perform(
    DoAclPermissionFormAction.java:120)
         at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:167)
         at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
         at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
         at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2456)
         at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2039)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Console Release Build6.1.1.0Server Release Build6.1.1.0Server BuildWebLogic
    Server 6.1 SP1 09/18/2001 14:28:44 #138716 All Server Product
    VersionsWebLogic Server 6.1 SP1 09/18/2001 14:28:44 #138716 WebLogic XML
    Module 6.1 SP1 09/18/2001 14:43:02 #138716

    Hey,
    Are you guys trying to add functionality to the RDBMSRealm so that you can edit
    ACLs in the database, using the WebLogic Console management tools? In other
    words, is your final goal to be able to create (or remove) an ACL in your
    console, and have the changes persisted to the database? I don't quite
    understand what the problem is, based on the description. If you could
    elaborate it would help me to understand what's going on.
    Thanks
    Joe Jerry
    K Wong wrote:
    I tried "unperson". Same error. Do I need to create this user "unperson" in
    my db users table and put it "Administration" group?
    The problem seems to be raised from weblogic...setPermission. I wish I could
    debug into this code or at least System.out.println some contents.
    "Marek Sz." <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    in oryginal example aclOwner is defined in RDBMSDelegate :
    * This is the bogus owner associated with all ACLs found in the
    * database.
    protected Principal aclOwner = new User("unperson");
    Ty to use this Principal.
    Regards
    Marek Sz.
    K Wong wrote:
    I am implementing a RDMBSRealm on WL6.1sp1. When I add an ACL/permission
    and
    grant it to a group, I got an error.
    I tried the example RDBMSRealm. I found out that adding groups and aclsare
    actually persisted into the fileRealm,
    Only adding users are persisted to the database. What did I miss? Any
    suggestions will be appreciated.
    java.lang.InternalError: aclOwner not owner
    at
    weblogic.security.acl.internal.FileRealm.setPermission(FileRealm.java:871)
    atweblogic.security.acl.CachingRealm.setPermission(CachingRealm.java:1985)
    at
    weblogic.management.internal.RemoteRealmManagerImpl.grantPermission(RemoteRe
    almManagerImpl.java:270)
    atweblogic.management.configuration.Acl.grantPermission(Acl.java:72)
    at
    weblogic.management.console.actions.realm.DoAclPermissionFormAction.perform(
    DoAclPermissionFormAction.java:120)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:167)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2456)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.management.configuration.RealmException: Acl.grantPermission -with
    nested exception:
    [java.lang.InternalError: aclOwner not owner]
    atweblogic.management.configuration.Acl.grantPermission(Acl.java:74)
    at
    weblogic.management.console.actions.realm.DoAclPermissionFormAction.perform(
    DoAclPermissionFormAction.java:120)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:167)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2456)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Console Release Build6.1.1.0Server Release Build6.1.1.0ServerBuildWebLogic
    Server 6.1 SP1 09/18/2001 14:28:44 #138716 All Server Product
    VersionsWebLogic Server 6.1 SP1 09/18/2001 14:28:44 #138716 WebLogicXML
    Module 6.1 SP1 09/18/2001 14:43:02 #138716

  • Code generation error when implementing an accumalator

    Hi everyone,
    I am implementing an accumalator which implements X = X + Y where X and Y are memories of length say 5. Initially I write 5 values into X and Y using a for loop. Then I perform the addition inside a single cycle timed loop and store the results in a temporary buffer(another memory) again of length 5. In another single cycle timed loop, I copy the data from the temporary buffer to memory X.
    I changed the arbitration option to never arbitrate for X, but I get a code generation error because of arbitration. Could anybody please tell how to solve this problem.
    Regards,
    Prashant
    Solved!
    Go to Solution.

    Hi NitzZ
    I figured out a way to solve the problem. I chose the "Never Arbitrate" option for all memories and replaced the for loop with a timed loop. Now there are no errors.
    Thanks,
    Prashant

  • Error when implementing "IXMLDOMNode" from MSXML2

    Dear all,
    in VBA I've been building a new class implementing "IXMLDOMNode" from MSXML2. The result of genarating the Property "get" and "let" functions für "dataType" is the following:
    Private Property Let IXMLDOMNode_dataType(ByVal RHS As String)
    End Property
    Private Property Get IXMLDOMNode_dataType() As Variant
    End Property
    As shown, the type is not the same for both: "variant" respectively "string". At the end "variant" is correct, I've checked in objectcatalog.  This code cannot be compiled of course and
    changing "string" to "variant" leads to another error: "The type is not the same as in a function with the same Name".
    I currently don't see a solution, any suggestions?
    Jürgen

    Servlet class:
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              Collection<Emp> emps = new Service().getEmp();
              for (Emp emp : emps) {
                   System.out.println("Emp " + emp.getEname());
    In which the Service class comes from the Model project.
    Service class:
    public EntityManagerFactory getEMF () {
    if (emf == null) {
    emf = Persistence.createEntityManagerFactory("default", new java.util.HashMap());
    return emf;
    public Collection<Emp> getEmp(){
    EntityManagerFactory emf = getE
    EntityManager em = emf.createEntityManager();
    try{
    Collection<Emp> result = em.createNamedQuery("findAllEmps").getResultList();
    return result;
    finally{
    em.close();
    Persistence.xml (in the META-INF dir of the Model project)
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">
    <persistence-unit name="default" transaction-type="RESOURCE_LOCAL">
    <provider>
    oracle.toplink.essentials.PersistenceProvider
    </provider>
    <class>com.trfsol.Dept</class>
    <class>com.trfsol.Emp</class>
    <properties>
    <property name="toplink.logging.level" value="FINE"/>
    <property name="toplink.jdbc.driver" value="oracle.jdbc.OracleDriver"/>
    <property name="toplink.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:ORCL"/>
    <property name="toplink.jdbc.password" value="tiger"/>
    <property name="toplink.jdbc.user" value="scott"/>
    </properties>
    </persistence-unit>
    </persistence>
    Regards, Ronald

  • CFMAIL error when encountering bad address

    Hello
    I have an app running with approx 6,000 signees. I try to ensure their email going in the DB is validated via javascript- but this not totally effective.
    What code could I write in the CFmail tag that would ignore bad emails, send the meassage without errors, and perhaps even list the bad mail addresses?
    Thanks in advance
    Norman B.

    You may have to validate the e-mails one by one. You could loop through the e-mail addresses, and do something like
    <cfloop>
    <cfset isFromEmailValid = isValid("email", fromEmail)>
    <cfset isToEmailValid = isValid("email", toEmail)>
    <cfset isSubjectValid = len(trim(subject))>
    <cfif isFromEmailValid and isToEmailValid and isSubjectValid>
        <cfmail from="#fromEmail#" to="#toEmail#" subject="#subject#"></cfmail>
      <cfelse>
        <!--- log details of unsent mail--->
      </cfif>
    </cfloop>
    However, as you can easily guess, this method is unsuitable for large e-mail jobs
    [Edited: my initial response had crossed Adam's on the wire.]

Maybe you are looking for

  • Excel with powershell and this big problem of locale

    Hi Folks, I'm getting C R A Z Y with this Excel/Powershell Stuff... MY display language is EN My input language is fr_CH the following code :  function Invoke([object]$m, [string]$method, $parameters) $m.PSBase.GetType().InvokeMember( $method, [Refle

  • My 4s battery lasts at most 6 hrs???

    my 4s is very poor at time performance.. I have to carry a charging cord and hope for outlet when I am away from home?

  • Session Facade and Access to a Non SQL Based Persistent Data Store

    Hi, We are currently using jDeveloper 10.1.3.5 and Oracle Application Server 10.1.3.5. We develop all our applications as Java portlets using Oracle PDK and they are exposed through Oracle Portal. In our environment, the persistent data is stored on

  • Why Adobe Reader miss-renders this PDF

    I have this PDF file: http://speedy.sh/jkSCE/12.-signed-new2.pdf Acrobat Reader renders the fields terrribly (there are letters missing in the fields at the end of the document), while Acrobat Pro displays it fine. What is going on here? This PDF is

  • Sol 9 x86 AMD installation

    Hey all. I'm in a rut career wise and decided to get certified w/Solaris. I ordered the x86 version, and I'm running into problems already. When using CD1 or the installation CD, I get the same following error: config error - missing controller? file