Named Queries and Enum error

@NamedQuery(name = "Task.findNumberTasksComplete", query = "select count(o.id) from Task o where o.status like 'C%'")that is the query i am performing. Status is an enumerator type.
When i try to perform this,
int numerator = Integer.parseInt(em.createNamedQuery("Task.findNumberTasksComplete").getSingleResult().toString());I get the following error
Caused by: java.lang.ClassCastException
     at java.lang.Class.cast(Class.java:2951)
     at oracle.toplink.mappings.converters.EnumTypeConverter.convertObjectValueToDataValue(EnumTypeConverter.java:109)
     at oracle.toplink.mappings.foundation.AbstractDirectMapping.getFieldValue(AbstractDirectMapping.java:520)
     at oracle.toplink.internal.expressions.QueryKeyExpression.getFieldValue(QueryKeyExpression.java:293)
     at oracle.toplink.internal.expressions.ConstantExpression.printSQL(ConstantExpression.java:106)
     at oracle.toplink.expressions.ExpressionOperator.printDuo(ExpressionOperator.java:1806)
     at oracle.toplink.internal.expressions.CompoundExpression.printSQL(CompoundExpression.java:266)
     at oracle.toplink.internal.expressions.RelationExpression.printSQL(RelationExpression.java:552)
     at oracle.toplink.internal.expressions.ExpressionSQLPrinter.translateExpression(ExpressionSQLPrinter.java:277)
     at oracle.toplink.internal.expressions.ExpressionSQLPrinter.printExpression(ExpressionSQLPrinter.java:107)
     at oracle.toplink.internal.expressions.SQLSelectStatement.printSQL(SQLSelectStatement.java:1414)
     at oracle.toplink.internal.databaseaccess.DatabasePlatform.printSQLSelectStatement(DatabasePlatform.java:2425)
     at oracle.toplink.platform.database.oracle.OraclePlatform.printSQLSelectStatement(OraclePlatform.java:695)
     at oracle.toplink.internal.expressions.SQLSelectStatement.buildCall(SQLSelectStatement.java:731)
     at oracle.toplink.descriptors.ClassDescriptor.buildCallFromStatement(ClassDescriptor.java:635)
     at oracle.toplink.internal.queryframework.StatementQueryMechanism.setCallFromStatement(StatementQueryMechanism.java:367)
     at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.prepareReportQuerySelectAllRows(ExpressionQueryMechanism.java:1491)
     at oracle.toplink.queryframework.ReportQuery.prepareSelectAllRows(ReportQuery.java:1201)
     at oracle.toplink.queryframework.ReadAllQuery.prepare(ReadAllQuery.java:767)
     at oracle.toplink.queryframework.ReportQuery.prepare(ReportQuery.java:973)
     at oracle.toplink.queryframework.DatabaseQuery.checkPrepare(DatabaseQuery.java:443)
     at oracle.toplink.queryframework.ObjectLevelReadQuery.checkPrepare(ObjectLevelReadQuery.java:608)
     at oracle.toplink.queryframework.DatabaseQuery.prepareCall(DatabaseQuery.java:1528)
     at oracle.toplink.internal.ejb.cmp3.base.EJBQueryImpl.getDatabaseQuery(EJBQueryImpl.java:427)
     at oracle.toplink.internal.ejb.cmp3.base.EJBQueryImpl.setAsSQLReadQuery(EJBQueryImpl.java:95)
     at oracle.toplink.internal.ejb.cmp3.base.EJBQueryImpl.getSingleResult(EJBQueryImpl.java:507)
     at ca.esti.qa.model.QualityAssuranceBean.calculatePercentFinished(QualityAssuranceBean.java:431)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:27)
     at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:101)
     at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
     at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:101)
     at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
     at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:101)
     at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
     ... 126 moreAny help is greatly appreciated!!
Dan

hi Dan
Maybe this is a question for this forum: "TopLink/JPA"
TopLink/JPA
success
Jan Vervecken

