Internal error - NUMBER_GET_NEXT call error while craeating new company address

Dear Team,
In solution manager while we going to create company address through tcode SUCOMP and during saving the record error message occur as "Internal error -NUMBER_GET_NEXT call error".
Please suggest for solution
Regards,
Ajay

Dear Mr. Rafikul,
There is no ABAP dump but in SM21 there are error message:-
"Documentation for system log message D0 1 :
The transaction has been terminated.  This may be caused by a
termination message from the application (MESSAGE Axxx) or by an
error detected by the SAP System due to which it makes no sense to
proceed with the transaction.  The actual reason for the termination
is indicated by the T100 message and the parameters.
Additional documentation for message E0                  022
EDI: Error process code '&' is not available
&CAUSE&
A syntax error was identified while processing an inbound
<DS:GlOS.IDoc>IDoc. There is no entry with the key &v1& in 'Error
process codes'. However, this process code was determined from the
table of status values (TEDS1).
&WHAT_TO_DO&
Please check the 'Error process codes'.
IF &DEVICE&='SCREEN'
<DS:TRAN.WE40>Execute function
ENDIF
One document format shows more"
Now my one of problem solved. When i have go to SU01 and checked in address tab, its work now. Earlier its was not work.May be executed the report Z_OSSNOTE_445575 in system, its should be working. Thanks for your answer.
But till m facing in SUCOMP for creating company address.
Regards,
Ajay Asawa

