Getting timeout error while updating a record from c#
Hi,
I have around 30k records in a tables. When I update that record inside the Transaction (Enterprise Data Library, c#) , it takes long time and throws timeout error.
But I am able to update the same record via Toad.
In the morning I tried same updating the record, it works without any change in the code or script.+
is it due table lock or db related issue? please adivse, how to resolve if occurs again.
anand
Code:
private static void Save()
using (DBTransactionManager dbTransactionManager = new DBTransactionManager())
try
DataTableDAL.Instance.ExecuteDML("Update Voyage SET BallastBonus = 30000 WHERE ID = 'AE53B610BEA743EC8AFBAED0C8349BF8';");
//commit database
dbTransactionManager.Commit();
catch
dbTransactionManager.RollBack();
throw;
Table
Column Name ID Pk Null? Data Type Default Histogram Encryption Alg Salt
ID 1 1 N NVARCHAR2 (32) None
CALCNUMBER 2 N NUMBER (10) None
CURRENCYID 3 N NVARCHAR2 (32) Frequency
CALCTYPE 4 N NUMBER (5) Frequency
ESTIMATEDESCRIPTION 5 Y NVARCHAR2 (200) None
ESTIMATEGROUPDESCRIPTION 6 Y NVARCHAR2 (200) None
BALLASTBONUS 7 Y NUMBER (12,2) None
BALLASTBONUSCOMMPCT 8 Y NUMBER (6,3) None
ISESTIMATE 9 N NUMBER (1) None
ADDITIONALSTEAMVALUE 10 Y NUMBER (8,4) None
ISADDITIONALSTEAMPCT 11 Y NUMBER (1) None
ADDITIONALPORTVALUE 12 Y NUMBER (8,4) None
ISADDITIONALPORTPCT 13 Y NUMBER (1) None
CREATEDBY 14 N NVARCHAR2 (32) Frequency
CREATEDDATE 15 N DATE None
UPDATEDBY 16 Y NVARCHAR2 (32) None
UPDATEDDATE 17 Y DATE None
LUMPSUMCARGOCOST 18 Y NUMBER (1) None
BUNKERPRICEMETHOD 19 Y VARCHAR2 (30 Byte) None
INCCONTCALCRESULT 20 Y NUMBER (1) None
FINAL_EST 21 Y NUMBER None
SPOT_VOYAGE 22 Y NUMBER (1) None
ISRUNCOSTEDIT 23 Y NUMBER (1) None
Index
Table doesnt have any index, except primary key index.
Total Records
35,000
Hope this input might sufficient to help me.
Similar Messages
-
Server java trace error while updating bulk records from AIX to Oracle 10g
Hi
I am getting an error in TCL (Tool Command language) script that updates the records in a database table i.e around 2500 records are to be updated. I am using update statement with bind variables to insert the data.
SQL "insert into netuser.visit_temp (FP_FROM,FP_TO,HOPS,FP_FROM_ID) values (:SN,:EN,:HP,:FPID)" [list SN $startnode EN $endnode HP $hops FPID $fpId]
However, after processing 900 or so records (takes around 8 hours) I get the following error:
environment variable "SERVER_JAVA_TRACE" undefined
while executing
"getenv SERVER_JAVA_TRACE"
invoked from within
"dotransaction {
logm "Processing $fp"
set value [SQL $query3 [list FP $fp]]
logm "Found value $value"
set fpid [Koplingspunkt quer..."
("foreach" body line 3)
invoked from within
"foreach fp $cmd2 {
UtilityObject cleanCache
dotransaction {
logm "Processing $fp"
set value [SQL $query3 [list FP $fp]]
logm "Found v..."
Could anyone please suggest the possible cause of error?Not a Java question. Locking.
-
Getting OOM error while retreive 2lakhs record from DB
I have a java program with a simple Select query that fetches around 2lakhs record from DB and will display in a JSP Page.
When I try to fetch huge amount of data the server causing OOM.
I got few suggestions to add setFetchSize(1000) to my Statement.
I am confused here, whether i need to setFetchSize() to Statement or to Resulset.
Pls suggest me a asolution to retrieve all the records and to avoid OOM error.66bdf8de-2e37-445a-8436-0ad04a325040 wrote:
Please find my answers below
What is a lakh?
A lakh or lac is a one hundred thousand
someone looking at a JSP page really want to crawl through a result set that large
Yes, All the records will be displayed in a JSP Page and User will be navigating through all the records.
Seriously? Some human being is going to navigate through a page containing 200,000 records? Seriously?
I tested with both the scenario(setFetchSize() to Statement or to Resulset), it didnt work for me, still getting same OOM .
Then it would appear that the answer to your question "whether i need to setFetchSize() to Statement or to Resulset" is .... "neither". -
Error while updating the records through a DB link
Hi ,
I am getting the below error while updating around 15 thousands records, i suspect it to be timeout but not sure.Please can you let me know what solutions needs to be taken.
Not Found
The requested URL /pls/htmldb/wwv_flow.show was not found on this server.
Not Found
The requested URL /pls/htmldb/wwv_flow.show was not found on this server.
Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server Server at htmldb.oraclecorp.com Port 80
Object Type TABLE Object GWB_GRN_GRP_COUNTRIES_LU
Table Column Data Type Length Precision Scale Primary Key Nullable Default Comment
GWB_GRN_GRP_COUNTRIES_LU NAME Varchar2 720 - - - - - -
ALIAS Varchar2 720 - - - - - -
ACTIVE Varchar2 3 - - - - - -
REGION Varchar2 300 - - - - -
1 - 4
Thanks & Regards,
RamuHi Sangu,
See if the following notes help you:
Error when calling API from SQL*Developer, eg. ORA-01403 in API OE_ORDER_PUB.PROCESS_ORDER (Doc ID 1054295.1)
Cancellation Of Transfer Orders Is Not Possible - ORA-01403: no data found in Package OE_Order_PVT Procedure Process_Order (Doc ID 391307.1)
Thanks &
Best Regards, -
Error while updating EP6.0 from SP09 to SP27
Hi All,
I am getting the following error while updating the Enterprise portal 6.0 from SP09 to SP27.
WARNING 2011-05-19 16:50:09
CJSlibModule::writeWarning_impl()
Execution of the command "C:\j2sdk1.4.2_13-x64/bin/java.exe '-classpath' 'C:\Program Files\sapinst_instdir\PATCH\ORA/install/sharedlib/launcher.jar;.' '-Xmx512m' 'com.sap.engine.offline.OfflineToolStart' 'com.sap.engine.configtool.batch.BatchConfig' 'C:\Program Files\sapinst_instdir\PATCH\ORA/install/lib;C:\Program Files\sapinst_instdir\PATCH\ORA/install/sharedlib' 'C:\Program Files\sapinst_instdir\PATCH\ORA/getSafeMode.xml'" finished with return code 31415. Output:
Can not get DB connection. Batchconfig will only be able to execute offline tasks.
ERROR 2011-05-19 16:50:09
CJSlibModule::writeError_impl()
CJS-20076 Error while retrieving the mode of the Java engine. SOLUTION: See output of logfile C:\Program Files\sapinst_instdir\PATCH\ORA/getEngineMode.log: 'Can not get DB connection. Batchconfig will only be able to execute offline tasks.
TRACE [iaxxejsbas.hpp:384]
handleException<ESAPinstJSError>()
Converting exception into JS Exception EJSException.
ERROR 2011-05-19 16:50:09
CJSlibModule::writeError_impl()
CJS-20076 Error while retrieving the mode of the Java engine. SOLUTION: See output of logfile C:\Program Files\sapinst_instdir\PATCH\ORA/getEngineMode.log: 'Can not get DB connection. Batchconfig will only be able to execute offline tasks.
Please hel me to resolve this issue.
Regards
Karthik Ravoori> Execution of the command "C:\j2sdk1.4.2_13-x64/bin/java.exe '-classpath' 'C:\Program Files\sapinst_instdir\PATCH\ORA/install/sharedlib/launcher.jar;.' '-Xmx512m' 'com.sap.engine.offline.OfflineToolStart' 'com.sap.engine.configtool.batch.BatchConfig' 'C:\Program Files\sapinst_instdir\PATCH\ORA/install/lib;C:\Program Files\sapinst_instdir\PATCH\ORA/install/sharedlib' 'C:\Program Files\sapinst_instdir\PATCH\ORA/getSafeMode.xml'" finished with return code 31415. Output:
> Can not get DB connection. Batchconfig will only be able to execute offline tasks.
You'r JDK is really old, AFAIK the first one officially released for x86_64 on Windows was 1.4.2_17. I suggest you upgrade your JDK ot the latest one (1.4.2_30) and try again.
Markus -
Getting timeout error while executing my report
Hi experts,
I need to get data from a Ztable which is having more than 64 millions of records. That query itself is taking more than 20 min to execute. I have used package size while retrieving tha data but still taking same time to execute, Giving me the TIMEOUT error .
Provide some suggetions to use different types of SELECT quries that can be used to improve the performance.
Thanks & Regards,
BhanuHi ,
I am working as an abaper for Service Management module.
I need to show the prmise details inthe output of alv. Before that i need to get the meter reading details and need to do some calculations, by which i need to show idle one (Here only i need to hit a ZTABLE which is having more than 64 million records). For that idle premise user can select multiple pemises by using check boxes and can create notification by pressing a pushbutton 'CREATE IS NOTIFICATION' which exist on the application toolbar . So i can not run this report in background.
Thanks & regards,
Bhanu. -
Error while updating a record in MS Access
Im new to coldfusion and am running into a problem while
trying to update a record in a MS Access table.
I have a MS Access table where the primary key is a
auto-number long integer field named jobid.
I have an edit form where info can be changed then saved. A
hidden form field named jobid holds the records primary key field
value for the record being edited. When submitted this is what
happens:
I use a basic SQL UPDATE statement but I get the error "Data
type mismatch in criteria expression"
Some code:
<cfset nJobId=Int(Val(FORM.jobid))>
*dont know if i need the above line but using #FORM.jobid#
in the WHERE clause below didnt work either
<cfquery datasource="lrs">
UPDATE jobs SET
status='#FORM.status#',
offer='#FORM.offer#',
postdate="#CreateODBCDate(FORM.postdate)#",
jobtype=#FORM.jobtype#,
jobtitle='#FORM.jobtitle#',
..etc...
WHERE jobid=#nJobId#
The WHERE clause is where the error occurs with "Data type
mismatch in criteria expression"
After a few times with that i changed the where clause to
simply "WHERE jobid=1" as this record id does exist, but it has the
same error.
I then tried changing the where clause to
WHERE jobid=<cfqueryparam cfsqltype="cf_sql_bigint"
value="#FORM.jobid#">
and there it "appears" to work, but the record is not
actually updated. No changes are made to the table though no error
is thrown.
Im missing something here... why wont the record update
?The data type mismatch isn't necessarily in your where
clause. I'm guessing that it's the quotes around the create
odbcdate function.
use of cfqueryparam will solve a lot of these problems for
you. -
Getting database error while updating data to mysql table.
user registration.jsp < jsp user view to get input >
<?xml version="1.0" encoding ="UTF-8"?>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Registeres USers Login Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<body>
<%--debugging code--%>
<%@ include file="debug.jsp" %>
<table width="1049" cellpadding="5" align="center">
<tr>
<td width="2378"><div align="center">
<h2 align="center"> User Registration</h2>
<p>
<c:url var="HmePgeURL" value="/cw/router/home" scope="page"/>
<a href="${HmePgeURL}">Home</a> <c:url var='BSPgeURL' value='/cw/router/login' scope='page'/>
<a href="${BSPgeURL}">Buy or Sell</a>
</p>
</div></td>
</tr>
</table>
<p align="center"> </p>
<p>This website is only open to members of the De MontFort University.
You will need a current @learner.dmu.ac.uk e-mail address in order to register.</p>
<p> If you've already registered for one site you do not need to register again </p>
<c:url value="/cw/router/userregistration" var="UregPgeURL" scope="page"/>
<form name="frmregister" method="post" action="${UregPgeURL}">
<div>
<table width="726" height="285" border="0" align="left" cellpadding="2" cellspacing="0">
<tr>
<td width="157" align="right" >Name:</td>
<td width="561" > <input name="txtname" type="text" value="${param.txtname}"/> </td>
</tr>
<c:if test="${!empty requestScope.reqInvalidUserName}">
<c:out value="${requestScope.reqInvalidUserName}"/>
</c:if>
<tr>
<td width="157" align="right" >Department</td>
<td align="left" >
<select name="txtdepartment" value="${param.txtdepartment}" >
<option></option>
<option value="Faculty of Art and Design">Faculty of Art and Design</option>
<option value="Faculty of Business and Law">Faculty of Business and Law</option>
<option value="Faculty of Computing Sciences and Engineering">Faculty of Computing Sciences and Engineering</option>
<option value="Faculty of Health and Life Sciences">Faculty of Health and Life Sciences</option>
<option value="Faculty of Humanities">Faculty of Humanities</option>
</select>
</td>
</tr>
<tr>
<td align="right" >Programme</td>
<td ><input type="text" name="txtprogramme" value="${param.txtprogramme}" />
(eg: BIS,SE) </td>
</tr>
<tr>
<td align="right" >Telephone Number: </td>
<td ><input name="txtphonenum" type="text" value="${param.txtphonenum}" /></td>
</tr>
<tr>
<td align="right" >Date Of Birth: </td>
<td ><input name="txtday" type="text" size="15" value="${param.txtdob}" />(of format YYYY-MM-DD)</td>
</tr>
<tr>
<td align="right" >Username</td>
<td align="left" >
<input name="txtuserid" type="text" size="15" value="${param.txtuserid}" />
(eg. p07269027 from [email protected])</td>
<c:if test="${!empty requestScope.reqInvalidUserId}">
<c:out value="${requestScope.reqInvalidUserId}"/>
</c:if>
</tr>
<tr>
<td align="right" >Password</td>
<td align="left" >
<input name="txtpassword" type="password" size="15" value="${param.txtpassword}" />
</td></tr>
<c:if test="${!empty requestScope.reqInvalidPassword}">
<c:out value="${requestScope.reqInvalidPassword}"/>
</c:if>
<tr>
<td align="right" >Confirm Password </td>
<td align="left" >
<input name="txtpasswordconf" type="password" size="15" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input name="frmsubmit" type="submit" value="Register User" />
<input type="reset" name="Reset" value="Reset" />
</td>
</tr>
</table>
<c:if test="${!empty requestScope.reqQueryErrorMessage}">
<c:out value="${requestScope.reqQueryErrorMessage}"/>
</c:if>
<c:if test="${!empty requestScope.reqInvalidUpdate}">
<c:out value="${requestScope.reqInvalidUpdate}"/>
</c:if>
</div>
</form>
</body>
</html>
proregistration.jsp ( registration process jsp)
<?xml version="1.0" encoding ="UTF-8"?>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%-- \WEB-INF\jsp\cwjsps\probooksforsale.jsp --%>
<%-- Probookforsale --%>
<%-- skip field validation and provide blankpage if first time in --%>
<c:if test="${empty param.frmsubmit}">
<c:set var="reqOutcome" scope="request" value=" "/>
<jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- initial request --%>
</c:if>
<%-- validate txtname --%>
<c:if test="${empty param.txtname}">
<c:set var="reqInvalidUserName" scope="request" value= "User Name Cannot Be Empty"/>
</c:if>
<%-- validate txtuserid --%>
<c:if test="${empty param.txtuserid}">
<c:set var="reqInvalidUserId" scope="request" value= "User ID Cannot Be Empty"/>
</c:if>
<%-- validate txtpassword--%>
<c:if test="${empty param.txtpassword}">
<c:set var="reqInvalidPassword" scope="request" value= "Password Cannot Be Empty"/>
</c:if>
<%-- if userid invalid or username invalid --%>
<%-- redisplay form with originl typed-in data and with errors marked --%>
<c:if test="${empty param.txtname or empty param.txtuserid}">
<c:set var="reqOutcome" scope="request" value= "failure" />
<jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- failure --%>
</c:if>
<c:catch var="pgeQueryError">
<sql:update var="pgeRowCount" scope="page" >
<%-- insert details to trader table --%>
INSERT INTO trader(dbTraderName,dbTraderDepartment,dbTraderProgramme,dbTraderPhoneNum ,dbTraderDOB,dbTraderPNumber,dbTraderPwd)
VALUES(?,?,?,?,?,?,?)
<sql:param value="${param.txtname}"/>
<sql:param value="${param.txtdepartment}"/>
<sql:param value="${param.txtprogramme}"/>
<sql:param value="${param.txtphonenum}"/>
<sql:param value="${param.txtdob}"/>
<sql:param value="${param.txtuserid}"/>
<sql:param value="${param.txtpassword}"/>
</sql:update>
</c:catch>
<%-- check For query Error --%>
<c:if test="${not empty pgeQueryError}">
<c:choose>
<%-- check duplicate record --%>
<c:when test="${pgeQueryError.rootCause.errorCode =='1062'}">
<c:set var="reqQueryErrorMessage" scope="request" value="User already Registered - Duplicate Record" />
<jsp:forward page="/WEB-INF/jsp/cwjsps/login.jsp"/>
</c:when>
<c:otherwise>
<%-- database error --%>
<c:set var="reqQueryErrorMessage" scope="request" value="Database Error" />
<jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/>
</c:otherwise>
</c:choose>
<c:set var="reqOutcome" scope="request" value="failure" />
<jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/>
</c:if>
<%-- check For no rows returned --%>
<c:if test="${pgeRowCount !=1}">
<c:set var="reqInvalidUpdate" scope="request" value="*** rowCount not = 1"/>
<c:set var="reqOutcome" scope="request" value="failure"/>
<jsp:forward page="/WEB-INF/jsp/cwjsps/userregistration.jsp"/> <%-- failure --%>
</c:if>
<%-- Otherwise --%>
<%-- Outcome is success --%>
<c:if test="${pgeRowCount ==1}">
<c:set var="reqOutcome" scope="request" value="success" />
<jsp:forward page="/WEB-INF/jsp/cwjsps/login.jsp"/> <%-- success --%>
</c:if>
router.jsp ( maps the jsp page based on success and failure)
<?xml version="1.0" encoding ="iso-8859-1"?>
<%-- /WEB-INF/jsp/cwjsps/router.jsp --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%-- setup session if one does not exist --%>
<%@ page session="true" %>
<%-- set up debug variable --%>
<c:set var="sessDebug" scope="session" value="true"/>
<%-- get pathinfo information from the request --%>
<%-- this defines which use case has been requested --%>
<c:set var="pgePathInfo" scope="page" value="${pageContext.request.pathInfo}" />
<%-- uc02 : Login --%>
<c:if test="${pageScope.pgePathInfo =='/home'}" >
<jsp:forward page="/WEB-INF/jsp/cwjsps/home.jsp"/>
</c:if>
<c:if test="${pageScope.pgePathInfo =='/login'}" >
<jsp:forward page="/WEB-INF/jsp/cwjsps/prologin.jsp"/>
</c:if>
<%-- uc01 : View Details Of Books For Sale --%>
<c:if test="${pageScope.pgePathInfo =='/viewbooksforsale'}" >
<jsp:forward page="/WEB-INF/jsp/cwjsps/probooksforsale.jsp"/>
</c:if>
<%-- uc01 : process User registration--%>
<c:if test="${pageScope.pgePathInfo =='/userregistration'}" >
<jsp:forward page="/WEB-INF/jsp/cwjsps/proregistration.jsp"/>
</c:if>
<%-- uc01 : debug --%>
<c:if test="${pageScope.pgePathInfo =='/debug'}" >
<jsp:forward page="/WEB-INF/jsp/cwjsps/debug.jsp"/>
</c:if>
<%-- uc01 : view Traders Own View --%>
<c:if test="${pageScope.pgePathInfo =='/Traderhomepage'}" >
<jsp:forward page="/WEB-INF/jsp/cwjsps/Traderhomepage.jsp"/>
</c:if>
<%-- otherwise --%>
<jsp:forward page="/WEB-INF/jsp/cwjsps/home.jsp"/> &nbHi..
Correcting the record from PSA is temporary solution depends on u r criticality....
Only Solution is to correct the record at source system level... Generally Material master data record is imp so just try to fix temporarily so that it vl not affect u r loads until it is corrected at Source System level..
Note: inform the problem to u r co-ordinator and try to correct it ASAP... and explain the temp solution(PSA correction)...
cheers.. -
Itunes won't detect itouch after getting an error while updating to iOS 6
Hello, I was updating my itouch 4g to iOS6. I received an error (sorry I didn't manage to record the error)
Now, my itouch shows only the usb cable and iTunes logo.
My itunes doesn't detect my itouch.
However, my computer does detect it as it makes the sound where you detach/attach an USB device.
I've tried holding the home and top button together but it doesn't work.
Please help me and thank you in advance!- Try manually placing the iPod in Recovery Mode and then try restoring via iTunes.
- Next try DFU mode and restore.
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- Try another computer
If you get an error, please remember what it said. -
Get an error while updating itunes?
While attempting to update iTunes i get an error during installation and cant access itunes anymore
Tried reinstalling manually but the same error message pops upWhat does the error message say? (Precise text, please.)
-
Getting 80188309 error while update
Hi , Am getting an error stating an update was downloaded , but couldn't be opened (80188309) " i did restart of mobile while downloading update still the same please help !!!
I am getting the same error, but now Microsoft community says they have resolved the issue and have asked to try again. Now i am trying again.
http://answers.microsoft.com/en-us/winphone/forum/wp8-wpupdate/update-was-downloaded-but-could-not-b... -
Getting the error while calling the report from oaf page
Dear all
when i am calling the report from oaf page
if (pageContext.getParameter("PrintPDF") != null)
DataObject sessionDictionary =
(DataObject)pageContext.getNamedDataObject("_SessionParameters");
HttpServletResponse response =
(HttpServletResponse)sessionDictionary.selectValue("HttpServletResponse");
try
ServletOutputStream os = response.getOutputStream();
// Set the Output Report File Name and Content Type
String contentDisposition = "attachment;filename=EmpReport.pdf";
response.setHeader("Content-Disposition", contentDisposition);
response.setContentType("application/pdf");
// Get the Data XML File as the XMLNode
XMLNode xmlNode = (XMLNode)am.invokeMethod("getEmpDataXML");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
xmlNode.print(outputStream);
ByteArrayInputStream inputStream =
new ByteArrayInputStream(outputStream.toByteArray());
ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
//Generate the PDF Report.
TemplateHelper.processTemplate(((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
"XXCRM", "XXCRM_EMP",
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
inputStream,
TemplateHelper.OUTPUT_TYPE_PDF, null,
pdfFile);
// Write the PDF Report to the HttpServletResponse object and flush.
byte[] b = pdfFile.toByteArray();
response.setContentLength(b.length);
os.write(b, 0, b.length);
os.flush();
os.close();
} catch (Exception e)
response.setContentType("text/html");
throw new OAException(e.getMessage(), OAException.ERROR);
pageContext.setDocumentRendered(false);
i am getting the error java.classcastexception at this line
DataObject sessionDictionary =
(DataObject)pageContext.getNamedDataObject("_SessionParameters");
regards
Sreekanthcheck if you have import oracle.cabo.ui.data.DataObject; in your import statement.
--Prasanna -
Getting index error while updating table
Hi All,
I am getting error
SQL> UPDATE bqcustomer
2 SET
3 namelegal = 'SME ' || SubStr(bqcustomer.namelegal,8),
4 nameshort = 'SME ' || SubStr(bqcustomer.nameshort,8),
5 nametrading='SME ' || SubStr(bqcustomer.nametrading,8)
6 WHERE
7 hassmeaccount = 1
8 AND nametrading LIKE 'GLOBAL %' ;
UPDATE bqcustomer
ERROR at line 1:
ORA-08102: index key not found, obj# 60473, dba 46348301 (2)
any help on this will be appreciated .
Thanks in advance
Sachin SrivastavaORA-08102 INDEX KEY NO FOUND, OBJ# 25095, DBA 33567643 (2)
-
I want to access the properties file to my java file ..
My resource file named as "application" is in the resources package...
and I am using following code to load the resource file into my java file...
java.util.ResourceBundle rb = java.util.ResourceBundle.getBundle("resources.application",new Locale("en","US"));
String message = rb.getString("welcome.heading");
But getting following error....
Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name resources.application, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:787)
at javaapplication1.c.<init>(Main.java:26)
at javaapplication1.Main.main(Main.java:47)
Java Result: 1
can anyone tell me whats the problem and why am i facing this errorHi Again,
Now with a different problem.
I have removed configuration and imported the configuration again. But now it is not recognizing API ( created by me with all common classes as java project).
Structre of the application is as follows
Cedapp - ear file
Cedejb - ejb module
Cedweb web module
Cedapi - java project with common classes used in both ejb module and web module and published as library. This refered in both the ejbmodule and web module.
The problem now I am facing is that cedapi is not getting recognized by ejb module or web module. But it is available in used dcs of each. -
Error-Code: ora-4020 Deadlock error, while updating a record
Hello!
Is it possible to get a deadlock error when two or more users try to update the same record simultaneously? And what would be the best solution to circumvent this?
Thanks
Your help is appreciated.<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by ( vidya):
Hello Vidhya,
Issue either Commit or Rollback without much delay once the statement(s) is/are executed.
vmkrish
[email protected]
Is it possible to get a deadlock error when two or more users try to update the same record simultaneously? And what would be the best solution to circumvent this?
Thanks
Your help is appreciated.<HR></BLOCKQUOTE>
null
Maybe you are looking for
-
Advertise implicit-null label for static routes
Hi, I want to ask if there is any way to change the label or stop adveritise label for an static route. Normally LDP advertises an Implicit Null label for directly connected routes. We want to do similar thing for static routes. We need to do this is
-
My Super smash bros Wii U pre order because i pre ordered in store and placed a $5 deposit
Let me share what I was told when I arrived at best buy store. By the way I will file a complaint to corporate about this and will see about filing it to better business bureau... I pre ordered my smash brothers bundle in store ( couldn't do it onlin
-
Apogee miniDAC and Sound output
There is no sound output from the Apogee miniDAc after the MacPro (2013) awakens from sleep. Sound output does occur if the internal Mac Pro speakers are selected. A restart will allow the Apogee miniDAC to function normally. In searching the threads
-
Setting up old Aperture File with my new Macbook Pro?
Hello: I installed Aperture and have my old Aperture File on an external drive. I can't seem to figure out how to get this file over to my Aperture now on my laptop. I also tried restoring from the Vault and for some reason not all the images in the
-
hi experts , i need to execute DOS command from SAP . earlier we have 'GUI_EXEC' WS_EXECUTE , 'WS_DOWNLOAD' etc which are Obsolete now. as we are using ECC6.0. kindly guide how to do this. best regards, Rahul