Deleting CMR OC4J 9.04.0 - 9.0.4.1 - 10.1.2.0 - 10.1.3.0 - 10.1.3.1

I've a simple code that work correctly on Oracle iAS 10g Release 1
but not on Release 2 or Release 3.
We have already received a patch from Oracle for the Release 2
Today we are requesting a patch for the Release 3 as the bug remains on the NEW Release.
Unfortunately, Oracle Support didn't want to identify our problem as a bug of their J2EE container because this behaviour is considered as normal.
So I need our help to find the J2EE 1.3 (we use only EJB 2.0) documentation speaking about deletion of Entity behind a CMR.

Below I will explain the bug we have found at the beginning :
We noticed changes between iAS 9.0.4.0.0 and 9.0.4.1.0 in CMP-CMR behavior.
When we remove an element from a CMR collection (child part of a relationship) the 9
.0.4.1.0 version of OC4J generate an exception. Perhaps the OC4J attempt to upda
te the chield property which reference the parent key to NULL. So we have an OR
A-01407 SQL Exception because this field is mandatory. This problem did not app
ears with the first release of OC4J 10g.
A simple testcase to test this problem
two tables :
create table a
id number(11,0) NOT NULL,
lib varchar2(500) NOT NULL
ALTER TABLE A ADD ( CONSTRAINT A_PK PRIMARY KEY (ID)
create table b
id number(11,0) NOT NULL,
idJoinA number(11,0) NOT NULL,
lib varchar2(500) NOT NULL
ALTER TABLE B ADD ( CONSTRAINT B_PK PRIMARY KEY (ID)
ALTER TABLE B ADD ( CONSTRAINT BJOINA FOREIGN KEY (idJoinA) REFERENCES A (ID);
We create two entity : one for table a and one for table b with one cmr 1 - N
When we execute this part of code :
ALocal entityA = getALocalHome().findByPrimaryKey(45);
for(Iterator iter = entityA.getCollectionB.iterator();iter.hasNext();)
BLocal entityB = (BLocal)iter.next();
entityB.remove();
we catch :
javax.ejb.EJBException: Error saving state: ORA-01407: cannot update ("A"."IDJOINA") to NULL

Similar Messages

  • Short Dump when deleting CMR/DMR

    Hi,
    When I delete a CMR or DMR the system hangs and I get a Short Dump.  I have traced the line where the dump is occuring, but cannot figure why the error/short dump occurs.
    INCLUDE FV45KFKD_VBKD_FUELLEN_TEIL_2
    FORM VBKD_FUELLEN_TEIL_2 USING VALUE(US_POSNR)
      IF NOT DA_WARNUNG IS INITIAL AND
         SVBKD-TABIX > 0.
        CLEAR DA_WARNUNG.
        IF VBKD-FKDAT EQ DA_FKDAT.
          SET CURSOR FIELD 'VBKD-FKDAT'.
          WRITE VBKD-FKDAT TO DA_DATUMC DD/MM/YYYY.
          MESSAGE W221 WITH DA_DATUMC.  <== The error is occuring when this statement is exceuted.
        ENDIF.
      ENDIF.
    Although the short dump thing the error occurs when trying do the next ste PERFORM VBKD_FUELLEN_IAOM USING US_POSNR.
    Thanks in advance
    Naing

    I would check if you have any code in userexit_check_vbkd for example.
    NOTE: sapmv45a processes not only sales orders but contracts, CMR/DMR,... so please be careful with your code in userexits and make sure you restrict it to proper document types/transactions.
    Ideally you need to write your userexits in such a way that they all can be switched-off easily (like put all code in each userexit between if sy-uname = 'SAPLOOK' ... endif. for example) in this case when you are logged on with SAPLOOK ID - userexits are off.
    The bottom line is - if you are able to perform any action (delete DMR/CMR) when your exits are OFF -> the problem is somewhere in your exits.
    The problem may NOT be in the code where dump occurs, it can be well in advance
    One small flag or incorrect read statement which re-sets workarea of internal table in one of your userexits may cause problems down the line.

  • OC4J spitting out ejb's in j2ee/home

    Hi all,
    we recently noticed that during deployment of our application (ear file) when oc4j wants to compile the ejb's he spits them out in j2ee/home and compiles them there, then deletes the files.
    We probably wouldn't notice, but a couple of colleagues' deployment got stuck. The files are not deleted and oc4j's java proccess won't close, they have to restart the machine.
    Any idea what could be wrong? Maybe a misconfigured ejb-jar.xml or something?

    If your used the older deploytool then use the bottom two 'remote' boxes and leave the top two 'local' boxes empty.
    Basically Local means within the container
    and
    remote means outside the container.
    If you want to change yours to be local I think you need to subclass differently. I have not done it yet!
    EricLemle

  • OC4J and login failure

    'Install' the embedded OC4J in JDev9i (<Jdev9i_HOME>\j2ee\home) and assign an administrative password of admin.
    Deployment from JDev9i works with no issue - URL uses port 8888.
    Problem is when shutdown machine and come back in I have to go back and reinstall the embedded OC4J. It seems to lose
    the fact that it was installed and had a password of admin.
    What gives - Thanks - Ken Cooper

    First of all i had the exact same problem for few weeks ago.
    I was advised to download the Oracle9iAS Containers for J2EE Standalone ( http://technet.oracle.com/software/products/ias/devuse.html )
    then make own oc4j directory and install this version. This will work!
    Note that if you work with bc4j you need to adjust your configuration
    according to this doc:
    http://otn.oracle.com/products/jdev/htdocs/bc4j9ioc4j.html
    and do the configuration manually.
    You will never have to reinstall oc4j and if for any reason the oc4j does not work properly, you can simply delete the oc4j directory and setup a clean one.
    succes!
    greetz jaime

  • Interview  questions need solution

    Dear all
    1. I have an interview question
    Is it posible to do credit check at base value say pr00 value, generally credit check is done at netvalue, all open items or total value but at base value is is possible
    2. Tcode for list of customers
    3. Can we delete CMR if yes how can we delete, if not why we can delete
    4. What is the system landscape of your latest client
    5. How shipment calculation can be done and what r the necessary configuration settings to carry out shipping calculation
    6. Is solution manager is implemented in ur company, how and why a SD functional consultant can use
    your immediate response is highly appreciated
    thanks
    sateesh

    Hi
    Here is more details in your question.
    1. Is it posible to do credit check at base value say pr00 value, generally credit check is done at netvalue, all open items or total value but at base value is is possible
    Ans : Basically in your pricing procedure there is a coloum Subtotal  with option A "Carry over price to KOMP-CMPRE (credit price)" it means whichever condition type you will maintain this option system will carry the credit check against the value of that condition type.
    2. . Tcode for list of customers
    Ans. For standard SAP t-Code is VCUST, for table level go to SE11 and use table KNA1(for General) KNVV (for sales)
    3.  Can we delete CMR if yes how can we delete, if not why we can delete
    Ans. Generally master data which is created in SAP you can not delete. You can only block the customer master for overall or some specific sales area level
    4. What is the system landscape of your latest client
    Ans. This is totally depands on customer. Some customer keep system landscape like DEVELOPMENT - QUALITY - PRODUCTION
             Whereas some client keep DEVELOPMENT - QUALITY - PRODUCTION - SENDBOX (REPLICA OF PRODUCTION SERVER for R&D or for support teams research purpose)
    5. How shipment calculation can be done and what r the necessary configuration settings to carry out shipping calculation?
    Ans.  This question is not cleared that what u required whether shipment cost calculation or transportation time calculation
              For Shipment cost you have to make setting in SPRO -- LOGISTIC EXECUTION -- TRANSPORTATION ---SHIPMENT COST (here you maintain the config of shipment cost)
    6. . Is solution manager is implemented in ur company, how and why a SD functional consultant can use
    Ans. Solution manager is very important implemantation tool. It is kind of document repository where u maintain all information of variouse implemantation steps. It is one place where you maintain the all information of project (whether project related issue with their processing status or other imformation)
    Regards
    Shambhu Sarkar

  • Regarding Access of Aborted Instance

    Hello,
    I have a particular query regarding accessing an aborted instance.
    I have an instance which gets aborted after terminating correlation for the same. Now i want to access the options available in the "Select action" drop-down for the particular instance.
    But instead of functioning in the desired manner, i get the following exception:
    Unexpected error during interactive component execution.
    I get the following warning:
    Error workspace-1264459074941
    Unexpected error during interactive component execution.
    Caused by: Ensurement failed: To set the instance as ABORTED, the instance must be ABORTING or in EXCEPTION, but it is RUNNING
    fuego.web.execution.exception.UnexpectedExecutionException: Unexpected error during interactive component execution.
         at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:187)
         at fuego.workspace.servlet.ExecutorServlet.doAction(ExecutorServlet.java:117)
         at fuego.workspace.servlet.BaseServlet.doPost(BaseServlet.java:229)
         at fuego.workspace.servlet.BaseServlet.doGet(BaseServlet.java:220)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:83)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at sun.reflect.GeneratedMethodAccessor331.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
         at fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64)
         at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
         at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
         at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48)
         at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
         at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Caused by: class fuego.lang.RuntimeExceptionShell ->> fuego.lang.CheckFailed: Ensurement failed: To set the instance as ABORTED, the instance must be ABORTING or in EXCEPTION, but it is RUNNING
    Caused by: fuego.lang.CheckFailed: Ensurement failed: To set the instance as ABORTED, the instance must be ABORTING or in EXCEPTION, but it is RUNNING
         at fuego.lang.Ck.check(Ck.java:91)
         at fuego.lang.Ck.ensure(Ck.java:120)
         at fuego.server.ProcInst.setStatus(ProcInst.java:1546)
         at fuego.server.ProcInst.copy(ProcInst.java:2184)
         at fuego.server.execution.EngineExecutionContext.getInstance(EngineExecutionContext.java:1640)
         at fuego.server.execution.EngineExecutionContext.acquireCurrentInstance(EngineExecutionContext.java:1676)
         at fuego.server.execution.EngineExecutionContext.preImmediateExecution(EngineExecutionContext.java:1509)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:295)
         at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
         at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
         at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
         at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:3188)
         at sun.reflect.GeneratedMethodAccessor760.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
         at fuego.lang.JavaObject.invoke(JavaObject.java:227)
         at fuego.component.Message.process(Message.java:585)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
         at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:244)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
         at fuego.component.CustomExecution.next(CustomExecution.java:179)
         at fuego.papi.impl.rmi.RMIExecution.next(RMIExecution.java:109)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:177)
         at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:223)
         at fuego.web.papi.TaskExecutor.runInstanceTask(TaskExecutor.java:490)
         at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:98)
         at fuego.workspace.servlet.ExecutorServlet.doAction(ExecutorServlet.java:117)
         at fuego.workspace.servlet.BaseServlet.doPost(BaseServlet.java:229)
         at fuego.workspace.servlet.BaseServlet.doGet(BaseServlet.java:220)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:83)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at sun.reflect.GeneratedMethodAccessor331.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
         at fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64)
         at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
         at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
         at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48)
         at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
         at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)

    I had this problem today and was looking here for a solution. I eventually found that in my case it was that I had added a Port directive in an included Apache configuration file, and this caused problems because there was already a Port directive in the mail httpd.conf file.
    Apparently any such duplication of one-only configuration directives will cause this error, even if the Apache configuration parses OK. Oracle HTTP Server can even start up OK with such duplication in the configuration files, but you run into trouble when using dcmctl or IAS Console to deploy/undeploy ear files etc.
    I removed my addition and this "There are multiple instances in the input config file" error disappeared.
    However, I still had a problem with an OC4J container/instance in which I had tried to undeploy an application; although the operation had failed and given me that "multiple instances" error message, the application had disappeared from the management interface so I couldn't clean it up, but I also couldn't deploy it again, as I got an error saying it had already been deployed. The solution for me was to delete the OC4J instance and recreate it. Which unfortunately meant I had to configure it all over again.
    Hope this helps someone.
    Regards,
    Eldon

  • Reinstall Oracle 10g R2

    A co-worker deleted my OC4J directory under oracle and I wondered if I could replace it somehow? I noticed at this point that the installer doesn't seem to know what I have already installed and freezes when I attempt to view. Someone indicated that renaming the 'install' directory might accomplish this and get the installer to run anew.
    Any ideas if this is a valid method or do others exist.
    I appreciate anyone's help and assistance.
    Thanks in advance,
    Brian

    The applications configured by this container are:
    - Enterprise Manager
    - Isqlplus
    - isqlplus help
    - Ultrasearch admin
    - ultrasearch query
    Most of the files this container has are jar library files and configuration files (produced at deployment time during installation of the application against the oc4j) these paths are relative and based on environmental variables, so there is not much problem in applying the above procedure, however you should consider if you had ever configured the isqlplusDBA password, you'll have to repeat the procedure, if you had ever configured enterprise manager to work in SSL mode, this is also affected by this.
    Next time, I suggest you to include in your backup strategy a periodic ORACLE_HOME backup, not as frequent as data, so you can have a backup of your installation.
    ~ Madrid

  • Unidirectional one-to-many CMR in OC4J 9.0.3.1699

    Hi,
    I have the following issue with the new (productiv) OC4J 9.0.3 build 020927.1699, with did not occur with
    build 020725.1695. I would like to deploy local entity beans CMRDepartment -1--n-> CMREmployee with container managed relations. Here's the relation part of ejb-jar.xml
    <ejb-relation>
    <ejb-relation-name>theEmployees2theDepartment</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>theEmployees</ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <relationship-role-source>
    <ejb-name>CMREmployee</ejb-name>
    </relationship-role-source>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>theDepartment</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>CMRDepartment</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>theEmployees</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    Now the problem is that the depoyment generates an database table CMREmployee_cmrtest_cmrtest for CMR with a foreign key column CMRDepartment_theEmployees referencing the CMRDepartment_cmrtest_cmrtest table for the CMRDepartment bean, even though the relation is not navigable from Emp to Dept. Is this a bug or a feature? Here's the CMREmployee part of the orion-ejb-jar.xml after deployment:
              <entity-deployment name="CMREmployee" location="CMREmployee" wrapper="CMREmployeeHome_EntityHomeWrapper27" local-wrapper="CMREmployeeLocalHome_EntityHomeWrapper16" table="CMREmployee_cmrtest_cmrtest" data-source="jdbc/OracleDS" exclusive-write-access="false" locking-mode="optimistic" update-changed-fields-only="true" delay-updates-until-commit="true" min-instances-per-pk="0" max-instances-per-pk="50" disable-wrapper-cache="true">
                   <primkey-mapping>
                        <cmp-field-mapping name="id" persistence-name="id" />
                   </primkey-mapping>
                   <cmp-field-mapping name="name" persistence-name="name" />
                   <cmp-field-mapping name="theAddress">
                        <entity-ref home="CMRAddress">
                             <cmp-field-mapping name="theAddress" persistence-name="theAddress" />
                        </entity-ref>
                   </cmp-field-mapping>
                   <cmp-field-mapping name="CMRDepartment_theEmployees">
                        <entity-ref home="CMRDepartment">
                             <cmp-field-mapping name="CMRDepartment_theEmployees" persistence-name="CMRDepartment_theEmployees" />
                        </entity-ref>
                   </cmp-field-mapping>
                   <cmp-field-mapping name="theProjects">
                        <collection-mapping table="CMRProject_CMREmployee__1ftrph">
                             <primkey-mapping>
                                  <cmp-field-mapping name="CMREmployee_id">
                                       <entity-ref home="CMREmployee">
                                            <cmp-field-mapping name="CMREmployee_id" persistence-name="CMREmployee_id" />
                                       </entity-ref>
                                  </cmp-field-mapping>
                             </primkey-mapping>
                             <value-mapping type="cmrtest.CMRProjectLocal">
                                  <cmp-field-mapping name="CMRProject_id">
                                       <entity-ref home="CMRProject">
                                            <cmp-field-mapping name="CMRProject_id" persistence-name="CMRProject_id" />
                                       </entity-ref>
                                  </cmp-field-mapping>
                             </value-mapping>
                        </collection-mapping>
                   </cmp-field-mapping>
                   <finder-method>
                        <!-- Generated SQL: "SELECT o.id FROM CMREmployee_cmrtest_cmrtest o -->
                        <method>
                             <ejb-name>CMREmployee</ejb-name>
                             <method-name>findAllInstances</method-name>
                             <method-params>
                             </method-params>
                        </method>
                   </finder-method>
                   <ejb-ref-mapping name="ejb/references/theAddress/CMRAddressLocal" />
                   <ejb-ref-mapping name="ejb/references/theProjects/CMRProjectLocal" />
                   <resource-ref-mapping name="jdbc/EJBDataSource" />
                   <resource-ref-mapping name="jms/EJBQueueConnectionFactory" />
                   <resource-ref-mapping name="jms/EJBTopicConnectionFactory" />
                   <resource-env-ref-mapping name="jms/EJBQueue" />
                   <resource-env-ref-mapping name="jms/EJBTopic" />
              </entity-deployment>
    Any hints would be very wellcome.
    Regards
    Stefan

    Trond,
    when ou deploy your application, you should not need to include the orion-ejb-jar.xml.
    Also, if you have previously deployed the application, delete the application directory UNDER both applicatopn-deployments and applications. The directory will be your application's name.
    Hope this helps,
    Rob Cole
    Oracle

  • Why all files deleted under "\reports_ids\web" after restart OC4J

    all my jsp files are deleted after any restart of OC4J and when i want to run my jsp report i have to copy jsp files again under "reports\j2ee\reports_ids\web" what i do to solve this problem .
    thanks in advance

    any help !!!

  • OC4J 9.0.4 / EJB-QL / cmr-field

    Hi,
    I'm using the OC4J 9.0.4 developer preview and am trying to construct some EJB-QL of the following form:
    select object(A) from MANYTABLE A, IN (A.cmr_field_to_ONETABLE) AS B
    where A.field = ?1 and B.pk_field = ?2
    where ONETABLE has a 1:m bidirectional relationship with MANYTABLE. The cmr-field entry for cmr_field_to_ONETABLE is present in the ejb-jar.xml.
    In the underlying database tables, the cmr_field_to_ONETABLE in A is a foreign key to pk_field of B.
    When I attempt to deploy the application, OC4J screams about an "Error translating EJBQL" saying that:
    Was expecting one of:
    "AbstractSchemaName" ...
    "IN" "(" "IdentificationVar" "." "SingleValuedCmrField" "." ...
    "IN" "(" "IdentificationVar" "." "CollectionValuedCmrField" ...
    This doesn't make sense to me. As far as I can see, the EJB-QL is correct.
    Suggestions?
    regards
    George

    Hi,
    I'm using the OC4J 9.0.4 developer preview and am trying to construct some EJB-QL of the following form:
    select object(A) from MANYTABLE A, IN (A.cmr_field_to_ONETABLE) AS B
    where A.field = ?1 and B.pk_field = ?2
    where ONETABLE has a 1:m bidirectional relationship with MANYTABLE. The cmr-field entry for cmr_field_to_ONETABLE is present in the ejb-jar.xml.
    In the underlying database tables, the cmr_field_to_ONETABLE in A is a foreign key to pk_field of B.
    When I attempt to deploy the application, OC4J screams about an "Error translating EJBQL" saying that:
    Was expecting one of:
    "AbstractSchemaName" ...
    "IN" "(" "IdentificationVar" "." "SingleValuedCmrField" "." ...
    "IN" "(" "IdentificationVar" "." "CollectionValuedCmrField" ...
    This doesn't make sense to me. As far as I can see, the EJB-QL is correct.
    Suggestions?
    regards
    George

  • OC4J deleted

    i deleted the Tab of OC4J from my production 10.1.0.3 applications serever in mistake by EM. However i restore OC4J folders to its original location and restarted the server but i do not see the OC4J tab in APPLICATION menu of Enterprise manager. How would i be able to see it. Please help me.What i should do.

    Hello please help.

  • Ejb 3.0 on OC4J preview 4 CMR is this a BUG

    Exception [TOPLINK-48] (Oracle TopLink - 10g release 3 (10.1.3.0.0) (Build 05091
    2)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Multiple writable mappings exist for the field [ENVINCIDE
    NTS.INCIDENTS_ID]. Only one may be defined as writable, all others must be spec
    ified read-only.
    Mapping: oracle.toplink.mappings.OneToOneMapping[incidents]
    Descriptor: RelationalDescriptor(model.Envincidents --> [DatabaseTable(ENVINCIDE
    NTS)])
    as I understand the CMR uses toplink somewhere under the hood.
    from the docs I got this...
    @OneToMany(cascade=PERSIST)
    @JoinColumn(name="MANAGER_ID", referencedColumnName="EMP_ID")
    public Collection getManagedEmployees() {
    return managedEmployees;
    TopLink defaults and equivalent code
    OneToManyMapping mapping = new OneToManyMapping();
    mapping.setIsReadOnly(false);
    mapping.setIsPrivateOwned(false);
    mapping.setAttributeName(attributeName);
    mapping.setReferenceClass(referenceClass);
    in Toplink mapping there is setIsReadOnly() but how do
    I specify this in ejb 3.0 annotations. I get the above error
    whenever I use any sort of relationship in my ejbs and have the
    same column defined as primary key in the table.

    Take a look at this forum Re: CMR in ejb 3.0
    You basically need to make one of your mappings as read-only and I would recommend doing it with your basic mapping as it is easier to maintain with the set of the @ManyToOne relationship.
    Doug

  • Deleting the  Shared library in oc4j instance of Oracle Application Server

    Hi Friends,
    I am using Oracle Application Server (10.1.3.4.0). I have some system level shared libraries. When i am deploying the application in home instance the application is deploying fine, but when i create an another instance using the default group i am getting two more system level shared libraries that are not present in the home instance. Because of this two shared libraries i am not able to deploy the application.
    Is there a way to delete the system level shared libraries. If so provide the related information. If there is any other alternative solution provide me that also. This is very urgent to me. Please help me in resolving this issue.
    Thank You,
    Ravi kumar.

    Hi Shail,
    i referred the link you have sent it was helpful to me, but the thing is while deleting the shared library apache.webservices it is saying the shared library is in use. When we brought down the Application Server and try to run the removeSharedLibrary command we got other error.
    Error: "Failed at "Could not get DeploymentManager".
    This is typically the result of an invalid deployer URI format being supplied, the target server not being in a started state or incorrect authentication details being supplied.
    Is the way which i have done is correct ?? Please reply me.
    Thank You,
    Ravi kumar.

  • OC4J 9.0.4 Deadlock: CMR with composite primary key

    Hi,
    I just encountered a Deadlock in a CMR/CMP application involving a session bean and two entity beans, one of which (Item) has a composite primary key, comprising a foreign key to the second entity bean. The exception is thrown after ejbPostCreate() completes succesfully and the new row is committed to the ITEM table. I have provided the trace (verbosity = 10) below. The EJB Dev Guide does not offer too much detail on Deadlock conditions, so any input and suggestions are most welcome.
    regards and thanks
    George
    javax.ejb.EJBException: Deadlock detected: thread 8 thread 8state
    = thread 8
    id = 8
    thread = RMICallHandler-5
    user = [JAZNUserAdaptor: user=jazn.com/admin]
    runAsUser = null
    waitingState = null
    waitingForState = thread 8
    waitingForResource = Item server.ItemPK@bdc9b3
    notified = false
    interruptMessage = null
    rmiHandler = com.evermind.server.rmi.RMICallHandler@97617
    cmtConnections = null
    cmtConnectionCount = 0
    inDataSourceSensitiveRegion = false
    applicationThread.httpHandler = null
    contextContainer = OrderSB EJBHome
    transaction = null
    is waiting for resource entity Item server.ItemPK@bdc9b3 held by thread 8 thread 8state
    = thread 8
    id = 8
    thread = RMICallHandler-5
    user = [JAZNUserAdaptor: user=jazn.com/admin]
    runAsUser = null
    waitingState = null
    waitingForState = thread 8
    waitingForResource = Item server.ItemPK@bdc9b3
    notified = false
    interruptMessage = null
    rmiHandler = com.evermind.server.rmi.RMICallHandler@97617
    cmtConnections = null
    cmtConnectionCount = 0
    inDataSourceSensitiveRegion = false
    applicationThread.httpHandler = null
    contextContainer = OrderSB EJBHome
    transaction = null
    at com.evermind.server.ejb.AbstractEJBObject.startCallLocal(AbstractEJBObject.java:110)
    at ItemLocal_EntityBeanWrapper18.setNomen(ItemLocal_EntityBeanWrapper18.java:1912)
    at server.OrderSBBean.addItems(OrderSBBean.java:380)
    at OrderSB_StatelessSessionBeanWrapper2.addItems(OrderSB_StatelessSessionBeanWrapper2.java:1983)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:536)

    Hi,
    I just encountered a Deadlock in a CMR/CMP application involving a session bean and two entity beans, one of which (Item) has a composite primary key, comprising a foreign key to the second entity bean. The exception is thrown after ejbPostCreate() completes succesfully and the new row is committed to the ITEM table. I have provided the trace (verbosity = 10) below. The EJB Dev Guide does not offer too much detail on Deadlock conditions, so any input and suggestions are most welcome.
    regards and thanks
    George
    javax.ejb.EJBException: Deadlock detected: thread 8 thread 8state
    = thread 8
    id = 8
    thread = RMICallHandler-5
    user = [JAZNUserAdaptor: user=jazn.com/admin]
    runAsUser = null
    waitingState = null
    waitingForState = thread 8
    waitingForResource = Item server.ItemPK@bdc9b3
    notified = false
    interruptMessage = null
    rmiHandler = com.evermind.server.rmi.RMICallHandler@97617
    cmtConnections = null
    cmtConnectionCount = 0
    inDataSourceSensitiveRegion = false
    applicationThread.httpHandler = null
    contextContainer = OrderSB EJBHome
    transaction = null
    is waiting for resource entity Item server.ItemPK@bdc9b3 held by thread 8 thread 8state
    = thread 8
    id = 8
    thread = RMICallHandler-5
    user = [JAZNUserAdaptor: user=jazn.com/admin]
    runAsUser = null
    waitingState = null
    waitingForState = thread 8
    waitingForResource = Item server.ItemPK@bdc9b3
    notified = false
    interruptMessage = null
    rmiHandler = com.evermind.server.rmi.RMICallHandler@97617
    cmtConnections = null
    cmtConnectionCount = 0
    inDataSourceSensitiveRegion = false
    applicationThread.httpHandler = null
    contextContainer = OrderSB EJBHome
    transaction = null
    at com.evermind.server.ejb.AbstractEJBObject.startCallLocal(AbstractEJBObject.java:110)
    at ItemLocal_EntityBeanWrapper18.setNomen(ItemLocal_EntityBeanWrapper18.java:1912)
    at server.OrderSBBean.addItems(OrderSBBean.java:380)
    at OrderSB_StatelessSessionBeanWrapper2.addItems(OrderSB_StatelessSessionBeanWrapper2.java:1983)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:536)

  • Running CMP EJB in remote OC4J fails, works in embedded. Oracle 9i

    I more or less followed the EJB Tutorial (in the help) for creating a session-entity bean facade from Oracle 9i tables. Everything executes correctly in the embedded oc4j but it fails on the remote oc4j with
    java.sql.SQLException: Invalid column name
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:187)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:229)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:292)
         at oracle.jdbc.driver.OracleStatement.get_column_index(OracleStatement.java:5632)
         at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl.java:716)
         at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1506)
         at com.evermind.sql.FilterResultSet.getString(FilterResultSet.java:585)
         at EmployeeLocalHome_EntityHomeWrapper13.findAll(EmployeeLocalHome_EntityHomeWrapper13.java:1260)
    Then I also created another simpler CMP EJB that just has 3 fields from Oracle table. This one doesn't even work in embedded oc4j :
    com.evermind.server.rmi.OrionRemoteException: Database error: ORA-01747: invalid user.table.column, table.column, or column specification
         java.util.Collection TimesheetHoursHome_EntityHomeWrapper11.findAll()
    Are there any known problems I should look out for with generating CMP EJBS with wizards?
    I think the IDE is more intuitive than WSAD. It would be great it things worked though.
    Another question is regarding relationships. Do the wizards always use ejb-refs to implement relationships? It should be easy enough to add them with EJB Editor if they do not.
    Thanks for any help.

    Known issues are documented in the release notes
    http://otn.oracle.com/products/jdev/htdocs/readme_903Preview.html#ejb
    <<<Another question is regarding relationships. Do the wizards always use ejb-refs to implement relationships? >>>>
    Not sure what you meant here. If you reverse engineer let us say DEPT and EMP tables, foreign key relationships between the tables are reverse engineered as CMR but there aren't any ejb-ref/ejb-local-ref tags which get generated in the deployment descriptor.
    <<It should be easy enough to add them with EJB Editor if they do not. >>
    You can double-click on the EJB to bring the EJB Module Editor and select "Relationships" node to add/edit/delete relationships visually.
    raghu
    JDev Team

