TOPLINK-38 ClassCastException if specifying toplink.cache.type. ENTITY

Some background info:
I am running a 10.1.3.3 OC4J standalone. On the same instance there is a resource adapter also using toplink JPA and get the entity manager from the factory instead of the container managed one. In my application, I also use an application managed EM. When deploying by myself, there is not issue. When it is deployed with the resource adapter, I would get the ClassCastException.
If I removed the properties in the persistence.xml file that contains the "toplink.cache.type.<ENTITY>", the exception goes away and everything works fine. Following is my persistence.xml file.
<persistence-unit name="oc4j" transaction-type="JTA">
<provider>
oracle.toplink.essentials.PersistenceProvider
</provider>
<jta-data-source>java:jdbc/OcmsXdmsDs</jta-data-source>
<class>oracle.sdp.xcapdatamodel.jpa.XCAPAppUsage</class>
<class>oracle.sdp.xcapdatamodel.jpa.XCAPUser</class>
<class>oracle.sdp.xcapdatamodel.jpa.XCAPDocument</class>
<class>oracle.sdp.xcapdatamodel.jpa.AppUsageSchema</class>
<properties>
<property name="toplink.session-name" value="xdms-multinode-session"/>
<property name="toplink.logging.level" value="INFO"/>
<!-- Optimize toplink caching -->
<property name="toplink.cache.type.XCAPUser" value="None"/>
<property name="toplink.cache.type.XCAPDocument" value="None"/>
<property name="toplink.cache.type.XCAPAppUsage" value="Full"/>
<property name="toplink.cache.type.AppUsageSchema" value="Full"/>
</properties>
</persistence-unit>

Exception [TOPLINK-38] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.except
ions.DescriptorException
Exception Description: Identity map constructor failed because an invalid identity map was specified.
Internal Exception: java.lang.ClassCastException: oracle.toplink.essentials.internal.identitymaps.FullIdentityMap
Descriptor: RelationalDescriptor(oracle.sdp.xcapdatamodel.jpa.AppUsageSchema --> [DatabaseTable(APPUSAGESCHEMA)])
at oracle.toplink.essentials.exceptions.DescriptorException.invalidIdentityMap(DescriptorException.java:778)
at oracle.toplink.essentials.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.jav
a:293)
at oracle.toplink.essentials.internal.identitymaps.IdentityMapManager.getIdentityMap(IdentityMapManager.java:716
at oracle.toplink.essentials.internal.identitymaps.IdentityMapManager.acquireDeferredLock(IdentityMapManager.jav
a:119)
at oracle.toplink.essentials.internal.sessions.IdentityMapAccessor.acquireDeferredLock(IdentityMapAccessor.java:
85)
at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:479)
at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildWorkingCopyCloneNormally(ObjectBuilder.java
:451)
at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildObjectInUnitOfWork(ObjectBuilder.java:421)
at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:387)
at oracle.toplink.essentials.queryframework.ReportQueryResult.processItem(ReportQueryResult.java:220)
at oracle.toplink.essentials.queryframework.ReportQueryResult.buildResult(ReportQueryResult.java:182)
at oracle.toplink.essentials.queryframework.ReportQueryResult.<init>(ReportQueryResult.java:98)
at oracle.toplink.essentials.queryframework.ReportQuery.buildObject(ReportQuery.java:594)
at oracle.toplink.essentials.queryframework.ReportQuery.buildObjects(ReportQuery.java:643)
at oracle.toplink.essentials.queryframework.ReportQuery.executeDatabaseQuery(ReportQuery.java:804)
at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:628)
at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:692)
at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:7
46)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2233)
at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:952)
at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:924)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:367)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.getResultList(EJBQueryImpl.java:478)
at oracle.sdp.xcapconfigmanager.JPAApplicationUsageImpl.loadXmlXsd(JPAApplicationUsageImpl.java:203)
at oracle.sdp.xcapconfigmanager.XCAPConfigManager.loadJPAAppUsage(XCAPConfigManager.java:447)
at oracle.sdp.xcapconfigmanager.XCAPConfigManager.loadApplicationUsages(XCAPConfigManager.java:402)
at oracle.sdp.xcapconfigmanager.XCAPConfigManager.start(XCAPConfigManager.java:366)
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:585)
at oracle.sdp.jmxframework.ModelerBeanDeployer.invokeLifeCycleOperation(ModelerBeanDeployer.java:315)
at oracle.sdp.jmxframework.ModelerBeanDeployer.startService(ModelerBeanDeployer.java:266)
at oracle.sdp.jmxframework.ModelerBeanDeployer.initializeServices(ModelerBeanDeployer.java:359)
at oracle.sdp.jmxframework.ModelerBeanDeployer.preRegister(ModelerBeanDeployer.java:384)
at com.sun.jmx.mbeanserver.BaseMetaDataImpl.preRegisterInvoker(BaseMetaDataImpl.java:83)
at com.sun.jmx.mbeanserver.MetaDataImpl.preRegisterInvoker(MetaDataImpl.java:237)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:923)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:337)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:497)
at oracle.oc4j.admin.jmx.server.state.ApplicationStateFilterMBeanServer.registerMBean(ApplicationStateFilterMBea
nServer.java:349)
at com.evermind.server.Application.registerApplicationMBeans(Application.java:2978)
at com.evermind.server.Application.addJ2EEApplicationMBean(Application.java:1682)
at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:201)
at com.evermind.server.Application.setConfig(Application.java:438)
at com.evermind.server.Application.setConfig(Application.java:339)
at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1895)
at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1651)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1034)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassCastException: oracle.toplink.essentials.internal.identitymaps.FullIdentityMap
at oracle.toplink.essentials.internal.identitymaps.IdentityMapManager.buildNewIdentityMap(IdentityMapManager.jav
a:289)

