Pls help fetch resultset error(2 rst.next() in one loop)?
hi I got the following problem:, would any help me?
while(rst.next())
{ somtehings
rst.next() <--- error occurs if the ResultSet return odd number rec.?
somtehings
the above statment used to show two records in one row.
Hi,
I think it is wrong to use rst.next into the while statment...
the following code is an example of while "loop" and as you can see, I don't use result.next() in the loop, but only in its condition :
while (result.next()){
out.println("<tr>");
out.println("<td valign=top width='25%'>");
out.println(result.getString("username"));
out.println("</td>");
out.println("<td valign=top width='25%'>");
out.println(result.getString("password"));
out.println("</td>");
out.println("<td valign=top width='25%'>");
out.println(result.getString("date_from"));
out.println("</td>");
out.println("<td valign=top width='25%'>");
out.println(result.getString("date_to"));
out.println("</td>");
out.println("</tr>");
I don't understand your question: "do you need to work two lines per loop?"
bye
Ivan
Similar Messages
-
Pls help me... what is next step ?
I am trying to fix missing MSI file ? what is next step?
I got this ouput . after executingbelow command :
Cscript FindSQLInstalls.vbs %computername%_sql_install_details.txt
output.text file
Products installed on the local system
================================================================================
PRODUCT NAME : Sql Server Customer Experience Improvement Program
================================================================================
Product Code: {93998800-1608-403F-9A51-420A77D23C25}
Version : 10.50.1600.1
Most Current Install Date: 20130729
Target Install Location:
Registry Path:
HKEY_CLASSES_ROOT\Installer\Products\008899398061F304A91524A0772DC352\SourceList
Package : sqlsqm.msi
Install Source: \x86\setup\
LastUsedSource: n;1;E:\D DATA\sql dba\sql dba materia\sql dba2 softwaee\Software\x86\setup\
!!!! sqlsqm.msi DOES NOT exist on the path in the path E:\D DATA\sql dba\sql dba materia\sql dba2 softwaee\Software\x86\setup\ !!!!
Action needed, re-establish the path to E:\D DATA\sql dba\sql dba materia\sql dba2 softwaee\Software\x86\setup\
Installer Cache File: C:\Windows\Installer\1cca5bb.msi
!!!! C:\Windows\Installer\1cca5bb.msi DOES NOT exist in the Installer cache. !!!!
Action needed, recreate or re-establish path to the directory:
E:\D DATA\sql dba\sql dba materia\sql dba2 softwaee\Software\x86\setup\then rerun this script to update installer cache and results
The path on the line above must exist at the root location to resolve
this problem with your msi/msp file not being found or corrupted,
In some cases you may need to manually copy the missing file or manually
replace the problem file overwriting it is exist:
Copy "E:\D DATA\sql dba\sql dba materia\sql dba2 softwaee\Software\x86\setup\sqlsqm.msi" C:\Windows\Installer\1cca5bb.msi
Replace the existing file if prompted to do so.
Sql Server Customer Experience Improvement Program Patches Installed
I got below output...now pls suggest.
=================================================
Products installed on the local system
================================================================================
PRODUCT NAME : Sql Server Customer Experience Improvement Program
================================================================================
Product Code: {93998800-1608-403F-9A51-420A77D23C25}
Version : 10.50.1600.1
Most Current Install Date: 20130729
Target Install Location:
Registry Path:
HKEY_CLASSES_ROOT\Installer\Products\008899398061F304A91524A0772DC352\SourceList
Package : sqlsqm.msi
Install Source: \x86\setup\
LastUsedSource: n;1;E:\D DATA\sql dba\sql dba materia\sql dba2 softwaee\Software\x86\setup\
!!!! sqlsqm.msi DOES NOT exist on the path in the path E:\D DATA\sql dba\sql dba materia\sql dba2 softwaee\Software\x86\setup\ !!!!
Action needed, re-establish the path to E:\D DATA\sql dba\sql dba materia\sql dba2 softwaee\Software\x86\setup\
Installer Cache File: C:\Windows\Installer\1cca5bb.msi
!!!! C:\Windows\Installer\1cca5bb.msi DOES NOT exist in the Installer cache. !!!!
Action needed, recreate or re-establish path to the directory:
E:\D DATA\sql dba\sql dba materia\sql dba2 softwaee\Software\x86\setup\then rerun this script to update installer cache and results
The path on the line above must exist at the root location to resolve
this problem with your msi/msp file not being found or corrupted,
In some cases you may need to manually copy the missing file or manually
replace the problem file overwriting it is exist:
Copy "E:\D DATA\sql dba\sql dba materia\sql dba2 softwaee\Software\x86\setup\sqlsqm.msi" C:\Windows\Installer\1cca5bb.msi
Replace the existing file if prompted to do so.
Sql Server Customer Experience Improvement Program Patches Installed
No Patches Found
================================================================================
PRODUCT NAME : SQL Server 2008 R2 SP1 Full text search
================================================================================
Product Code: {F96E9800-1B92-44FA-8A30-CE1D56D77F10}
Version : 10.51.2500.0
Most Current Install Date: 20140118
Target Install Location:
Registry Path:
HKEY_CLASSES_ROOT\Installer\Products\0089E69F29B1AF44A803ECD1657DF701\SourceList
Package : sql_fulltext.msi
Install Source: \x86\setup\
LastUsedSource: n;1;E:\D_DATA\sql dba\sql dba materia\sql dba2 softwaee\Software\x86\setup\
sql_fulltext.msi exists on the LastUsedSource path, no actions needed.
Installer Cache File: C:\Windows\Installer\47a921.msi
Package exists in the Installer cache, no actions needed.
Any missing packages will update automatically if needed assuming that
the LastUsedSource exists.
Should you get errors about C:\Windows\Installer\47a921.msi or E:\D_DATA\sql dba\sql dba materia\sql dba2 softwaee\Software\x86\setup\sql_fulltext.msi then you
may need to manually copy the file, if file exists replace the problem file,
Copy and paste the following command line into an administrative command prompt:
Copy "E:\D_DATA\sql dba\sql dba materia\sql dba2 softwaee\Software\x86\setup\sql_fulltext.msi" C:\Windows\Installer\47a921.msi
SQL Server 2008 R2 SP1 Full text search Patches Installed
Display Name: Service Pack 1 for SQL Server Database Services 2008 FullText (KB2528583)
KB Article URL: http://support.microsoft.com/?kbid=2528583
Install Date: 20140118
Uninstallable: 1
Patch Details:
HKEY_CLASSES_ROOT\Installer\Patches\45BA0AD8B5846BC488E8DD346D52F708
PackageName: sql_fulltext.msp
Patch LastUsedSource: n;1;d:\0859867ecacfd38bdc\x86\setup\
Installer Cache File Path: C:\Windows\Installer\1cca9cb.msp
Per SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Patches\45BA0AD8B5846BC488E8DD346D52F708\LocalPackage
!!!! C:\Windows\Installer\1cca9cb.msp package DOES NOT exist in the Installer cache. !!!!
Action needed, recreate or re-establish path to the directory:
d:\0859867ecacfd38bdc\x86\setup\ then rerun this script to update installer cache and results
The path on the line above must exist at the root location to resolve
this problem with your msi/msp file not being found or corrupted,
In some cases you may need to manually copy missing files or manually
replace the problem file,
Copy "d:\0859867ecacfd38bdc\x86\setup\sql_fulltext.msp" C:\Windows\Installer\1cca9cb.msp
Replace the existing file if prompted to do so.
Use the following URL to assist with downloading the patch:
http://support.microsoft.com/?kbid=2528583
-
Hi experts...
My export dump is around 300GB , which is taken from Direct path.
One of my developer had mistakenly dropped a table and I am trying to import it. when I am importing I am getting folllowing error in log file...
Export file created by EXPORT:V09.02.00 via direct path
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses WE8ISO8859P1 character set (possible charset conversion)
IMP-00051: Direct path exported dump file contains illegal column length
IMP-00008: unrecognized statement in the export file:
M-~M-^?M-~M-^?M-~M-^?M-~M-^?^A
IMP-00008: unrecognized statement in the export file:
IMP-00008: unrecognized statement in the export file:
IMP-00008: unrecognized statement in the export file:
IMP-00008: unrecognized statement in the export file:
IMP-00008: unrecognized statement in the export file:
IMP-00008: unrecognized statement in the export file:
IMP-00008: unrecognized statement in the export file:
IMP-00008: unrecognized statement in the export file:
IMP-00008: unrecognized statement in the export file:
IMP-00008: unrecognized statement in the export file:
IMP-00008: unrecognized statement in the export file:
IMP-00008: unrecognized statement in the export file:
I am using following command...
imp system/<password>file=<dumpfile>.dmp log=<logfile>.log tables=<table_name> fromuser=<>touser=<> GRANTS=N indexes=N;
Please help me import it successfully.
Thnaks in advance ...
chotuThis sort of error is mentioned on MetaLink. It's possibly a bug with exp, and various "workarounds" can be found on the Web for the bug. You seem to be using an ancient vesion of Oracle, so why not upgrade? Meanwhile, the solutions seem to be to set RECORDLENGTH=65000 CONSTRAINTS=Y, checking that unused columns are dropped, and probably lot smore. You could try exporting/importing again, in case it was a one-off "wobbly".
-
Pls. help with ADO Error Code
Somebody pls. advise how to overcome this error see snapshot
[http://img16.imageshack.us/my.php?image=errw.jpg]
The SQL returns results in TOAD but CR is unable to recognise th tables.
MaveHi,
The screen shot you sent is the dsn dailog box.
You need to create DSN first to create odbc connectivity
Go through the steps as written below.
1) Start=> Programme => Control Panel => Administrative Tools => ODBC Panel.
2) Select System tab and click on add tab.
3)Once you click add you will get drivers list select oracle driver .
4)provide dsn name and further information .
and now start the process of connectivity in that box you will get the name you given select that and
make connectivity.
Regards,
Neo . -
I have been working with Dreamweaver CS4 for sometime now. I tried to open a file but it took forever so I tried to force quit it. Still it was not responding so I shut my computer down and waited for 30 minutes. I tried to open it again but after i click the icon it jumps on the dock for a few seconds and goes away. Now All my other CS4 applications will not launch either. I tried to delete preferences but nothing so I uninstalled it. I just installed a fresh CS4 copy but it still will not work/launch. Thank you. I am using mac OS 10.5 Leopard. Never had a problem with any CS4 before. All my other applications work well only Adobe CS4 will not
Please!!!!!! I really need your help guys!
ThanksAlways run disk utility before deleting prefs or reinstalling anything. Usually deleting prefs will cure what ails your apps. Use uninstall utility to uninstall apps if you have to go that route. Don't just drag them to the trash. The uninstall will remove all associated files for each apps. Be aware there are usually more than one pref file for an app.
-
Pls help... error massage when phone reboot!!!
Hi,
3G Curve user again, i get error massage when phone reboot afteri wipe my 3G Curve 9300 phone's data.
error: A Media Card has been inserted that contains encrypted files which will be unaccessible by this device.
Can any 1 tell me abt this error ?That's the Wacom Inkling Plugin.
It's not compatible with your version. Get the file out of your plugins folder.
On top of it you need to change the name of the Wacom Inkling application "Sketch Manager" to something else to keep it from launching automatically and installing the plugin again and again.
You can also try and get a compatible version from Wacom. It's available for versions CS5, CS6 and CC (independently of course)... -
when I finish putting my card details in, I press next and then it says an error occurred!(above the different type of cards) some one pls help!
when I finish putting my card details in, I press next and then it says an error occurred!(above the different type of cards) some one pls help!
-
Error!Urgent!Pls Help.....Thank You
I had the following error with the code below.......anyone pls help me ..... urgent.....I will be really appreciate it......Thank you in advanced.....
I had created two statement,.....one is to select the value of Leave_Reason from a table and store it in the String Leave_Reason after that I need to insert the Leave_Reason variable's value together with other value which input from a form in the previous page....into another table....
But I dun know why I encountered the error below....anyone pls help.....really urgent.....I had tried to solve it for two days already,,,,,
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 86 in the jsp file: /SilkAir/leave_request.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\Tomcat 4.1\work\Standalone\localhost\_\SilkAir\leave_request_jsp.java:315: cannot resolve symbol
symbol : variable Leave_Reason
location: class org.apache.jsp.leave_request_jsp
String Query = "INSERT INTO Leave_Application (Emp_Num, Leave_ID, Apply_Date, Leave_Date, Leave_Reason, Leave_Applied, Leave_Status) VALUES ('" + Emp_Num + "', '" + Leave_ID + "', '" Apply_Date "', '" + Leave_Date + "', '" + Leave_Reason + "', '" + Day + "', 'Pending')";
^
1 error
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:536)
<request.jsp>
<%@page import="java.sql.*"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<%
String username = (String)session.getAttribute("username");
%>
<%
//define connection
Connection con = null;
try{
//get the class
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
//get the connection
con = DriverManager.getConnection("jdbc:odbc:Database","","");
//please catch your exceptions!
catch(Exception e){
out.println(e.getMessage());
// form data
String Emp= request.getParameter("txtEmp");
String Leave_ID = request.getParameter("txtReason");
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy/MM/dd");
String LeaveDate = request.getParameter("txtLeaveDate");
java.util.Date dateU = sdf.parse(LeaveDate);
java.sql.Date Leave_Date = new java.sql.Date(dateU.getTime());
String Day = request.getParameter("txtDay");
java.text.SimpleDateFormat rd = new java.text.SimpleDateFormat("yyyy/MM/dd");
String ApplyDate = request.getParameter("txtApplyDate");
java.util.Date dateR = rd.parse(ApplyDate);
java.sql.Date Apply_Date = new java.sql.Date(dateR.getTime());
// query statement
ResultSet rs=null;
Statement SQLStatement = con.createStatement();
Statement stm = con.createStatement();
String query = "SELECT DISTINCT LeaveType FROM Leave WHERE Leave_ID ='"+Leave_ID+"'";
rs = stm.executeQuery(query);
if(rs.next())
String Leave_Reason = rs.getString("LeaveType");
else
{ out.println("no results found");
rs.close();
stm.close();
String Query = "INSERT INTO Application (Emp, Leave_ID, Apply_Date, Leave_Date, Leave_Reason, Leave_Applied, Leave_Status) VALUES ('" + Emp_Num + "', '" + Leave_ID + "', '" Apply_Date "', '" + Leave_Date + "', '" + Leave_Reason + "', '" + Day + "', 'Pending')";
// get result code
int SQLStatus = SQLStatement.executeUpdate(Query);
if(SQLStatus != 0)
out.println("post successfully.");
else
out.println("Problem encountered");
// close connection
SQLStatement.close();
con.close();
%>
</body>
</html>if(rs.next())
String Leave_Reason = rs.getString("LeaveType");
else
{ out.println("no results found");
rs.close();
stm.close();
String Query = "INSERT INTO Application (Emp, Leave_ID, Apply_Date, Leave_Date, Leave_Reason, Leave_Applied, Leave_Status) VALUES ('" + Emp_Num + "', '" + Leave_ID + "', '" Apply_Date "', '" + Leave_Date + "', '" + Leave_Reason + "', '" + Day + "', 'Pending')";
The Problem is that the variable Leave_Reason is declared as a local variable inside a if block. So the scope of the variable is not visible outside the if block...
Try using something like
String Leave_Reason = "";
if(rs.next())
Leave_Reason = rs.getString("LeaveType");
else
{ out.println("no results found");
This should work...
Hope it helps.
Thanks and regards,
Pazhanikanthan. P -
Urgent,showing error while running form..pls,help...
Hi,
I have created my own view named GP_NUIF_V and have also successfully established a Database connection,using FWK_TBX_TUTORIAL.I have developed a personal page in Oracle9i JDeveloper ,which is to fetch particular details from my view and show it .. but whenever I run my form I am continuously getting this type of error..pls,help me out ,as my project delivery is nearing..for this I am not been able to head on to registering the form..I have checked from Pl/Sql developer that my query is just running fine as I wanted it to be..I have also changed the FNDNAM in the .dbc file to my view name but it is giving me the same error..please,look at my error and suggest all other ways in how I can solve my problem ,as early as possible..
Error Page
Exception Details.
oracle.apps.fnd.framework.OAException: oracle.adf.mds.exception.MDSRuntimeException
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1064)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1794)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
oracle.adf.mds.exception.MDSRuntimeException
at oracle.adf.mds.internal.MUnResolvedState.resolveState(MUnResolvedState.java:193)
at oracle.adf.mds.internal.ElementData.resolveState(ElementData.java:509)
at oracle.adf.mds.internal.ElementData.getUntransAttrVal(ElementData.java:922)
at oracle.adf.mds.internal.ElementData.getAttrVal(ElementData.java:835)
at oracle.adf.mds.internal.ElementData.getAttributeValue(ElementData.java:260)
at oracle.adf.mds.internal.Cache.getAttribute(Cache.java:237)
at oracle.adf.mds.internal.MetadataManagerBase.getAttributeValueInternal(MetadataManagerBase.java:1069)
at oracle.adf.mds.internal.MElementImpl.getAttrValueOrExpression(MElementImpl.java:620)
at oracle.adf.mds.internal.MElementImpl.getAttributeValue(MElementImpl.java:230)
at oracle.adf.mds.MElement.getLocalRef(MElement.java:291)
at oracle.apps.fnd.framework.webui.JRADWebBeanMetaData.getUINodeName(JRADWebBeanMetaData.java:1812)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.addAkChildren(OAWebBeanContainerHelper.java:223)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:197)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:123)
at oracle.apps.fnd.framework.webui.OARowLayoutHelper.setMetaDataProperties(OARowLayoutHelper.java:74)
at oracle.apps.fnd.framework.webui.OARowLayoutHelper.createWebBean(OARowLayoutHelper.java:53)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1046)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:782)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:469)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:460)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.addAkChildren(OAWebBeanContainerHelper.java:229)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:197)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:123)
at oracle.apps.fnd.framework.webui.OAContentContainerHelper.setMetaDataProperties(OAContentContainerHelper.java:74)
at oracle.apps.fnd.framework.webui.OAContentContainerHelper.createWebBean(OAContentContainerHelper.java:55)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1046)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:782)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:469)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:460)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.addAkChildren(OAPageLayoutHelper.java:657)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:197)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:123)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.setMetaDataProperties(OAPageLayoutHelper.java:243)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.createWebBean(OAPageLayoutHelper.java:194)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1046)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:993)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:902)
at oracle.apps.fnd.framework.webui.OAPageBean.createRootWebBean(OAPageBean.java:3966)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:1962)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1562)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
oracle.adf.mds.exception.MDSRuntimeException
at oracle.adf.mds.internal.MUnResolvedState.resolveState(MUnResolvedState.java:193)
at oracle.adf.mds.internal.ElementData.resolveState(ElementData.java:509)
at oracle.adf.mds.internal.ElementData.getUntransAttrVal(ElementData.java:922)
at oracle.adf.mds.internal.ElementData.getAttrVal(ElementData.java:835)
at oracle.adf.mds.internal.ElementData.getAttributeValue(ElementData.java:260)
at oracle.adf.mds.internal.Cache.getAttribute(Cache.java:237)
at oracle.adf.mds.internal.MetadataManagerBase.getAttributeValueInternal(MetadataManagerBase.java:1069)
at oracle.adf.mds.internal.MElementImpl.getAttrValueOrExpression(MElementImpl.java:620)
at oracle.adf.mds.internal.MElementImpl.getAttributeValue(MElementImpl.java:230)
at oracle.adf.mds.MElement.getLocalRef(MElement.java:291)
at oracle.apps.fnd.framework.webui.JRADWebBeanMetaData.getUINodeName(JRADWebBeanMetaData.java:1812)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.addAkChildren(OAWebBeanContainerHelper.java:223)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:197)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:123)
at oracle.apps.fnd.framework.webui.OARowLayoutHelper.setMetaDataProperties(OARowLayoutHelper.java:74)
at oracle.apps.fnd.framework.webui.OARowLayoutHelper.createWebBean(OARowLayoutHelper.java:53)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1046)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:782)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:469)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:460)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.addAkChildren(OAWebBeanContainerHelper.java:229)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:197)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:123)
at oracle.apps.fnd.framework.webui.OAContentContainerHelper.setMetaDataProperties(OAContentContainerHelper.java:74)
at oracle.apps.fnd.framework.webui.OAContentContainerHelper.createWebBean(OAContentContainerHelper.java:55)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1046)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:782)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:469)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:460)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.addAkChildren(OAPageLayoutHelper.java:657)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:197)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:123)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.setMetaDataProperties(OAPageLayoutHelper.java:243)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.createWebBean(OAPageLayoutHelper.java:194)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1046)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:993)
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:902)
at oracle.apps.fnd.framework.webui.OAPageBean.createRootWebBean(OAPageBean.java:3966)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:1962)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1562)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)Don't put reposts. Follow the issue at one place Re: Urgent,showing error while running form..pls,help...
--Shiv -
Error in Dictionary DC deployment (URGENT Pls help)
Hi experts,
I am getting following error while deploying the Dictionary DC.
I made changes in one database table (changing field length, added new columns).
It got builtr successfully but deployment is giving errror, hence aborted.
This is the trace m getting:-
Pls pls help as soon as possible...
May 5, 2008 4:38:28 PM Info: Starting: Update: Selected development component 'BshopDic'/'asianpaints.com'/'J2E_BODYSHOP_D'/'20080505171925' updates currently deployed development component 'BshopDic'/'asianpaints.com'/'J2E_BODYSHOP_D'/'20080505170547'.
May 5, 2008 4:38:40 PM Info: <!LOGHEADERSTART/>
May 5, 2008 4:38:40 PM Info: <!HELPManual modification of the header may cause parsing problem!/>
May 5, 2008 4:38:40 PM Info: <!LOGGINGVERSIONhttp://1.5.3.7186 - 630/>
May 5, 2008 4:38:40 PM Info: <!NAME[/usr/sap/J2E/JC00/SDM/program/log/jddilog20080505163828.log]/>
May 5, 2008 4:38:40 PM Info: <!PATTERNhttp://jddilog20080505163828.log/>
May 5, 2008 4:38:40 PM Info: <!FORMATTERhttp://com.sap.dictionary.database.dbs.DbTraceFormatter(%s %m %-30l %24d)/>
May 5, 2008 4:38:40 PM Info: <!ENCODINGISO8859_1/>
May 5, 2008 4:38:40 PM Info: <!LOGHEADEREND/>
May 5, 2008 4:38:40 PM Info: 16:38:28 2008-05-05 dbs-Info: <<<<<<<<<<<<<< Table Deployment >>>>>>>>>>>>>
May 5, 2008 4:38:40 PM Info: 16:38:28 2008-05-05 dbs-Info:
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: <<< Analyze table BC_DDDBRTH >>>
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: predefined action is: >>>null<<<
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: No action required for table
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: <<< Analyze table BC_DDDBTABLERT >>>
May 5, 2008 4:38:40 PM Info: 1
6:38:29 2008-05-05 dbs-Info: predefined action is: >>>null<<<
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: No action required for table
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: <<< Analyze table BC_DDDBRTH >>>
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: predefined action is: >>>null<<<
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: No action required for table
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: <<< Analyze table BC_DDDBRTX >>>
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: predefined action is: >>>null<<<
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: No action required for table
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: >>> Analyze tables from archive in database ORACLE
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: Next archive object : dbtables/BIT_AUTONUMBER.gdbtable
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: <<< Analyze table BIT_AUTONUMBER >>>
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: predefined action is: >>>null<<<
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: Action: CONVERT
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: Table has to be converted
May 5, 2008 4:38:40 PM Info:
May 5, 2008 4:38:40 PM Info: E R R O R ******* (DbModificationManager)
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Error: Table BIT_AUTONUMBER: Conversion currently not possible
May 5, 2008 4:38:40 PM Info:
May 5, 2008 4:38:40 PM Info: E R R O R ******* (DbModificationManager)
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Error: Table BIT_AUTONUMBER: Conversion currently not possible
May 5, 2008 4:38:40 PM Info: 16:38:29 2008-05-05 dbs-Info: Next archive object : dbtables/BIT_BRAND.gdbtableHi,
It looks like the conversion of datatype is making issues.
Either existing values are not complaint with the size changes you made.
To resolve this either you remove the existing records and deploy.
Take a backup of records and reimport later with default values to the newly added cols if they are not null.
Regards
Ayyapparaj -
Pls help - error in display_search.jsp
Hi everyone, can u pls help me to find out the above error. The error is coming from the display_search.jsp program and the search_title is use to get the title. Thanking u in advance.
Error: 500
Location: /LSIB/display_search.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile C:\Program Files\Apache Group\jakarta-tomcat\work\DEFAULT\LSIB\display_search_10.java:103: Invalid declaration.
String stitle = rs.getString("title");
^
C:\Program Files\Apache Group\jakarta-tomcat\work\DEFAULT\LSIB\display_search_10.java:113: Undefined variable: stitle
out.print( stitle );
^
2 errors
at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
display_search.jsp
<html>
<head>
<title>display search</title>
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*"%>
<%@ page import="java.util.*"%>
</head>
<body background="CLOTH003.GIF">
<font face="comic sans ms" size="5">
<%
// define database parameters
String host="localhost:8080";
String db="lsib";
String conn;
Statement createStatement = null;
ResultSet rs = null;
String user = "kushal";
String pass = "";
String dis_search = request.getParameter("ssearch");
Class.forName("com.mysql.jdbc.Driver");
// create connection string
conn = "jdbc:mysql:" + host + "/" + db + "?user=" + user + "&password=" + pass;
conn = "jdbc:mysql://localhost/LSIB";
// pass database parameters to JDBC driver
Connection Conn = DriverManager.getConnection(conn);
// query statement
Statement SQLStatement = Conn.createStatement();
// generate query
String sql= "select title, author, publisher, edition from book";
// get result
rs= SQLStatement.executeQuery(sql);
if (rs != null)
String stitle = rs.getString("title");
String sauthor = rs.getString("author");
String spublisher = rs.getString("publisher");
String sedition = rs.getString("edition");
%>
<form method="post" action="request.jsp">
<center><table border = "0" width="400">
<tr>
<td><b>title :</b></td><td><input name="searchtitle" type="text" width=30" value="<%= stitle %>"></td>
</tr><br>
<tr>
<td><b>author :</b></td><td><input name="searchauthor" type= "text" width ="20" value="<%= sauthor %>"></td>
</tr><br>
<tr>
<td><b>publisher :</b></td><td><input name="searchpublisher" type="text" width = "20" value="<%= spublisher%>"></td> </tr><br>
<tr>
<td><b>edition :</b></td><td><input name="searchedition" type="text" width = "4" value="<%= sedition %>"></td> </tr><br>
<tr>
<td colspan = "2">
<center>
<input type="submit" value=" request ">
</center>
</td>
</tr>
<%
// close connection
rs.close();
SQLStatement.close();
Conn.close();
%>
</table>
</center>
</form>
</body>
</html>
search_title
<html>
<head>
<title>search title</title>
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*"%>
<%@ page import="java.util.*"%>
</head>
<body background="CLOTH003.GIF">
<font face="comic sans ms" size="5">
<%
// define database parameters
String host="localhost:8080";
String db="lsib";
String conn;
Statement createStatement = null;
ResultSet rs = null;
String user = "kushal";
String pass = "";
Class.forName("com.mysql.jdbc.Driver");
// create connection string
conn = "jdbc:mysql:" + host + "/" + db + "?user=" + user + "&password=" + pass;
conn = "jdbc:mysql://localhost/LSIB";
// pass database parameters to JDBC driver
Connection Conn = DriverManager.getConnection(conn);
// query statement
Statement SQLStatement = Conn.createStatement();
// generate query
String sql= "select title, author, publisher, edition from book where title like" +dis_search;
// get result
rs= SQLStatement.executeQuery(sql);
if (rs != null)
%>
<form method="post" action="display_search.jsp">
<center><table border = "0" width="400">
<tr>
<td><b>please enter title</b></td><td><input name="ssearch" type="text" width=20" </td>
</tr><br>
<tr>
<td colspan = "2">
<center>
<input type="submit" value="search">
</center>
</td>
</tr>
<%
else
out.println("no resources found");
// close connection
rs.close();
SQLStatement.close();
Conn.close();
%>
</table>
</center>
</form>
</body>
</html>Try this one
display_search.jsp
<html>
<head>
<title>display search</title>
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*"%>
<%@ page import="java.util.*"%>
</head>
<body background="CLOTH003.GIF">
<font face="comic sans ms" size="5">
<%
// define database parameters
String host="localhost:8080";
String db="lsib";
String stitle="";
String sauthor="" ;
String spublisher="" ;
String sedition="" ;
String conn;
Statement createStatement = null;
ResultSet rs = null;
String user = "kushal";
String pass = "";
String dis_search = request.getParameter("ssearch");
Class.forName("com.mysql.jdbc.Driver");
// create connection string
conn = "jdbc:mysql:" + host + "/" + db + "?user=" + user + "&password=" + pass;
conn = "jdbc:mysql://localhost/LSIB";
// pass database parameters to JDBC driver
Connection Conn = DriverManager.getConnection(conn);
// query statement
Statement SQLStatement = Conn.createStatement();
// generate query
String sql= "select title, author, publisher, edition from book";
// get result
rs= SQLStatement.executeQuery(sql);
if (rs != null)
stitle = rs.getString("title");
sauthor = rs.getString("author");
spublisher = rs.getString("publisher");
sedition = rs.getString("edition");
%>
<form method="post" action="request.jsp">
<center><table border = "0" width="400">
<tr>
<td><b>title :</b></td><td><input name="searchtitle" type="text" width=30" value="<%= stitle %>"></td>
</tr><br>
<tr>
<td><b>author :</b></td><td><input name="searchauthor" type= "text" width ="20" value="<%= sauthor %>"></td>
</tr><br>
<tr>
<td><b>publisher :</b></td><td><input name="searchpublisher" type="text" width = "20" value="<%= spublisher%>"></td> </tr><br>
<tr>
<td><b>edition :</b></td><td><input name="searchedition" type="text" width = "4" value="<%= sedition %>"></td> </tr><br>
<tr>
<td colspan = "2">
<center>
<input type="submit" value=" request ">
</center>
</td>
</tr>
<%
rs.close();
SQLStatement.close();
Conn.close();
%>
</table>
</center>
</form>
</body>
</html> -
i cant update my iphone 3gs to a more newer ios? it says here error! and the phone flashes some connect to itunes.. an if i connct nothing happens.. help me.. the ipgone wont open . and work pls help me thank you!
Hello AlexCornejo,
Thanks for using Apple Support Communities.
The screen you're seeing on your iPhone indicates it is in recovery mode. Now since the device is not appearing in iTunes on your PC, first follow the steps in this article:
iOS: Device not recognized in iTunes for Windows
http://support.apple.com/kb/TS1538
After following those steps, you should be able to restore your iPhone.
Take care,
Alex H. -
Function error! pls help.
Here is the code:
CREATE OR REPLACE FUNCTION id_is_good
(i_student_id IN NUMBER)
RETURN BOOLEAN
AS
v_id_cnt NUMBER;
BEGIN
SELECT COUNT(*)
INTO v_id_cnt
FROM student
WHERE student_id = i_student_id;
RETURN 1 = v_id_cnt;
EXCEPTION
WHEN OTHERS
THEN
RETURN FALSE;
END id_is_good;
Error report:
ORA-06550: line 5, column 20:
PL/SQL: ORA-00904: "I_STUDENT_ID": invalid identifier
ORA-06550: line 2, column 1:
PL/SQL: SQL Statement ignored
ORA-06550: line 6, column 1:
PLS-00372: In a procedure, RETURN statement cannot contain an expression
ORA-06550: line 6, column 1:
PL/SQL: Statement ignored
ORA-06550: line 10, column 1:
PLS-00372: In a procedure, RETURN statement cannot contain an expression
ORA-06550: line 10, column 1:
PL/SQL: Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
This function run troubleless however it can not run troubleless in my computer, I have database though, I mean my database is ok, and i use sql developer but i dont understand why this code cant run good?? pls help me.
thanksRETURN BOOLEANPerhaps you should read Oracle Doc about returning boolean value in SQL.
Check the following link ->
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::NO::P11_QUESTION_ID:6263249199595
Your solution might be something like this if you want to return boolean ->
CREATE OR REPLACE FUNCTION id_is_good(i_student_id IN NUMBER)
RETURN BOOLEAN
IS
v_id_cnt NUMBER;
BEGIN
SELECT COUNT(*)
INTO v_id_cnt
FROM student
WHERE student_id = i_student_id;
IF v_id_cnt > 0 THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;
EXCEPTION
WHEN OTHERS THEN
RETURN FALSE;
END id_is_good;Or, if you want to return the value then ->
CREATE OR REPLACE FUNCTION id_is_good(i_student_id IN NUMBER)
RETURN NUMBER
IS
v_id_cnt NUMBER;
BEGIN
SELECT COUNT(*)
INTO v_id_cnt
FROM student
WHERE student_id = i_student_id;
RETURN v_id_cnt;
EXCEPTION
WHEN OTHERS THEN
RETURN 0;
END id_is_good;Hope this will help.
Regards.
Satyaki De. -
While creating PO currency is given as EUR error is as follows- pls help
while creating PO currency is EUR & error comes as "Enter Rate EUR/INR Rate Type M for 19.01.2011 in the system settings.
Pls Help.Hi Hmal,
When you are trying to create PO with other than the company code currency system is looking for the equivalent exchange to the company code currency to the given foreign currency.
Before using any curreny we have to maintain the exchange rates in OB08 with the duration then system will take care of further postings
Regards,
Srini Rao -
Error while using Javamail...pls help me...
when i am using javamail for sending mail , i am getting error like,
C:\jdk1.3\bin\mail>java MailSend
[email protected] [email protected]
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException:
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at MailSend.Send(MailSend.java:56)
at MailSend.main(MailSend.java:73)
and i define properties like,
mailProp.put("java", "java");
where , "java" is my system name, and there is also mail server on my system. and my system is connected with proxy server..
when i am trying
mailProp.put("mail.smtp.host", "java");
then i am getting same type of error...
so, what is that ? pls help me to solve my error...Surely there's more information associated with that MessaginException than
you've included here.
Turn on session debugging and run your program again.
http://java.sun.com/products/javamail/FAQ.html#debug
Maybe you are looking for
-
Intel Management Engine Interface problem.
Hi evryone, i have problem with Intel Management Engine Interface on my laptop HP Elitebook 8470p, I did: - Install driver for MEI by Drivers, Software and Firmware for HP EliteBook ... - Update new bios by Drivers, Software and Firmware for HP Elit
-
How to convert the javasource file(*.class) to execute file(*.exe)? thank you!
-
Multiple user folders, only one user account
Hello everyone, I recently had to reformat my Macbook and reinstall. In the Macintosh HD/users folder are three folders: one with an icon of a little house with my computer's short name, another called Shared and another with my first and last name.
-
Confirmation Error in process order
Hi During partial confirmation of process order,i find that for a Phase/counter the goods moment for 101 has taken place but no entry is posted for 261.But the material document shows one 101 movement and two 261 movements and for the reversal of the
-
I plan to replace the OEM hard drive on my ThinkPad X60 with a Western Digital Scorpio Black drive. I found a board posting on Scott Mueller's Upgrading and Repairing Forum site that seems to indicate that APS will work with this drive. Here is my qu