Maybe you are looking for

  • Demand Netting

    Hi All, Can you help me in understand the Demand netting, Open Orders for Demand Netting and Shipped Orders for Demand Netting in Demand Planning and also in SNP. your help highly appreciated. Thanks Chandana.

  • Mi iphone 6 plus no quiere descargar aplicaciones

    Todo estaba perfecto un dia decidi sincronizarlo a la computadora y ahi empezaron los problemas. Primero no quería descargar aplicaciones, se queda moviendose el circulo como si estubiera tratando de cargar pero nunca me pide la huella o el password

  • Unable to play internet.

    Hi friends, I am new to solaris,and installed solaris 9 OS 7 days before on x86 machine , while installation i made a mistake on filling my IP address... i placed 192.166.-.- in place of 192.168.-.- , after installation i made the correction in corre

  • Exception with merge

    Hi I am trying to implement following query by using merge where if there is a match then update need to be happened if not exception should be raised. create or replace PACKAGE BODY pkg FUNCTION f RETURN NUMBER IS v_proc_name varchar2(40) := 'S'; v_

  • Are there any keyboard shortcuts for navigating conversation view?

    In sparrow- which I'm coming over from due to it's support of Gmail, you can use various keyboard shortcuts to move back and forth in the thread. I prefer the Mail layout, but might have to go back if I have to click everywhere!