Similar Messages

  • Toplink Exception: caused by EXCEPTION [TOPLINK-125]

    Hi,
    Sorry i can't provide much info at the moment, but this has just been passed on from a colleague at work.
    The following error has occurred now that we have temporarily set all descriptors to use noIdentityMap().
    It does not happen when caching is switched on.
    Jul 01, 2003 06:32:36 PM com.aon.ame.quotation.ejb.QuotationBean updateSectionQuotation
    INFO: Toplink Exception: caused by EXCEPTION [TOPLINK-125] (3.6.4 (build 245)): TOPLink.Public.Exceptions.DescriptorException
    EXCEPTION DESCRIPTION: The mapping for the attribute [underwritingCompany] uses indirection, and so must be initialized to a new ValueHolder. Currently the value is: [null].
    MAPPING: TOPLink.Public.Mappings.OneToOneMapping[underwritingCompany]
    DESCRIPTOR: Descriptor(com.aon.ame.entities.UnderwritingBranch --> [DatabaseTable(AME2DATA.UNDERWRITING_BRANCH)]):
    EXCEPTION DESCRIPTION: The mapping for the attribute [underwritingCompany] uses indirection, and so must be initialized to a new ValueHolder. Currently the value is: [null].
    MAPPING: TOPLink.Public.Mappings.OneToOneMapping[underwritingCompany]
    DESCRIPTOR: Descriptor(com.aon.ame.entities.UnderwritingBranch --> [DatabaseTable(AME2DATA.UNDERWRITING_BRANCH)])
    LOCAL EXCEPTION STACK:
    EXCEPTION [TOPLINK-125] (3.6.4 (build 245)): TOPLink.Public.Exceptions.DescriptorException
    EXCEPTION DESCRIPTION: The mapping for the attribute [underwritingCompany] uses indirection, and so must be initialized to a new ValueHolder. Currently the value is: [null].
    MAPPING: TOPLink.Public.Mappings.OneToOneMapping[underwritingCompany]
    DESCRIPTOR: Descriptor(com.aon.ame.entities.UnderwritingBranch --> [DatabaseTable(AME2DATA.UNDERWRITING_BRANCH)])
         at java.lang.Throwable.fillInStackTrace(Native Method)
         at java.lang.Throwable.fillInStackTrace(Compiled Code)
         at java.lang.Throwable.<init>(Compiled Code)
         at java.lang.Exception.<init>(Compiled Code)
         at java.lang.RuntimeException.<init>(Compiled Code)
         at TOPLink.Public.Exceptions.TOPLinkException.<init>(Compiled Code)
         at TOPLink.Public.Exceptions.ValidationException.<init>(Compiled Code)
         at TOPLink.Public.Exceptions.DescriptorException.<init>(DescriptorException.java:176)
         at TOPLink.Public.Exceptions.DescriptorException.<init>(DescriptorException.java:183)
         at TOPLink.Public.Exceptions.DescriptorException.valueHolderInstantiationMismatch(DescriptorException.java:1363)
         at TOPLink.Private.Indirection.BasicIndirectionPolicy.validateAttributeOfInstantiatedObject(Compiled Code)
         at TOPLink.Public.Mappings.ForeignReferenceMapping.getAttributeValueFromObject(Compiled Code)
         at TOPLink.Public.Mappings.ForeignReferenceMapping.buildClone(Compiled Code)
         at TOPLink.Private.Descriptors.ObjectBuilder.populateAttributesForClone(Compiled Code)
         at TOPLink.Public.PublicInterface.UnitOfWork.cloneAndRegisterObject(Compiled Code)
         at TOPLink.Public.PublicInterface.UnitOfWork.checkExistence(Compiled Code)
         at TOPLink.Public.PublicInterface.UnitOfWork.internalRegisterObject(Compiled Code)
         at TOPLink.Public.PublicInterface.UnitOfWork.registerObject(Compiled Code)
         at com.aon.ame.quotation.ejb.QuotationBean.updateSectionQuotation(Compiled Code)
         at com.aon.ame.quotation.ejb.EJSRemoteQuotation.updateSectionQuotation(EJSRemoteQuotation.java:2418)
         at com.aon.ame.quotation.ejb._Quotation_BaseStub.updateSectionQuotation(_Quotation_BaseStub.java:4146)
         at com.aon.ame.quotation.ejb._Quotation_Stub.updateSectionQuotation(Compiled Code)
         at com.aon.ame.quotation.struts.action.ViewSpecialEndorsementsAction.doUpdateBrokerSpecialEndorsement(Compiled Code)
         at com.aon.ame.quotation.struts.action.ViewSpecialEndorsementsAction.doUpdateWording(ViewSpecialEndorsementsAction.java:551)
         at com.aon.ame.quotation.struts.action.ViewSpecialEndorsementsAction.amePerform(ViewSpecialEndorsementsAction.java:127)
         at com.aon.ame.struts.action.AmeBaseAction.aonPerform(AmeBaseAction.java:48)
         at com.aon.struts.action.BaseAction.perform(Compiled Code)
         at org.apache.struts.action.ActionServlet.processActionPerform(Compiled Code)
         at org.apache.struts.action.ActionServlet.process(Compiled Code)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
         at javax.servlet.http.HttpServlet.service(Compiled Code)
         at javax.servlet.http.HttpServlet.service(Compiled Code)
         at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(Compiled Code)
         at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(Compiled Code)
         at com.ibm.servlet.engine.webapp.IdleServletState.service(Compiled Code)
         at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(Compiled Code)
         at com.ibm.servlet.engine.webapp.ServletInstance.service(Compiled Code)
         at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Compiled Code)
         at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(Compiled Code)
         at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(Compiled Code)
         at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(Compiled Code)
         at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(Compiled Code)
         at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(Compiled Code)
         at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(Compiled Code)
         at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(Compiled Code)
         at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Compiled Code)
         at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(Compiled Code)
         at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(Compiled Code)
         at com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(Compiled Code)
         at com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(Compiled Code)
         at com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(Compiled Code)
         at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(Compiled Code)
         at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(Compiled Code)
         at com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(Compiled Code)
         at java.lang.Thread.run(Compiled Code)
    Jul 01, 2003 06:32:36 PM com.aon.struts.action.BaseAction perform
    SEVERE: com.aon.ame.quotation.struts.action.ViewSpecialEndorsementsAction.aonPerform() threw an exception: RemoteException occurred in server thread; nested exception is:
         com.ibm.ejs.container.UncheckedException: ; nested exception is:
         EXCEPTION [TOPLINK-125] (3.6.4 (build 245)): TOPLink.Public.Exceptions.DescriptorException
    EXCEPTION DESCRIPTION: The mapping for the attribute [underwritingCompany] uses indirection, and so must be initialized to a new ValueHolder. Currently the value is: [null].
    Can anyone shed any light on why this might have happened?
    Many thanks.

    I don't see how caching is affected by this, but the exception is complaining that you have a relationship that uses indirection and have not instantiated the value holders.
    I.e.,
    Customer has 1-1 to Address, and you're using ValueHolderInterface for the type. Either in the constructor or in the declaration of the attribute, you need to init the value holder. You should do the same for 1-M's also (unless you're using transparent indirection) For example:
    public class Customer {
    String name;
    String title;
    ValueHolderInterface address = new ValueHolder();
    ValueHolderInterface orders = new ValueHolder(new Vector());

  • Specifying coherence-cache-config.xml for multiple clusters

    Hi,
    I am running two cache clusters (Cluster A and B that hold different cache types). we have a web application that needs to communicate with both the clusters. we have two coherence-cache-config-g.xml files, one for each cluster.
    where do we specify the two coherence-cache-config.xml for each of these clusters in our coherence.jar that we deploy on the web app server.
    pls provide some inputs...
    thanks in advance,
    - G.

    Hi G,
    You can define a path to the cache configuration descriptor in your operation configuration override file (tangosol-coherence=override.xml) or specify it in the system property "tangosol.coherence.cacheconfig".
    Please see this Wiki page for details:
    http://wiki.tangosol.com/display/COH32UG/configurable-cache-factory-config
    Regards,
    Gene

  • How to verify OC4J uses Oracle Toplink 10.x and not Toplink Essentials

    Hi,
    We dont want to use the default JPA provider "Toplink *Essentials*" that comes with OC4J. Rather we want to use Oracle Toplink 10.x
    I downloaded [Oracle Toplink 10.x|http://www.oracle.com/technology/software/products/ias/htdocs/1013topsoft.html] and followed the installation instructions:- http://www.oracle.com/technology/products/ias/toplink/doc/10131/install/install.html#CHDBBIFB
    When i deploy my EJB 3.0 appliation and invoke a JPA Entity, i can see the server log:- NOTIFICATION TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))
    Do i have to do any other configuration/setting to ensure that i use Oracle Toplink and not Toplink Essentials in OC4J?
    Thanks in Advance,
    Prashant Tejura
    Edited by: user1186295 on May 26, 2009 10:33 AM

    rashant,
    Hi, there are currently the following providers to choose from - you may want to consult your rep for any details on moving from 10.1.3.4 to 10.1.3.5.
    1) TopLink or EclipseLink using EclipseLink JPA - the RI for JPA for WebLogic, OC4J and GlassFish
    - EclipseLink JPA is focus of all current JPA development as part of EclipseLink and TopLink
    2) Another open-source JPA implementation like OpenJPA or Hibernate
    Deprecated:
    3) TopLink using TopLink JPA - replaced by (1) TopLink using EclipseLink JPA
    4) TopLink using TopLink Essentials JPA - replaced by (1) TopLink using EclipseLink JPA
    Changes to server.xml as follows:
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/OC4J_Web_Tutorial#Modify_server.xml
    <shared-library name="oracle.persistence" version="1.0" library-compatible="true">
              <code-source path="../../../eclipselink/eclipselink.jar"/>
              <code-source path="../../../eclipselink/javax.persistence_*.jar"/>
              <import-shared-library name="oracle.jdbc"/>
         </shared-library>
    Changes to persistence.xml as follows: (container-managed JTA datasource)
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/OC4J_Web_Tutorial#Persistence.xml
    <persistence version="1.0" 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 http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
    <persistence-unit name="example" transaction-type="JTA">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>jdbc/OracleDS</jta-data-source>
    <class>org.eclipse.persistence.example.jpa.server.business.Cell</class>
    <properties>
    <property name="eclipselink.target-server" value="OC4J"/>
    <property name="eclipselink.logging.level" value="FINEST"/>
    </properties>
    </persistence-unit>
    </persistence>
    You should see output similar to the following in your server log:
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/OC4J_Web_Tutorial#Console_Output
    [EL Finest]: 2009-02-26 14:04:34.464--ServerSession(8634980)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--Begin deploying Persistence Unit example; state Predeployed; factoryCount 1
    [EL Info]: 2009-02-26 14:04:34.542--ServerSession(8634980)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--EclipseLink, version: Eclipse Persistence Services - ***
    [EL Fine]: 2009-02-26 14:04:35.213--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--Detected Vendor platform: org.eclipse.persistence.platform.database.oracle.Oracle10Platform
    [EL Config]: 2009-02-26 14:04:35.26--ServerSession(8634980)--Connection(5230779)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--Connected: jdbc:oracle:thin:@//1y.yyy.yy.yy:1521/ORCL
         User: SCOTT
         Database: Oracle Version: Oracle Database 11g Release 11.1.0.0.0 - Production
         Driver: Oracle JDBC driver Version: 10.1.0.5.0
    [EL Finest]: 2009-02-26 14:04:35.385--UnitOfWork(5746770)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--PERSIST operation called on: org.eclipse.persistence.example.jpa.server.business.Cell@9107088( id: null state: null left: null right: null parent: null references: null).
    [EL Fine]: 2009-02-26 14:04:35.807--ClientSession(5748500)--Connection(6653899)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--INSERT INTO EL_CELL (ID, STATE, TSEQ, RIGHT_ID) VALUES (?, ?, ?, ?)
         bind => [551, null, null, null]
    thank you
    /michael
    www.eclipselink.org

  • Error message in WAD: "No name is specified for modification type 'Module'"

    Hi All,
    We have created a WAD template with one analysis item and a button and have single module of type generic module in it.
    While executing it  following error message is displayed "No name is specified for modification type 'Module'"
    Please Can anyone help with this error.
    Regards,
    Shweta.

    Hello,
    I am currently facing same issue and I have no idea how to get rid of this message on top of the page.
    I'm pretty sure that this error message comes from the ANALYSIS_ITEM define in my Web Template but I have defined alias name for the different modules I created:
    Who is able to help ?

  • Error in BP Mapping from ECC to CRM 5.0 -Specify a card type error

    Hi gurus,
    I have taken
    *Specify a card type-Message no. R1561*
    error in case of mapping cust_main data from ECC to CRM 5.0. When I check the selection result of Bdoc messages by getting SMW01 facing with above this error.
    Could you please help me to overbeat this error in a quick way in order to map properly...
    Thanks so much
    Best regards,
    Fahrettin Kerem BOZBIYIK

    Hi Kai,
    Firstly thank you for your notes notification!
    That's right symptom is right over there but in our ECC system my related customer has no credit card type data in payment cards data tab so that why would I have taken the Bdoc validation error occasionally in case of mapping process to CRM 5.0 such as I mentioned?...
    Best Regards,
    FKB

  • A constructor cannot specify a return type.

    I have a shuffleList.as file with this code...
    package {
    import flash.display.MovieClip;
    public class shuffleList extends MovieClip{
    function shuffleList(arr:Array):Array{
    var shuffled:Array = arr.slice();
    for (var i:int=0; i<arr.length; i++) {
    var element:Object = shuffled
    var rnd:int = Math.floor(arr.length * Math.random());
    shuffled = shuffled[rnd];
    shuffled[rnd] = element;
    return shuffled;
    In the first frame i put this code...
    import shuffleList
    var numA:Array = [0,1,2,3,4,5,6,7,8,9,10]
    var numB:Array = shuffleList(numB);
    var myText:String = numB.pop()
    fieldA.text = myText
    With this code I want to put in random order the numbers from
    0 to 10 in the fieldA.
    When run this file the compiler report this error: "A
    constructor cannot specify a return type."
    Where I'm wrong;
    I'm new in actionscript..
    Please help...

    Hey Petros,
    I had a similar problem and the response I got was:
    1) the constructor is used to set up the class but it doesn't
    really exist until it is instantiated and therefore cannot include
    any 'interaction' including a return.
    2) Therefore, you might try replacing
    function.shuffleList ... with
    function.shuffleList() { // to enable instantiation
    public function doit(arr:Array):Array { // to enable
    interaction
    The rest of the code follows this then the call in the first
    frame replaces
    var numB:Array ... with
    new shuffleList(); // instantiate the class
    var numB:Array = shuffleList.doit(numB) // interact with the
    class
    Let me know how it goes...Daniel

  • BAPI_CUSTOMER_CHANGEFROMDATA1 error: Specify a URI type.

    I am getting the following message on some of the customers I try to udpate using BAPI_CUSTOMER_CHANGEFROMDATA1: Specify a URI type.  I assume this has something to do with the URI communication method.  I am, however, NOT updating the URI as part of this BAPI call.  In my program I first call BAPI_CUSTOMER_GETDETAIL1, I then update several fields in the company data structure and then call BAPI_CUSTOMER_CHANGEFROMDATA1 passing the updated data.

    It appears that it has something to do with having a URI Communication Method loaded to the Customer Master.  If i remove the URI Communication Method from the Customer Master prior to running my program, I do not get the error message.  Once I added it back, however, I got the message again.  Don't understand why since I am not attempting to update the URI information in my BAPI call.  I have tried saving several different, valid URIs via XD02 but continue to get the error as long as there is a URI communication method loaded.  Does anyone know if this is a BAPI_CUSTOMER_CHANGEFROMDATA1 bug or if I can do something to prevent from getting this error message.

  • While doing MIGO system giving error massage "No account was specified for account type "D" in item "0000000001"

    Hello,
    While doing MIGO system showing error " No account was specified for account type "D" in item "0000000001"
    Kindly help me to resolve this issue.
    Regards,
    Abhijit

    Hi,
       Your issue seems to be an issue in FI. Refer the similar thread: MIGO error for UNBW material and the note: 1027645 - Message F5670: Account not specified in item X
       Found a similar issue in J1IS as explained in the KBA:  1932095 - Error : F5670 - ' No account is specified in item 0000000002 ' - in transaction J1IS
    Regards,
    AKPT

  • HBR : Specify the Currency Type in a CCONV command

    Hi everybody,
    I am working on an Essbase/Planning application with a currency database.
    I am trying to set a currency conversion in a HBR.
    The problem is that the CCONV command doest not work if I specify the Currency type. (In my example ACT2009)
    DATACOPY "Entity Currency" TO "Conso Euro";
    FIX("Conso Euro")
    CCONV "ACT2009"->"EUR";
    ENDFIX
    If I don’t specify the Currency type, this is working using the Default currency type member. (Set in the Cube Properties, sheet Currency)
    Does anybody knows, how I could solve this problem and specify in the HBR the Currency type I want to use??
    Thanks.

    Are you somehow using the Essbase currency conversion option?
    I'm not aware of that working with Planning, unless it's somehow gone into 11.1.2 which I am pretty sure it has not.
    Planning has it's own, not so fantastic currency conversion functionality. I personally roll my own with something that looks very similar to Essbase's currency partition.
    I have never tried (you know, I don't know why) to use Essbase's native currency conversion approach -- perhaps I have been overlooking a fantastic approach?
    If it doesn't work with Planning (I can think of a bunch of reasons why not, all focusing on the Database->Refresh menu), you cannot use CCONV. But please, prove me wrong, as the more I think about it, the more I kick myself for never trying it.
    Regards,
    Cameron Lackpour

  • Specify aggregation generated type?

    Hello forum -
    Due to a lack of documentation on UML to code mapping (see this bug http://www.netbeans.org/issues/show_bug.cgi?id=79555), I am having to learn by trial and error.
    I would like to model an aggregation that is translated into a HashMap. Now, I see that I can change the UML generation options and specify that collections are mapped to java.util.ArrayList or java.util.HashMap types, but I would like to specify the resulting type on a case-by-case basis and not on the entire project.
    Is there a way to do this that I am not seeing?

    I hope I am understanding your question...
    If you are working with 5.5 or prior, the feature is very limitied. There is a 5.5 patch in the work for UML (should be on Update Center soon) that will have a more robust feature that is implemented in NB6.
    If you are using latest NB6.0, there is a new property that has been added for multiplicities. Let's look at an attribute on a class element. If the attribute has multiplicity:
    public String foo[*, *]
    and in this case more than one range (dimension), the default is to generate "As Array". To customize this, select the attribute, click on the Multiplicity property. In the custom editor, you will see that the ranges table has a Collection Type column. You can select a "well-known" Collection type or you can manually type your custom Collection Type, but be sure to fully qualify it so that code gen will add the proper import statements. You can use a different Collection type for every attribute as well as for each individual range of the attribute.
    This works for parameters as well. Return Types may not have this feature implemented yet, but it will be there soon.
    I suspect what you are asking may not be exactly what I described, but thought it might be related and at the very least, helpful in other areas for you.
    craig

  • How Do I Specify No Cache With HTTPMultiservice?

    Exactly how would I specify no caching of an SWF file using HTTPMultiservice? For example, you can do it using URLRequest with the code below. Is there a way to do it with HTTPMultiservice:
    var loader:URLLoader = new URLLoader();
    var request:URLRequest = new URLRequest(whatever url);
    request.requestHeaders.push(new URLRequestHeader("pragma", "no-cache"));
    request.requestHeaders.push(new URLRequestHeader("Expires", "Thu, 01 Jan 1970 00:00:00 GMT, -1"));
    request.requestHeaders.push(new URLRequestHeader("Cache-Control", "no-cache, no-store, must-revalidate"));
    loader.load(request);

    Ok eventually I tried this:
    operation.headers = {"meta http-equiv":"Cache-Control", content:"no-cache"};
    And I got the following error:
    Error# 2096: The http request header meta http-equiv cannot be set via Actionscript. null.
    Which maybe it means worked, but you can't do it I guess. Not sure.

  • Specify Account Assignment Types

    Hi all...
    Document split is active.
    I am re-examing Account Assignment Types..
    Additional Account Assignment Objects - Specify Account Assignment Types
    So far I have only entered TT 100 for KOSTL for the relevant Depreciation areas 
    BUT retirement and depreciation transactions have all worked as expected despite not having TT entered.
    IE    TT 200 has not been entered in Specify Account Assignment Types but the Retirement transactions complete as expected.
    So my question is whether it is necessary to enter all required TTs in the Specify Account Assignment Types?
    If it is "correct" to enter them, how are the account assignments types used.
    Would a rule of thumb be:
    Balance Sheet accounts = APC Values Posting
    Depreciation accounts = Depreciation Run.
    Thanks...

    Hi Thom,
    no, you only need a generic transaction type  "  *  ".
    Example for KOSTL:
    KOSTL Cost Center * Generic Trans. Type#Periodic Posting
    KOSTL Cost Center * Generic Trans. Type#Account Assignment for Deprec
    Regards Bernhard

  • JBO-25002: Definition model.EmpImpl of type Entity Definition is not found.

    Created an App Module (AppModuleImpl) with a service method findempEmpno(...) - see first listing
    Created a Java class (Class1) to access the App Module - see second listing
    Also created an EO and supporting java classes: EmpImpl.java & EmpDefImpl.java
    When run Class1 get the error message as per the third listing
    Why am I getting the message: Exception in thread "main" oracle.jbo.NoDefException: JBO-25002: Definition model.EmpImpl of type Entity Definition is not found.*
    when EmpDefImpl.java has been created?
    Bottom line what wanting to do is to access an EO from the AM.
    Thanks for any help - Casey
    *=============== FIRST LISTING =================*
    package model;
    import model.common.AppModule;
    import oracle.jbo.Key;
    import oracle.jbo.server.ApplicationModuleImpl;
    import oracle.jbo.server.EntityDefImpl;
    import oracle.jbo.server.EntityImpl;
    import oracle.jbo.server.ViewLinkImpl;
    import oracle.jbo.server.ViewObjectImpl;
    +// ---------------------------------------------------------------------+
    +// --- File generated by Oracle ADF Business Components Design Time.+
    +// --- Tue Sep 22 17:10:43 GMT 2009+
    +// --- Custom code may be added to this class.+
    +// --- Warning: Do not modify method signatures of generated methods.+
    +// ---------------------------------------------------------------------+
    +public class AppModuleImpl extends ApplicationModuleImpl implements AppModule {+
    +/**+
    * This is the default constructor (do not remove).
    +public AppModuleImpl() {+
    +}+
    +/**+
    * Container's getter for DeptView1.
    * @return DeptView1
    +public ViewObjectImpl getDeptView1() {+
    return (ViewObjectImpl)findViewObject("DeptView1");
    +}+
    +/**+
    * Container's getter for EmpView1.
    * @return EmpView1
    +public ViewObjectImpl getEmpView1() {+
    return (ViewObjectImpl)findViewObject("EmpView1");
    +}+
    +/**+
    * Container's getter for EmpView2.
    * @return EmpView2
    +public ViewObjectImpl getEmpView2() {+
    return (ViewObjectImpl)findViewObject("EmpView2");
    +}+
    +/**+
    * Container's getter for EmpView3.
    * @return EmpView3
    +public ViewObjectImpl getEmpView3() {+
    return (ViewObjectImpl)findViewObject("EmpView3");
    +}+
    +/**+
    * Container's getter for EmpSelfKeyLink1.
    * @return EmpSelfKeyLink1
    +public ViewLinkImpl getEmpSelfKeyLink1() {+
    return (ViewLinkImpl)findViewLink("EmpSelfKeyLink1");
    +}+
    +/**+
    * Container's getter for EmpForeignKeyLink1.
    * @return EmpForeignKeyLink1
    +public ViewLinkImpl getEmpForeignKeyLink1() {+
    return (ViewLinkImpl)findViewLink("EmpForeignKeyLink1");
    +}+
    +public String findempEmpno(long empno) {+
    EntityDefImpl empDef = EntityDefImpl.findDefObject("model.EmpImpl");  // LINE 73+
    +Key empKey = new Key(new Object[] { empno });+
    EntityImpl emp = empDef.findByPrimaryKey(getDBTransaction(), empKey);
    +if (emp != null) {+
    return (String)emp.getAttribute("Empno");
    +} else {+
    return null;
    +}+
    +}+
    +}+
    *=============== SECOND LISTING =================*
    package model;
    import oracle.jbo.client.Configuration;
    import oracle.jbo.*;
    import oracle.jbo.domain.Number;
    import oracle.jbo.domain.*;
    import model.*;
    +public class Class1 {+
    +public Class1() {+
    super();
    +}+
    +public static void main(String[] args) {+
    Class1 class1 = new Class1();
    String amDef = "model.AppModule";
    String config = "AppModuleLocal";
    ApplicationModule am =
    Configuration.createRootApplicationModule(amDef, config);
    AppModuleImpl ami = (AppModuleImpl)am;
    System.out.println(ami.findempEmpno(7788L));  // LINE 24+
    Configuration.releaseRootApplicationModule(am, true);
    +}+
    +}+
    *=============== THIRD LISTING =================*
    D:\Oracle\Middleware\jdk160_11\bin\javaw.exe -client -classpath D:\JDeveloper\mywork\Application2\.adf;D:\JDeveloper\mywork\Application2\Model\classes;D:\Oracle\Middleware\jdeveloper\modules\oracle.idm_11.1.1\identitystore.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\adfm.jar;D:\Oracle\Middleware\jdeveloper\modules\groovy-all-1.6.0.jar;D:\Oracle\Middleware\jdeveloper\adfdt\lib\adf-dt-at-rt.jar;D:\Oracle\Middleware\jdeveloper\adfdt\lib\adf-transactions-dt.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\adfdt_common.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.xdk_11.1.0\xmlparserv2.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\db-ca.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\jdev-cm.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.ldap_11.1.1\ojmisc.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share_11.1.1\commons-el.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share_11.1.1\jsp-el-api.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share_11.1.1\oracle-el.jar;D:\Oracle\Middleware\modules\javax.activation_1.1.0.0_1-1.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share_11.1.1\adf-share-support.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share.ca_11.1.1\adf-share-ca.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share.ca_11.1.1\adf-share-base.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share_11.1.1\adflogginghandler.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.jmx_11.1.1\jmxframework.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.jmx_11.1.1\jmxspi.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\bc4j-mbeans.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\bc4jwizard.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.javatools_11.1.1\resourcebundle.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.ldap_11.1.1\ldapjclnt11.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.jps_11.1.1\jps-api.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.jps_11.1.1\jps-common.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.jps_11.1.1\jps-ee.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.jps_11.1.1\jps-internal.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.jps_11.1.1\jps-unsupported-api.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.jps_11.1.1\jacc-spi.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.pki_11.1.1\oraclepki.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.osdt_11.1.1\osdt_core.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.osdt_11.1.1\osdt_cert.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.osdt_11.1.1\osdt_xmlsec.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.iau_11.1.1\fmw_audit.jar;D:\Oracle\Middleware\modules\javax.security.jacc_1.0.0.0_1-1.jar;D:\Oracle\Middleware\jdeveloper\BC4J\jlib\bc4jtester.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\bc4jsyscat.jar;D:\Oracle\Middleware\jdeveloper\jlib\ohj.jar;D:\Oracle\Middleware\jdeveloper\jlib\help-share.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.bali.share_11.1.1\share.jar;D:\Oracle\Middleware\jdeveloper\jlib\jewt4.jar;D:\Oracle\Middleware\jdeveloper\jlib\oracle_ice.jar;D:\Oracle\Middleware\jdeveloper\ide\lib\idert.jar;D:\Oracle\Middleware\jdeveloper\ide\lib\javatools.jar;D:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.mds_11.1.1\mdsrt.jar;D:\Oracle\Middleware\modules\javax.servlet_1.0.0.0_2-5.jar;D:\Oracle\Middleware\modules\javax.jsp_1.1.0.0_2-1.jar;D:\Oracle\Middleware\wlserver_10.3\server\ext\jdbc\oracle\11g\ojdbc6.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share_11.1.1\commons-cli-1.0.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.xmlef_11.1.1\xmlef.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.dms_11.1.1\dms.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.xdk_11.1.0\xml.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.javacache_11.1.1\cache.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.ucp_11.1.0.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.odl_11.1.1\ojdl.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.javatools_11.1.1\javatools-nodeps.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.nlsrtl_11.1.0\orai18n-collation.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.nlsrtl_11.1.0\orai18n-mapping.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.nlsrtl_11.1.0\orai18n-servlet.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.nlsrtl_11.1.0\orai18n-translation.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.nlsrtl_11.1.0\orai18n-utility.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.nlsrtl_11.1.0\orai18n.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.share_11.1.1\adfsharembean.jar;D:\Oracle\Middleware\modules\javax.ejb_3.0.1.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\adfbcsvc.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.adf.model_11.1.1\adfbcsvc-share.jar;D:\Oracle\Middleware\jdeveloper\modules\commonj.sdo_2.1.0.jar;D:\Oracle\Middleware\modules\org.eclipse.persistence_1.0.0.0_1-1-0.jar;D:\Oracle\Middleware\jdeveloper\modules\oracle.webservices_11.1.1\wsclient.jar;D:\Oracle\Middleware\modules\com.oracle.toplink_1.0.0.0_11-1-1-1-0.jar;D:\Oracle\Middleware\modules\com.bea.core.antlr.runtime_2.7.7.jar;D:\Oracle\Middleware\modules\javax.persistence_1.0.0.0_1-0-2.jar -Dhttp.proxyHost=ges-proxy.us.oracle.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=sdcousecgate02.oracle.com|sdcousecgate01.oracle.com|yourtraining.oracle.com|vx*.us.oracle.com|eg*.us.oracle.com|*.example.com|jp0001.jp.oracle.com|edr4r1*.us.oracle.com|edr3r1*.us.oracle.com|localhost|10.150.1.46|edbsr*p*.peoplesoft.com|edbsr*p*.us.oracle.com|japan-tele-sslvpn.oracle.com|emea-tele-sslvpn.oracle.com|aus-tele-sslvpn.oracle.com|adc-tele-sslvpn.oracle.com|*.oracle.retail.com|localhost.localdomain|127.0.0.1|::1 -Dhttps.proxyHost=ges-proxy.us.oracle.com -Dhttps.proxyPort=80 -Dhttps.nonProxyHosts=sdcousecgate02.oracle.com|sdcousecgate01.oracle.com|yourtraining.oracle.com|vx*.us.oracle.com|eg*.us.oracle.com|*.example.com|jp0001.jp.oracle.com|edr4r1*.us.oracle.com|edr3r1*.us.oracle.com|localhost|10.150.1.46|edbsr*p*.peoplesoft.com|edbsr*p*.us.oracle.com|japan-tele-sslvpn.oracle.com|emea-tele-sslvpn.oracle.com|aus-tele-sslvpn.oracle.com|adc-tele-sslvpn.oracle.com|*.oracle.retail.com|localhost.localdomain|127.0.0.1|::1 model.Class1
    Sep 22, 2009 7:40:28 PM oracle.adf.share.config.ADFConfigFactory getInstance
    INFO: ADF Config instance implementation in use is : oracle.adf.share.config.MDSConfigFactory
    Sep 22, 2009 7:40:31 PM oracle.adf.share.jndi.MDSBackingStore isReadOnlyMDSStore
    INFO: Read only backing store
    Exception in thread "main" oracle.jbo.NoDefException: JBO-25002: Definition model.EmpImpl of type Entity Definition is not found.+
    +     at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:499)+
    +     at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:417)+
    +     at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:399)+
    +     at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:750)+
    +     at oracle.jbo.server.EntityDefImpl.findDefObject(EntityDefImpl.java:567)+
    +     at model.AppModuleImpl.findempEmpno(AppModuleImpl.java:73)+
    +     at model.Class1.main(Class1.java:24)+
    Process exited with exit code 1.

    Duplicate of Re: JBO-25003: Object root of type View Object is not found.
    Please close this thread.

  • Error : oracle.jbo.NoDefException: JBO-25002: Definition oracle.apps.icx.por.schema.server.XXTBPoRequisitionLineEO of type Entity Definition not found

    Hi, while extending EO, we are getting error "oracle.jbo.NoDefException: JBO-25002: Definition oracle.apps.icx.por.schema.server.XXTBPoRequisitionLineEO of type Entity Definition not found". We have placed class and xml files in respective folder, imported customization and bounced the system but still error did not go. Kindly help to trace the issue.

    Can you elaborate how you deployed your custom code, were steps documented here followed ? Did you create a ADF library jar and copy it over to the application lib directory ? Please provide the exact steps done for deployment.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

Maybe you are looking for

  • How to connect database using JSF??

    When I deployed a JSF war file which was connected to MySql on Sun Application Server, then lanuched it, why there was an error message like "HTTP Status 503 - This application is not currently available". Can anyone tell me why? thanks.

  • Regarding Unicode compatibility for Interfaces

    Hi, I was just trying to understand if the interfaces developed in SAP ECC 6.0 are unicode compatible.These are IDOCS that are extended.How should i check?  Kindly advice. Thanks Pradeep.

  • Error in KPI Monitoring Screen

    Hi All, I am new to KPI Monitoring. Is that any example I can get for configuring it. I follwed this docment "http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1061e1c5-e25b-3010-aaae-bca7eb47837e?overridelayout=t…" I tried with poin

  • Why are my YouTube login credentials not accepted by Captivate?

    I am trying to publish my Captivate project as a video on YouTube. A popup screen appears asking for my YouTube username and password, but when entered I am told that "Login failed. Specify the correct username and password, and try again." The same

  • Aperture 3 smoothing edges of a jpg that consists of text

    I have typed some text in keynote and exported as a jpg.  Now I want to print the image without the sharp step like edges on the letters.  Does anyone know how to adjust the image to create smooth edges on a photo that is just lettering?