Method redirector is broken with CMP finders

The class MethodBaseQueryRedirector (or the framework that invokes this class) is broken.
Anytime you utilize a CMP finder whose query is redirected (even the in the examples), you get an exception stating that the number or arguments declared does not match the number in the query:
javax.ejb.FinderException: EXCEPTION [EJB - 10005]: Cannot find bean using finder: [findAllEmployeesByStreetName]. [EXCEPTION [TOPLINK-6003] (TopLink (WLS CMP) - 9.0.3 (Build 423)): oracle.toplink.exceptions.QueryException
EXCEPTION DESCRIPTION: The number of arguments provided to the query for execution does not match the number of arguments in the query definition.
QUERY: ReadAllQuery(examples.ejb.cmp11.advanced.EmployeeBean)]
server stacktrace is:
LOCAL EXCEPTION STACK:
EXCEPTION [TOPLINK-6003] (TopLink (WLS CMP) - 9.0.3 (Build 423)): oracle.toplink.exceptions.QueryException
EXCEPTION DESCRIPTION: The number of arguments provided to the query for execution does not match the number of arguments in the query definition.
QUERY: ReadAllQuery(examples.ejb.cmp11.advanced.EmployeeBean)
     at oracle.toplink.exceptions.QueryException.argumentSizeMismatchInQueryAndQueryDefinition(Unknown Source)
     at oracle.toplink.queryframework.DatabaseQuery.rowFromArguments(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
     at oracle.toplink.internal.ejb.cmp.FinderManager.executeFinder(Unknown Source)
     at oracle.toplink.internal.ejb.cmp.FinderManager.findMany(Unknown Source)
     at oracle.toplink.internal.ejb.cmp.wls.WlsBeanManager.enumFinder(Unknown Source)
     at weblogic.ejb20.internal.EntityEJBHome.finder(EntityEJBHome.java:446)
     at examples.ejb.cmp11.advanced.EmployeeBean_kt1qry_HomeImpl.findAllEmployeesByStreetName(EmployeeBean_kt1qry_HomeImpl.java:182)
     at examples.ejb.cmp11.advanced.EmployeeBean_kt1qry_HomeImpl_WLSkel.invoke(Unknown Source)
     at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
     at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
     at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
     at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
To generate this error, simply invoke the Employee.findAllEmployeesByStreetName("1 Main") (i.e. just add a few lines of code to the Client.runExampleC method that invoke this method).
This is broken and needs to be fixed ASAP!
Andrew

When will this be fixed. It is a pretty much a show stopper for us. Can someone from oracle please comment.

Similar Messages

  • ExportAsFDF javascript method is not working with Reader 10.1.1

    Hi,
    I have pdf document in which I have applied all Extendend Reader Rights. And now when I am trying to exports alll annotation in fdf with Reader 10.1.1 then it is faling to export. However it is working fine with Reader 10.0.0. Looks like this is broken in later version of 10.0.0.
    Please let me know if any alternative solution is there to export all annotation in fdf file thru code.
    Regards,
    Arvind

    I would open a formal support ticket with our developer support folks.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Sun, 27 Nov 2011 22:48:35 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: exportAsFDF javascript method is not working with Reader 10.1.1
    exportAsFDF javascript method is not working with Reader 10.1.1
    created by arvindg007<http://forums.adobe.com/people/arvindg007> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4049525#4049525

  • Use direct JDBC with CMP entity bean in one transaction

    I am trying to use direct JDBC call with CMP entity bean within a session
    bean method that requires transaction. The problem is that it appears these
    are not in the same transaction. When I use the JDBC call, the CMP entity
    bean update to the DB has not been committed yet.
    We are using Weblogic 5.1 SP6. The DB is Oracle.
    What I do for the JDBC is get a new connection from the pool using weblogic
    jdbc pool driver.
    Any help would be appreciated.
    Patrick

    Hi. You can do JDBC and invoke CMP EJBs and have this all treated
    as one transaction, if your hand-written code explicitly starts
    a JTS transaction, then uses the jts driver or a TxDataSource to
    get the JDBC connection. Then your code can call transactional
    EJBs and their work will be included in the transaction you started.
    Assuming the bean work went OK, and your manual JDBC went OK, you
    can manually commit the UserTransaction at that time. This is 5.1
    talk. For 6.0, with @PC, this may be even easier...
    Joe
    Patrick Shen wrote:
    >
    But if I do that, then they would not be in the same transaction anymore.
    Is there any way to use JDBC with CMP Entity bean in the same transaction?
    Patrick
    "L'artiste" <[email protected]> wrote in message
    news:[email protected]...
    Are you calling all the CMP create in the session Bean ? If so, beforeyou
    make the JDBC call from the session bean, the CMP in 2. should commit. Try
    to set its attribute to TX_REQUIRES_NEW. This way, the calling client will
    block until this transaction is done (committed) before the execution
    continues. There might be some overhead involved in doing so if you are
    anticipating a lot of users.
    "Patrick Shen" <[email protected]> wrote in message
    news:[email protected]...
    What I am trying to do is:
    In a Session bean method -
    1. create a new CMP entity bean (a new row in DB table)
    2. create another new CMP entity bean that uses previous bean as foreignkey
    3. use JDBC to update the row just created
    And all these 3 calls have to be in one transaction.
    Thanks,
    Patrick
    "L'artiste" <[email protected]> wrote in message
    news:[email protected]...
    Can you give a little bit more information?
    Do you have methods in your session bean that creates this CMP entitybeans?
    It looks like
    you might wanna try to change the isolation level to
    TRANSACTION_READ_COMITTED
    to preven dirty_read.
    "Patrick Shen" <[email protected]> wrote in message
    news:[email protected]...
    I am trying to use direct JDBC call with CMP entity bean within a
    session
    bean method that requires transaction. The problem is that it
    appears
    these
    are not in the same transaction. When I use the JDBC call, the CMP
    entity
    bean update to the DB has not been committed yet.
    We are using Weblogic 5.1 SP6. The DB is Oracle.
    What I do for the JDBC is get a new connection from the pool usingweblogic
    jdbc pool driver.
    Any help would be appreciated.
    Patrick
    PS: Folks: BEA WebLogic is expanding rapidly, with both entry and advanced positions
    for people who want to work with Java, XML, SOAP and E-Commerce infrastructure products.
    We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San Jose CA.
    Send resumes to [email protected]

  • How to execute findByPrimaryKey with CMP 2.0?

    Hi, I'm deploying a local entity bean. I know that I can run any finder method with CMP 2.x by declaring it as abtract in the bean implementation class and then by defining the query in the deployment descriptor. My question is: how do I run the findByPrimaryKey method? Shall I write a query element in the dd? How do I execute it from the client?
    Regards,
    Marco

    Thank you for your answer.
    Does it mean that I can run the following from my
    client?
    LocalInterface bean = home.findByPrimaryKey(value);Yes.
    Waiting for your reply.Why not just try it; you'd get the answer much quicker :-)
    Jon Martin Solaas
    [email protected]
    www.objectlabs.no

  • User interference with CMP transaction (illegal termination of transaction)

    Folks,
    Have any one encountered this error before ? Let me know the root cause of this error if you do know about it.
    thx.
    Rajesh.

    Hello.
    The error occurs when the method SmsOmniServiceBean.proceedOMNI() calls REMOTELY the method SmsOmniServiceBean.proceedOMNIinternal(). What is important is that the call is a remote call (using JNDI, the home and remote interface) that creates a new transaction (the method proceedOMNIinternal() transaction is defined as "requiresNew" in the ejb-jar.xml). This is done on purpose. If the proceedOMNIinternal() transaction is rolled back, we do not want that the whole transaction is rolled back.
    Please note that the calling method proceedOMNI() is execute in a loop inside another method (proceedOMNIAll()), and the exception is thrown at some random point in the loop: sometimes near the middle, sometimes near the end.
    Please note also that no entity bean are used in our application, nor in another application deployed on the server, so why "User interference with CMP" ?
    Here is the stack trace:
    com.evermind.server.rmi.OrionRemoteException: User interference with CMP transaction (illegal termination of transaction)
         at SmsOmniService_StatelessSessionBeanWrapper92.proceedOMNIinternal(SmsOmniService_StatelessSessionBeanWrapper92.java:736)
         at com.bnpparibas.bfi.sms.server.ejb.SmsOmniServiceBean.proceedOMNI(SmsOmniServiceBean.java:223)
         at com.bnpparibas.bfi.sms.server.ejb.SmsOmniServiceBean.proceedOMNIAll(SmsOmniServiceBean.java:299)
         at SmsOmniService_StatelessSessionBeanWrapper92.proceedOMNIAll(SmsOmniService_StatelessSessionBeanWrapper92.java:479)
         at java.lang.reflect.Method.invoke(Native Method)
         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:479)
    Thank you in advance for your answer,
    Pierre Laroche

  • Second application using EJB with CMP cannot see SQL Server Tables.

    We are running Sun One Application Server 7 V2004Q2 . We are also running Microsoft SQL Server 2000 Driver for JDBC Service Pack 3 Version 2.2.0040 and SQL Server 2000 Standard Edition Version 8.00.818(SP3).
    (The 2 applications described below run perfectly fine when run one at a time. The second one fails only when it is started after the first one and it does not matter which one is strarted first..)
    Using the above, we run 2 applications that open SQL Server Connection Pools via EJB with CMP. The first application opens the connection pool correctly and successfullly obtains a connection from that connection pool and get table information from SQL Server.
    The second application opens a second connection pool to a second database in the same SQL Server. However, when the second application requests data over a connection from the second connection pool, we get an error message that it cannot find the requested table.
    In addition, the second application cannot ever see the SQL data until we restart the instance of the Sun One Application Server AND start that application by itself.

    Yes, they are.
    ---------------------------Stack Trace -------------------------------
    [04/Feb/2005:17:03:37] FINE ( 2260): for host 127.0.0.1 trying to POST /SmhsVisitingStudentWeb/visitingstudentdean, ntrans-j2ee reports: mapped uri "/visitingstudentdean" in context "/SmhsVisitingStudentWeb" to resource "visitingstudentdean"
    [04/Feb/2005:17:03:37] FINE ( 2260): context = StandardEngine[null].StandardHost[server1].StandardContext[SmhsVisitingStudentWeb]
    [04/Feb/2005:17:03:37] FINE ( 2260): contextPath = /SmhsVisitingStudentWeb
    [04/Feb/2005:17:03:37] FINE ( 2260): wrapper = null
    [04/Feb/2005:17:03:37] FINE ( 2260): servletPath = null
    [04/Feb/2005:17:03:37] FINE ( 2260): pathInfo = null
    [04/Feb/2005:17:03:37] FINE ( 2260): SingleSignOn[server1]: Process request for '/SmhsVisitingStudentWeb/visitingstudentdean'
    [04/Feb/2005:17:03:37] FINE ( 2260): SingleSignOn[server1]: Checking for SSO cookie
    [04/Feb/2005:17:03:37] FINE ( 2260): SingleSignOn[server1]: SSO cookie is not present
    [04/Feb/2005:17:03:37] FINE ( 2260): WebModule[SmhsVisitingStudentWeb]: Mapping contextPath='/SmhsVisitingStudentWeb' with requestURI='/SmhsVisitingStudentWeb/visitingstudentdean' and relativeURI='/visitingstudentdean'
    [04/Feb/2005:17:03:37] FINE ( 2260): WebModule[SmhsVisitingStudentWeb]: Decoded relativeURI='/visitingstudentdean'
    [04/Feb/2005:17:03:37] FINE ( 2260): WebModule[SmhsVisitingStudentWeb]: Trying exact match
    [04/Feb/2005:17:03:37] FINE ( 2260): WebModule[SmhsVisitingStudentWeb]: Mapped to servlet 'visitingstudentdean' with servlet path '/visitingstudentdean' and path info 'null' and update=true
    [04/Feb/2005:17:03:37] FINE ( 2260): visitingstudentdean: init
    [04/Feb/2005:17:03:37] FINE ( 2260): ++++ Entered SecClientRequestInterceptor::send_request()
    [04/Feb/2005:17:03:37] FINE ( 2260): Security context is null (nothing to add to service context)
    [04/Feb/2005:17:03:37] FINE ( 2260): No SAS context element found in service context list
    [04/Feb/2005:17:03:37] FINE ( 2260): ++++ Entered SecClientRequestInterceptor::receive_reply
    [04/Feb/2005:17:03:37] FINE ( 2260): No SAS context element found in service context list
    [04/Feb/2005:17:03:37] FINE ( 2260): Status to be set : 0
    [04/Feb/2005:17:03:37] FINE ( 2260): Invoked receivedReply()
    [04/Feb/2005:17:03:37] FINEST ( 2260): In SimpleSFSBUUIDUtilImpl.createSessionKey() ++++++++ timeField = df664744 counterField = 1
    [04/Feb/2005:17:03:37] FINEST ( 2260): ---SQLPersistenceManagerFactory.initialize().
    [04/Feb/2005:17:03:37] FINEST ( 2260): :Thread[service-j2ee-2,5,main] -->SQLPersistenceManagerFactory.getPersistenceManager().
    [04/Feb/2005:17:03:37] FINEST ( 2260): Thread[service-j2ee-2,5,main] <->SQLPersistenceManagerFactory.getPersistenceManager() FOUND javax.transaction.Transaction: com.sun.ejb.containers.PMTransactionImpl@4.
    [04/Feb/2005:17:03:37] FINEST ( 2260): <--SQLPersistenceManagerFactory.getFromPool().
    [04/Feb/2005:17:03:37] FINE ( 2260): ++++ Entered SecClientRequestInterceptor::send_request()
    [04/Feb/2005:17:03:37] FINE ( 2260): Security context is null (nothing to add to service context)
    [04/Feb/2005:17:03:37] FINE ( 2260): No SAS context element found in service context list
    [04/Feb/2005:17:03:37] FINE ( 2260): ++++ Entered SecClientRequestInterceptor::receive_reply
    [04/Feb/2005:17:03:37] FINE ( 2260): No SAS context element found in service context list
    [04/Feb/2005:17:03:37] FINE ( 2260): Status to be set : 0
    [04/Feb/2005:17:03:37] FINE ( 2260): Invoked receivedReply()
    [04/Feb/2005:17:03:37] FINE ( 2260): ++++ Entered SecClientRequestInterceptor::send_request()
    [04/Feb/2005:17:03:37] FINE ( 2260): Security context is null (nothing to add to service context)
    [04/Feb/2005:17:03:37] FINE ( 2260): No SAS context element found in service context list
    [04/Feb/2005:17:03:37] FINE ( 2260): ++++ Entered SecClientRequestInterceptor::receive_reply
    [04/Feb/2005:17:03:37] FINE ( 2260): No SAS context element found in service context list
    [04/Feb/2005:17:03:37] FINE ( 2260): Status to be set : 0
    [04/Feb/2005:17:03:37] FINE ( 2260): Invoked receivedReply()
    [04/Feb/2005:17:03:37] FINE ( 2260): ++++ Entered SecClientRequestInterceptor::send_request()
    [04/Feb/2005:17:03:37] FINE ( 2260): Security context is null (nothing to add to service context)
    [04/Feb/2005:17:03:37] FINE ( 2260): No SAS context element found in service context list
    [04/Feb/2005:17:03:37] FINE ( 2260): ++++ Entered SecClientRequestInterceptor::receive_reply
    [04/Feb/2005:17:03:37] FINE ( 2260): No SAS context element found in service context list
    [04/Feb/2005:17:03:37] FINE ( 2260): Status to be set : 0
    [04/Feb/2005:17:03:37] FINE ( 2260): Invoked receivedReply()
    [04/Feb/2005:17:03:37] FINE ( 2260): ++++ Entered SecClientRequestInterceptor::send_request()
    [04/Feb/2005:17:03:37] FINE ( 2260): Security context is null (nothing to add to service context)
    [04/Feb/2005:17:03:37] FINE ( 2260): No SAS context element found in service context list
    [04/Feb/2005:17:03:37] FINE ( 2260): ++++ Entered SecClientRequestInterceptor::receive_reply
    [04/Feb/2005:17:03:37] FINE ( 2260): No SAS context element found in service context list
    [04/Feb/2005:17:03:37] FINE ( 2260): Status to be set : 0
    [04/Feb/2005:17:03:37] FINE ( 2260): Invoked receivedReply()
    [04/Feb/2005:17:03:37] FINE ( 2260): ++++ Entered SecClientRequestInterceptor::send_request()
    [04/Feb/2005:17:03:37] FINE ( 2260): Security context is null (nothing to add to service context)
    [04/Feb/2005:17:03:37] FINE ( 2260): No SAS context element found in service context list
    [04/Feb/2005:17:03:37] FINE ( 2260): ++++ Entered SecClientRequestInterceptor::receive_reply
    [04/Feb/2005:17:03:37] FINE ( 2260): No SAS context element found in service context list
    [04/Feb/2005:17:03:37] FINE ( 2260): Status to be set : 0
    [04/Feb/2005:17:03:37] FINE ( 2260): Invoked receivedReply()
    [04/Feb/2005:17:03:37] FINE ( 2260): ++++ Entered SecClientRequestInterceptor::send_request()
    [04/Feb/2005:17:03:37] FINE ( 2260): Security context is null (nothing to add to service context)
    [04/Feb/2005:17:03:37] FINE ( 2260): No SAS context element found in service context list
    [04/Feb/2005:17:03:37] FINE ( 2260): ++++ Entered SecClientRequestInterceptor::receive_reply
    [04/Feb/2005:17:03:37] FINE ( 2260): No SAS context element found in service context list
    [04/Feb/2005:17:03:37] FINE ( 2260): Status to be set : 0
    [04/Feb/2005:17:03:37] FINE ( 2260): Invoked receivedReply()
    [04/Feb/2005:17:03:37] FINE ( 2260): ---SQLPersistenceManagerFactory: dbname = Microsoft SQL Server.
    [04/Feb/2005:17:03:37] FINE ( 2260): <-> DBVendorType(), vendorName = [ Microsoft SQL Server] propertyName: microsoft_sql_server short name: MSSQL.
    [04/Feb/2005:17:03:37] FINE ( 2260): --> DBVendorType.initialize().
    [04/Feb/2005:17:03:37] FINE ( 2260): ---SQLStoreManager: vendor type = MSSQL.
    [04/Feb/2005:17:03:37] FINEST ( 2260): PersistenceManagerImpl cache properties: txCacheInitialCapacity=20, flushedCacheInitialCapacity=20, flushedCacheLoadFactor=0.75, weakCacheInitialCapacity=20, _weakCacheLoadFactor=0.75.
    [04/Feb/2005:17:03:37] FINEST ( 2260): NullSemaphore constructor() for PersistenceManagerImpl.cacheLock.
    [04/Feb/2005:17:03:37] FINEST ( 2260): NullSemaphore constructor() for PersistenceManagerImpl.fieldUpdateLock.
    [04/Feb/2005:17:03:37] FINEST ( 2260): <--SQLPersistenceManagerFactory.getFromPool() PM: com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@15670a for JTA com.sun.ejb.containers.PMTransactionImpl@4.
    [04/Feb/2005:17:03:37] FINEST ( 2260): <->SQLPersistenceManagerFactory.getPersistenceManager() JDO Transaction: Transaction:
    status = STATUS_NO_TRANSACTION
    Transaction Object = Transaction@18859698
    threads = 0
    [04/Feb/2005:17:03:37] FINEST ( 2260): Thread[service-j2ee-2,5,main] Tran[   Transaction:
    status = STATUS_NO_TRANSACTION
    Transaction Object = Transaction@18859698
    threads = 0
    ].begin:status = STATUS_NO_TRANSACTION ,txType: UNKNOWN for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@15670a.
    [04/Feb/2005:17:03:37] FINEST ( 2260): Thread[service-j2ee-2,5,main] Tran[   Transaction:
    status = STATUS_NO_TRANSACTION
    Transaction Object = Transaction@18859698
    threads = 0
    ].setStatus: STATUS_NO_TRANSACTION => STATUS_ACTIVE for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@15670a.
    [04/Feb/2005:17:03:37] FINEST ( 2260): Thread[service-j2ee-2,5,main] <->SQLPersistenceManagerFactory.getPersistenceManager() : com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@15670a for JTA: com.sun.ejb.containers.PMTransactionImpl@4.
    [04/Feb/2005:17:03:37] FINEST ( 2260): ---PersistenceManagerImpl.getCurrentWrapper() > current: null.
    [04/Feb/2005:17:03:37] FINEST ( 2260): ---PersistenceManagerImpl.pushCurrentWrapper() > current: null new: com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper@12dd1b8.
    [04/Feb/2005:17:03:37] FINER ( 2260): QueryImpl create new query QueryImpl@19109112
    [04/Feb/2005:17:03:37] FINER ( 2260): QueryImpl compile query QueryImpl(candidateClass: class gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState, parameters: java.lang.String jdoParam1, , variables: , filter: ((this.password == jdoParam1) & (this.active == true)), result: this, identity: QueryImpl@19109112)
    [04/Feb/2005:17:03:37] FINEST ( 2260): JQLC dump tree (AST)
    query [55, (0/0), null, RD:null]
    classDef [56, (0/0), gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState, RD:null]
    parameterDef [58, (0/0), null, RD:null]
    . [91, (1/10), null, RD:null]
    . [91, (1/5), null, RD:null]
    java [52, (1/1), null, RD:null]
    lang [52, (1/6), null, RD:null]
    String [52, (1/11), null, RD:null]
    _jdoParam1 [52, (1/18), null, RD:null]
    resultDef [83, (0/0), null, RD:null]
    this [5, (1/1), null, RD:null]
    filterDef [61, (0/0), null, RD:null]
    & [39, (1/32), null, RD:null]
    == [23, (1/17), null, RD:null]
    . [91, (1/7), null, RD:null]
    this [5, (1/3), null, RD:null]
    password [52, (1/8), null, RD:null]
    _jdoParam1 [52, (1/20), null, RD:null]
    == [23, (1/47), null, RD:null]
    . [91, (1/39), null, RD:null]
    this [5, (1/35), null, RD:null]
    active [52, (1/40), null, RD:null]
    true [18, (1/50), null, RD:null]
    [04/Feb/2005:17:03:37] FINER ( 2260): JQLC start semantic analysis
    [04/Feb/2005:17:03:37] FINEST ( 2260): JQLC dump tree (typed AST)
    query [55, (0/0), null, RD:null]
    classDef [56, (0/0), gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState, RD:null]
    parameterDef [58, (0/0), null, RD:null]
    java.lang.String [81, (1/10), java.lang.String, RD:null]
    _jdoParam1 [52, (1/18), java.lang.String, RD:null]
    resultDef [83, (0/0), gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState, RD:null]
    this [5, (1/1), gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState, RD:null]
    filterDef [61, (0/0), null, RD:null]
    & [39, (1/32), boolean, RD:null]
    == [23, (1/17), boolean, RD:null]
    this.password [71, (1/7), java.lang.String, RD:null]
    this [5, (1/3), gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState, RD:null]
    password [52, (1/8), java.lang.String, RD:null]
    _jdoParam1 [80, (1/20), java.lang.String, RD:null]
    == [23, (1/47), boolean, RD:null]
    this.active [71, (1/39), java.lang.Boolean, RD:null]
    this [5, (1/35), gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState, RD:null]
    active [52, (1/40), java.lang.Boolean, RD:null]
    true [18, (1/50), boolean, RD:null]
    [04/Feb/2005:17:03:37] FINER ( 2260): JQLC start optimizer
    [04/Feb/2005:17:03:37] FINEST ( 2260): JQLC dump tree (optimized AST)
    query [55, (0/0), null, RD:null]
    classDef [56, (0/0), gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState, RD:null]
    parameterDef [58, (0/0), null, RD:null]
    java.lang.String [81, (1/10), java.lang.String, RD:null]
    _jdoParam1 [52, (1/18), java.lang.String, RD:null]
    resultDef [83, (0/0), gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState, RD:null]
    this [5, (1/1), gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState, RD:null]
    filterDef [61, (0/0), null, RD:null]
    & [39, (1/32), boolean, RD:null]
    == [23, (1/17), boolean, RD:null]
    this.password [71, (1/7), java.lang.String, RD:null]
    this [5, (1/3), gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState, RD:null]
    password [52, (1/8), java.lang.String, RD:null]
    _jdoParam1 [80, (1/20), java.lang.String, RD:null]
    this.active [71, (1/39), java.lang.Boolean, RD:null]
    this [5, (1/35), gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState, RD:null]
    active [52, (1/40), java.lang.Boolean, RD:null]
    true [82, (1/50), boolean, RD:null]
    [04/Feb/2005:17:03:37] FINER ( 2260): JQLC start code generation
    [04/Feb/2005:17:03:37] FINER ( 2260): SQLStoreManager.getPersistenceConfig(), classType = gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState.
    [04/Feb/2005:17:03:38] SEVERE ( 2260): Validation error in class gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState: com.sun.jdo.api.persistence.model.util.ModelValidationException: Warning: Cannot find the table Student for the class gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState.
    Verify that the schema file exists and that its contents are correct.
    [04/Feb/2005:17:03:38] FINE ( 2260): Exception.
    com.sun.jdo.api.persistence.support.JDOUserException: The mapping for class gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState is invalid. Compile the class in the IDE, correct any errors, and verify that all required files are packaged for execution.
         at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.getPersistenceConfig(SQLStoreManager.java:128)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.loadPersistenceConfig(PersistenceManagerImpl.java:2085)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.getRetrieveDesc(PersistenceManagerImpl.java:1009)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.CodeGeneration.createRetrieveDesc(CodeGeneration.java:707)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.CodeGeneration.checkRetrieveDesc(CodeGeneration.java:4665)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.CodeGeneration.prepareRetrieveDescs(CodeGeneration.java:4360)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.CodeGeneration.query(CodeGeneration.java:850)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.JQLC.codeGen(JQLC.java:332)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.doExecute(QueryImpl.java:626)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.executeWithArray(QueryImpl.java:552)
         at gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_ConcreteImpl.ejbFindActiveByPassword(StudentBean129315485_ConcreteImpl.java:3491)
         at gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_ConcreteImpl_LocalHomeImpl.findActiveByPassword(StudentBean129315485_ConcreteImpl_LocalHomeImpl.java:137)
         at gwumc.edu.ejb.smhs.visitingstudent.StudentDeanSessionBean.ejbCreate(StudentDeanSessionBean.java:29)
         at gwumc.edu.ejb.smhs.visitingstudent.StudentDeanSessionBean_LocalHomeImpl.create(StudentDeanSessionBean_LocalHomeImpl.java:27)
         at gwumc.edu.smhs.servlet.VisitingStudentDeanModel.<init>(VisitingStudentDeanModel.java:18)
         at gwumc.edu.smhs.servlet.VisitingStudentDean.doPost(VisitingStudentDean.java:27)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:850)
    [04/Feb/2005:17:03:38] INFO ( 2260): Bean Student method ejbFindActiveByPassword: problems running JDOQL query with params [29]
    com.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to load the configuration for class gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState.
    NestedException: com.sun.jdo.api.persistence.support.JDOUserException: The mapping for class gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState is invalid. Compile the class in the IDE, correct any errors, and verify that all required files are packaged for execution.
         at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.getPersistenceConfig(SQLStoreManager.java:145)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.loadPersistenceConfig(PersistenceManagerImpl.java:2085)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.getRetrieveDesc(PersistenceManagerImpl.java:1009)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.CodeGeneration.createRetrieveDesc(CodeGeneration.java:707)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.CodeGeneration.checkRetrieveDesc(CodeGeneration.java:4665)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.CodeGeneration.prepareRetrieveDescs(CodeGeneration.java:4360)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.CodeGeneration.query(CodeGeneration.java:850)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.JQLC.codeGen(JQLC.java:332)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.doExecute(QueryImpl.java:626)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.executeWithArray(QueryImpl.java:552)
         at gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_ConcreteImpl.ejbFindActiveByPassword(StudentBean129315485_ConcreteImpl.java:3491)
         at gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_ConcreteImpl_LocalHomeImpl.findActiveByPassword(StudentBean129315485_ConcreteImpl_LocalHomeImpl.java:137)
         at gwumc.edu.ejb.smhs.visitingstudent.StudentDeanSessionBean.ejbCreate(StudentDeanSessionBean.java:29)
         at gwumc.edu.ejb.smhs.visitingstudent.StudentDeanSessionBean_LocalHomeImpl.create(StudentDeanSessionBean_LocalHomeImpl.java:27)
         at gwumc.edu.smhs.servlet.VisitingStudentDeanModel.<init>(VisitingStudentDeanModel.java:18)
         at gwumc.edu.smhs.servlet.VisitingStudentDean.doPost(VisitingStudentDean.java:27)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
         at com.iplanet.ias.we
    [04/Feb/2005:17:03:38] INFO ( 2260): b.WebContainer.service(WebContainer.java:850)
    NestedStackTrace:
    com.sun.jdo.api.persistence.support.JDOUserException: The mapping for class gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState is invalid. Compile the class in the IDE, correct any errors, and verify that all required files are packaged for execution.
         at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.getPersistenceConfig(SQLStoreManager.java:128)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.loadPersistenceConfig(PersistenceManagerImpl.java:2085)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.getRetrieveDesc(PersistenceManagerImpl.java:1009)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.CodeGeneration.createRetrieveDesc(CodeGeneration.java:707)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.CodeGeneration.checkRetrieveDesc(CodeGeneration.java:4665)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.CodeGeneration.prepareRetrieveDescs(CodeGeneration.java:4360)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.CodeGeneration.query(CodeGeneration.java:850)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.JQLC.codeGen(JQLC.java:332)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.doExecute(QueryImpl.java:626)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.executeWithArray(QueryImpl.java:552)
         at gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_ConcreteImpl.ejbFindActiveByPassword(StudentBean129315485_ConcreteImpl.java:3491)
         at gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_ConcreteImpl_LocalHomeImpl.findActiveByPassword(StudentBean129315485_ConcreteImpl_LocalHomeImpl.java:137)
         at gwumc.edu.ejb.smhs.visitingstudent.StudentDeanSessionBean.ejbCreate(StudentDeanSessionBean.java:29)
         at gwumc.edu.ejb.smhs.visitingstudent.StudentDeanSessionBean_LocalHomeImpl.create(StudentDeanSessionBean_LocalHomeImpl.java:27)
         at gwumc.edu.smhs.servlet.VisitingStudentDeanModel.<init>(VisitingStudentDeanModel.java:18)
         at gwumc.edu.smhs.servlet.VisitingStudentDean.doPost(VisitingStudentDean.java:27)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:850)
    [04/Feb/2005:17:03:38] FINEST ( 2260): ---PersistenceManagerImpl.popCurrentWrapper() > current: com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper@12dd1b8 prev: null.
    [04/Feb/2005:17:03:38] FINE ( 2260): Exception in forceDestroyBean()
    java.lang.IllegalStateException: Primary key not available
         at com.sun.ejb.containers.EntityContextImpl.getPrimaryKey(EntityContextImpl.java:159)
         at com.sun.ejb.containers.EntityContainer.forceDestroyBean(EntityContainer.java:1314)
         at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:1827)
         at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:1642)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:553)
         at gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_ConcreteImpl_LocalHomeImpl.findActiveByPassword(StudentBean129315485_ConcreteImpl_LocalHomeImpl.java:142)
         at gwumc.edu.ejb.smhs.visitingstudent.StudentDeanSessionBean.ejbCreate(StudentDeanSessionBean.java:29)
         at gwumc.edu.ejb.smhs.visitingstudent.StudentDeanSessionBean_LocalHomeImpl.create(StudentDeanSessionBean_LocalHomeImpl.java:27)
         at gwumc.edu.smhs.servlet.VisitingStudentDeanModel.<init>(VisitingStudentDeanModel.java:18)
         at gwumc.edu.smhs.servlet.VisitingStudentDean.doPost(VisitingStudentDean.java:27)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:850)
    [04/Feb/2005:17:03:38] FINEST ( 2260): Thread.currentThread()Tran[  Transaction:
    status = STATUS_ACTIVE
    Transaction Object = Transaction@18859698
    threads = 1
    ].afterCompletion: status = STATUS_ACTIVE, sync = null, STATUS_ROLLEDBACK for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@15670a.
    [04/Feb/2005:17:03:38] FINEST ( 2260): Thread[service-j2ee-2,5,main] Tran[   Transaction:
    status = STATUS_ACTIVE
    Transaction Object = Transaction@18859698
    threads = 1
    ].setStatus: STATUS_ACTIVE => STATUS_ROLLING_BACK for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@15670a.
    [04/Feb/2005:17:03:38] FINEST ( 2260): Thread[service-j2ee-2,5,main] Tran[   Transaction:
    status = STATUS_ROLLING_BACK
    Transaction Object = Transaction@18859698
    threads = 1
    ].internalRollback:status = STATUS_ROLLING_BACK ,txType: CMT for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@15670a.
    [04/Feb/2005:17:03:38] FINEST ( 2260): Thread[service-j2ee-2,5,main] Tran[   Transaction:
    status = STATUS_ROLLING_BACK
    Transaction Object = Transaction@18859698
    threads = 1
    ].setStatus: STATUS_ROLLING_BACK => STATUS_ROLLEDBACK for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@15670a.
    [04/Feb/2005:17:03:38] FINEST ( 2260): ---PersistenceManagerImpl.afterCompletion() process: true.
    [04/Feb/2005:17:03:38] FINEST ( 2260): Thread[service-j2ee-2,5,main] Tran[   Transaction:
    status = STATUS_ROLLEDBACK
    Transaction Object = Transaction@18859698
    threads = 1
    ].forget:status = STATUS_ROLLEDBACK ,txType: CMT for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@15670a.
    [04/Feb/2005:17:03:38] FINEST ( 2260): ---SQLPersistenceManagerFactory.releasePersistenceManager() PM:com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@15670a for JTA Tx: com.sun.ejb.containers.PMTransactionImpl@4.
    [04/Feb/2005:17:03:38] FINEST ( 2260): ---SQLPersistenceManagerFactory.releasePersistenceManager() PM:com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@15670a for JTA Tx: null.
    [04/Feb/2005:17:03:38] FINEST ( 2260): <--SQLPersistenceManagerFactory.returnToPool().
    [04/Feb/2005:17:03:38] FINE ( 2260): EJB5018: Some unmapped exception occurred : [{0}]
    javax.ejb.EJBException: nested exception is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to load the configuration for class gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState.
    NestedException: com.sun.jdo.api.persistence.support.JDOUserException: The mapping for class gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState is invalid. Compile the class in the IDE, correct any errors, and verify that all required files are packaged for execution.
    com.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to load the configuration for class gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState.
    NestedException: com.sun.jdo.api.persistence.support.JDOUserException: The mapping for class gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_JDOState is invalid. Compile the class in the IDE, correct any errors, and verify that all required files are packaged for execution.
         at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.getPersistenceConfig(SQLStoreManager.java:145)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.loadPersistenceConfig(PersistenceManagerImpl.java:2085)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.getRetrieveDesc(PersistenceManagerImpl.java:1009)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.CodeGeneration.createRetrieveDesc(CodeGeneration.java:707)
         a

  • Access of undefined method/property through reference with a static type Class

    I get the following error: (it's not word for word but you get the idea)
    Error: Access of undefined method getStatus through reference with a static type Class.
    Here's what's happening in the code. I'm trying to create a User class that is instantiated at the start of my app. I want the User class to have properties like mainStatus, with helper methods like setStatus etc. Pretty simple.
    so on my HardDisk I have my flash_working folder with all my flash projects. I created my class file/package under the directory com.mypackage
    package com.mypackage
        import flash.display.*;
        public class User extends Sprite
            public var mainStatus:int;
            public function User()
                trace("User Created!");
                mainStatus = 0;
            public function setStatus(status:int):void
             mainStatus = status;
        public function getStatus():int
            return mainStatus;
    Ok, so far so good.
    now I created a new .fla file under the root of /flash_working/. The class file is in /com/mypackage/User.as
    in my .fla file I have:
    import com.mypackage.User;
    var myUser:User = new User();
    var i = User.getStatus();
    trace(i);
    That's all the code I have. Could someone please explain why it's giving me that error?
    If I try to access the public var mainStatus through user.mainStatus that gives a similar error saying:
    Error: Access of undefined property mainStatus through reference with a static type Class.
    Thanks for any help!
    jef3189

    the public getStatus() function that you created needs to be referred to through an instance of the class.
    So:
    import com.mypackage.User;
    var myUser:User = new User();
    var i = myUser.getStatus();
    trace(i);
    Also, an aside. You can create a getter/setter for status, to avoid having to do the function as such.
    package com.mypackage
        import flash.display.*;
        public class User extends Sprite
            public var mainStatus:int;
            public function get status():int
                return mainStatus;
            public function set status(value:int):void
                 mainStatus = value as int;
              public function User()
                trace("User Created!");
                mainStatus = 0;
    And then, you can call it as:
    import com.mypackage.User;
    var myUser:User = new User();
    trace(myUser.status);
    EDIT
    I just noticed that you made the variable public as well, which means you can access it without getter/setter or function.
    import com.mypackage.User;
    var myUser:User = new User();
    trace(myUser.mainStatus);

  • Handling BLOBs with CMP Beans

    Hi,
    is there a detailed example how to handle Blob's with CMP Beans?
    I'm trying to store some images in a database (Oracle 9i) using CMP Beans and Oracle iAS 9.03 and jdk 1.4.
    Thanks in advance
    Jens

    We are currently developing a How-To on this and will put this on OTN.
    1) Code snippet from Bean Class:
    public abstract byte[] getPicture();
    public abstract void setPicture(byte[] newPicture);
    public Long ejbCreate(Long empno, byte[] newPicture)
    setEmpno(empno);
    setPicture(newPicture);
    return empno;
    public void ejbPostCreate(Long empno, byte[] newPicture)
    2) Mapping in the orion-ejb-jar.xml:
    <entity-deployment name="EmployeePicture" data-source="jdbc/OracleDS" table="EMPPIC">
    <primkey-mapping>
    <cmp-field-mapping name="empno" persistence-name="EMPNO" persistence-type="NUMBER(8)"/>
    </primkey-mapping>
    <cmp-field-mapping name="empno" persistence-name="EMPNO" persistence-type="NUMBER(8)"/>
    <cmp-field-mapping name="picture" persistence-name="PICTURE" persistence-type="BLOB(4000)"/>
    </entity-deployment>
    3) Create the client to create the bean:
    Long empNo =(Long) Long.valueOf(request.getParameter("EmpNo"));
    String fileName =request.getParameter("ImageFileName");
    InputStream is = new BufferedInputStream(new FileInputStream(fileName));
    int len;
    // Initialize byte array
    byte byteValue[] = new byte[2048000];
    len = is.read(byteValue);
    EmployeePictureLocal employeePicture = empHome.create(empNo , byteValue);
    out.println("Picture of Emp#:"+empNo +" successfully Loaded into DB <br> <br>");
    4) Code snippet to view the image :
    Long empNo =(Long) Long.valueOf(request.getParameter("EmpNo"));
    out.println("Picture of Emp#"+empNo);
    EmployeePictureLocal emp = empHome.findByPrimaryKey(empNo);
    response.setContentType("image/jpeg");
    OutputStream os = null;
    os = response.getOutputStream() ;
    byte[] pic = emp.getPicture();
         os.write(pic);
    os.close();
    os = null;
    Let me know if this helps
    thanks
    Debu

  • Iphone 6 with IOS 8.0.2 bluetooth broken with RHB430N Radio in 2011 Ram 1500

    I got my 64GB Iphone 6 just after release date, paired properly with my RHB430N radio in my 2011 Dodge Ram 1500 and worked great. When the new update of IOS came out 8.0.2, I installed that on my phone. Now the bluetooth is broken with my radio. It seems to pair ok from the radio side but I get a message that the phone cant see the uconnect radio during pairing. When I try and make a call, It wont work through voice activation, if I do get to work, the call stays active for about 5sec on the radio then it shuts off, the phone stays on making the call. Weird!
    I tried a factory reset on the radio, as well as network reset on my iphone with no luck. My Iphone 4S i had previously paired and worked fine with IOS 7.1.2
    anyone else with the issue? I noticed a few other people with different vehicle makes with the same issue after the 8.0.2 update and like I said it paired and worked fine with IOS 8.0 out of the box.
    any fixes or work arounds available meantime?

    I got my 6 three days ago (fine device, by the way. Meg St Clair will be proud of me: I finally took the plunge, I who claimed that I would never buy another iPhone, but I'm dithering...), and so far, no issues, none whatsoever, when syncing my phone via USB.
    WiFi syncing is another matter, though, because the phone simply doesn't appear in iTunes. I've checked all the right boxes, made sure the phone was set to accept WiFi syncing, to no avail.
    I'll look into it this weekend, just in case I missed something.
    But I can tell you this: all the content I had backed-up is now back on the phone, nothing's missing. I have a 2006 MacBook Pro running Snow Leppard.

  • Internal error in LMLCCS_UPDATEF02 LCL_DB method get_normvector position A with RC 1 when VL31N processing only

    HI Everyone,
    I have mentioned error (Internal error in LMLCCS_UPDATEF02 LCL_DB method get_normvector position A with RC 1) only when I try to process IB GR in transaction VL31N.
    This problem does not occur in other Material related transaction.
    The Plan that we have problem was created many years ago and also ML was activated at that time.
    We did not any changes to ML settings since.
    I had revived followings notes:
    639675 - Initialization of the actual cost component split
    710808 - Activating actual cost comp split: check actual costing
    584904 - MIRO: no procurement alternative/wrong price diff in ML
    Seems like first one fit our problem the best, but in our cases we do not activated component split after the material ledger production startup and also we do not have such problem besides VL31N. In addition using above solution, even try, would lead to lost of historical data which we would like to avoid.
    Does anyone faced similar issue and have an idea how to deal with this?
    Thanks,
    Rafał

    Hi Felipe,
    Raise an message to sap.When you are getting this dump.
    Regards,
    Madhu.

  • Did elationship fields in entity bean with CMP same as foreign key in table

    did elationship fields in entity bean with CMP same as foreign key in table database.so we don't have to make some foreign key column in table database.
    did Container handle that both.
    I need some answer
    thank's

    Suppose you have Group and user entity. Relation is 1-m. One group many users. When you create user, you dont need to send group id, All you need is create user and add it in collection (cmr-field) in group(user belongs to). Container will add its group id in user entity as well as in db.

  • Javax.ejb.EJBException: Method is not a known CMP field accessor...

    Hi !
    I have a little problem. When I deploy my jar file, I have the next message :
    "javax.ejb.EJBException: Method is not a known CMP field accessor, CMR field accessor, or ejbSelect method: methodName=compareTo"
    Is there someone to tell me why ? ^_^
    I didn't put the source code in this topic, not to pollute it, but if you need it, tell me ;)
    Thx for your help.

    Hi Spidey !
    Thx for you help but... Giving my method doesn't require the use of EJBQL, I don't think I have to define it in my deployment descriptor (this is not a query)...
    I give you an idea of my (experimental ^_^) source code :
    public class CountryBean implements EntityBean{
    public int compareTo(Country c){
    SOP("COMPARE TO");
    return 0;
    public class MySession implements SessionBean{
    public int doIt(){
    MyComparator comparator = new MyComparator();
    return comparator.compare(country1, country2);
    public class MyComparator implements Comparator{
    public int compare(Object o1, Object o2){
    return compare((Country)o1, (Country)o2);
    public int compare(Country c1, Country c2){
    SOP("COMPARE");
    return c1.compareTo(c2);
    When I call doIt(), the message "COMPARE" is written and just after, there's this message (the message "COMPARE TO" is never written):
    "11:29:44,204 ERROR [LogInterceptor] TransactionRolledbackException, causedBy:
    javax.ejb.EJBException: Method is not a known CMP field accessor, CMR field accessor, or ejbSelect method: methodName=compareTo
    at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:110)
    at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59)
    at CountryBean$Proxy.compareTo(<generated>)"
    I hope this is clear ^__^
    Thx for helping me ;)

  • How to SELECT FOR UPDATE with CMP (Oracle)

    The most common database (Oracle) by default uses a scheme that does not fit into any of those isolation levels. A SELECT statement selects data at the start of the transactions, whereas a SELECT ... FOR UPDATE does something quite different. It is essential to do SELECT FOR UPDATEs before updating the row as SELECT does no lock. It's a hack that works well in practice.
    1. Which isolation level is this?
    2. More fundamentally, how an earth is it possible to use this scheme with CMP?! You would have to distinguish load() from loadForUpdate()! Is CMP inconsistent with Oracle?
    This is a pretty big whole in the CMP spec!

    No. thats no goes well.
    Transaction serializable in Oracle uses a optimistic
    concurrency system. And for update is a
    pessimistic concurrency.
    With optimistic: the system is faster but it can fail
    With pessimistic: if doesnt fail (usually;)
    You can solve the proble with many differents systems:
    1. Edit the .xml descriptor files ans change the sql sentences.
    And my prefer one.
    2. Make a new jdbc driver that inherits from the original
    oracledriver.
    The new driver give u in "getConnection()" a new connection class that inherits from the original connection.
    The executestatement and preparestatement adds the
    string "for update" if the stattement was starting by select.
    Configure your container to use the new driver.

  • I switched to the classic 'landscape' and when i reboot, it just stays at the greay screen, with the macintosh logo, and a blinking question mark. ive tried several methods of key combinations with rebooting etc.. i just bought this. please help.

    i switched to the classic 'landscape' and when i reboot, it just stays at the greay screen, with the macintosh logo, and a blinking question mark. ive tried several methods of key combinations with rebooting etc.. i just bought this. please help.
    I bought this off of craigslist with my christmas money, TODAY. i really need help, i have OS X experience from school, just not OS 9x. I need to reboot back to OS X asap. anything that may help is very appreciated. Thank You.
    Chris.

    Are you able to start up in Safe Mode?
    http://support.apple.com/kb/HT1455?viewlocale=en_US
    If this works you will see the normal desktop Once completely started up in Safe Mode, try to restart normally and go to Applications > Utilities > Disk Utility. Click on the top hard drive icon in the left sidebar and note the S.M.A.R.T. status at the bottom right of the pane. What does it say?
    Select the named boot volume in the left sidebar, ("Macintosh HD" unless it has been renamed). What is the hard drive capacity and how much space remains available on it? Repair permissions on it.
    See if you are able to do a little hard drive maintenance to help things out.

  • Help with CMP

    I posted a question previously and did not get a response. Does anyone know
    where I can get some information/help with a problem I am having with CMP?
    Thanks
    Bailey

    I posted a question previously and did not get a response. Does anyone know
    where I can get some information/help with a problem I am having with CMP?
    Thanks
    Bailey

Maybe you are looking for

  • Adobe media encoder cs4 extremely slow (5 hours for 8 minute video)

    I know you have seen slowencoder issues before, but I have tried everything I can to fix this and need help. Lets start with basic info: 8 minute vieo takes over 5 hours to generate final video. Observations:  3 processes are running most of the time

  • Printing a PDF file saves .prn but won't go to printer

    Windows 7 Utlimate, 32-bit.. Acrobat Pro 9.5.5. An HP Officjet and a Brother laser printer, both networked. Whenever I try to print from Acrobat, instead of going to my chosen printer I get a Save dialog box for a .prn file. Thus, I can no longer pri

  • Font Change in Preview mode

    The font I used while editing a cp4 slide changes when previewed in the web browser.  This does not happen with other slides in my project. What can i do to prevent this?

  • Why is it playong fine in QT but not FCP

    i just render a small sequence in 8-bit uncompressed. If i play the rendered Mov file in QT, it plays fine but if i import it in FCP and lay it on a sequence using the same setting as the mov ( 8 bit uncompresed ) it's jerky and often stop playback..

  • Java JRE 1.4.2_09

    I'm currently running 1.4.2_07, an upgrade to 1.4.2_09 is required for the app. running on the server. Is 1.4.2_09 still supported or should I just jump to 1.4.2_12? And what are the major differences between the two? Thanks in advance for any advice