EJBQL Exception

Hi,
I'm a Java Persistence newbie having a massive problem spotting the error that is triggering an Unknown state or association field exception.
I have created a Persistence Entity based on the PetStore 2.0 Reference App with the following excerpted code, plus the necessary get/set methods:
@Entity
public class Seller implements java.io.Serializable {
private String sellerID;
private String selcatID;
private String name;
public Seller() { }
public Seller(String sellerID, String selcatID, String name)
this.sellerID = sellerID;
this.selcatID = selcatID;
this.name = name;
In another Java file, I have a method that references the selcatID attribute of the Seller entity:
@SuppressWarnings("unchecked")
public List<Seller> getSellersBySelCatVLH(String selCatID, int start,
int chunkSize){
EntityManager em = emf.createEntityManager();
Query query = em.createQuery("SELECT s FROM Seller s, SelCat t WHERE " +
"s.selcatID = t.selcatID AND t.selcatID = :selcatID AND s.disabled = 0" +
" ORDER BY s.name");
List<Seller> sellers = query.setParameter("selcatID",selCatID).setFirstResult(start).setMaxResults(chunkSize).getResultList();
em.close();
return sellers;
Note that the case usage in the selcatID call in the method matches the case used in the Entity definition code. Yet I continue to get this exception:
Exception [TOPLINK-8030] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.EJBQLException
Exception Description: Unknown state or association field [selcatID] of class [...Seller].
I have been through the server log stack trace and confirmed that this is the only method cited in the trace that references this attribute.
Can anyone spot what I am missing?
Thanks in advance for any guidance.

Hi Doug,
I meet the same exception on my project, but not know where my problem lies. Please help. Thank you.
Exception Description: Unknown state or association field [projectNoSub] of class [database.SfcWip].
@Entity
@Table(name = "SFC_WIP")
@NamedQueries( {
@NamedQuery(name = "SfcWip.findByProjectNoSub", query = "SELECT s FROM SfcWip s WHERE s.sfcWipPK.projectNoSub = :projectNoSub"),
@NamedQuery(name = "SfcWip.findByPcbPartNo", query = "SELECT s FROM SfcWip s WHERE s.sfcWipPK.pcbPartNo = :pcbPartNo"),
@NamedQuery(name = "SfcWip.findByPcbQty", query = "SELECT s FROM SfcWip s WHERE s.pcbQty = :pcbQty"),
@NamedQuery(name = "SfcWip.findByFlowId", query = "SELECT s FROM SfcWip s WHERE s.flowId = :flowId"),
@NamedQuery(name = "SfcWip.findByStatus", query = "SELECT s FROM SfcWip s WHERE s.status = :status"),
@NamedQuery(name = "SfcWip.findByRemarks", query = "SELECT s FROM SfcWip s WHERE s.remarks = :remarks")
public class SfcWip implements Serializable {
* EmbeddedId primary key field
@EmbeddedId
protected SfcWipPK sfcWipPK;
@Column(name = "PCB_QTY")
private BigDecimal pcbQty;
@Column(name = "FLOW_ID")
private String flowId;
@Column(name = "STATUS")
private String status;
@Column(name = "REMARKS")
private String remarks;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "sfcWip")
private Collection<SfcWiptran> sfcWiptranCollection;
/** Creates a new instance of SfcWip */
public SfcWip() {
public SfcWip(SfcWipPK sfcWipPK) {
this.sfcWipPK = sfcWipPK;
public SfcWip(String pcbPartNo, String projectNoSub) {
this.sfcWipPK = new SfcWipPK(pcbPartNo, projectNoSub);
public SfcWipPK getSfcWipPK() {
return this.sfcWipPK;
public void setSfcWipPK(SfcWipPK sfcWipPK) {
this.sfcWipPK = sfcWipPK;
public BigDecimal getPcbQty() {
return this.pcbQty;
public void setPcbQty(BigDecimal pcbQty) {
this.pcbQty = pcbQty;
public String getFlowId() {
return this.flowId;
public void setFlowId(String flowId) {
this.flowId = flowId;
public String getStatus() {
return this.status;
public void setStatus(String status) {
this.status = status;
public String getRemarks() {
return this.remarks;
public void setRemarks(String remarks) {
this.remarks = remarks;
public Collection<SfcWiptran> getSfcWiptranCollection() {
return this.sfcWiptranCollection;
public void setSfcWiptranCollection(Collection<SfcWiptran> sfcWiptranCollection) {
this.sfcWiptranCollection = sfcWiptranCollection;
@Override
public int hashCode() {
int hash = 0;
hash += (this.sfcWipPK != null ? this.sfcWipPK.hashCode() : 0);
return hash;
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof SfcWip)) {
return false;
SfcWip other = (SfcWip)object;
if (this.sfcWipPK != other.sfcWipPK && (this.sfcWipPK == null || !this.sfcWipPK.equals(other.sfcWipPK))) return false;
return true;
@Override
public String toString() {
return "database.SfcWip[sfcWipPK=" + sfcWipPK + "]";
@Embeddable
public class SfcWipPK implements Serializable {
@Column(name = "PROJECT_NO_SUB", nullable = false)
private String projectNoSub;
@Column(name = "PCB_PART_NO", nullable = false)
private String pcbPartNo;
/** Creates a new instance of SfcWipPK */
public SfcWipPK() {
public SfcWipPK(String pcbPartNo, String projectNoSub) {
this.pcbPartNo = pcbPartNo;
this.projectNoSub = projectNoSub;
public String getProjectNoSub() {
return this.projectNoSub;
public void setProjectNoSub(String projectNoSub) {
this.projectNoSub = projectNoSub;
public String getPcbPartNo() {
return this.pcbPartNo;
public void setPcbPartNo(String pcbPartNo) {
this.pcbPartNo = pcbPartNo;
@Override
public int hashCode() {
int hash = 0;
hash += (this.pcbPartNo != null ? this.pcbPartNo.hashCode() : 0);
hash += (this.projectNoSub != null ? this.projectNoSub.hashCode() : 0);
return hash;
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof SfcWipPK)) {
return false;
SfcWipPK other = (SfcWipPK)object;
if (this.pcbPartNo != other.pcbPartNo && (this.pcbPartNo == null || !this.pcbPartNo.equals(other.pcbPartNo))) return false;
if (this.projectNoSub != other.projectNoSub && (this.projectNoSub == null || !this.projectNoSub.equals(other.projectNoSub))) return false;
return true;
@Override
public String toString() {
return "database.SfcWipPK[pcbPartNo=" + pcbPartNo + ", projectNoSub=" + projectNoSub + "]";
}

Similar Messages

  • EJBQL syntax in OC4J

    Hi,
    I am migrating an application from Weblogic to OC4J. I'm getting an error while using a SQL statement for EJB-QL in Oc4J. It works fine from Weblogic app server. The EJB-QL SQL used in ejb-jar.xml is something like the following:
    <ejb-ql>SELECT      OBJECT(o) FROM tableA AS o WHERE (o.column1 = ?1 OR (?1 IS NULL AND o.column1 IS NULL)) AND     (o.column2 = ?2 OR ( ?2 IS NULL AND o.column2 IS NULL)) AND (o.column3 = ?3 OR ( ?3 IS NULL AND o.colum3 IS NULL)) AND (o.column4 = ?4 OR ( ?4 IS NULL AND o.column4 IS NULL)) AND     (o.column5 = ?5 OR ( ?5 IS NULL AND o.column5 IS NULL))</ejb-ql>
    Can somebody point out what could be wrong in the SQL? The same EJB-QL SQL executes properly from the SQL*Plus command. Is there a syntax error in the statement?
    How can I modify this so that it does not affect the result of the SQL? There is some problem with the use of brackets. I tried some combinations but no luck.
    When deploying the EJB to OC4J with the above SQL as EJB QL SQL, I got the following error:
    com.evermind.client.orion.AdminCommandException: Deploy error: deploy failed!: ; nested exception is:
         oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error translating EJBQL: Encountered "?1 IS" at line 1, column 31.
    Was expecting one of:
    "NOT" ...
    "+" ...
    "IdentificationVar" ...
    <CHAR_LITERAL> ...
    <STRING_LITERAL> ...
    <INPUT_PARAM> "*" ...
    <INPUT_PARAM> "/" ...
    <INPUT_PARAM> "+" ...
    <INPUT_PARAM> "-" ...
    <INPUT_PARAM> ")" ...
    <INPUT_PARAM> "NOT" ...
    <INPUT_PARAM> "BETWEEN" ...
    <INPUT_PARAM> "MEMBER" ...
    "CONCAT" ...
    "SUBSTRING" ...
    "LOCATE" ...
    "LENGTH" ...
    "ABS" ...
    "SQRT" ...
    EJB QL statement : 'SELECT      OBJECT(o) FROM tableA AS o WHERE (o.column1 = ?1 OR (?1 IS NULL AND o.column1 IS NULL)) AND     (o.column2 = ?2 OR ( ?2 IS NULL AND o.column2 IS NULL)) AND (o.column3 = ?3 OR ( ?3 IS NULL AND o.colum3 IS NULL)) AND (o.column4 = ?4 OR ( ?4 IS NULL AND o.column4 IS NULL)) AND     (o.column5 = ?5 OR ( ?5 IS NULL AND o.column5 IS NULL))
    Thanks for your help.
    vadi.

    Hi,
    Can somebody please give me few pointers or clues?
    Thanks,
    Vadi

  • OC4J EJBQL and EJB 2.0 features

    Hello Debu Panda and All
    I've got all howtos and I mangaged to get some parts of OC4J [Oracle9iAS (9.0.3.0.0) Containers for J2EE (build 020323.1689)] working.
    There are still some issues that are stalling our development. Could you please comment on them, maybe providing an estimate of when they will be solved/implemented?
    First of all, a little background. Our application uses many Java Swing application clients that connect to the EAR application in the container.
    The ear application has the following structure:
    All database access (Oracle 8i, located in its own server) is done exclusively by means of CMP entity beans. A entity bean may access other entity beans. There are workflow session beans (stateful and stateless) that access the entity beans. All clients see only the workflow session beans (session beans fagade).
    Our applicatoin is complex, having more than 80 session beans and more than 25 entity beans (not counting entity beans that exist only to represent relationships among entity beans).
    There goes the questions:
    1) It seems that entity beans cannot currently be referenced by remote interfaces. We couldn't deploy our application using it. Since we could use only local interfaces fot entity beans, thats what is been done now.
    2) There is no CMR supported. Is this true?
    3) EJBQL seems to be very limited. In the howto examples there are EJBQL statements that compare two numbers. However, when we tried to use String comparisons, it didn't work. Here is the statement:
    "SELECT DISTINCT OBJECT(p) FROM Person p WHERE p.name = ?1"
    If I compile, package and deploy the ear applicatin with the above EJBQL statement, OC4J generates an exception when executing the finder method. The exception is:
    "java.rmi.NoSuchObjectException: Session has timed out
    at com.evermind.server.ejb.StatefulSessionEJBObject.throwPassivisat
    ception(StatefulSessionEJBObject.java:188)
    at Cad023Remote_StatefulSessionBeanWrapper0.obterPessoasPorParteNom
    023Remote_StatefulSessionBeanWrapper0.java:754)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:8
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)"
    If I remove the where clause, the expection is gone. However, I get all records. ;-)
    4) It seems that all EJBQL clauses must be capitalized. Is this true?
    FINALY)
    Is there a newer OC4J build that could use to get the development going? Do you know where there will be one? Is there any way of contacting the OC4J development team to report bugs?
    If you would like, we could discuss it in private e-mail (please use my private mail [email protected]).
    Thanks for your attention,
    Luis Fernando Soeiro
    Hi !! OC4J 9.0.3 developer's preview has most features of EJB 2.0. We are working on updating on our docs and samples for EJB 2.0
    Please look at the following URL that has some How Tos on EJB 2.0 features such Local Interfacea, EJB QL, etc : http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-how-to.html#ejb
    regards
    Debu Panda
    Oracle --------------------------
    Luis Soeiro <mailto:[email protected]> <mailto:[email protected]>Type : Question Date : Apr 11, 2002 15:15 PT Hello
    Some colleagues and I are trying to port a large project from JBOSS to OC4J. We used JBOSS 3.0 (beta) in order to evaluate EJB2.0 features and see if we could use it. We already have OC4J in production, but only as a JSP/Servlet container. The next step would be to deploy our EJB application to OC4J.
    We have read the material and it is written that OC4J (developers preview) is EJB 2.0 compliant. However, the specific documentation and the examples don't show how to specify OC4J specifc XML files. We absolutely need CMR and Local Interfaces, because we don't have the time required to downgrade our JBoss EJB2.0 application to the EJB 1.1 specification. We have over 80 Session Beans and over 20 Entity Beans.
    Is there anybody there that can confirm that OC4J developer's preview is really EJB2.0 compliant? If so, could you send me some pointers to information about OC4J container specifc deployment descriptors? The docs listed at the web site don't have EJB2.0 features listed, nor does the Oracle samples.
    Thanks for your attention,
    desperately,
    Luis Fernando Soeiro

    HI,
    I worked out CMR and EJB-QL with single bean.
    Using CMR, it is possible to get one bean reference through other bean, but
    When I tried EJB-QL with bean to bean navigation then I run into problem.

  • EJBQL, MIN and java.sql.Timestamp

    I am trying to create a new finder method for a cmp bean which returns me the date of the oldest bean available.
    the ejbql query looks like this:
    select MIN (a.receiveDate) from AssetSchema as a
    receiveDate is defined as a java.sql.Timestamp field in the bean. I am getting the following error:
    Bean: Asset
    Method: clover.AssetLocal findOldestDeleted()
    EJBQL: select MIN (a.receiveDate) from AssetSchema as a
    Error: JDO75334: Invalid type 'java.sql.Timestamp' of select clause expression for finder method.
    anything wrong with the query or .....

    Instead of using a finder, use an ejbSelect method. You can then use the aggregate function MIN. Wrap the ejbSelect in a home method.
    In remote Home interface, define home method:
    public java.lang.String selectMinSingle() throws RemoteException;
    define the ejbSelect method in EJB class:
    public abstract java.lang.String ejbSelectMinSingle() throws FinderException;
    The ejbSelect is wrapped in a ejbHome method:
    public java.lang.String ejbHomeSelectMinSingle()
    try {
    String s = ejbSelectMinSingle();
    return s;
    } catch(Exception e) {
    throw new EJBException("ejbHomeSelectMinSingle: " + e);
    Call home method from client:
    String s1 = beanHome.selectMinSingle();
    Not sure if this is what you're looking to do.
    There is also the ORDER BY clause; i.e.,
    <ejb-ql>Select p.quantity from ProductBean p ORDER BY p.quantity</ejb-ql>
    use the ASC or DESC keyword:
    <ejb-ql>Select p.quantity from ProductBean p ORDER BY p.quantity ASC</ejb-ql>
    For finder:
    query>
    <description></description>
    <query-method>
    <method-name>findProductsByHighestQuantity</method-name>
    <method-params />
    </query-method>
    <ejb-ql>Select DISTINCT OBJECT(p) From ProductBean p ORDER BY p.quantity DESC</ejb-ql>

  • Using sub quries in EJBQL

    Hi
    I am using EJBQL to extract the employee records from database with EJB3 using toplink
    query is as follows
    "SELECT e FROM Employee e WHERE e.empId not in (Select a.empId.empId FROM Attendancerecord a WHERE a.date = :date)"
    where each employee has many attendance record and in reverse each attendance record tuple has one employee relation
    what I want to do is to 'select all those employees for which there is no record in Attendance record for specific date '
    when executing the exception caught is that
    java.sql.SQLException: Subquery returns more than 1 row
    e.empId is an integer
    kindly help
    rgards
    Hina

    Think about how the e-mail will look to the person reading it. There will be some links, of course. And how should those links look? They should look like something that somebody could use from anywhere on the Internet. So obviously "C:\data\wombat.gif" isn't going to work. Your best bet is for the link to look something like "http://www.animallovers.org/wombat.gif", and that means you need a web server that can serve out those files.

  • How-to-ejbql

    Hi! I got an error 'java.sql.SQLException: ORA-01008: not all variables bound' when i run the 'how-to-ejbql' sample code from otn.oracle.com. I checked the generated sql in orion-ejb-jar.xml and they seem to look good. In fact I runned the generated sql in sqlplus and they all worked. Also run the container with -Denable.ejbql=true. Any ideas?
    Thanks
    Win2000
    OC4J1.3 Dev. prev.

    Hi Jeff, here's the portion of the ejb-jar.xml with custom finder..
    <query>
    <description></description>
    <query-method>
    <method-name>findByDeptno</method-name>
    <method-params>
    <method-param>double</method-param>
    </method-params>
    </query-method>
    <ejb-ql>select distinct object(e) from Emp e where e.deptno = ?1 </ejb-ql>
    </query>
    and here's the equivalent generated file orion-ejb-jar.xml
    <finder-method query="SELECT DISTINCT OBJECT(e) FROM Emp e WHERE (e.deptno = ? )">
         <!-- Generated SQL: "SELECT DISTINCT e.empno, e.ename, e.job, e.mgr, e.hiredate, e.sal, e.comm, e.deptno FROM Emp e WHERE (e.deptno = ? )" -->
         <method>
         <ejb-name>Emp</ejb-name>
         <method-name>findByDeptno</method-name>
         <method-params>
         <method-param>double</method-param>
         </method-params>
         </method>
    </finder-method>
    As previously written, the custom finder method 'findByDeptNo' will cause an sql exception.
    Thanks.
    Win2000
    Oracle9iAS (9.0.3.0.0)

  • EJBQL deployment problems

    When I deploy my application with a CMP bean that uses EJBQL I always get this error:
         Deployment failed: Nested exception
    Root Cause: deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Failure to initialize EJBQL descriptors: com.sun.enterprise.deployment.xml.ParseException: Connection timed out: connect
    Resolution: . deploy failed!: ; nested exception is:
    oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Failure to initialize EJBQL descriptors: com.sun.enterprise.deployment.xml.ParseException: Connection timed out: connect
    Any ideas why?
    I am using oracle 10g app server. I added the -Denable.ejbql=true to the java args for my oc4j instance, but I don't see why I would have too.
    Anyways, I continue to get this error, please help.

    did you find an answer to this, cause we have the same problem ?

  • EJBQL for Joining two tables

    I am using CMP and CMR with a project. Two of the entity beans have a many-to-many relationship with each other, and I am trying to specify the finder methods in EJBQL. One of the entity beans is Event, and the other is Attendee. The Event bean contains an attendees attribute, which is a Collection of Attendee.
    The finder method I'm specifying looks like this:
    SELECT DISTINCT OBJECT(e) FROM Event e,
    IN (e.attendees) AS a
    WHERE a = ?1 AND e.day = ?2
    A similar finder is specified in the following way:
    SELECT DISTINCT OBJECT(e) FROM Event e,
    IN (e.attendees) AS a
    WHERE a = ?1
    The first finder method fails, but the second version is successful.

    The problem manifests as a runtime exception:
    javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; nested exception is: javax.ejb.EJBException: nested exception is: SQL Exception: Syntax error: Encountered "WHERE" at line 1, column 167.
    javax.ejb.EJBException: nested exception is: SQL Exception: Syntax error: Encountered "WHERE" at line 1, column 167.
    SQL Exception: Syntax error: Encountered "WHERE" at line 1, column 167.
    The generated SQL looks like this:
    SELECT DISTINCT "e"."eventId" FROM "EventEntityTable" "e" , "AttendeeEntityTable" "a" , "EventEJB_attendees_AttendeeEJB_eventsTable" "@tmp0" WHERE ( EXISTS (SELECT * WHERE (("e.attendees"."_AttendeeEJB_userId" = ? ))) AND ("e"."day" = ? )) AND (("e"."eventId" = "@tmp0"."_EventEJB_eventId" AND "@tmp0"."_AttendeeEJB_userId" = "a"."userId"))
    Any ideas as to why this is happening, and what I can do to fix it?

  • EJB QL: Exception while parsing ... LIKE CONCAT(?1, '%')

    Hi,
    the following statement is EJB- 2.0 conform:
    <ejb-ql>SELECT OBJECT(obj) FROM aTable AS obj WHERE obj.aColumn LIKE CONCAT(?1, '%')</ejb-ql>
    While trying to deploy an EAR with the deployment tool, the following exception is thrown.
    [code]
    Cannot deploy application myCompany.com/myApp..
    Reason: Incorrect QL query: SELECT OBJECT(obj) FROM aTable AS obj WHERE obj.aColumn LIKE
                             CONCAT(?1, '%'), errors: line 2: unexpected token: CONCAT
                             CONCAT(?1, '%')
                             ^
    .; nested exception is:
         com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='com.sap.engine.services.ejb.exceptions.deployment.EJBDeploymentException: Incorrect QL query: SELECT OBJECT(obj) FROM aTable AS obj WHERE obj.aColumn LIKE
                             CONCAT(?1, '%'), errors: line 2: unexpected token: CONCAT
                             CONCAT(?1, '%')
                             ^
         at com.sap.engine.services.ejb.deploy.ejbql.QLTranslator.prepareQLContext(QLTranslator.java:191)
         at com.sap.engine.services.ejb.deploy.ejbql.QLTranslator.translateQuery(QLTranslator.java:103)
         at com.sap.engine.services.ejb.deploy.ejbql.QLTranslator.translateAllQueries(QLTranslator.java:171)
         at com.sap.engine.services.ejb.deploy.DeployAdmin.translateQL(DeployAdmin.java:1398)
         at com.sap.engine.services.ejb.deploy.DeployAdmin.generate(DeployAdmin.java:254)
         at com.sap.engine.services.ejb.EJBAdmin.deploy(EJBAdmin.java:2118)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:594)
         at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:379)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:296)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:290)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:323)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3033)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:463)
         at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1555)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    [/code]
    The above mentioned query is supposed to be parsable, it works quite fine on JBoss and WLS.
    regards
    Marcel

    Hi Viliana,
    > Hi Marcel,
    > The J2EE Engine in NW04 is fully EJB 2.0 compatible.
    > Therefore, please check if your statement conforms to
    > the EJB QL BNF syntax (chapter 11 of the EJB2.0
    > specification) and if this is the case (at least to
    > me, your statement looks correct), open a CSS
    > ticket.
    I checked it against the EJB QL BNF and it is valid. What is a CSS ticket exactly?
    best regards
    Marcel

  • If image file not exist in image path crystal report not open and give me exception error problem

    Hi guys my code below show pictures for all employees
    code is working but i have proplem
    if image not exist in path
    crystal report not open and give me exception error image file not exist in path
    although the employee no found in database but if image not exist in path when loop crystal report will not open
    how to ignore image files not exist in path and open report this is actually what i need
    my code below as following
    DataTable dt = new DataTable();
    string connString = "data source=192.168.1.105; initial catalog=hrdata;uid=sa; password=1234";
    using (SqlConnection con = new SqlConnection(connString))
    con.Open();
    SqlCommand cmd = new SqlCommand("ViewEmployeeNoRall", con);
    cmd.CommandType = CommandType.StoredProcedure;
    SqlDataAdapter da = new SqlDataAdapter();
    da.SelectCommand = cmd;
    da.Fill(dt);
    foreach (DataRow dr in dt.Rows)
    FileStream fs = null;
    fs = new FileStream("\\\\192.168.1.105\\Personal Pictures\\" + dr[0] + ".jpg", FileMode.Open);
    BinaryReader br = new BinaryReader(fs);
    byte[] imgbyte = new byte[fs.Length + 1];
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dr["Image"] = imgbyte;
    fs.Dispose();
    ReportDocument objRpt = new Reports.CrystalReportData2();
    objRpt.SetDataSource(dt);
    crystalReportViewer1.ReportSource = objRpt;
    crystalReportViewer1.Refresh();
    and exception error as below

    First: I created a New Column ("Image") in a datatable of the dataset and change the DataType to System.Byte()
    Second : Drag And drop this image Filed Where I want.
    private void LoadReport()
    frmCheckWeigher rpt = new frmCheckWeigher();
    CryRe_DailyBatch report = new CryRe_DailyBatch();
    DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter ta = new CheckWeigherReportViewer.DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter();
    DataSet1.DataTable_DailyBatch1DataTable table = ta.GetData(clsLogs.strStartDate_rpt, clsLogs.strBatchno_Rpt, clsLogs.cmdeviceid); // Data from Database
    DataTable dt = GetImageRow(table, "Footer.Jpg");
    report.SetDataSource(dt);
    crv1.ReportSource = report;
    crv1.Refresh();
    By this Function I merge My Image data into dataTable
    private DataTable GetImageRow(DataTable dt, string ImageName)
    try
    FileStream fs;
    BinaryReader br;
    if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + ImageName))
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    else
    // if photo does not exist show the nophoto.jpg file
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    // initialise the binary reader from file streamobject
    br = new BinaryReader(fs);
    // define the byte array of filelength
    byte[] imgbyte = new byte[fs.Length + 1];
    // read the bytes from the binary reader
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dt.Rows[0]["Image"] = imgbyte;
    br.Close();
    // close the binary reader
    fs.Close();
    // close the file stream
    catch (Exception ex)
    // error handling
    MessageBox.Show("Missing " + ImageName + "or nophoto.jpg in application folder");
    return dt;
    // Return Datatable After Image Row Insertion
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • SR Log Error - |  Message  : com.sap.esi.uddi.sr.api.exceptions.SRException

    Hi,
    We are getting below errors in /nwa/logs. We have our PI (7.11) and Service Registry configured on the same server. And have out CE (7.2) system connected to this service registry. Does any one has similar experience? Please let me know if you have any solution for the same.
    SR Log Error
    |  11-Nov-11  14:10:45.568
    |  Method   : getClassificationSystems()
    |  Class    : com.sap.esi.uddi.sr.api.ws.ServicesRegistrySiImplBean
    |  ThreadID : 146
    |  Message  : com.sap.esi.uddi.sr.api.exceptions.SRException: No classification system found for ID 'QName: Namespace= http://uddi.sap.com/classification; Name=  ConfigurationFlags'
    |
    |       com.sap.esi.uddi.sr.impl.common.Utility.cs2srException(Utility.java:122)
    |       com.sap.esi.uddi.sr.impl.ejb.ServicesRegistryBean.getClassificationSystems(ServicesRegistryBean.java:242)
    |       sun.reflect.GeneratedMethodAccessor1325.invoke(Unknown Source)
    |       sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    |       java.lang.reflect.Method.invoke(Method.java:585)
    |       com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:46)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
    |       com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    |       com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    |       com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
    |       com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
    |       com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    |       com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    |       com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    |       com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133)
    |       com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164)
    |       $Proxy1087.getClassificationSystems(Unknown Source)
    |       com.sap.esi.uddi.sr.api.ws.ServicesRegistrySiImplBean.getClassificationSystems(ServicesRegistrySiImplBean.java:456)
    |       sun.reflect.GeneratedMethodAccessor1324.invoke(Unknown Source)
    |       sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    |       java.lang.reflect.Method.invoke(Method.java:585)
    |       com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:46)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
    |       com.sap.engine.services.ejb3.runtime.impl.Interceptors_WS.invoke(Interceptors_WS.java:31)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    |       com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    |       com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    |       com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
    |       com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
    |       com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    |       com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    |       com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16)
    |       com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    |       com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133)
    |       com.sap.engine.services.ejb3.webservice.impl.DefaultImplementationContainer.invokeMethod(DefaultImplementationContainer.java:203)
    |       com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process0(RuntimeProcessingEnvironment.java:512)
    |       com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessingEnvironment.java:486)
    |       com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process(RuntimeProcessingEnvironment.java:256)
    |       com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWOLogging(ServletDispatcherImpl.java:176)
    |       com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWithLogging(ServletDispatcherImpl.java:112)
    |       com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:70)
    |       SoapServlet.doPost(SoapServlet.java:51)
    |       javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
    |       javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    |       com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:140)
    |       com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:37)
    |       com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:486)
    |       com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:298)
    |       com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:396)
    |       com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:385)
    |       com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
    |       com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    |       com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:84)
    |       com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    |       com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:245)
    |       com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    |       com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)
    |       com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    |       com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    |       com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
    |       com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    |       com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    |       com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
    |       com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    |       com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    |       com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
    |       com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    |       com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    |       com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
    |       com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    |       com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    |       com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
    |       com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    |       com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    |       com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:428)
    |       com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:247)
    |       com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)
    |       com.sap.engine.core.thread.execution.Executable.run(Executable.java:115)
    |       com.sap.engine.core.thread.execution.Executable.run(Executable.java:96)
    |       com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
    |

    Hi,
    Refer Error:Service Registyr Configuration PI 7.11
    and http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8071b1b8-3c5c-2e10-e7af-8cadbc49d711?QuickLink=index&overridelayout=true
    Thanks,
    Chandra

  • HT1386 I have synced the items from itunes to an iphone 4 without problem, except the two albums I just purchased did not sync.  They show up on the itunes on my desktop and on my ipod, but not on the new iphone.  What do I need to do?

    I have an itunes account and an ipod, and when I purchased 2 albums on the computer they synced straight to the ipod.  I bought an iphone and used the usb cord from the computer to it to sync the itunes albums to the new phone.  Everything transfered, and those were albums I had uploaded (not purchased from the itunes store), except the two albmus I just purchased from the itunes store.  They appear on my itunes on the computer and ipod, but not on the iphone.  What did I fail to do or did I do incorrectly?

    This might sound weird, but here's an idea which worked for me re music that was newly added to itunes and showed up in my ipod but wouldn't play - I simply played the tracks in itunes first, just a second of time or so will do it, not the whole track, then connect the ipod and sync again and this time they played - hope this helps.

  • Get Attribute values from a page and procedure exception handling?

    Hi All,
    I have created new page with two input attributes not based on any VO. This page is created to capture two values and pass these to an AM method upon pressing OK button. The method in AM will call a procedure with two in parameter expecting the two values captured from the above said page.
    I have two questions, first one how to capture the values entered by the page in the controller class and advises me how to handle exceptions when my procedure fails.
    I can not use something like this since this page is not based on a VO
    String fromName = (String)vo.getCurrentRow().getAttribute("FromName");
    Do I have to create a dummy VO like select '' name1, '' name2 from dual?
    Thanks for the help.

    Hi,
    Actually you can capture the parameters on the page like this way
    String test = (String)pageContext.getParameter("id of the text input bean");
    Now in procedure you can take an out parameter which stores the error messages on exception
    and return that out parameter in java.
    and then you can throw exception on page using OAException class.
    Thanks
    Gaurav Sharma

  • Get the values from Exception class

    Hi all ..
    In class i have raised one exception
    when i catch this exception in my program i m able to get the
    error message but i need to get all the parameters that i pass
    when i raise the exception ...
    i have raised like this
          RAISE EXCEPTION TYPE cx_bapi_error
            EXPORTING
              textid = cx_bapi_error=>cx_bo_error
              class_name = 'ZHS_'
              log_no = wa_bapi_return-log_no
              log_msg_no = wa_bapi_return-log_msg_no
              t100_msgid = wa_bapi_return-id
              t100_msgno = wa_bapi_return-number
              t100_msgv1 = wa_bapi_return-message_v1
              t100_msgv2 = wa_bapi_return-message_v2
              t100_msgv3 = wa_bapi_return-message_v3
              t100_msgv4 = wa_bapi_return-message_v4
              STATUS = lt_status
    and caught the exception like this in my program
        CATCH cx_bapi_error INTO go_error.
          gd_text = go_error->get_text( ).
          EXIT.
      ENDTRY.
    in this i m just getting the class name which i have passed in exception
    i need all other parameters that i have passed ..
    if u have any idea pls let me know ..
    Thanks in advance ...

    Hello Jayakumar
    Usually the attributes of standard exception classes are defines as <b>public</b> and <b>read-only</b>. Thus, you should be able to use the following coding:
    DATA:
      go_error   TYPE REF TO cx_bapi_error.  " specific exception class !!!
    TRY.
    RAISE EXCEPTION TYPE cx_bapi_error
    EXPORTING
    textid = cx_bapi_error=>cx_bo_error
    class_name = 'ZHS_'
    log_no = wa_bapi_return-log_no
    log_msg_no = wa_bapi_return-log_msg_no
    t100_msgid = wa_bapi_return-id
    t100_msgno = wa_bapi_return-number
    t100_msgv1 = wa_bapi_return-message_v1
    t100_msgv2 = wa_bapi_return-message_v2
    t100_msgv3 = wa_bapi_return-message_v3
    t100_msgv4 = wa_bapi_return-message_v4
    STATUS = lt_status.
    CATCH cx_bapi_error INTO go_error.
    gd_text = go_error->get_text( ).
    WRITE: go_error->t100_msgid,  " perhaps the attributes have different name
                go_error->t100_msgno, " check attribute names in SE24
    EXIT.
    ENDTRY.
    Regards
      Uwe

  • Trying to delete file from trash but get this: The operation can't be completed because the item "File name" is in use. All other files delete except this one. Please help

    Trying to delete file from trash but get this: The operation can’t be completed because the item “File name” is in use. All other files delete except this one. Please help

    Maybe some help here:
    http://osxdaily.com/2012/07/19/force-empty-trash-in-mac-os-x-when-file-is-locked -or-in-use//

Maybe you are looking for

  • My adobe photoshop CS6 won't open it says: 'the preferences file is invalid'. HELP!

    My adobe photoshop CS6 won't open it says: 'the preferences file is invalid'. HELP!

  • How Do I Tell FCE to use 16:9 Automatically?

    I use a Canon camcorder and when I've imported movies using FCE 4.0.1, I generally haven't had problems with aspect ratios. At this point all the video I shoot is in 16:9, but sometimes I'm using video a friend shoots.  The aspect ratio was only a pr

  • Time Series Measure : ToDate

    Hi experts, I have been facing a problem,for which I need your help. I want to calculate No. of Pending claims till date.... I am trying achieve it using ToDate Function. ToDate(Cliam Fact.Pending Claim,Year) But, If I select Year=1999 it will show r

  • Module pool to create goods mvt by using Bapi

    Hi can any one help me to develop a module pool program to create goods movement by using BAPI. Pls give me guidelines to proceed further... i should be grateful to you people for proving help... thank you with regards bheem

  • Database diagram, unable to hide columns

    Hi, I've installed JDeveloper 11.1.1.2.0. If I create a diagram and I place a table I can see all the columns of that table. In previous version (i was using the jdeveloper1111 beta preview...) it was possible to hide some columns by right clicking o