Similar Messages

  • ERROR = C call error 084(SPOC): area POSSUTIL unknown [rspoabap.c   639]

    Dear experts,
    can anybody give me a hint about the error mentioned above?
    I found the SAP Note 1049778 but this is not applicable. Yes, we do have this error in some workprocess trace-files and it seems to be produced during printing SAPScript. But it has nothing to do with special print options. I'm now looking for other ideas about the real cause of error.
    Regards,
    Hans-Martin

    Well, here are the relevant lines of the trace dev_w1 of the related work process:
    S                                                                               
    S Tue Aug 12 09:46:26 2008                                                     
    S  *** ERROR => C call error 084(SPOC): area POSSUTIL unknown [rspoabap.c   639]
    S                                                                               
    S Tue Aug 12 09:46:27 2008                                                     
    S  *** ERROR => C call error 084(SPOC): area POSSUTIL unknown [rspoabap.c   639]
    S                                                                               
    S Tue Aug 12 09:46:33 2008                                                     
    S  *** ERROR => C call error 084(SPOC): area POSSUTIL unknown [rspoabap.c   639]
    S                                                                               
    S Tue Aug 12 09:46:37 2008                                                     
    S  *** ERROR => C call error 084(SPOC): area POSSUTIL unknown [rspoabap.c   639]
    S                                                                               
    S Tue Aug 12 09:46:39 2008                                                     
    S  *** ERROR => C call error 084(SPOC): area POSSUTIL unknown [rspoabap.c   639]
    S                                                                               
    S Tue Aug 12 09:46:44 2008                                                     
    S  *** ERROR => C call error 084(SPOC): area POSSUTIL unknown [rspoabap.c   639]
    S                                                                               
    S Tue Aug 12 09:46:57 2008                                                     
    S  *** ERROR => C call error 084(SPOC): area POSSUTIL unknown [rspoabap.c   639]
    S                                                                               
    S Tue Aug 12 09:46:58 2008                                                     
    S  *** ERROR => C call error 084(SPOC): area POSSUTIL unknown [rspoabap.c   639]
    S  *** ERROR => C call error 084(SPOC): area POSSUTIL unknown [rspoabap.c   639]
    S                                                                               
    S Tue Aug 12 09:47:00 2008                                                     
    S  *** ERROR => C call error 084(SPOC): area POSSUTIL unknown [rspoabap.c   639]
    Hope this helps.
    Regards The specified item was not found.

  • Internal error while creating new company in sap b1 pl 05

    Hi all
    I installed sap b1 server and clint in PL 05 for USA localization but when I m trying to create new company from login screen system start to create tables but after some time its giving error ''Internal error 101, then system showing that company in list but its not working
    Please help me out
    RIcky

    Hi Ricky,
    We had a similar issue and found we had to create the database on another server & restore it. I think, but didn't get around to proving, that the issue occurs where the license service is running using trusted connections

  • Error in message monitoring while creating new record in R/3

    Hi All,
    I am getting the following error in message monitoring while creating a new record from SAP Mobile client.
    Service name: Validation_Service
    Message: BackendKeys are not filled in table HEADER returned by getDetails
    I am passing some random number from Client to SAP R/3 create function module.
    When i pass the same value in create FM as in message monitoring. I am able to create the record successfully,
    Corresponding to newly created record, i can see the data in getdetail header also.
    Not sure why this error is coming.
    Appreciate your help!!
    Thanks & Regards
    Devendra

    The CREATE FM should not only create the entry, it should also EXPORT the key that it uses to create the entry. Is it doing that?
    i.e. the CREATE signature is usually something like:
    CREATE_BLAH
      IMPORTING header TYPE header_row
      EXPORTING key type header_row-key_field.
    So the 'key' here should be filled by the FM and returned to DOE.

  • Error In enterprise Manager while deploying New RPD

    Hi all,
    When i was deploying new RPD , BI publisher and Oracle RTD status shows down (under internal Applications)
    Can any one please help me out this problem.
    Thanks in Advance
    Satish

    Thanks for your replies !!
    In any of the RPD deployments I'm getting the same error , not for some particular RPD .
    FYI , yesterday (before this issue) I had a issue with starting presentation services , so as adviced in forum I replaced the files sawguidstate and sawguidstate.atrin the location:
    <Instance_Home>\instances\<instance_name>\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1\catalog\<project>\root\system\mktgcache\<name>
    with the same files from a backup or from another working OBIEE 11g (11.1.5)instance.
    plese refer : Re: Unable to start presentation services , in OBIEE 11g
    Is this causing the deployment issue ?

  • ERROR :APP-PER-289381  While Creating New Business Group

    Hello,
    When i am creating new business group in new fresh implementation i am find this error.
    APP-PER-289381: A business group with this name exists. Please enter a different name.
    I have only Default business group: 'Setup Business group'
    Please can any provide a solution for this.. Your early response will highly appreciated.
    Thanks
    Mohsin

    Hi Mohsin,
    whatever name you are trying just run the below query to check if it already exists or not.
    select * from apps.per_business_groups where name = 'Give here the name you are tyring'
    If this returns any row means name already exist in deed. You can rename the existing business group and then create new on. However, if name doesnt exist, wait for any other reply in the forum.
    Thanks,
    Avinash

  • Error VF 047 & 048 while creating Inter company billing

    Hi,
    Getting an error
    VF047 // Bill to party can not be determined
    VF048 // Payer can not be determined
    while cteating billing (IV) after PGI of delivery (NLCC) from inter company Stock transport order.
    Found a note 860311 relevant , but do not get clearly what needs to be done.
    Thanks in advance , if some one can assist.
    With regards,
    Mrinal

    Found a note 860311 relevant , but do not get clearly what needs to be done
    Below is the solution given in the above note.  This means, you have to download this note so that system wont give any such error message.
    Solution+
    A solution is possible only by means of a modification.
    During the billing in the standard system, it is assumed that the check of the used partners occurs in the reference document (sales and delivery document) and the imported partners contain no errors.
    +With the attached modification proposal, warning and information messages (type 'W' and 'I') are no longer output.
    thanks
    G. Lakshmipathi

  • Internal Order number is copied while cretaing new SC from Old PO

    Hi,
    We are on SRM 5.0. When i tried to create a new shopping cart through by copying the old shopping cart from 'Old Purchase Orders and templates' the Internal Order number is also being copied which is a problem.
    I appreciate any help.
    Thank you

    Hi..
    Thanks for the response. Yes we are using using internal order(IO) in account assignment.
    This creates a problem, because the approver is unable to identify if the PR is  one which is already approved that was rejected by someone else (so therefore doesn't need a new IO), or whether it's a brand new PR that needs a new IO.
    So is there someway so that the cost assignment does NOT get copied onto the new PR? Any relevant BADI's that can be used ?
    Thanks.

  • Error in calling stored procedure

    PROBLEM RESOLVED !!! PLEASE IGNORE
    THANKS
    Hi i am a newbie. I am trying to call a stored procedure but landed up with error.
    calling like :
    CallableStatement callStmt = objDBHandler1.getCallableStatement("{call PKG.calc_sa_premium(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}");
    Error :
    00:34:33,031 INFO [STDOUT] before prepare call callable stmt is =========>{call PKG.calc_sa_premium(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
    00:34:33,031 ERROR [STDERR] java.lang.NullPointerException
    00:34:33,031 ERROR [STDERR]      at com.db.DBHandler1.getCallableStatement(DBHandler1.java:199)
    00:34:33,031 ERROR [STDERR]      at com.team.bi.calculator.execute(calculator.java:168)
    00:34:33,031 ERROR [STDERR]      at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
    00:34:33,031 ERROR [STDERR]      at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
    00:34:33,031 ERROR [STDERR]      at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
    00:34:33,031 ERROR [STDERR]      at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
    00:34:33,031 ERROR [STDERR]      at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
    00:34:33,031 ERROR [STDERR]      at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
    00:34:33,031 ERROR [STDERR]      at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
    00:34:33,031 ERROR [STDERR]      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
    00:34:33,031 ERROR [STDERR]      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
    00:34:33,031 ERROR [STDERR]      at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    00:34:33,031 ERROR [STDERR]      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    00:34:33,031 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    00:34:33,031 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    00:34:33,031 ERROR [STDERR]      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    00:34:33,031 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    00:34:33,031 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    00:34:33,031 ERROR [STDERR]      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    00:34:33,031 ERROR [STDERR]      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    00:34:33,031 ERROR [STDERR]      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
    00:34:33,031 ERROR [STDERR]      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    00:34:33,031 ERROR [STDERR]      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    00:34:33,031 ERROR [STDERR]      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    00:34:33,031 ERROR [STDERR]      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    00:34:33,031 ERROR [STDERR]      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    00:34:33,031 ERROR [STDERR]      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    00:34:33,031 ERROR [STDERR]      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    00:34:33,031 ERROR [STDERR]      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    00:34:33,031 ERROR [STDERR]      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    00:34:33,031 ERROR [STDERR]      at java.lang.Thread.run(Unknown Source)
    00:34:33,031 INFO [STDOUT] Error in calling Procedure while getting Total Premium:java.lang.NullPointerException
    Please let me know if you have any clue.
    Thanks
    Edited by: newbie123 on Nov 29, 2009 1:59 PM
    Edited by: newbie123 on Nov 29, 2009 1:59 PM

    yes,
    here is the code
    callStmt.setString(1,aa);
    callStmt.setString(2,bb);
    callStmt.setString(3,cc);
    callStmt.setInt(4,dd);
    callStmt.setInt(5,ee);
    callStmt.setString(6,ff);
    callStmt.setString(7,gg);
    callStmt.setString(8,hh);
    callStmt.setDouble(9,ii);
    callStmt.setString(10,jj);
    callStmt.setString(11,kk);
    callStmt.setInt(12,ll);
    callStmt.setString(13,mm);
    callStmt.setInt(14,nn);
    callStmt.setString(15,oo);
    callStmt.setString(16,pp);
    /* callStmt.registerOutParameter(17, OracleTypes.CURSOR);
    callStmt.registerOutParameter(18, OracleTypes.CURSOR);
    callStmt.registerOutParameter(19, OracleTypes.CURSOR);
    callStmt.registerOutParameter(20, OracleTypes.CURSOR);
    callStmt.registerOutParameter(21, OracleTypes.CURSOR);
    callStmt.registerOutParameter(22, OracleTypes.CURSOR);*/
    callStmt.registerOutParameter(17,OracleTypes.NUMERIC);//prem
    callStmt.registerOutParameter(18,OracleTypes.NUMERIC);//st
    callStmt.registerOutParameter(19,OracleTypes.NUMERIC);//tp
    callStmt.registerOutParameter(20,OracleTypes.NUMERIC);//sa
    callStmt.registerOutParameter(21,OracleTypes.VARCHAR);//text
    callStmt.registerOutParameter(22,OracleTypes.VARCHAR);//text1

  • Error in creating new Company

    Hi All,
    I am getting error when i tried to create new company that "Error in Creating files".
    This Error is comming after some tables are created and Finally
    new company is created but some data like GL Accounts,Languages,... etc are not cop[ied
    Plaese resolve the problem
    Regards
    Srinivas

    Hi Sura,
    When you failed to create a new company, nothing can be done but recreate a new one as soon as you find where it went wrong.  Log to SAP support might the one viable choice if you could not figure it out.
    Thanks,
    Gordon

  • Error while creating inter-company invoice  for stock transport

    Hi ,
    I am facing following errors while creating inter-company invoice for STO order.
    We have scenario where standard PO is created in  company code A  & then replenishment delivery is created in company code B.While raising inter-company invoice to company code A, we are facing problem.
    In replenishment delivery we have 10 line items. But  when we try to do inter company invoice through VF01/VF04 we get following log
    XXXXXXXXXX(delivery Number) 000000 Customer XXXXX: Customer master table KNVV is missing (VF-022)
    XXXXXXXXXX (delivery Number)000010 The bill-to party could not be determined (VF-047)
    XXXXXXXXXX (delivery Number)000010 The payer could not be determined (VF-048)
    With this first line item from delivery is not flows to invoice & if we saves this invoice then it is get saved with account determination error as some of the data does not comes into invoice header like account assignment group for customer, Payment term, destination country,region, tax classification for customer etc. That means invoice gets created without first line item from delivery with account determination error & so,no accounting document gets generated.
    I checked customer master for all SP,SH,BP,PY they are correctly maintained.This was working fine few months back, but not working now.
    If anybody had come across such kind of scenario, your valuable inputs will be highly appreciated.
    Thanks & kind regards,
    Ganesh Palatshaha

    Hello
    Kindly check the sales area of customer involved, whether the customer maintain with sales area for STO.
    If that is note the case the refer following link:
    - Error VF 047 & 048 while creating Inter company billing
    Regards
    JP

  • Unable to create New Company

    We are using SAP business One 2005 B  SP00 PL 06 , while creating New Company it display error message like entry already exist in table SEWSY.
    Please provide help.

    hi bhavnish,
    i think you have to restart your system and then again try to create new company.
    i have try to create a company, its not given any error to me.
    i you able to check your database, then make sure SEWSY table in SBO_COMMON database are blank.
    i have checked my database, this table does not have any value.
    hope it will help.

  • Creating new company in sap b1 8.8

    Hi
    While creating new company in SAP-B1 8.8, it's giving me the following information.
    "Company was not added to read-only DB user. Read-only DB user must be updated manually"
    I had also given the SITE password and created  the new company successfully.
    Can anyone help me on this please.
    regards
    Sriram.L

    Hi Deepak
    Thanks for Your response.
    I followed the steps you mentioned. While doing that, it's asking for Read Only Db User ID & Password.  If i give new ID & Password it gives the following information.
    "A Read Only DB USER is assigned for all Company Database, Adding a read only DB user is irreversible. Do you want to continue"
    Can you please guide me how this can be taken forward.
    regards
    Karthik

  • Error while adding new function to HRMS fast formula

    Hi,
    when i m trying to add a new external function to BG_ABSENCE_DURATION formula, it is getting verified successfully. But when i m trying to save it, it is giving error as below:
    APP-FF-33980: Internal error.
    A compilation error has been detected while attempting to generate package FFP294_01011900
    Please consult your system administrator.
    I have compliled the package successfully using TOAD and registered the function using Define Function form. Please help me to resolve this problem.

    Usually this error occurs when the called function has not been properly defined. You say you have defined it, but check that the parameters are the same in the FF call to the function and the function itself.
    If that is OK, I would then create a new FF with all the same code and try to save that
    Finally, if all else fails, check MetaLink as thee are a few references to other problems in this area which require patches to solve them.
    Regards
    Tim

  • Internal Server Error (circular reference detected while serializing: ....

    Hello Folks -
    I am trying to implement both ManyToMany and OneToMany relationships in J2EE EJB3.0.
    My application client has no problems, but when I expose my session bean methods as WebServices, I constantly run into this circular reference error.
    My example tables are simple:
    CREATE TABLE CLUB
    ID NUMBER NOT NULL,
    NAME VARCHAR2(100 BYTE) NOT NULL,
    CITY VARCHAR2(100 BYTE) NOT NULL,
    COUNTRY VARCHAR2(100 BYTE) NOT NULL
    TABLESPACE USERS
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    CREATE UNIQUE INDEX CLUB_PK ON CLUB
    (ID)
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    CREATE UNIQUE INDEX CLUB_UK1 ON CLUB
    (NAME, COUNTRY)
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    ALTER TABLE CLUB ADD (
    CONSTRAINT CLUB_PK
    PRIMARY KEY
    (ID)
    USING INDEX
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    ALTER TABLE CLUB ADD (
    CONSTRAINT CLUB_UK1
    UNIQUE (NAME, COUNTRY)
    USING INDEX
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    CREATE TABLE CONTRACTPERIOD
    ID NUMBER NOT NULL,
    PYR_ID NUMBER NOT NULL,
    CUB_ID NUMBER NOT NULL,
    START_DATE DATE NOT NULL,
    END_DATE DATE
    TABLESPACE USERS
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    CREATE UNIQUE INDEX CONTRACTPERIOD_PK ON CONTRACTPERIOD
    (ID)
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    ALTER TABLE CONTRACTPERIOD ADD (
    CONSTRAINT CONTRACTPERIOD_PK
    PRIMARY KEY
    (ID)
    USING INDEX
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    ALTER TABLE CONTRACTPERIOD ADD (
    CONSTRAINT CONTRACTPERIOD_FK
    FOREIGN KEY (PYR_ID)
    REFERENCES PLAYER (ID)
    ON DELETE CASCADE);
    ALTER TABLE CONTRACTPERIOD ADD (
    CONSTRAINT CONTRACTPERIOD_FK2
    FOREIGN KEY (CUB_ID)
    REFERENCES CLUB (ID)
    ON DELETE CASCADE);
    CREATE TABLE PLAYER
    ID NUMBER NOT NULL,
    FIRSTNAME VARCHAR2(30 BYTE) NOT NULL,
    LASTNAME VARCHAR2(30 BYTE) NOT NULL,
    NATIONALITY VARCHAR2(30 BYTE) NOT NULL,
    BIRTHDATE DATE NOT NULL
    TABLESPACE USERS
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    CREATE UNIQUE INDEX PLAYERS_PK ON PLAYER
    (ID)
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    ALTER TABLE PLAYER ADD (
    CONSTRAINT PLAYERS_PK
    PRIMARY KEY
    (ID)
    USING INDEX
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    Also the Stateless session bean is simple:
    package demo;
    import java.util.Collection;
    import java.util.List;
    import javax.ejb.Stateless;
    import javax.jws.WebService;
    import javax.persistence.EntityManager;
    import javax.persistence.EntityManagerFactory;
    import javax.persistence.EntityTransaction;
    import javax.persistence.Persistence;
    import javax.persistence.Query;
    @Stateless
    @WebService
    public class JavaServiceFacade {
    private EntityManagerFactory emf = Persistence.createEntityManagerFactory("demo-1");
    public JavaServiceFacade() {
    public static void main(String [] args) {
    final JavaServiceFacade javaServiceFacade = new JavaServiceFacade();
    // TODO: Call methods on javaServiceFacade here...
    Collection<Player> playerCollection = javaServiceFacade.queryPlayerFindAll();
    for (Player player : playerCollection){
    System.out.println(player.getFirstname()+" "+player.getLastname()+"\n");
    Collection<Club> clubCollection = (Collection<Club>)javaServiceFacade.queryClubFindAll();
    for (Club club : clubCollection){
    System.out.println(club.getName()+"\n");
    List<Contractperiod> contractperiodList= player.getContractperiodList();
    for (Contractperiod contractperiod : contractperiodList){
    System.out.println("contracts: "+ contractperiod.getClub().getName() + ": from: "
    contractperiod.getStartDate()" to: " contractperiod.getEndDate() "\n");
    private EntityManager getEntityManager() {
    return emf.createEntityManager();
    public Object mergeEntity(Object entity) {
    final EntityManager em = getEntityManager();
    try {
    final EntityTransaction et = em.getTransaction();
    try {
    et.begin();
    em.merge(entity);
    et.commit();
    } finally {
    if (et != null && et.isActive()) {
    entity = null;
    et.rollback();
    } finally {
    if (em != null && em.isOpen()) {
    em.close();
    return entity;
    public Object persistEntity(Object entity) {
    final EntityManager em = getEntityManager();
    try {
    final EntityTransaction et = em.getTransaction();
    try {
    et.begin();
    em.persist(entity);
    et.commit();
    } finally {
    if (et != null && et.isActive()) {
    entity = null;
    et.rollback();
    } finally {
    if (em != null && em.isOpen()) {
    em.close();
    return entity;
    /** <code>select o from Club o</code> */
    public List<Club> queryClubFindAll() {
    Query query = getEntityManager().createNamedQuery("Club.findAll");
    return (List<Club>) query.getResultList();
    public void removeClub(Club club) {
    final EntityManager em = getEntityManager();
    try {
    final EntityTransaction et = em.getTransaction();
    try {
    et.begin();
    club = em.find(Club.class, club.getId());
    et.commit();
    } finally {
    if (et != null && et.isActive()) {
    et.rollback();
    } finally {
    if (em != null && em.isOpen()) {
    em.close();
    /** <code>select o from Contractperiod o</code> */
    public List<Contractperiod> queryContractperiodFindAll() {
    Query query = getEntityManager().createNamedQuery("Contractperiod.findAll");
    return (List<Contractperiod>) query.getResultList();
    public void removeContractperiod(Contractperiod contractperiod) {
    final EntityManager em = getEntityManager();
    try {
    final EntityTransaction et = em.getTransaction();
    try {
    et.begin();
    contractperiod = em.find(Contractperiod.class, contractperiod.getId());
    et.commit();
    } finally {
    if (et != null && et.isActive()) {
    et.rollback();
    } finally {
    if (em != null && em.isOpen()) {
    em.close();
    /** <code>select o from Player o</code> */
    public List<Player> queryPlayerFindAll() {
    Query query = getEntityManager().createNamedQuery("Player.findAll");
    return (List<Player>) query.getResultList();
    public void removePlayer(Player player) {
    final EntityManager em = getEntityManager();
    try {
    final EntityTransaction et = em.getTransaction();
    try {
    et.begin();
    player = em.find(Player.class, player.getId());
    et.commit();
    } finally {
    if (et != null && et.isActive()) {
    et.rollback();
    } finally {
    if (em != null && em.isOpen()) {
    em.close();
    public void removeClub(Club player) {
    final EntityManager em = getEntityManager();
    try {
    final EntityTransaction et = em.getTransaction();
    try {
    et.begin();
    player = em.find(Player.class, player.getId());
    et.commit();
    } finally {
    if (et != null && et.isActive()) {
    et.rollback();
    } finally {
    if (em != null && em.isOpen()) {
    em.close();
    (A few commented lines, as I tried both OneToMany and ManyToMany...)
    my Webservice result, after deploying to OC4J Standalone, is always the same:
    Entity Beans:
    package demo;
    import java.io.Serializable;
    import java.util.Collection;
    import java.util.List;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.ManyToMany;
    import javax.persistence.NamedQuery;
    import javax.persistence.OneToMany;
    @Entity
    @NamedQuery(name = "Club.findAll", query = "select o from Club o")
    public class Club implements Serializable {
    @Column(nullable = false)
    private String city;
    @Column(nullable = false)
    private String country;
    @Id
    @Column(nullable = false)
    private Long id;
    @Column(nullable = false)
    private String name;
    @ManyToMany(mappedBy = "clubCollection",cascade={CascadeType.PERSIST})
    private Collection<Player> playerCollection;
    public Club() {
    public String getCity() {
    return city;
    public void setCity(String city) {
    this.city = city;
    public String getCountry() {
    return country;
    public void setCountry(String country) {
    this.country = country;
    public Long getId() {
    return id;
    public void setId(Long id) {
    this.id = id;
    public String getName() {
    return name;
    public void setName(String name) {
    this.name = name;
    public Collection<Player> getPlayerCollection() {
    return playerCollection;
    public void setPlayerCollection(Collection<Player> playerCollection) {
    this.playerCollection = playerCollection;
    public Contractperiod addContractperiod(Contractperiod contractperiod) {
    getContractperiodList().add(contractperiod);
    contractperiod.setClub(this);
    return contractperiod;
    public Contractperiod removeContractperiod(Contractperiod contractperiod) {
    getContractperiodList().remove(contractperiod);
    contractperiod.setClub(null);
    return contractperiod;
    package demo;
    import java.io.Serializable;
    import java.sql.Timestamp;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.NamedQuery;
    @Entity
    @NamedQuery(name = "Contractperiod.findAll",
    query = "select o from Contractperiod o")
    public class Contractperiod implements Serializable {
    @Column(name="END_DATE")
    private Timestamp endDate;
    @Id
    @Column(nullable = false)
    private Long id;
    @Column(name="START_DATE", nullable = false)
    private Timestamp startDate;
    @ManyToOne
    @JoinColumn(name = "PYR_ID", referencedColumnName = "ID")
    private Player player;
    @ManyToOne
    @JoinColumn(name = "CUB_ID", referencedColumnName = "ID")
    private Club club;
    public Contractperiod() {
    public Timestamp getEndDate() {
    return endDate;
    public void setEndDate(Timestamp endDate) {
    this.endDate = endDate;
    public Long getId() {
    return id;
    public void setId(Long id) {
    this.id = id;
    public Timestamp getStartDate() {
    return startDate;
    public void setStartDate(Timestamp startDate) {
    this.startDate = startDate;
    public Player getPlayer() {
    return player;
    public void setPlayer(Player player) {
    this.player = player;
    public Club getClub() {
    return club;
    public void setClub(Club club) {
    this.club = club;
    package demo;
    import java.io.Serializable;
    import java.sql.Timestamp;
    import java.util.Collection;
    import java.util.List;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.JoinTable;
    import javax.persistence.ManyToMany;
    import javax.persistence.NamedQuery;
    import javax.persistence.OneToMany;
    @Entity
    @NamedQuery(name = "Player.findAll", query = "select o from Player o")
    public class Player implements Serializable {
    @Column(nullable = false)
    private Timestamp birthdate;
    @Column(nullable = false)
    private String firstname;
    @Id
    @Column(nullable = false)
    private Long id;
    @Column(nullable = false)
    private String lastname;
    @Column(nullable = false)
    private String nationality;
    @ManyToMany
    @JoinTable(name="CONTRACTPERIOD",
    joinColumns=@JoinColumn(name="PYR_ID"),
    inverseJoinColumns=@JoinColumn(name="CUB_ID"))
    private Collection<Club> clubCollection;
    public Player() {
    public Timestamp getBirthdate() {
    return birthdate;
    public void setBirthdate(Timestamp birthdate) {
    this.birthdate = birthdate;
    public String getFirstname() {
    return firstname;
    public void setFirstname(String firstname) {
    this.firstname = firstname;
    public Long getId() {
    return id;
    public void setId(Long id) {
    this.id = id;
    public String getLastname() {
    return lastname;
    public void setLastname(String lastname) {
    this.lastname = lastname;
    public String getNationality() {
    return nationality;
    public void setNationality(String nationality) {
    this.nationality = nationality;
    public Collection<Club> getClubCollection() {
    return clubCollection;
    public void setClubCollection(Collection<Club> clubCollection) {
    this.clubCollection = clubCollection;
    public Contractperiod addContractperiod(Contractperiod contractperiod) {
    getContractperiodList().add(contractperiod);
    contractperiod.setPlayer(this);
    return contractperiod;
    public Contractperiod removeContractperiod(Contractperiod contractperiod) {
    getContractperiodList().remove(contractperiod);
    contractperiod.setPlayer(null);
    return contractperiod;
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://demo/">
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Internal Server Error (circular reference detected while serializing: demo.Contractperiod)</faultstring>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Anyone else run into this Troll?
    All suggestions(almost all) received with thanks.
    Regards,
    Charles
    Some strange error messages in Diagnostic Logs:
    Log Message: September 18, 2006 3:58:02 PM CEST
         Component Name          OC4J          Component ID          j2ee
         Host Network Address          192.168.1.69          Message Level          1
         Module ID          home_ejb.transaction          User ID          Charles
         Execution Context ID          192.168.1.69:35920:1158587882221:405          Execution Context Sequence          0
         Host Name          vmware          Message ID          J2EE EJB-08006
         Thread ID          44          Message Type          Error
         J2EE Application Module          OraPorterAPIdeploy          J2EE Application          OraPorterAPIdeploy
         Web Service Port          JavaServiceFacade          Web Service Name          JavaServiceFacadeService
    Message Text
    [JavaServiceFacade:public java.util.List demo.JavaServiceFacade.queryClubFindAll()] exception occurred during method invocation: oracle.
    Supplemental Text
    oracle.oc4j.rmi.OracleRemoteException: java.lang.IllegalStateException: ClassLoader "OraPorterAPIdeploy.root:0.0.0" (from <application>
    in /C:/Oracle/oc4j/j2ee/home/applications/OraPorterAPIdeploy/): This loader has been closed and should not be in use.
    Nested exception is:
    java.lang.IllegalStateException: ClassLoader "OraPorterAPIdeploy.root:0.0.0" (from <application> in /C:/Oracle/oc4j/j2ee/home/applications/OraPorterAPIdeploy/):
    This loader has been closed and should not be in use.
    ........This loader has been
    closed and should not be in use.; nested exception is:
    java.lang.IllegalStateException: ClassLoader
    Message was edited by:
    promise
    Message was edited by:
    promise

    Hei Guys -
    I see that the ClassLoader exceptions are known, and are "to be ignored".
    I left a reference to them, in case they play into our problems anyway.....
    "java.lang.IllegalStateException: ClassLoader" - known harmless bug... ?
    Best Regards,
    Charles

Maybe you are looking for

  • How can I import google bookmarks and contacts from my phone.? (dont want to suddenly duplicate my phones memory, doubleing it

    Just want to import contacts. What has happend before when switching phones is automaticaly my phones contacts are doubled or quadrupled. Do not know how to delete repeated contacts so have to delete extras one by one. Varriea over to computer also.

  • Is it possible to remove effects recorded in Apple loops?

    Hi there, I'm using a piano loop Classic Rock Piano09 which is blue and I want to take off the delay they've put on it. I'm guessing because it's a 'blue' loop then I can't, but am hoping that I can somehow convert it to midi notes or maybe even a no

  • How to make labview real time understand sequence context

    Does anyone know how to make Labview RT to understand teststand sequence context? My sequence context is defined as "TS.SequenceContext" as the screenshot in the attachment. If we need to point a VI for this Sequence Context then which VI from testst

  • Error Cannot Import registry file

    HI All,  I have managed to redirect outlook profile using import/export registry file. ( GPO -Start up/logoff script)  But some PC's i found this error: Cannot import h:\outlook.reg : error opening the file. There may be a disk or file ssytem error.

  • Isqlplus VS sqlplus

    After I issued an UPDATE statement in isqlplus, I issued a SELECT statement (also in isqlplus) to confirm the changes has been made. But when I try connect to sqlplus and issued the same SELECT statement, I noticed that the changes did not updated. T