Query is not defined Exception while Executing Finders

Hi,
We have used Toplink 2.5.1 & weblogic 5.1 for a year. All works great. Recently we are upgrading to Weblogic 7.01 and toplink 903. Inorder to make previous finder methods work, I created a Class DescriptorManager add a lot static methods each for one entitybean. In Mapping Workbench, I did:
.Select Advanced Properties > After Load from the menu for the bean.
.Enable the amendment method for the descriptor by specifying the class and name of the static method.
The code which in the DescriptorManager.java is:
public static void addDescriptorFinders(Descriptor descriptor)
     * Enumeration findDescriptorByServiceType(BigInteger stypeId)
ReadAllQuery query1 = new ReadAllQuery();
query1.setName("findDescriptorsBySrvcTypeId");
query1.addArgument("lStypeId");
query1.setReferenceClass(MeDescriptorBean.class);
ExpressionBuilder builder = new ExpressionBuilder();
query1.setSelectionCriteria(builder.get("serviceType").equal(builder.getParameter("lStypeId")));
descriptor.getQueryManager().addQuery("findDescriptorsBySrvcTypeId", query1);
In Here is MeDescriptorHome:
public interface MeDescriptorHome extends EJBHome {
     public MeDescriptor findByPrimaryKey(MeDescriptorPK key) throws FinderException,RemoteException;
public MeDescriptor findByGroupId( BigInteger groupId) throws FinderException, RemoteException;
     public MeDescriptor findOneByQuery(ReadObjectQuery query, Vector args) throws FinderException,RemoteException;
     public Collection findDescriptorsBySrvcTypeId(BigInteger serviceType) throws FinderException,RemoteException;
I write a test client, which call
findByPrimaryKey
findOneByQuery
findByGroupId
findDescriptorsBySrvcTypeId
The first two works.( which are toplink reserved query), the other two do not work. Can someone help me please? Thanks a lot!
Here is the error message I got:
Error during finders:
javax.ejb.FinderException: EXCEPTION [EJB - 10005]: Cannot find bean using finder: [findDescriptorsBySrvcTypeId]. [EXCEPTION [TOPLINK-6026] (TopLink (WLS CMP) - 9.0.3 (Build 423)): oracle.toplink.exceptions.QueryException
EXCEPTION DESCRIPTION: Query is not defined.]
server stacktrace is:
LOCAL EXCEPTION STACK:
EXCEPTION [TOPLINK-6026] (TopLink (WLS CMP) - 9.0.3 (Build 423)): oracle.toplink.exceptions.QueryException
EXCEPTION DESCRIPTION: Query is not defined.
at oracle.toplink.exceptions.QueryException.queryNotDefined(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.collectionFinder(Unknown Source)
at weblogic.ejb20.internal.EntityEJBHome.finder(EntityEJBHome.java:560)
at com.mslv.sla.dao.metric.MeDescriptorBean_onqudj_HomeImpl.findDescriptorsBySrvcTypeId(MeDescriptorBean_onqudj_HomeImpl.java:157)
at com.mslv.sla.dao.metric.MeDescriptorBean_onqudj_HomeImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:785)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
javax.ejb.FinderException: EXCEPTION [EJB - 10005]: Cannot find bean using finder: [findDescriptorsBySrvcTypeId]. [EXCEPTION [TOPLINK-6026] (TopLink (WLS CMP) - 9.0.3 (Build 423)): oracle.toplink.exceptions.QueryException

You are on the right track for sure. You should make sure that the <ejb-ql> node in you ejb-jar.xml file is empty, and that the arguments for the finder are specified correctly.
Next, I would make sure that the descriptor is, in fact, being amended. Maybe just throw a debug line into the descriptor amendment method for your MeDescriptorBean and make sure it is being called after you re-start the server.
JIM
Hi,
We have used Toplink 2.5.1 & weblogic 5.1 for a year. All works great. Recently we are upgrading to Weblogic 7.01 and toplink 903. Inorder to make previous finder methods work, I created a Class DescriptorManager add a lot static methods each for one entitybean. In Mapping Workbench, I did:
.Select Advanced Properties > After Load from the menu for the bean.
.Enable the amendment method for the descriptor by specifying the class and name of the static method.
The code which in the DescriptorManager.java is:
public static void addDescriptorFinders(Descriptor descriptor)
     * Enumeration findDescriptorByServiceType(BigInteger stypeId)
ReadAllQuery query1 = new ReadAllQuery();
query1.setName("findDescriptorsBySrvcTypeId");
query1.addArgument("lStypeId");
query1.setReferenceClass(MeDescriptorBean.class);
ExpressionBuilder builder = new ExpressionBuilder();
query1.setSelectionCriteria(builder.get("serviceType").equal(builder.getParameter("lStypeId")));
descriptor.getQueryManager().addQuery("findDescriptorsBySrvcTypeId", query1);
In Here is MeDescriptorHome:
public interface MeDescriptorHome extends EJBHome {
     public MeDescriptor findByPrimaryKey(MeDescriptorPK key) throws FinderException,RemoteException;
public MeDescriptor findByGroupId( BigInteger groupId) throws FinderException, RemoteException;
     public MeDescriptor findOneByQuery(ReadObjectQuery query, Vector args) throws FinderException,RemoteException;
     public Collection findDescriptorsBySrvcTypeId(BigInteger serviceType) throws FinderException,RemoteException;
I write a test client, which call
findByPrimaryKey
findOneByQuery
findByGroupId
findDescriptorsBySrvcTypeId
The first two works.( which are toplink reserved query), the other two do not work. Can someone help me please? Thanks a lot!
Here is the error message I got:
Error during finders:
javax.ejb.FinderException: EXCEPTION [EJB - 10005]: Cannot find bean using finder: [findDescriptorsBySrvcTypeId]. [EXCEPTION [TOPLINK-6026] (TopLink (WLS CMP) - 9.0.3 (Build 423)): oracle.toplink.exceptions.QueryException
EXCEPTION DESCRIPTION: Query is not defined.]
server stacktrace is:
LOCAL EXCEPTION STACK:
EXCEPTION [TOPLINK-6026] (TopLink (WLS CMP) - 9.0.3 (Build 423)): oracle.toplink.exceptions.QueryException
EXCEPTION DESCRIPTION: Query is not defined.
at oracle.toplink.exceptions.QueryException.queryNotDefined(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.collectionFinder(Unknown Source)
at weblogic.ejb20.internal.EntityEJBHome.finder(EntityEJBHome.java:560)
at com.mslv.sla.dao.metric.MeDescriptorBean_onqudj_HomeImpl.findDescriptorsBySrvcTypeId(MeDescriptorBean_onqudj_HomeImpl.java:157)
at com.mslv.sla.dao.metric.MeDescriptorBean_onqudj_HomeImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:785)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
javax.ejb.FinderException: EXCEPTION [EJB - 10005]: Cannot find bean using finder: [findDescriptorsBySrvcTypeId]. [EXCEPTION [TOPLINK-6026] (TopLink (WLS CMP) - 9.0.3 (Build 423)): oracle.toplink.exceptions.QueryException

Similar Messages

  • Class not found error while executing jar file

    I have written a java code in which i am connecting to database....when i run the class file using......java class_filename it works........
    but when i run the jar file using .......java -jar jar_name ...yi gives me the error as 'Class not found'......
    can anybody help me please......
    Thanks and Regards,
    Siddhesh

    that class is part of jar file.....in classpath i have included zip files for jdbc ...to get databse connection.....and the jar being executed ................still it gives the error ClassDefnotfound which i think is due to database connection problem.....the exception is raised while.....
    Class.ForName("Driver_name").newInstance();/ This driver is present in zip files that i have added in classpath....
    above statement doesn,t giv error while i execute the class file............but exception while executing jar file only..
    Thnaks and regards,
    siddhesh

  • Client not modifiable message while executing t-code ops7 and ops6

    Hi Guru's,
    I am getting "Client not modifiable message while executing t-code ops7 and ops6" in Unit test and Quality client.
    Pleae help me to resolve the error.
    Regards
    Sasikanth Reddy

    Hi
    Copy of the information I found regarding this issue:
    It is possible to allow the maintenance of 'Customizing'-tables in a       
    production client, even if the client is set to 'not modifiable'.          
    Normally this should be the case for tables TCJ04 (responsible person)     
    and TCJ05 (applicant).                                                                               
    Please could you check the settings in your system and change it if        
    necessary:                                                                               
    Transaction SE11:                                                                               
    Table TCJ04: delivery class should be set to 'C'                           
          TCJ05: delivery class should be set to 'C'                                                                               
    Transaction SOBJ -> Maintain                                                                               
    Position on V_TCJ04: Category should be 'CUST' field 'current settings'    
    should be marked.                                                                               
    Position on V_TCJ05: Category should be 'CUST' field 'current settings'                                                                               
    Please also check that your client is defined as 'PRODUCTIVE' via          
    transaction SCC4 (field client role).                                                                               
    I would also recommend that you review the attached notes with reference   
    to the usage of customizing setting "current settings": Nr. 77430,         
    Nr. 135028, Nr. 356483. These are also relevant for your release.          
    Kind regards,
    Zhenbo

  • Exception while executing

    Hi Friends,
    When I run my application  i have got the following Exception while executing it:
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException:
    Error connecting using JCO.Client: null
    What might be the problem.
    Is it that the JCO connection created is null or the Exception means something else.
    When i tried Deploying it locally its working well.
    Please help me out in this regard.
    Thanks and regards,
    Chandrashekar.
    Edited by: Armin Reichert on Jan 28, 2008 6:06 PM

    Hi Priyanka/Sumith,
    This is the required Stacktrace.
    Please go through this stacktrace and let me know how to resolve this issue.
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModel.prepareExecute(DynamicRFCModel.java:179)
    com.utc.sap.testappm.allmodels.ALLMODELS.Z_test_input(ALLMODELS.java:709)
    com.utc.sap.testappm.allmodels.Z_test_input.doExecute(Z_test_input.java:137)
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)
    com.test.testappCustomContoller.exuteCounterListData(testappCustomContoller.java:130)
    com.test.wdp.InternaltestappCustomContoller.exuteCounterListData(InternaltestappCustomContoller.java:171)
    com.test.testapp.onActionGo(testapp.java:188)
    com.test.wdp.Internaltestapp.wdInvokeEventHandler(Internaltestapp.java:186)
    com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
    com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
    com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
    com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)
    com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
    com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
    com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
    com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    Thanks and regards,
    Chandrashekar.
    Edited by: chandrashekar chandrashekar on Jan 28, 2008 2:03 PM

  • ADS: com.adobe.ProcessingException: Class not found exception while loading

    Hi All,
    While i'm trying to activate FORM (Interactive Form in Transaction SFP), i'm getting error -
    ADS: com.adobe.ProcessingException: Class not found exception while loading class SAPForm, classpath: /usr/sap/AHS/DVEBMGS00/exe/jstart7 1.jar/usr/sap/AHS/DVEBMGS00/exe.
    Could anyone let me know the way to resolve this issue.
    Thanks and Regards,
    Sunil

    Many Thanks for the reply-It's working now
    I added the MySQL connector in the following manner
    1)Open the Tom Cat server console by Selecting 'Servers' in Package Explorer
    2)Right Click 'Tomcat v5.5 at localhost.server'
    3)Select 'Open Launch Configuration' under 'General Information'
    4)Select the 'Classpath' tab in the Edit configuration window that opens
    5)Select 'Add External Jars' and add the required connector

  • How to handle "The specified resource does not exist" exception while using entity group transactions to purge WADLogs table

    Hi,
    We have a requirement to purge the Azure WADLogs table on a periodic basis. We are achieving this by using Entity group transactions to delete the
    records older than 15 days. The logic is like this.
    bool recordDoesNotExistExceptionOccured = false;
    CloudTable wadLogsTable = tableClient.GetTableReference(WADLogsTableName);
    partitionKey = "0" + DateTime.UtcNow.AddDays(noOfDays).Ticks;
    TableQuery<WadLogsEntity> buildQuery = new TableQuery<WadLogsEntity>().Where(
    TableQuery.GenerateFilterCondition("PartitionKey",
    QueryComparisons.LessThanOrEqual, partitionKey));
    while (!recordDoesNotExistExceptionOccured)
    IEnumerable<WadLogsEntity> result = wadLogsTable.ExecuteQuery(buildQuery).Take(1000);
    //// Batch entity delete.
    if (result != null && result.Count() > 0)
    Dictionary<string, TableBatchOperation> batches = new Dictionary<string, TableBatchOperation>();
    foreach (var entity in result)
    TableOperation tableOperation = TableOperation.Delete(entity);
    if (!batches.ContainsKey(entity.PartitionKey))
    batches.Add(entity.PartitionKey, new TableBatchOperation());
    // A Batch Operation allows a maximum 100 entities in the batch which must share the same PartitionKey.
    if (batches[entity.PartitionKey].Count < 100)
    batches[entity.PartitionKey].Add(tableOperation);
    // Execute batches.
    foreach (var batch in batches.Values)
    try
    await wadLogsTable.ExecuteBatchAsync(batch);
    catch (Exception exception)
    // Log exception here.
    // Set flag.
    if (exception.Message.Contains(ResourceDoesNotExist))
    recordDoesNotExistExceptionOccured = true;
    break;
    else
    break;
    My questions are:
    Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    Would this logic fail in any particular case?
    How would this approach change if this code is in a worker which has multiple instances deployed?
    I have come up with this code by referencing the solution given
    here by Keith Murray.

    Hi Nikhil,
    Thanks for your posting!
    I tested your and Keith's code on my side, every thing worked fine. And when result is null or "result.count()<0", the While() loop is break. I found you code had some logic to handle the error "ResourceDoesNotExist" .
    It seems that the code worked fine. If you always occurred this error, I suggest you could debug your code and find which line of code throw the exception.   
    >> Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Base on my experience, we could use code (like the above logic code) and using the third party tool to delete the entities manually. In my opinion, I think the code is every efficient, it could be auto-run and save our workload.
     >>Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    In you code, you used the "recordDoesNotExistExceptionOccured " as a flag to check whether the entity is null. It is a good choice. I had tried to deleted the log table entities, but I used the flag to check the result number.
    For example, I planed the query result count is 100, if the number is lower than 100, I will set the flag as false, and break the while loop. 
    >>Would this logic fail in any particular case?
    I think it shouldn't fail. But if the result is "0", your while loop will always run. It will never stop. I think you could add "recordDoesNotExistExceptionOccured
    = true;" into your "else" block.
    >>How would this approach change if this code is in a worker which has multiple instances deployed?
    You don't change anything expect the "else" block. It would work fine on the worker role.
    If any question about this issue, please let me know free.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Null pointer exception while executing a scenario from cloned work repo

    Hi,
    I have involved in ODI 10g to 11g migration activity.
    For doing that activity, i cloned the existing master and work repositories into some intermediate master and work schemas.
    Created new configuration settings for pointing the odi 10g to the intermediate master and work repositories.
    Everything is fine till this, but while executing any interface or package anything from intermediate work repo designer, am facing error as below
    "Cannot start the execution, Null pointer exception"
    java.lang.NullPointerException
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.t(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.dbobj.SnpSession.localExecute(SnpSession.java)
         at com.sunopsis.graphical.l.or.e(or.java)
         at com.sunopsis.graphical.r.z.actionPerformed(z.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Note: My previous and cloned Master's work's repository id are same
    Could anyone pls help on this.
    Thanks in advance..

    The error is resolved by following the below solution
    If you receive an error in ODI 10g like;
    java.lang.Exception: Error during Session launching
    at com.sunopsis.dwg.dbobj.SnpSession.remoteExecute
    or
    java.lang.NullPointerException
    at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
    1.First check whether your agents are working and test connection to repositories. If everything ok, you might have changed your repository name recently.
    2.When you export your work and master repository and import to another schema or database and whether you connect to your imported repository, you change your repository name in your first environment.
    3.Correct order is first rename your Master Repository name, log off / log on and change your Work Repository name and check below fields in both your Master and Work Repositories in both environments.
    Master Repository : SNP_REM_REP
    Work Repository : SNP_LOC_REPW
    REP_NAME column of MASTER_REP.SNP_REM_REP should be equal to REP_NAME column in WORK_REP.SNP_LOC_REPW.
    You cannot see WORK_REP.SNP_LOC_REPW value in ODI Topology Manager and if you are changing your repository name you need to update value from database.
    Change the value from DB, loggoff and logon the user and connect the designer again.
    Regards

  • Error: JAVA_HOME is not defined correctly - While running ant.

    I have upgraded the JDK 1.5 Update 10 to Update 14. After upgrading the ant is failing when using with cygwin.
    It's giving the below error message:
    Error: JAVA_HOME is not defined correctly.
    We cannot execute /cygdrive/c/Java/jdk14/bin/java
    The JAVA_HOME is set properly & even I am able to check java -version.
    I am using apache-ant-1.6.5 and cygwin.
    Have any one faced the same problem?
    Please let me know if you have any solutions

    Grrrr. Been having a similar problem, but with Maven2. Allow me to (hopefully) save someone the gnawing of teeth and several bald patches.
    For starters, the Maven documentation gives you a pretty clear example of how to set your PATH. This is as follows:
    export PATH=/usr/whatever/whateveragain/apache-maven-2.0.10/bin:$PATH
    Simple, eh? Note the colon before $PATH. Then, it states quite presumptuously "4) Make sure JAVA_HOME is set to the location of your JDK". However, you don't set it in exactly the same way. You set it in virtually the same way, except without the colon, like this:
    export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0$JAVA_HOME
    Note that if you get the paths wrong a couple of times, you may reset them with the unset command. So to unset JAVA_HOME you'd use:
    unset JAVA_HOME
    After which you may set it again. As is advised, you may try to set the user privileges, but they didn't seem to affect my luck at all. Hope this helps!

  • 'Query has not yet calculated' When executing BW report in Bex

    Hi, all
    There is message 'Query has not yet calculated' when execucting BW report in BEx.
    what's the reason? How to solve this issue?
    however, when I change the filter to one or several employee number such as employee information report, there will be one or several records in the report.
    Anyone can help me?Thanks very mcuh.
    Carina

    ok.
    While using exception aggregation, you need to give a reference characteristics. You might have given 0calday for the same for 0ANSALARY ( SUM LAS ) and your infoprovider does not have 0calday and the report is unable to calculate the result based on 0calday.
    This will obviously throw and error but you will be able to see the result. But the result will not calculate last sum for 0ansalary correctly.
    For this, please check the infoprovider design. You can use reference character other than 0calday and make sure that, the reference time characteristics is present in your infoprovider.
    Cheers
    Chanda

  • "Content account is not defined" error while trying to checkin a document

    Hi, all
    I am running ECM integration samples included on SDK (included on file ContentIntegrationSuite_10gR3_20081218.zip, folder "oracle-cis-10g\samples\CodeExamples\src\java\com\stellent\cis\sdk\samples"), and I got the error "Content account is not defined. Unable to validate user security." when running the ChekinFile.java sample.
    I could successfully run the ServerInfo.java with no problems, and I expected to run the other example as easily as that.
    Is there any configuration I must change on ECM to run this sample?
    The stack trace follows. Thanks in advance.
    com.stellent.cis.client.command.CommandException: Content item '1256149797205Content-Id-SDK' was not successfully checked in. Content account is not defined. Unable to validate user security.
         at com.stellent.cis.server.api.scs.impl.SCSCommand.executeRequest(SCSCommand.java:338)
         at com.stellent.cis.server.api.scs.impl.SCSCommand.execute(SCSCommand.java:222)
         at com.stellent.cis.client.command.impl.services.CommandExecutorService.executeCommand(CommandExecutorService.java:57)
         at com.stellent.cis.client.command.impl.CommandFacade.executeCommand(CommandFacade.java:158)
         at com.stellent.cis.client.command.impl.BaseCommandAPI.invokeCommand(BaseCommandAPI.java:84)
         at com.stellent.cis.client.api.scs.document.checkin.impl.SCSDocumentCheckinAPI.checkinFileStream(SCSDocumentCheckinAPI.java:707)
         at com.stellent.cis.sdk.samples.checkin.CheckinFile.execute(CheckinFile.java:87)
         at com.stellent.cis.sdk.samples.checkin.CheckinFile.main(CheckinFile.java:64)
    Caused by: com.stellent.cis.server.api.scs.request.SCSRequestException: Content item '1256149797205Content-Id-SDK' was not successfully checked in. Content account is not defined. Unable to validate user security.
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestProcessor.checkBinderForErrors(SCSRequestProcessor.java:357)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestProcessor.validateResponse(SCSRequestProcessor.java:273)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestProcessor.processRequest(SCSRequestProcessor.java:118)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestFilterChain.doRequestFilter(SCSRequestFilterChain.java:61)
         at com.stellent.cis.server.api.scs.request.stream.SCSOptimizedPublishFilter.handleRequest(SCSOptimizedPublishFilter.java:128)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestFilterChain.doRequestFilter(SCSRequestFilterChain.java:58)
         at com.stellent.cis.server.api.scs.request.stream.SCSOptimizedRetrieveFilter.handleRequest(SCSOptimizedRetrieveFilter.java:250)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestFilterChain.doRequestFilter(SCSRequestFilterChain.java:58)
         at com.stellent.cis.server.api.scs.request.rewrite.SCSRewriteURLFilter.handleRequest(SCSRewriteURLFilter.java:140)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestFilterChain.doRequestFilter(SCSRequestFilterChain.java:58)
         at com.stellent.cis.server.api.scs.request.cache.impl.SCSServiceCacheFilter.handleRequest(SCSServiceCacheFilter.java:104)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestFilterChain.doRequestFilter(SCSRequestFilterChain.java:58)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestExecutorProxy.execute(SCSRequestExecutorProxy.java:105)
         at com.stellent.cis.server.api.scs.impl.SCSCommand.executeViaProxy(SCSCommand.java:353)
         at com.stellent.cis.server.api.scs.impl.SCSCommand.executeRequest(SCSCommand.java:335)
         ... 7 more

    Hi
    Issue is caused with the way parameters are passed from CIS 8.x onwards where when not giving a parameter that is a required one then it has to be set to blank. Like in the case for dDocAccount setting the value to blank string (i.e. "") would successfully check in the document.
    dDocAccount is a required additional paramter that needs to be supplied when checking in contents when UseAccounts=true is set in the config.cfg of the CS.
    From the CS checkin page when not specifying the Account it is set as blank which is why the the checkin goes through fine.
    This was not the case with CIS 7.6.1 where dDocAccount was not required to pass as parameter even if UseAccounts=true is set in the config.
    In case checkins have to be done without giving the Account then add the code for setting the dDocAccount to a blank string (i.e. "") and then recompile the java code and execute the it.
    Reason why CIS 7.6.1 did not show this behaviour is since CIS would set that (the value for account parameter) in the binder and pass it to the CS.
    Hope this helps
    Srinath

  • Command not found error while executing shell programs in terminal

    I have written one sample shell program.
    while executing shell program in terminal,it shows COMMAND NOT FOUND error.
    How to slove this.

    Post the "Actual" error.  It says more than command not found.
    Post your script.
    Post the output from:
    echo $PATH
    Post the output from:
    which name_of_command_not_found

  • "Limits not Defined " error while saving IT0008 in sap hr

    Hi Experts
    While trying to Hiring an employee, infotype0008 showing Limits not defined error and not allowing to save the record. I checked table V_T510 and V_T510N. All the limits defined in right way. Please check and advice. I attached copy of screen shot for your reference.
    Regards
    Prakash Bhave

    Hi Remi
    Thanks for your reply. As per your reply I followed procedure and it allowed me to save Basic Pay Infotype (0008)
    Thanks a ton.
    Regards
    Prakash Bhave

  • Output device not defined error while saving the quotation

    Hi all,
    We have some custom output types (ZGEN, ZSSO, ZQTO, ZJT)configured in the nace transaction for Application V1.  Whenever i am creating / saving a quotation one of the output type(ZQTO) is not processing for mail (External Send) and it is displaying an error as 'Output device not defined'.  If i remove all the output types while changing the quotation in VA22 from header, it is processing.
    I checked with all other output types combination.  The error is trigerred only when we  have ZJT output type along with ZQTO.
    We are not able to recognise the error.  Please help out to solve this issue.  Its very urgent.
    Thanks.

    Hi Remi
    Thanks for your reply. As per your reply I followed procedure and it allowed me to save Basic Pay Infotype (0008)
    Thanks a ton.
    Regards
    Prakash Bhave

  • JDO Query does not seem to be executed at all

    I have the following JDO query and it returns empty collection but it
    should return some records. I set "SQL=TRACE" in kodo.properties file and
    traced the log file. This query does not seem to generate SQL statement
    at all. Other JDO method generates SQL statements.
    Kodo version: 3.1.2
    J2SE: 1.4.1_05
    Database: MS SQL Server 2000
    // Get endorsement rule type
    String ruleType = getEndorsementRuleType();
    Query qry = pm.newQuery(EndorsementRule.class);
    try {
    qry.declareParameters("String ruleType");
    qry.setFilter("this.ruleType == ruleType");
    log.info("*** EXECUTE RULE QUERY ***");
    Collection c = (Collection)qry.execute(ruleType);
    log.info("*** qrysize=" + c.size());
    finally {
    qry.closeAll();
    Log file: There is not SQL statement generated for the JDO query.
    [junit] INFO: Get endorsement rule type
    [junit] Jun 7, 2004 12:39:01 PM EndorsementRuleEngine
    getEndorsementRuleType
    [junit] INFO: *** JDO EXECUTE BEGIN ***
    [junit] 16366 TRACE [main] kodo.jdbc.SQL - <t 3969559, conn 18096534> [0
    m
    s] executing prepstmnt 20731151 SELECT t0.EndtType, t0.EndtId FROM EndtHe
    aderItem t0 WHERE t0.EndtId = ? [params=(int) 6137330] [reused=0]
    [junit] Jun 7, 2004 12:39:01 PM EndorsementRuleEngine
    getEndorsementRuleType
    [junit] INFO: *** JDO EXECUTE END ***
    [junit] Jun 7, 2004 12:39:02 PM EndorsementRuleEngine getRules
    [junit] INFO: *** EXECUTE RULE QUERY ***
    +++ WHERE IS SQL statement for JDO Query ? +++
    [junit] Jun 7, 2004 12:39:02 PM EndorsementRuleEngine getRules
    [junit] INFO: *** qrysize=0
    [junit] Jun 7, 2004 12:39:02 PM mytest.EndtRuleTestCase setComplete
    Thanks,
    Andy

    Please ignore this post. The error was caused by the file merge done by
    StarTeam.

  • Error the actual price could not be determined while executing CKMLCP

    Hi!
    we are facing the problem while executing CMLCP, the error message is "The actual price for 10VN000012/MHR could not be determined" ( error message number CKMLLA102).
    Our scenarios is as below:
    we have 4 activity types out of which activity type "MHR" are used only for Indirect activity allocaiton tracing factor that means all service costs from service cost centres will be distributed to production cost centres in the ratio of actual quantity confirmed for MHR activity type.
    for this activity type we will not have any actual cost distribution, so there will not be any actual cost for this activity type.
    So, as actual quantity is confirmed during production process and while executing CMLCP is expecting actual price for the same ( we are executing KSII for actual activity price calculation before costing run).  is there any enhancement to avoid this error, because our client don't want to allocate cost to this activity type.
    regs,
    ramesh

    Hi Ramesh,
    Message CKMLLA102 is standard system behaviour when the actual
    price of an activity is zero because cost center accounting does not
    allow actual prices to be zero.
    Unfortunately the system can't distinguish an actual activity price
    of zero from a not yet calculated activity price, so for activities
    with actual price zero the message CKMLLA 102 is sent.
    Have you check the SAP note 361379?. It provides you some options to overcome
    the issue.
    Best regards,
    MLM

Maybe you are looking for