OneToMany relation over composite PK query error
We have two classes with composite PK's on both sides. The classes are related via OneToMany relation (and ManyToOne vice versa). The mapping basically works, but if a simple query is issued like
"select stp from Teilstp stp"
we get the strange error message "Exception Description: The parameter name [tstnr2] in the query's selection criteria does not match any parameter name defined in the query." Query: ReadAllQuery(lager.model.Teillgp)
As there are no parameters defined in the query above, this seems to be some kind of internal TopLink JPA error.
We are unsure whether our mapping is the problem or if the error could be caused by a TopLink JPA bug? Please have a look at the code snippets below and verify the mappings!
regards,
Hans
@IdClass(TeilstpPK.class)
@Entity
@Table(name = "teilstp", schema = "jws")
public class Teilstp {
@Id
private String tstnr1;
@Id
private String tstnr2;
@Id
private String tstnr3;
@Id
private String tstnr4;
@Id
private String tstnr5;
@Basic
@Column(name = "tsmeh")
private String tsmeh;
@Basic
@Column(name = "tsdekp")
private Double tsdekp;
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY,mappedBy="stp")
private Set<Teillgp> lgps;
@IdClass(TeillgpPK.class)
@Entity
@Table(schema = "jws")
public class Teillgp {
@Id
private String tltnr1;
@Id
private String tltnr2;
@Id
private String tltnr3;
@Id
private String tltnr4;
@Id
private String tltnr5;
@Id
private Long tllgnr;
@Basic
private Double tllgbs;
@ManyToOne(cascade = CascadeType.MERGE, fetch = FetchType.EAGER)
@JoinColumns( {
@JoinColumn(name = "tltnr1", referencedColumnName = "tstnr1"),
@JoinColumn(name = "tltnr2", referencedColumnName = "tstnr2"),
@JoinColumn(name = "tltnr3", referencedColumnName = "tstnr3"),
@JoinColumn(name = "tltnr4", referencedColumnName = "tstnr4"),
@JoinColumn(name = "tltnr5", referencedColumnName = "tstnr5") })
private Teilstp stp;
The PrimaryKey @IdClasses are just plain pojo's with hashCode and equals implemented.
Invoking Teilstp.getLgps() fails with:
[TopLink Warning]: 2007.06.11 03:48:50.640--ServerSession(11582167)--Exception [TOPLINK-6094] (Oracle TopLink Essentials - 2.0 (Build b38-rc (03/07/2007))): oracle.toplink.essentials.exceptions.QueryException
Exception Description: The parameter name [tstnr2] in the query's selection criteria does not match any parameter name defined in the query.
Query: ReadAllQuery(lager.model.Teillgp)
Any ideas?
I have this same error, except mine occurs when I make use of the @OneToMany Set.
This problem seems to be related to connecting Entity Relationships (Specifically ManyToOne) to Id fields.
(And I have the most recent version as of June 2007)
(Also, I know this post is five years old, but it was the sole result on Google)
I bet your stack trace looks somewhat like this:
oracle.toplink.essentials.exceptions.QueryException.parameterNameMismatch(QueryException.java:983)
oracle.toplink.essentials.internal.expressions.ParameterExpression.getValue(ParameterExpression.java:231)
oracle.toplink.essentials.internal.databaseaccess.DatabaseCall.translate(DatabaseCall.java:837)
oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:228)
oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:215)
oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:286)
oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:616)
oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2417)
oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:2395)
oracle.toplink.essentials.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:339)
oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:725)
oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:629)
oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:693)
oracle.toplink.essentials.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:1831)
oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:953)
oracle.toplink.essentials.internal.indirection.QueryBasedValueHolder.instantiate(QueryBasedValueHolder.java:102)
oracle.toplink.essentials.internal.indirection.QueryBasedValueHolder.instantiate(QueryBasedValueHolder.java:92)
oracle.toplink.essentials.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:106)
oracle.toplink.essentials.internal.indirection.UnitOfWorkValueHolder.instantiateImpl(UnitOfWorkValueHolder.java:176)
oracle.toplink.essentials.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:248)
oracle.toplink.essentials.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:106)
oracle.toplink.essentials.indirection.IndirectSet.buildDelegate(IndirectSet.java:194)
oracle.toplink.essentials.indirection.IndirectSet.getDelegate(IndirectSet.java:309)
oracle.toplink.essentials.indirection.IndirectSet$1.<init>(IndirectSet.java:360)
oracle.toplink.essentials.indirection.IndirectSet.iterator(IndirectSet.java:359)
Similar Messages
-
Query Error (CL_RSDD_VCUBE .and SAPLRRK0)
Query Error (CL_RSDD_VCUBE .and SAPLRRK0)
Posted: Apr 19, 2007 6:01 PM Reply E-mail this post
Hi,
I'm trying yo run a query.
I check the query in the Query Designer and is OK, but when run the query a message appears "Internal error in program CL_RSDD_VCUBE and method GET_SID-8-" and "System error in program SAPLRRK0 and form RSRDR;SRRK0F30-01-".
This query is made on Remote cube Accessing data from ORACLE through UD Connect , and I don't known if this error is related number of records.We r using BW3.5
We have OPCO CODE as a infoobject in the query if we restrict that opcocode with some values and execue the query its getting the values and running without errors .But if we wont restrict with anyvalues on the opo code its getting above errors.
Can anyone help me?
Thanks in Advance
Message was edited by:
MuralHi Mural,
you can go in Tcode RSRT, introduce your query and then select from Environment first "Repair Read Mode" and then "Generate Queries". Then try click to Execute to see if it was only a generation problem or if the query has a real problem.
In this case you can try with "Execute + Debug" to see where the problem is.
Ciao.
Riccardo. -
특정 SUPPLIER SITE LEVEL의 DATA수정 시도시 RE-QUERY ERROR
제품 : FIN_AP
작성날짜 : 2004-05-19
특정 SUPPLIER SITE LEVEL의 DATA수정 시도시 RE-QUERY ERROR
=================================================
Problem Description
특정 Supplier Site level의 Data수정 시도시 아래의 Message발생
==============================================
record has been updated, re-query block to see change
==============================================
Solution Description
아래의 SQL을 실행해서 "CHK_TRAIL_SPACE"라는 Procedure를
만든 후 생성된 Procedure를 다음의 방법으로 실행하면, Input Table의
어떤 Column에 NULL문자가 들어갔는지 확인할 수 있다.
set serveroutput on
execute chk_trail_space(<table_name to check>);
i.e. (execute chk_trail_space('PO_VENDORS');)
trailspace.sql:
===============================================================================
CREATE OR REPLACE PROCEDURE CHK_TRAIL_SPACE (p_table_name in varchar)
IS
v_table_name varchar(30);
v_column_name varchar(30);
v_column_name_c char(30);
v_space_count number;
v_ret number; -- temp holder for above
v_initial_space_counter number;
dyn_cursor number;
CURSOR TABLE1 IS
SELECT table_name
FROM DBA_TABLES
WHERE table_name = p_table_name;
CURSOR COLUMN1 IS
SELECT column_name
FROM DBA_TAB_COLUMNS
WHERE table_name = v_table_name;
BEGIN
OPEN TABLE1;
LOOP
-- FOR crec1 in TABLE1 LOOP
fetch TABLE1 into v_table_name;
IF (TABLE1%NOTFOUND) THEN
exit;
END IF;
dbms_output.put_line(v_table_name);
dbms_output.put_line
v_initial_space_counter := 0;
OPEN COLUMN1;
LOOP
-- FOR crec2 in COLUMN1 LOOP
fetch COLUMN1 into v_column_name;
IF (COLUMN1%NOTFOUND) THEN
exit;
END IF;
dyn_cursor := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE
(dyn_cursor,
'SELECT COUNT(*) ' ||
'FROM ' || p_table_name ||
' WHERE ' || v_column_name || ' LIKE ''% ''',
DBMS_SQL.NATIVE);
DBMS_SQL.define_column (dyn_cursor, 1, v_space_count);
v_ret := DBMS_SQL.EXECUTE(dyn_cursor);
if DBMS_SQL.fetch_rows(dyn_cursor) > 0 then
DBMS_SQL.column_value (dyn_cursor, 1, v_space_count);
end if;
DBMS_SQL.CLOSE_CURSOR(dyn_cursor);
IF v_space_count > 0 THEN
v_initial_space_counter := v_initial_space_counter + 1;
END IF;
v_column_name_c := v_column_name;
IF v_space_count > 0 THEN
dbms_output.put_line(' ' || v_column_name_c || to_char(v_space_count))&
#059;
END IF;
end loop;
close column1;
end loop;
close table1;
END CHK_TRAIL_SPACE;
====================================================================
NULL문자가 들어간 Column이 확인되면,
update po_vendors
set vendor_name = rtrim(vendor_name);
위의 방법으로 수정하면 된다.
Reference Documents
Note :234048.1If I delete the purchase details/line item, the supplier site can be changed.
The error appeared again after the new line item selected,click on "Shipment" button, and change the supplier site.
It's not able to change it. Any reason caused by the line item shipment? how it relate? -
Memory leak/overload when looping by index over a large query and updating each DB record
I am importing a CSV file into a temporary table and then running a select query that joins my actual database table with the temporary table, looking for any changes in the data. If changes exist, the select query is looped from 1 to #recordCount# and an update is applied to each record via cfquery. It runs very quickly (much more quickly than looping the query itself), but my memory spikes and overloads after about 1500 updates are completed. I need to be able to do upwards of 20000 at a time, without killing my system. I have tried manually setting the runtime garbage collection to trigger after X number of loops, but that doesn't seem to help. I am running CF8. See below for loop example:
<cfloop from="1" to="#updatedRecordsQuery.recordCount#" index="a">
<cftry>
<cfquery datasource="#db#" name="doUpdate">
UPDATE
CI
SET
firstname = <cfqueryparam cfsqltype="cf_sql_varchar" value="#updatedRecordsQuery.firstname[a]#" />,
lastname = <cfqueryparam cfsqltype="cf_sql_varchar" value="#updatedRecordsQuery.lastname[a]#" />,
etc, for about 15 various fields
FROM
client_info CI
WHERE
CI.client_id = <cfqueryparam cfsqltype="cf_sql_integer" value="#updatedRecordsQuery.client_id[a]#" />
</cfquery>
<cfcatch type="database">
<cfset local.updateErrorList = listappend(local.updateErrorList,updatedRecordsQuery.client_id[a]) />
<cfset local.error = true />
</cfcatch>
</cftry>
</cfloop>I would suggest to use select update instead of looping over query object and update each row one-by-one.
Procedure:
- Insert your CSV data into temp table.
- Use a select update SQL query to update the changed data instead of looping over a select query.
Example:
UPDATE
Table
SET
Table.col1 = other_table.col1,
Table.col2 = other_table.col2
FROM
Table
INNER JOIN
other_table
ON
Table.id = other_table.id
NOTE: You can put all your scripts in a Procedure. -
Hi all
when i run yaourt to install any things :
package-query: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
why?
what can i do?
I'm very newbie so help me with easy commands!
thankstry to reinstall yahourt :
https://wiki.archlinux.org/index.php/Yaourt -
SAP query error - 1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string. 'Received Alerts' (OAIB)
SELECT
CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
WHEN T0.DocStatus = 'C' THEN 'CLOSED' END AS 'Document Status',
T0.DocDate AS 'Posting Date',
T0.DocNum AS 'Doc.No',
T0.NumAtCard,
T0.TransId AS 'Trans. No.',
T0.Comments AS 'Remarks',
T0.CardCode AS 'Offset Acct',
T0.CardName AS 'Offset Acct Name',
sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
T3.DueDate AS 'Cheque Date',
T3.CheckSum AS 'Amount'
FROM ODPO AS T0 LEFT OUTER JOIN
VPM2 AS T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
OVPM AS T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
VPM1 AS T3 ON T2.DocEntry = T3.DocNum
where T0.DocDate>='[%0]' and T0.DocDate<='[%1]'Hi,
Try this:
SELECT
CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
WHEN T0.DocStatus = 'C' THEN 'CLOSED' END AS 'Document Status',
T0.DocDate AS 'Posting Date',
T0.DocNum AS 'Doc.No',
T0.NumAtCard,
T0.TransId AS 'Trans. No.',
T0.Comments AS 'Remarks',
T0.CardCode AS 'Offset Acct',
T0.CardName AS 'Offset Acct Name',
sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
T3.DueDate AS 'Cheque Date',
T3.CheckSum AS 'Amount'
FROM ODPO T0 LEFT OUTER JOIN
VPM2 T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry
LEFT OUTER JOIN
OVPM T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
VPM1 T3 ON T2.DocEntry = T3.DocNum
where T0.DocDate >= '[%0]' and T0.DocDate <='[%1]'
group by T0.DocStatus,T0.DocDate ,
T0.DocNum ,
T0.NumAtCard,
T0.TransId ,
T0.Comments ,
T0.CardCode,
T0.CardName ,
T0.WTSum ,
T3.DueDate ,
T3.CheckSum
Thanks & Regards,
Nagarajan -
I am trying to modify a query for LOV page item but get an Invalid LOV query error when trying to Apply Changes to my page(query however works in SQL*Plus)
I am trying to change the date format of query result to MON YYYY.
Original query that works:
select distinct bill.BILLED_DATE display_value, bill.BILL_ID return_value
from BILL;
New Query that fails in APEX (but works in SQL*Plus)
select distinct to_char(bill.BILLED_DATE, 'MON YYYY') display_value,
bill.BILL_ID return_value from BILL;
Anyone have any idea what I need to do to make this work?
"1 error has occurred
LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query"Strange, this lov does work and is no different than yours:
select distinct to_char(sysdate,'MON YYYY') disp, 1 retval from dual
What are the results from the query? Can there be something wrong with that?
Regards Guido -
Query erroring out with lack of temp space?
I have 2 databases. One was cloned from the other on to another server.
On one server the query takes 5 seconds to run on the other server the query errors lack with lack of disk space.
The init files are the same. The Oracle memory is the same. The temp tablespace size is the same.
I'm stuck!
What should I look for to find out what is causing the error?On both databases the version is 9.2.0.6.
This is the view that worked in database1 and errored in database2...
CREATE OR REPLACE VIEW SAP_STAGE.MTC_STG_MEASURE_POINT_V
EQUIP_NO,
MEASUR_PNTPOS,
CHARACT_NAME,
UNIT,
MEASUR_PNT_DESC,
VALUATION_CODE,
TEXT_FIELD
AS
SELECT DISTINCT xref.equnr AS equip_no, rpmp.*
FROM sap_stage.measuring_point mp JOIN xref_sap_equi xref
ON TRIM (mp.equip_no) = TRIM (xref.groes)
JOIN stg_mtc_msf600 msf600
ON TRIM (mp.equip_no) = TRIM (msf600.equip_no)
AND TRIM (msf600.dstrct_code) in ('347','315')
JOIN rec_prodstat_code_measur_pts rpmp ON 1 = 1
If I qualify all the tables with SAP_STAGE the query runs in 5 seconds in database2.
Why does the query run in database 1 without the schema names? -
Generate causes SCC Query Error: Unhandled exception
Hi folks,
I have Robohelp X5, I am composing on my local machine with
saves going to an RCS server. I've pretty much figured out that RCS
has a problem with the skins in Robohelp, because if I go to create
a custom skin, I can create it in a non-controlled project. The
second I go to create a custom skin in the controlled version, I
get an infinite loop of the SCCQueryError message, Unhandled
Exception Message Boxes. I have to kill Robohelp, and reboot to get
out of the error message.
Whenever I go to generate the verson controlled project, I
get at least six of these error messages, but the project is
generated and I can open it and can't seem to find anything
missing. So, even though I get the errors in a generate, they don't
affect the ability to generate a project.
I've already checked to be sure that the RCS server is
accepting all the file extensions.. that was my first thought was
that it didn't like the .swf extensions.
Anyone else have or see this problem?
Thanks!Thank you Eilsa... It's a touch complicated, but I am working
off my hard drive, and Robohelp is installed on my hard drive. The
webhelp file that is integrated with the project is being pushed to
the a folder on the development server where RCS resides, and my
project files are being archived in another directory on the RCS
version tracker.
I get the SCC query error (which seems to be an RCS version
tracker error) right after I generate either a local or server
webhelp, about six in all. So I'm thinking that there is some file
extension that RCS is blocking, because I don't get the errors when
I do the same thing with a non-version tracked project.
Forget about trying to create any skins.. (and this is on my
local, too) I have to switch to a non-version tracked project to
create the skins.
But just trying to see if anyone else has seen the
problem.. -
BEX query error---Error reading the data of InfoProvider
Hello all,
we are getting the following msg when we execute the query-
Error reading the data of InfoProvider ZEUDPR01
Errors occurred when extracting data from DataSource 9AEU_DOM
Short Text: Error for COM routine using application program (return c
Parameter: 1028533- LC kernel
Message in Source System: E102(/SAPAPO/OM) ...
Short Text: COM - error Unknown
Parameter: Unknown
Message in Source System: E001(/SAPAPO/OM) ...
Messages for DataSource 9AEU_DOM from source system PA1CLNT100
Errors occurred during parallel processing of query 4, RC: 3
Error while reading data; navigation is possible
Row: 54 Inc: WRITE_MESSAGES Prog: CL_RSDR_AT_QUERY
Found
This is the error observed for a particular selection only..for rest of the selection we get the data correctly.
Please help with the possible causes of error.
Thanks,
PallaviHi Pallavi,
How did you manage the pb?
we have the same error after Stack 21 (SP23)
we could not run query.
Thanks.
John -
ADM Error processing results from query: Error: Index 0 out of range
11.1.2.1
When running quite a large book, we are getting the following error:
ADM Error processing results from query: Error: Index 0 out of range
The individual reports in the books are running fine.
PS. The report books that are giving this error run fine on 9.3.1
Could this be a time-out issue and how do we resolve it?what is background datasource Essbase or HFM
do you have lot of data in pov please try below
>Do you have pov prompt
>increase jvm heap size for report server in reporting server
>Fr log files has some more detail -
Query error - with filtering records
Hi. I have a gallery that shows 9 records at a time, which
you can then move on to subsequent pages. I added filters to narrow
down the record search, however, I am receiving query errors. This
is my code:
<!----- This is setting the initial defaults for the filter
variables ---->
<cfparam name="form.ART_CATEGORY_ID" default="">
<cfparam name="form.ART_TYPE_ID" default="">
<cfparam name="form.FINE_ART_CLASS_ID" default="">
<cfparam name="form.searchfield" default="">
<!----- Populate the CATEGORIES filter drop-down ---->
<cfquery name="categories" datasource="nancy">
SELECT *
FROM CATEGORIES
ORDER BY ART_CATEGORY_ID
</cfquery>
<!----- Populate the TYPES filter drop-down ---->
<cfquery name="types" datasource="nancy">
SELECT *
FROM TYPE
ORDER BY ART_TYPE_ID
</cfquery>
<!----- Populate the CLASS filter drop-down ---->
<cfquery name="class" datasource="nancy">
SELECT *
FROM CLASS
ORDER BY FINE_ART_CLASS_ID
</cfquery>
<!----- Create the filter drop-down selections ---->
<form method="post" action="root_fineart.cfm">
<select name="ART_TYPE_ID">
<option value="" <cfif trim(form.ART_TYPE_ID) eq
"">selected
</cfif>> All </option>
<cfoutput query="types">
<option value="#ART_TYPE_ID#"
<cfif form.ART_TYPE_ID eq
types.ART_TYPE_ID>selected</cfif>>#ART_TYPE#</option>
</cfoutput>
</select>
<select name="ART_CATEGORY_ID">
<option value="" <cfif trim(form.ART_CATEGORY_ID) eq
"">selected
</cfif>> All </option>
<cfoutput query="categories">
<option value="#ART_CATEGORY_ID#"
<cfif form.ART_CATEGORY_ID eq
categories.ART_CATEGORY_ID>selected</cfif>>#ART_CATEGORY#</option>
</cfoutput>
</select>
<select name="FINE_ART_CLASS_ID">
<option value="" <cfif trim(form.FINE_ART_CLASS_ID) eq
"">selected
</cfif>> All </option>
<cfoutput query="class">
<option value="#FINE_ART_CLASS_ID#"
<cfif form.FINE_ART_CLASS_ID eq
class.FINE_ART_CLASS_ID>selected</cfif>>#FINE_ART_CLASS#</option>
</cfoutput>
</select>
<!----- This also creates a SEARCH capability ---->
<input name="searchfield" type="text" size="10"
value="#form.searchfield#" /></cfoutput> </label>
<input name="submit" type="submit" value="Submit" />
<!----- I got this part of the code from a site, that allows
me to display the 9 records at a time in my gallery ---->
<cfparam name="start" type="numeric" default="1">
<cfparam name="step" type="numeric" default="9">
<!----- My query to retrieve the records... This may be where
I have something wrong... ---->
<cfquery datasource="nancy" cachedwithin=".01"
name="queryResults">
SELECT *
FROM ART
WHERE 1 = 1
<cfif val(form.ART_CATEGORY_ID) GT 0>
AND ART_CATEGORY_ID = <cfqueryparam
value="#form.ART_CATEGORY_ID#" cfsqltype="cf_sql_integer">
</cfif>
<cfif val(form.ART_TYPE_ID) GT 0>
AND r.ART_TYPE_ID = <cfqueryparam
value="#form.ART_TYPE_ID#" cfsqltype="cf_sql_integer">
</cfif>
<cfif val(form.FINE_ART_CLASS_ID) GT 0>
AND i.FINE_ART_CLASS_ID = <cfqueryparam
value="#form.FINE_ART_CLASS_ID#" cfsqltype="cf_sql_integer">
</cfif>
<cfif trim(form.searchfield) neq "">
AND ART_TITLE LIKE '%#form.searchfield#%'
</cfif>
ORDER BY ART_TITLE ASC
</cfquery>
<!----- This is also code I got somewhere else to display the
gallery ---->
<cfif queryResults.recordcount gt 0>
<cfoutput>
<p class="style1">
<!--- if past start --->
<cfif (start-step-step) gt 1>
<a href="#cgi.SCRIPT_NAME#?start=1"><img
src="images/Beginning_blue.png" alt="Beginning" width="31"
height="21" align="absbottom" /></a>
</cfif>
<cfif start gt 1>
<a href="#cgi.SCRIPT_NAME#?start=#start-step#"><img
src="images/previous_blue.png" alt="Previous" align="absbottom"
/></a>
</cfif>
<strong>#start# - #iif(start * 3 + step gt
queryResults.recordcount,queryResults.recordcount,start + step-1)#
of #queryResults.recordcount# records</strong>
<!--- if still some not displayed --->
<cfif (start + step) lte queryResults.recordcount>
<a href="#cgi.SCRIPT_NAME#?start=#start+step#"><img
src="images/next_blue.png" alt="Next" align="absbottom"
/></a>
</cfif>
<cfif (start+step+step) lte queryResults.recordcount>
<a
href="#cgi.SCRIPT_NAME#?start=#queryResults.recordcount-step+1#"><img
src="images/end_blue.png" alt="End" align="absbottom"
/></a>
</cfif>
</p>
</cfoutput>
</cfif>
<cfloop query="queryResults" startrow="#start#"
endrow="#start + step/3-1#">
<table width="100%" border="1" bordercolor="#FFFFFF"
cellspacing="0" cellpadding="2">
<tr> <cfoutput query="queryResults"
startrow="#start#" maxrows="3">
<td width="33%"
class="style1">#queryResults.ART_TITLE#</td>
</cfoutput>
<cfset #start# = #start# + 3>
</tr>
</table>
</cfloop>
</td>
</tr>
</table></form>
It seems that the CATEGORIES filter is the only one that does
not return a ERROR EXECUTING DATABASE QUERY error. However, it does
not filter all the records... it only seems to filter and return
the first 4 or 5 records.
Any thoughts?your queryResults query selects only from ART table, while in
the WHERE
clause you are apparently using other tables whihc are not in
your FROM
clause...
you need to use JOIN/INNER JOIN/LEFT JOIN/RIGHT JOIN in your
FROM clause
to link the other tables. check your db manual for proper
usage of those
operators.
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/ -
HOW TO FIND AND CORRECT THE SQL QUERY ERRORS ????
Sometimes I get the errors while executing the sql queries.
I just wanted to know about the various ways by which I can find the sql query errors .
Any suggestions will be deeply appreciated.If you get the an error from SSMS and you can't comprehend it, you can google the error message and google would always lead you to the correction. Or you can post the error in this forum, people
here are always kind and ready to help :).
If you have any question, feel free to let me know.
Eric Zhang
TechNet Community Support -
SharePoint 2010 Unable to execute query: Error 0x80131530
I am seeing the below error message in the ULS logs while accessing some set of items in the list and the item will not get
opened after long tim.
"Unable to execute query: Error 0x80131530
Unknown SPRequest error occurred. More information: 0x80131530
System.Web.HttpException: Request timed out."
This list has 202 items in total with 45 columns in total (includes
5 lookup columns, 3 append history columns).
Items which has more than 20 versions is not loading.
In the same site, there is another list of the same template with 2009 items and some items with more
than 80 versions works fine.
Please let me know if you have any suggestion to fix this.Yes there are 2 simple SPD workflows. One of the workflow operation is to send email and other one is to create an item in another based on condition.
The other list which works fine also has similar SPD workflows. -
Refresh Problem with manyToOne OneToMany relations in EJB3/0
Hi all,
I have three tables defined.
Table A, B and C. B is an association table between A and C.
I have made a simple web application in which I can insert entries in the association table B.
The problem is now that when I insert a new entry in B the changes are not reflected to the defined @OneToMany relations in A and C, untill I restart the OC4J DP4 10.1.3.0 server.
I think the problem lies in the fact that the EJB relations are not refreshed properly.
Does anyone regconize this problem?
Thanks in advanceSorry, no solution.
Would just like to add my weight to this post as Im having the same trouble unless of course you managed to resolve it in which case Id be grateful for your wsidom.
Two entites (created with CMP from tables wizard) Location contains Stock. Cascade of PERSIST defined.
Facade method to add stock to a location works (Correct values are insserted into the database) but subsequent finds return Stock entities that are unpopulated (i.e. all proeprties are null).
Im using latest JDeveloper 10.1.3 build 3673 downloaded a couple of days ago. Am running within JDeveloper also.
Facade method :-
public void writeOnStock(String loc, String prod, int qty, String container)
throws InvalidProductCode, InvalidLocationCode {
Location l = (Location) em.find("Location",loc);
if (l==null) throw new InvalidLocationCode(loc);
Product p = (Product) em.find("Product",prod);
if (p==null) throw new InvalidProductCode(prod);
Stock s = new Stock();
s.setProduct(p);
s.setQty(new Long(qty));
s.setContainer(container);
s.setStatus("-");
l.addStock(s);
My tester code...
stockFacade.writeOnStock("BAY1","LP1",1,"PAL1");
System.out.println( stockFacade.findAllStock( ) );
Output of...
[Stock:[null]null on null]
but stock table contains a row with all the correct data (Id of 45)
Stop and start the embedded OC4J server and run again I get...
[Stock:[45]1 on PAL1, Stock:[null]null on null]
As you can see record 45 from previous run is fine now, but latest is all null.
Any help appreciated. Gonna raise a TAR and upload my code. Ill post back if I get a solution.
Maybe you are looking for
-
Formatting of data --- in SQLPlusw
When I issue the following statement to SQLPLUSW select * from V$database; Hard to read the results on the screen. How to format this data so that I can read it very easily? Thank you, Smith
-
Please can someone help me with saving/deleting photos?
Hi, I know I am not using my iPhone correctly, but I am a busy mother and have been stacking up the photos on Camera Roll. I now need to delete some, but want to keep some to show friends. I don't have time to trawl the forums looking for the answer
-
I will buy one of the two, but I urge confirm if any of them will help me with Newest After Effects CC. Thank you very much.
-
Exception Error while validating the repository object at repository BODS: Read time out
Hi Team, While creating BO data service Source system in RSA1 we are facing attached error . I could not found any relevant notes or forum discussion on that particular error. RFC is working fine with registered program ID . Can you please suggest wh
-
What can be done with limited print settings?
Hi, This past week I had occasion to fill out a passport application on the Canadian govt. website. As there is a lot of information, and a barcode on each page, the govt. requires pretty exact print margin settings, and no header nor footer to be pr