Similar Messages

  • Named Queries and QueryByExample

    Folks,
    Is it possible to register a named query w/ a descriptors QueryManager AND perform QueryByExample queries?
    If so, can you post an example of UnitOfWork call?

    No, named queries are static, they have a fixed selection criteria and number of parameters. Query by example is dynamic.

  • Named Queries and Finders

    Hi, I would like to know if is there a way (in JDev 10.1.3 or in standalone TopLink Workbench) to generate, during mapping, automatic Named Queries that are finders for the table. In example if I have a table with id, name, surname I would like to have in automatic the Named Queries getById(Long id), getByName(String name), getBySurname(String surname). On I project we used Firestorm DAO, which generate automatically these methods, that are quite useful.
    Thanks in advance,
    Stefano E.

    If you are using TopLink 10.1.3 CMP2 in OC4J 10.1.3 then the CMP runtime will automatically define finders for any finder of the format, "findBy<field>" where <field> is the name of a bean cmf. You do not need to define these finders in the Mapping Workbench nor deployment XML.
    You can use the Mapping Workbench do define these finders as well, but there is nothing in the Mapping Workbench that allows automatic generation of these finders.

  • Named Queries and Null parameters

    I am trying to use null values in the where clause of named query. I have a named query defined in my Workbench (Toplink 9.0.4) and the where claus looks like this.
    WHERE PERSON.LAST_NAME=#lastName
    If a pass in a value for lastName, say "Jones", Toplink correctly creates a where clause in single quotes:
    WHERE PERSON.LAST_NAME='Jones'
    However, if I pass in a null value for lastName, Toplink generates this:
    WHERE PERSON.LAST_NAME=NULL
    This will never select anything, because a value can never "equal" null, but rather it IS NULL or it isn't.
    Any ideas out there on how I could get Toplink to substitute "IS NULL" of "=NULL" in such situations?

    Different databases handle = null differently. I assume you are on DB2?
    You can force a query to dynamically generate its SQL, to ensure that IS NULL is used.
    query.setShouldPrepare(false);
    In the Mapping Workbench for the query click on 'Advanced Properties' and un-click 'Prepare SQL Once'.
    The database may also process the = null correctly if binding is used, but I'm not sure on this.

  • Deployment error - Errors in named queries in weblogic 10

    Hi, All.
    I got the error message when I tried to deploy my webapp to weblogic 10 & 10.1(10M1).
    Stacktrace:
    <May 19, 2008 11:51:14 AM EDT> <Error> <Console> <BEA-240003> <Console encounter
    ed the following error weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:314)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedM
    oduleDriver.java:176)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
    leListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
    oymentCallbackFlow.java:360)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:26)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
    loymentCallbackFlow.java:56)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
    loymentCallbackFlow.java:46)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.ja
    va:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:26)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.j
    ava:191)
    at weblogic.application.internal.DeploymentStateChecker.prepare(Deployme
    ntStateChecker.java:147)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(App
    ContainerInvoker.java:61)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.cr
    eateAndPrepareContainer(ActivateOperation.java:189)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.do
    Prepare(ActivateOperation.java:87)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.pr
    epare(AbstractOperation.java:217)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploym
    entPrepare(DeploymentManager.java:719)
    at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploy
    mentList(DeploymentManager.java:1186)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare
    (DeploymentManager.java:248)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.pre
    pare(DeploymentServiceDispatcher.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
    ackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
    ackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
    ackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:464)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: java.lang.Throwable: Substituted for missing class org.hibernate.Hibe
    rnateException - Errors in named queries: SpotType.findById, Spot.findByTopic, T
    argetAudience.findById, SpotOrder.findById, SpotAuditDetails.findById, ProjectOf
    ficer.findById, SpotOrderAvailable.findById, ProjectOfficer.findByStatus, SpotOr
    derTopic.findById, Topic.findById, findAllSpots, SpotOrderDetails.findById, find
    AllCategory, SME.findById, SpotAudit.findById, ContactInfo.findById, SpotCategor
    y.findById, SpotOrderTopicSpot.findById, ProjectTopic.findById, NetworkType.find
    ById, Source.findById, NetworkType.findByStatus, RecordStatus.findById, SpotType
    .findByStatus, findAllClient, Spot.findByTitle, findAllRecordStatus, SMETopicCom
    ments.findById, ContractInfo.findById, Channel.findById, Client.findById, findAl
    lSource, SMETopic.findById, Project.findById, SpotComments.findById, SpotOrderCo
    mments.findById, ContactInfoComments.findById, Spot.findById
    at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:
    365)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
    a:1300)
    at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Annotat
    ionConfiguration.java:859)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Con
    figuration.java:669)
    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFa
    ctory(HibernatePersistence.java:132)
    at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactor
    y(PersistenceUnitInfoImpl.java:264)
    at weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInf
    oImpl.java:110)
    at weblogic.deployment.AbstractPersistenceUnitRegistry.storeDescriptors(
    AbstractPersistenceUnitRegistry.java:316)
    at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDe
    scriptors(AbstractPersistenceUnitRegistry.java:96)
    at weblogic.deployment.ModulePersistenceUnitRegistry.<init>(ModulePersis
    tenceUnitRegistry.java:53)
    at weblogic.servlet.internal.WebAppModule.initPURegistry(WebAppModule.ja
    va:1151)
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:304)
    >
    I included named queries on orm.xml file and also in each entities using annotations like following.
    orm.xml>
    <?xml version="1.0" encoding="UTF-8"?>
    <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
         version="1.0">
         <!-- WE PLACE LARGER AND JOIN QUERIES STATEMENTS HERE -->
         <named-query name="findAllClient">
    <query><![CDATA[SELECT e FROM Client e ORDER BY e.clientName]]></query>
    </named-query>
    <named-query name="findAllSource">
    <query><![CDATA[SELECT e FROM Source e ORDER BY e.sourceDesc]]></query>
    </named-query>
    <named-query name="findAllCategory">
    <query><![CDATA[SELECT e FROM SpotCategory e ORDER BY e.spotCategoryDesc]]></query>
    </named-query>
    <named-query name="findAllRecordStatus">
    <query><![CDATA[SELECT e FROM RecordStatus e ORDER BY e.id]]></query>
    </named-query>
    <named-query name="findAllSpots">
    <query><![CDATA[SELECT e FROM Spot e ORDER BY e.id]]></query>
    </named-query>
    </entity-mappings>
    entity example:
    @Entity
    @Table(name = "SPOTTYPE")
    @NamedQueries( { @NamedQuery(name = "SpotType.findById", query = "SELECT e FROM SpotType e WHERE e.id = :id"),
         @NamedQuery(name = "SpotType.findByStatus", query = "SELECT e FROM SpotType e WHERE e.recordStatus.id = :status") })
    public class SpotType implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(generator = "spotTypeSeq")
    @SequenceGenerator(name = "spotTypeSeq", sequenceName = "SEQ_SPOTTYPE", allocationSize = 1)
    @Column(name = "SPOTTYPEID", nullable = false, length = 2)
    private Long id;
    @Column(name = "SPOTTYPESHRTNM", nullable = false, length = 2)
    private String spotTypeShortName;
    @Column(name = "SPOTTYPELONGNM", nullable = false, length = 35)
    everything works until I clicked the activate the change button. I tried to override libs by putting libs I'm using in my domain, still I have the same error message.
    Libs that I have:
    Name 5 Size Type Date Modified
    antlr-2.7.6.jar 434 KB ALZip jar File 2/13/2008 5:28 PM
    asm.jar 26 KB ALZip jar File 2/13/2008 5:28 PM
    asm-attrs.jar 17 KB ALZip jar File 3/17/2005 4:05 PM
    cglib-2.1.3.jar 276 KB ALZip jar File 2/13/2008 5:28 PM
    commons-beanutils-1.7.0.jar 185 KB ALZip jar File 12/15/2007 7:12 PM
    commons-codec-1.3.jar 46 KB ALZip jar File 12/15/2007 7:12 PM
    commons-collections-3.1.jar 547 KB ALZip jar File 4/24/2008 10:28 AM
    commons-digester-1.8.jar 141 KB ALZip jar File 12/15/2007 7:13 PM
    commons-discovery-0.4.jar 75 KB ALZip jar File 12/15/2007 9:08 PM
    commons-el-1.0.jar 110 KB ALZip jar File 5/15/2008 1:11 PM
    commons-logging-1.0.4.jar 38 KB ALZip jar File 7/4/2004 4:49 AM
    dom4j-1.6.1.jar 307 KB ALZip jar File 2/13/2008 5:28 PM
    ehcache-1.2.jar 116 KB ALZip jar File 2/13/2008 5:28 PM
    ejb3-persistence.jar 52 KB ALZip jar File 3/14/2008 4:45 PM
    hibernate3.jar 2,222 KB ALZip jar File 2/6/2008 9:31 PM
    hibernate-annotations.jar 274 KB ALZip jar File 3/14/2008 4:44 PM
    hibernate-commons-annotatio... 65 KB ALZip jar File 3/14/2008 4:45 PM
    hibernate-entitymanager.jar 116 KB ALZip jar File 3/14/2008 8:07 PM
    jaas.jar 102 KB ALZip jar File 6/3/2004 11:31 AM
    javassist.jar 449 KB ALZip jar File 2/13/2008 5:28 PM
    jaxen-1.1-beta-7.jar 222 KB ALZip jar File 8/16/2005 2:04 PM
    jboss-archive-browsing.jar 13 KB ALZip jar File 2/13/2008 5:28 PM
    jhighlight-1.0.jar 92 KB ALZip jar File 12/20/2007 4:51 PM
    jsf-facelets.jar 294 KB ALZip jar File 9/27/2007 12:20 PM
    jstl-1.2.jar 405 KB ALZip jar File 5/15/2008 1:12 PM
    jta.jar 9 KB ALZip jar File 6/3/2004 11:31 AM
    junit-4.4.jar 158 KB ALZip jar File 5/15/2008 1:12 PM
    log4j-1.2.11.jar 343 KB ALZip jar File 8/13/2005 3:28 PM
    myfaces-api-1.2.2.jar 319 KB ALZip jar File 1/22/2008 3:40 PM
    myfaces-impl-1.2.2.jar 739 KB ALZip jar File 1/22/2008 3:40 PM
    nekohtml-0.9.5.jar 104 KB ALZip jar File 12/20/2007 4:42 PM
    ojdbc14.jar 1,322 KB ALZip jar File 2/13/2008 5:30 PM
    readme.txt 1 KB Text Document 5/15/2008 3:58 PM
    richfaces-api-3.2.0.GA.jar 150 KB ALZip jar File 3/31/2008 4:23 PM
    richfaces-impl-3.2.0.GA.jar 1,372 KB ALZip jar File 3/31/2008 4:23 PM
    richfaces-ui-3.2.0.GA.jar 2,215 KB ALZip jar File 3/31/2008 4:50 PM
    spring.jar 2,604 KB ALZip jar File 5/15/2008 1:12 PM
    xerces-2.6.2.jar 988 KB ALZip jar File 12/19/2004 6:14 PM
    xml-apis.jar 121 KB ALZip jar File 6/3/2004 11:31 AM
    This can be deployed to tomcat 6 without any problems.
    Thank you in advance for reading and your help.
    Edited by gzson at 05/19/2008 9:07 AM

    Follow the below link:
    http://www.hibernate.org/250.html#A25

  • OAS 10G WAR file deployment error (Errors in named queries)

    Hi again,
    I setup a 10G 10.1.3.1 Application Server and tried deploying my WAR file. In tomcat the WAR file deployment works fine. however in OAS I get this error and currently I'm clueless as to what causes the error.
    [Oct 24, 2007 6:03:37 PM] Operation failed with error: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: org.hibernate.HibernateException: Errors in named queries: Book_List_By_RegisterDate ... (other named queries)
    My ApplicationContext.xml file contains this
    <bean id="entityManagerFactory"
    class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
    <property name="persistenceUnitManager" ref="persistenceUnitManager" />
    <property name="persistenceUnitName" value="BookStudy" />
    <property name="dataSource" ref="dataSource" />
    <property name="jpaVendorAdapter">
    <bean
    class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
    <property name="database" value="ORACLE" />
    <property name="showSql" value="true" />
    </bean>
    </property>
    </bean>
    And a sample named query in the hbm.xml file is this
    <query name="Book_List_By_RegisterDate">
              from BookData
              where to_char(regdate, 'MM/dd/yyyy') = to_char(:regdate, 'MM/dd/yyyy')
              order by Author.author_name desc, bookname desc
    </query>
    Thanks,

    Uncomment, or add, the following line in your application's orion-web.xml file:
    <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />
    See njr28's comments @ http://forum.hibernate.org/viewtopic.php?t=951324&highlight=oc4j

  • AVG calculation and syntax error while parsing a named query

    Hi all,
    I've to calcolate the average of polling results for each value column (5 value column in total). I want to use this single row result line for a bar graph.
    I created a new named query in the EJB:
    @NamedQueries({
      @NamedQuery(name = "Polls.findAll", query = "select o from Polls o"),
      @NamedQuery(name = "Polls.findAVG", query = "select o AVG(Value1) as Value1, AVG(Value2)  as Value2, AVG(Value3)  as Value3, AVG(Value4)  as Value4, AVG(Value5)  as Value5 o from Polls o")   // <-- my named query
    ...I tried it in the sql query tool of Oracle 10g XE and sql syntax is ok, but when I run my javaServiceFacade on JDev I receive this message:
    Exception in thread "main" Local Exception Stack:
    Exception [EclipseLink-8023] (Eclipse Persistence Services - 1.0.1 (Build 20080905)): org.eclipse.persistence.exceptions.JPQLException
    Exception Description: Syntax error parsing the query [Polls.findAVG: select AVG(Value1) as Value1, AVG(Value2)  as Value2, AVG(Value3) as Value3, AVG(Value4) as Value4, AVG(Value5) as Value5 o from Polls o].
    Internal Exception: org.eclipse.persistence.internal.libraries.antlr.runtime.EarlyExitException
    ...Where is the syntax error in my named query?
    Edited by: Silicio on 22-nov-2008 1.05

    Thanks Shay, now I think syntax is correct for gain an average for each column:
    @NamedQuery(name = "Polls.findAVG", query = "select AVG(o.value1), AVG(o.value2), AVG(o.value3), AVG(o.value4), AVG(o.value5) from Polls o")But still got some trouble to get a bar graph...
    If I drag&drop that query from data control, I get an empty graph with 5 values ,look http://img153.imageshack.us/img153/8710/emptygraphag7.png .
    In the log there is some errors (due that named query and its methods in EJB):
    AVVERTENZA: Transient state added to StateManager.  State may not be serialized.  State id:  data.oracle_view_risultatiPageDef.Polls1__cubicDefinition
    23-nov-2008 11.08.28 oracle.adf.share.http.HttpSessionStateManagerImpl putState
    AVVERTENZA: Transient state added to StateManager.  State may not be serialized.  State id:  data.oracle_view_risultatiPageDef.Polls1__dataModel
    [EL Info]: 2008.11.23 11:08:29.546--ServerSession(20936795)--EclipseLink, version: Eclipse Persistence Services - 1.0.1 (Build 20080905)
    [EL Info]: 2008.11.23 11:08:29.562--ServerSession(20936795)--Server: WebLogic Server Temporary Patch for CR380042 Thu Sep 11 13:33:40 PDT 2008
    [EL Info]: 2008.11.23 11:08:29.562--ServerSession(20936795)--file:/C:/Oracle/Middleware/jdeveloper/system/system11.1.1.0.31.51.56/o.j2ee/drs/Application13/Application13-Model-ejb/-Model login successful
    23-nov-2008 11.08.37 oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator handleError
    GRAVE: Server Exception during PPR, #1
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: groovy.lang.MissingPropertyException, msg=Exception evaluating property 'id' for java.util.Arrays$ArrayList, Reason: groovy.lang.MissingPropertyException: No such property: id for class: java.lang.Double
         at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:753)
         at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:779)
         at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:690)
         at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:1816)
         at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1554)
         at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1634)
         at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:746)
         at oracle.adf.model.bean.DCDataRow.getAttributeInternal(DCDataRow.java:352)
         at oracle.jbo.server.ViewRowImpl.getKey(ViewRowImpl.java:598)
         at oracle.adf.model.bean.DCDataRow.getKey(DCDataRow.java:149)
         at oracle.adf.model.binding.DCIteratorBinding.buildFormToken(DCIteratorBinding.java:3836)
         at oracle.adf.model.binding.DCBindingContainerState.buildStringBuffer(DCBindingContainerState.java:71)
         at oracle.adf.model.binding.DCBindingContainerState.toString(DCBindingContainerState.java:590)
         at oracle.adf.model.binding.DCBindingContainer.getStateToken(DCBindingContainer.java:4293)
         at oracle.adfinternal.controller.application.model.SaveStateTokenListener.afterPhase(SaveStateTokenListener.java:54)
         at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.afterPhase(ADFLifecycleImpl.java:529)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchAfterEvent(LifecycleImpl.java:118)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchAfterPagePhaseEvent(LifecycleImpl.java:166)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.dispatchAfterPagePhaseEvent(ADFPhaseListener.java:122)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:68)
         at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:51)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:203)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: groovy.lang.MissingPropertyException: Exception evaluating property 'id' for java.util.Arrays$ArrayList, Reason: groovy.lang.MissingPropertyException: No such property: id for class: java.lang.Double
         at org.codehaus.groovy.runtime.DefaultGroovyMethods.getAt(DefaultGroovyMethods.java:2978)
         at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1368)
         at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:2578)
         at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:178)
         at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:474)
         at Script1.run(Script1.groovy)
         at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:741)
         ... 50 more
    ## Detail 0 ##
    groovy.lang.MissingPropertyException: Exception evaluating property 'id' for java.util.Arrays$ArrayList, Reason: groovy.lang.MissingPropertyException: No such property: id for class: java.lang.Double
         at org.codehaus.groovy.runtime.DefaultGroovyMethods.getAt(DefaultGroovyMethods.java:2978)
         at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1368)
         at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:2578)
         at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:178)
         at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:474)
         at Script1.run(Script1.groovy)
         at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:741)
         at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:779)
         at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:690)
         at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:1816)
         at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1554)
         at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1634)
         at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:746)
         at oracle.adf.model.bean.DCDataRow.getAttributeInternal(DCDataRow.java:352)
         at oracle.jbo.server.ViewRowImpl.getKey(ViewRowImpl.java:598)
         at oracle.adf.model.bean.DCDataRow.getKey(DCDataRow.java:149)
         at oracle.adf.model.binding.DCIteratorBinding.buildFormToken(DCIteratorBinding.java:3836)
         at oracle.adf.model.binding.DCBindingContainerState.buildStringBuffer(DCBindingContainerState.java:71)
         at oracle.adf.model.binding.DCBindingContainerState.toString(DCBindingContainerState.java:590)
         at oracle.adf.model.binding.DCBindingContainer.getStateToken(DCBindingContainer.java:4293)
         at oracle.adfinternal.controller.application.model.SaveStateTokenListener.afterPhase(SaveStateTokenListener.java:54)
         at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.afterPhase(ADFLifecycleImpl.java:529)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchAfterEvent(LifecycleImpl.java:118)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchAfterPagePhaseEvent(LifecycleImpl.java:166)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.dispatchAfterPagePhaseEvent(ADFPhaseListener.java:122)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:68)
         at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:51)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:203)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)I try to print out a singlue AVG value in this way (main method of javaServerFacade class):
        public static void main(String [] args) {
            final JavaServiceFacade javaServiceFacade = new JavaServiceFacade();
            //  TODO:  Call methods on javaServiceFacade here...
            List<Polls> pollsAVG = javaServiceFacade.queryPollsFindAVG();
            for (Polls a: pollsAVG){
                System.out.println(a.getValue1());
    ...I get this error:
    Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to oracle.model.Polls
         at oracle.model.JavaServiceFacade.main(JavaServiceFacade.java:25)
    Process exited with exit code 1.
    ...I've searched for Ljava in the documantation finding nothing interesting.

  • Error: Common entries are not permitted for plan queries and input queries

    Hi,
    I have a 2 selections in the column struct:
    1. year = 2005, version = actual
    2. year = 2006, version = plan, marked as data can be changed using user entry or planning function
    row has posting periods from 1-12
    in the workbook I have inserted this query in the workbook in analysis grid. it runs good.
    now i added a button and assigned planning function to it. this planning function copies 2005, actuals to 2006, plan.
    when i execute the workbook and hit this button, it gives me following error:
    "Common entries are not permitted for plan queries and input queries"
    please can anyone provide me assistance with this issue.
    thanks,
    sam

    when i go to diagnosis it displays following:
    Diagnosis
    InfoProvider ZIP_PLAN2 must be described in this application by both a plan query and by a input-ready query, which is directly defined on the InfoProvider ZIP_PLAN2.
    System Response
    This is not permitted.

  • Migrating to SAP Web AS - HibernateException: Errors in named queries

    Hi folks!
    We are migrating our web application to SAP Web AS (Netweaver CE SR5) but we are having some problems with hibernate: org.hibernate.HibernateException: Errors in named queries (see the stack below).
    It´s important to point out that this same application runs fine in Tomcat 5.5
    I followed the instructions in the following weblog but the problem continues:
    I also have read the following posts:
    I don´t know if our application-service.xml file is correctly configured (I used an example found in the SDN) so I will paste it below:
    (SessionFactoryImpl.java:364)
         at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1291)
         at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:816)
         at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:734)
         at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1333)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1299)
         ... 159 more

    Hi all!
    I´ve found the problem in my case.
    As stated in the links below, the application.xml version should refer to the Java 1.5:
    (look for the Vladimir Pavlov´s post on Jun 2, 2007 6:01 PM in the second page)
    In my case, I was using the Java 1.3 version.
    Now the problem is not happening anymore.
    My application.xml now looks as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">
    Regards.
    Ballock.

  • SetAdditionalJoinExpression and Named Queries...

    Hi, is it possible to use DescriptorQueryManager.setAdditionalJoinExpression() to append additional filters to sql statement named queries?
    I've tried this but it doesn't seem to have any effect. If this is not possible, do you know of any alternative methods?
    Thanks for you help!
    -Tim Watson

    Yes, if you set the DescriptorQueryManager additionalJoinExpression the expression will be anded will all queries for that descriptor.
    Ensure that you set the additionalJoinExpression before you login.

  • TS3694 i was doing update on my apple iphone 3g 8gb during update an error ocured namely 1015. and when i was doing restoration of my previous software version once again error ocured namely 1015

    i was doing update on my apple iphone 3g 8gb during update an error ocured namely 1015. and when i was doing restoration of my previous software version once again error ocured namely 1015.
    and 2nd i have downloaded few free apps like face book twitter etc on my itunes but when iam installing them to my iphone its not installing i dont know why plz help me to install them thanks

    Errors related to downgrading iOS
    The required resource cannot be found: This alert message occurs when your device has a newer version of iOS than what is available in iTunes. When troubleshooting a device that presents this alert message, go to Settings > General > About and check the version of iOS on the device. If it is newer than the latest released iOS version, the device may have a prerelease developer version of iOS installed. Installing an older version of iOS over a newer version is not supported.
    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.
    Maybe you phone has been jailbroken

  • Named Queries

    Hi All,
    I am using TL 4.6 Build 418, Oracle 8.1 & WLS 7.0.
    I am having a hard time getting Named Queries working. Specifically I can't seem to get Toplink to Bind my parameter(s). I have tried to use both EJBQL and plain SQL with no luck using either. The error I get when I use SQL is that from Oracle or JDBC that not all parameters are bound, when I change the stmt to be EJBQL then I get a null where the bound parameter should go. The stmt is super simple.
    EJBQL = SELECT OBJECT(sysuser) FROM SystemUser sysuser WHERE sysuser.username = ?1
    or as
    SQL = SELECT * FROM SystemUser WHERE username = ?1
    For a test I took the mapping work bench code that is generated into java source and pasted it into a test servlet below.
    ReadObjectQuery namedQuery0 = new ReadObjectQuery(com.aravo.security.biz.usermgmt.SystemUser.class);
    namedQuery0.setEJBQLString("SELECT OBJECT(sysuser) FROM SystemUser sysuser WHERE sysuser.username = ?1");
    namedQuery0.setName("getSystemUserwithUserName");
    namedQuery0.setCascadePolicy(1);
    namedQuery0.setQueryTimeout(0);
    namedQuery0.setShouldUseWrapperPolicy(false);
    namedQuery0.setShouldBindAllParameters(true);
    namedQuery0.setShouldCacheStatement(false);
    namedQuery0.setSessionName("security");
    namedQuery0.setShouldMaintainCache(true);
    namedQuery0.setShouldRefreshIdentityMapResult(false);
    namedQuery0.setLockMode((short)0);
    namedQuery0.addArgument("uname", java.lang.String.class);
    clientSession.addQuery("getSystemUserwithUserName", namedQuery0);
    Vector theArgs = new Vector() ;
    theArgs.addElement("[email protected]") ;
    SystemUser su = (SystemUser) clientSession.executeQuery("getSystemUserwithUserName",theArgs) ;
    What I then see is the following in the console. Any ideas why NULL is there instead of [email protected]?
    SELECT PASSWORD, USERNAME, SYSTEMUSERID FROM SYSTEMUSER WHERE (USERNAME = ?)
    bind => [null]
    Thanks,
    Jerry

    It looks like you have a small error in your setup.
    Is see your EJBQL =
    namedQuery0.setEJBQLString("SELECT OBJECT(sysuser) FROM SystemUser sysuser WHERE sysuser.username = ?1");
    But then you pass the argument =
    namedQuery0.addArgument("uname", java.lang.String.class);
    It should be =
    namedQuery0.addArgument("1", java.lang.String.class);
    In other words, the name of the argument from the argument list should be the same as the one in the EJBQL.

  • Two similar queries and different result.

    Hi! I have a problem and
    with
    sc as (select * from nc_objects where object_type_id = 9122942307013185081 and project_id=9062345122013900768),
    cid as (select sccid.value AS CIRCUIT_ID,sc.description AS DESCRIPTION
    from sc, nc_params sccid
    where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590),
    caloc as ( select
    (*select value from nc_params sccid where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590*) as CIRCUIT_ID,
    (select sl.name from nc_objects sl join nc_references scr on sl.object_id = scr.reference
    where scr.attr_id = 3090562190013347600 and scr.object_id = sc.object_id ) as ALOCATION
    from sc),
    cbloc as ( select
    (select value from nc_params sccid where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590) as CIRCUIT_ID,
    (select sl.name from nc_objects sl join nc_references scr on sl.object_id = scr.reference
    where scr.attr_id = 3090562190013347601 and scr.object_id = sc.object_id ) as BLOCATION
    from sc)
    select cid.CIRCUIT_ID,cid.DESCRIPTION,ALOCATION,BLOCATION from (
    cid
    join caloc on cid.CIRCUIT_ID = caloc.CIRCUIT_ID and ALOCATION is not null
    join cbloc on cid.CIRCUIT_ID = cbloc.CIRCUIT_ID and BLOCATION is not null
    it` returns and`s all ok!
    ID desc aloc bloc
    101     TEST1     AHAS     AGUS
    102     TEST2     AKRE     AMJY
    103     TEST3     AMJS     ASSE
    109     TEST9     BAIA     AKIB
    5     (null)     WELA AGUS
    We have "sc as (select * from nc_objects where object_type_id = 9122942307013185081 and project_id=9062345122013900768)"
    and identical subquery on caloc and cbloc
    "select value from nc_params sccid where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590"
    If i change query on
    with
    sc as (select * from nc_objects where object_type_id = 9122942307013185081 and project_id=9062345122013900768),
    cid as (select sccid.value AS CIRCUIT_ID,sc.description AS DESCRIPTION
    from sc, nc_params sccid
    where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590),
    caloc as ( select
    *(select CIRCUIT_ID from cid) as CIRCUIT_ID,*
    (select sl.name from nc_objects sl join nc_references scr on sl.object_id = scr.reference
    where scr.attr_id = 3090562190013347600 and scr.object_id = sc.object_id ) as ALOCATION
    from sc),
    cbloc as ( select
    (select value from nc_params sccid where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590) as CIRCUIT_ID,
    (select sl.name from nc_objects sl join nc_references scr on sl.object_id = scr.reference
    where scr.attr_id = 3090562190013347601 and scr.object_id = sc.object_id ) as BLOCATION
    from sc)
    select cid.CIRCUIT_ID,cid.DESCRIPTION,ALOCATION,BLOCATION from (
    cid
    join caloc on cid.CIRCUIT_ID = caloc.CIRCUIT_ID and ALOCATION is not null
    join cbloc on cid.CIRCUIT_ID = cbloc.CIRCUIT_ID and BLOCATION is not null
    query result will be:
    ORA-01427: single-row subquery returns more than one row
    01427. 00000 - "single-row subquery returns more than one row"
    *Cause:   
    *Action:
    Can you explain why so ?
    Edited by: user12031606 on 07.05.2010 2:31
    Edited by: user12031606 on 07.05.2010 2:32

    Hi,
    Welcome to the forum!
    Whenever you post code, format it to show the extent of sub-queries, and the clauses in each one.
    Type these 6 characters:
    \(all small letters, inside curly brackets) before and after each section of formatted test; if you don't, this site will compress the spaces.
    It also helps it you reduce your query as much as possible.  For example, I think you're only asking about the sub-query called caloc, so just post caloc as if that were the entire query:select     ( select CIRCUIT_ID
         from cid
         )                as CIRCUIT_ID,
         ( select sl.name
         from nc_objects          sl
         join nc_references      scr on sl.object_id = scr.reference
         where scr.attr_id      = 3090562190013347600
         and scr.object_id      = sc.object_id
         )                as ALOCATION
    from sc
    This makes it much cleared that the query will produce 2 columns, called circuit_id and alocation.
    Compare the query above with the query below:SELECT     object_id,
         'Okay'
    FROM     sc
    The basic structure is the same: both queries produce two columns, and both queries produce one row of output for every row that is in the sc table.
    The only difference is the two items in the SELECT clause.
    The second query has a column from the table as its first column, and a literal for its second column; those are just two of the kinds of things you can have in a SELECT clause.  another thing you can have there is a +Scalar Sub-Query+ , a complete query enclosed in parentheses that produces exactly one column and at most one row.   If a scalar sub-query produces more than one row, then you get the run-time error: "ORA-01427: single-row subquery returns more than one row", as you did.
    A scalar sub-query always takes the place of a single value: "scalar" means "having only one value".  In the first example above, the main query is supposed to produce one row of output for every row in sc.  How can it do that if some of the columns themselves contain multiple rows?
    I don't know what your tables are like, or what output yu want to get from thiose tables.
    If you'd like help getting certain results from your tables, then post CREATE TABLE and INSERT statements for a little sample data, and the resutls you want to get from that sample data.  A scalar sub-query may help getting those results, or it may not.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Export error message and render error message

    Hi all,
    I just finished a16 min. movie, lots of hours containing two slides shows and a bunch of short video clips, lots of effects, transitions with jpgs, pip's, animated gifs and you name it.  It came out great!  ON THE COMPUTER THAT IS!... I am running pe7 on a brand new hp elite 410y desktop - AMD Phenom II x6 six-core processor 1045T, 8 GB PC3-10600 DDR3 SDRAM, 3MB L2 cache + 6MB shared L3 cache memory, 1TB seriel ATA hard drive and ATI Radeon HD 5570 graphics with 1GB DDR3 dedicated memory. My operating system is windows 7 home premium edition 64 bit.  I used jpg's from three different camera's, downloaded google images, as well as the animated gifs.  I took some video from my Nikon coolpix L110 and converted all mov files to avi using the free Prism converter...I didn't think to just use premiere to export to DV AVI.  I also took youtube video and converted them to avi.  I kept getting adobe system memory low, proceed with caution, did a bunch of saves and got throught it.  I tried to render and the error unknown compiling movie message kept coming up.  Well, at that point I just broke down, so many hours and then having to show the actual finished product to my friends, the stars of this movie on my little 20" computer monitor and not my big screen tv sucked...so dissapointing but moving on.
    I started to search the forums and read another thread that Steve Grisetti answered about changing all photos to no more than 1000x750 and then try to split up the movie and export in premiere to DV AVI.  I only had a few photos like that, changed them and I still keep getting the same error message.  I tried just taking the first minute, did a save as, named it test and tried to export, no luck.  There seems to be something in the first part that premiere does not like and I did notice on playback that some of my effects were not working i.e. video pip sliding in from the left of the screen over a jpg.  I am so frustrated.
    I finally chopped it up to three parts and tried exporting the 2nd part of just the video clips to DV AVI, no problem but changed my look.  When I hit export movie and look at the settings summary Filetype is CompilerMPEGproxy, the Video settings are Compressor: I-Frame only MPEG Frame size 1440h 1080v (1.333) Frame Rate: 29.97 frames/second Pixel Aspect Ration: HD Anamorphic 1080 (1.333) Fields: Upper field first, Audio Settings are Compressor: uncompressed Sample rates: 48000 sample/second Channels: Stereo and Sample Rates: 16 bit.  If I change to DV AVI, then the whole look changes, probably because the frame size is only 720h 480v.  Is there a way to export to DV AVI and keep the larger frame size?
    I wanted to keep the original size, so I just tried to render part 2 and part 3 as is and had no problem, but now the audio skips. I have a wav file on part 3 and part 2 has the converted avi audio that came with the clips.  Please help, any suggestions will be most appreciated.  I can't start all over...I'm burnt.
    debby

    Hi Steve,
    Thank you for your promptness...I am still a little confused though, I made a copy of my final movie and was working off the copy to try all these different scenerios to get it to render and now have alot of different projects, same movie, different project names.  Should I delete all the copies and take my original and go to Edit/Preferences/Media Cache and clear the media cache.  Then the timeline menu and delete render files and then go to the FAQ's to troubleshoot.
    A quick second question:  I did get to render two parts of the whole movie, but the audio is skipping.  Can that be fixed and can I use it?
    Thank you,
    debby

  • Loading xml file and parsing error in web start

    Hello,
    I load a xml file from jar file, but i have a error at parsing see :
    ClassLoader cl= this.getClass().getClassLoader();
    File file = new File(cl.getResource("paradise/test/maquette/parser/areas.xml").getFile());
    parseur.parse(new InputSource(new FileInputStream(file)), this);
    the file opening but at parseur.parse() i have a path error with :
    http:// . . . . \Paradise_client\paradise.jar!\paradise\test\maquette\parser\areas.xml , bad name of directories .....
    Can you help me ? please :-(

    I need to do a similar thing but in my case I don't know the structure of the xml file. I have 2 questions for this mapping. For an xml file like this:
    <?xml version="1.0"?>
    <catalog>
    <book id="bk101">
    <author>Gambardella, Matthew</author>
    <title>XML Developer's Guide</title>
    <genre>Computer</genre>
    <price>44.95</price>
    <publish_date>2000-10-01</publish_date>
    <publisher>Dummy Publisher Co.</publisher>
    <publisher_address>
    <city>London</city>
    <street>Heart St.</street>
    <no>23/5</no>
    </publisher_address>
    <description>An in-depth look at creating applications
    with XML.
    </description>
    </book>
    </catalog>
    If I'm right, I need to create a database named catalog and a table named book. But the problem comes out here: How can i store publisher_address? In a table or what? Other problem is, is there a difference between storing id attribute of the book and genre element of the book? I think they are just columns of the book table. But if I'm wrong what is the correct solution?

Maybe you are looking for

  • How can I convert a 0-50mA signal to 0-5 VDC for use by a PCI-6014 DAQ?

    I have a PCI-6014 DAQ card. I am trying to measure the output of a closed-loop current sensor, which has an output of 0-50mA. When I tried using a 100 ohm resistor as a load (to measure across the resistor to get a voltage input for the DAQ) I get an

  • Help with my Bran-New Creative Zen Micro Photo. [Questi

    <EM>If you don't want to see the backing of my whole story skip to the bold print at the bottom!</EM>I also want you to know I read the FAQs and searched through some topics like this, but haven't found any asking my question.First of all, I'm new to

  • Java Connector via MySQL [ Cannot Connect ]

    I downloaded the MySql connector and extracted the connector and placed it at this directory, C:\Program Files\Java\jdk1.5.0_06\jre\lib\ext I also set the classpath as such by adding ClassPath = .;C:\Program Files\Java\jdk1.5.0_06\jre\lib\ext\mysql-c

  • Business Graphics API in WEBAS J2EE

    Hi, i have a business graphic integrated into my webdynpro application. I checked the api documentation for business graphics and found out, how to change the type of the business graphic and the number of dimensions programmatically. On the API, i c

  • Hide preferences button in LaunchPad BO4

    I need to hide the preferences button in launchpad for BO4.  Noticed that in BO3, I can hide it thru CMC/Applications/Infoview. but in Bo4, can find it.  Thanks.