Error in variables,plz help me
I created a variable del_var.The sql query assosiated with this variable is.
Delete from schema.file_name_table where rownum=1;
After refreshing it.it is deleting first row in the table.But it is resulting in an error
"17003 : null : java.sql.SQLException: Invalid column index java.sql.SQLException: Invalid column index "
Plz help me
Hi,
You can't use a 'Delete" command at a refreshing variable because at a refresch the variable need to receive a value back and the delete doesn't return value.
Change the command to "select....."
Does it make sense to you?
Similar Messages
-
Runtime error...plz help me .ful amrks wud be given
Hi gurus..
m running a user defined transaction ZV48cji which includes all standard Programs..it gives short dump after running it..the description is as follows.
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_MISSING', was
not caught and
therefore caused a runtime error.
The reason for the exception is:
A PERFORM was used to call the routine "GENERIERUNG_PRUEFEN" of the program
"RV14ALLE".
The current call contains 4 actual parameter(s),
but the routine "GENERIERUNG_PRUEFEN" expects 5 parameters.
can anybody help me hw to resolve this as this is a standard program..any solution..
full marks wud be given for answers..
waiting for the reply
Regards
Sahilhai..
please give d exceptions condition in d function module .. den u won't get d dump...
eg:
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = W_DOC_DATA
PUT_IN_OUTBOX = 'X'
SENDER_ADDRESS = LD_SENDER_ADDRESS
SENDER_ADDRESS_TYPE = LD_SENDER_ADDRESS_TYPE
COMMIT_WORK = 'X'
IMPORTING
SENT_TO_ALL = W_SENT_ALL
TABLES
PACKING_LIST = T_PACKING_LIST
CONTENTS_BIN = T_ATTACHMENT
CONTENTS_TXT = IT_MESSAGE
RECEIVERS = T_RECEIVERS
<b> EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.</b> -
N82 map loader error...PLZ HELP!!!
I' have a problem with my map loader and I hope someone can help me. When I try to open map loader on my PC it gives me an error saying:
'' unhandled exception has occured in a component in yr application. If u click continue the application will ignore his error error and attempt to continue.
Font 'Tahoma' does not support style 'Regular' ''
What I supposed to do? How can I change that font thing? Please help...
thank you....Hi theog
In "Add or Remove Programs" do you have "Microsoft .NET Framework 2.0" or later?
Do you see "Tahoma" listed under the Fonts folder which is under the WINDOWS folder?
Happy to have helped forum in a small way with a Support Ratio = 37.0 -
Error opening database, Plz help!
Dear Oracle Gurus,
I have been getting this error message today, and I dont know what steps to be taken.
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-16068: redo log file activation identifier mismatch
ORA-00312: online log 1 thread 1: 'D:\ORACLE\ORADATA\ORCL\REDO01.LOG'
I am not able to log in with any of the users except a sysdba like sys.
In other words, I am only able to log into the database thru sys but cannot perform any operations on tables or objects.
I am running Oracle 9i R2
Please help how to get rid of this problem.ORA-00312 online log string thread string: 'string'
Cause: This message reports the file name for details of another message.
Action: Other messages will accompany this message. See the associated messages for the appropriate action to take.
ORA-00313 open failed for members of log group string of thread string
Cause: The online log cannot be opened. The file may not be in the expected location.
Action: Specify the correct redo log file or make the log available, if necessary. Also, see the accompanying messages.
ORA-00314 log string of thread string, expected sequence# string doesn't match string
Cause: The online log is corrupted or is an old version.
Action: Find and install the correct version of the log or reset the logs. Refer to the Oracle9i Database Administrator's Guide for recovery procedures. -
Error after update: Plz help
I am facing a really strange problem and I have been banging my head against the wall for the past couple of days. I do not understand how no one else faced this error before. So quite possibly it must be my fault somehow. But heres the problem description
I first do an insert into the oracle 9i database using ODP.NET -- this works correctly
Immediately afterwards I do an read of the same row that I just inserted
Immediately afterwards I do an update. The update always fails in the scenario no matter which row I am updating. All these operations are on the same table though.
The update works just fine when there is no insert immediately preceding it.
The error message that I get is:
"Dynamic SQL generation failed. No key information found"
But this does not make any sense due to:
a) The database has the key info in it
b) This scenario works when I use the Microsofts driver for oracle
c) Inserts, updates work independently. They dont work only when I call an update immediately after an insert.
DO u think there is so row locking thing going on here??
But the error message is completely different.
thanks for any help on this.well
I finally figured out the cause of the error. I am not sure if this is a bug with ODP.NET or not but like I said above this problem only occurs when I use ODP.NET and not the driver provided by microsoft for oracle. The solution is to call fillschema before update, insert, delete into the database. The fillschema also fills in the primarykey information into the dataset. apparently I had assumed incorrectly that fill would do it, but dosent seem like it. So in order to use oraclecommandbuilder one needs to use fillschema too. -
Javadoc within Forte 4 error!. Plz, help me!
hi!
When I try to use the "generate javadoc" option on forte with a short simply class, I get this error:
javadoc: In doclet class com.sun.tools.doclets.standard.Standard, method start has thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NullPointerException
at java.util.zip.ZipFile.getInputStream(ZipFile.java:176)
at com.sun.tools.javadoc.PackageDocImpl.documentation(PackageDocImpl.java:76)
at com.sun.tools.javadoc.DocImpl.comment(DocImpl.java:77)
at com.sun.tools.javadoc.DocImpl.tags(DocImpl.java:107)
at com.sun.tools.doclets.standard.HtmlStandardWriter.serialDocInclude(HtmlStandardWriter.java:1381)
at com.sun.tools.doclets.standard.HtmlStandardWriter.serialInclude(HtmlStandardWriter.java:1362)
at com.sun.tools.doclets.standard.tags.SeeTaglet.toString(SeeTaglet.java:105)
at com.sun.tools.doclets.standard.HtmlStandardWriter.generateTagInfo(HtmlStandardWriter.java:1494)
at com.sun.tools.doclets.standard.ClassWriter.generateClassFile(ClassWriter.java:234)
at com.sun.tools.doclets.standard.ClassWriter.generate(ClassWriter.java:95)
at com.sun.tools.doclets.standard.Standard.generateClassCycle(Standard.java:245)
at com.sun.tools.doclets.standard.Standard.generateClassFiles(Standard.java:195)
at com.sun.tools.doclets.standard.Standard.startGeneration(Standard.java:166)
at com.sun.tools.doclets.standard.Standard.start(Standard.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:196)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:95)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:288)
at com.sun.tools.javadoc.Start.begin(Start.java:114)
at com.sun.tools.javadoc.Main.execute(Main.java:44)
at com.sun.tools.javadoc.Main.main(Main.java:34)
The class is a simple applet with no more implementation than a constructor and a couple of members.
Could anyone help me?Hi there,
I have the same problem even with the upgrade to 1.4.1
I require the classpath to contain j2ee.jar that incorporates the servlet src but everytime I add that to the javadoc command, it returns the error below.
javadoc -classpath c:\j2sdkee1.3.1\lib\j2ee.jar -d ..\docs\ *.java
Constructing Javadoc information...
Standard Doclet version 1.4.1
Generating ..\docs\constant-values.html...
Building tree for all the packages and classes...
Building index for all the packages and classes...
Generating ..\docs\overview-tree.html...
Generating ..\docs\index-all.html...
Generating ..\docs\deprecated-list.html...
Building index for all classes...
Generating ..\docs\allclasses-frame.html...
Generating ..\docs\allclasses-noframe.html...
Generating ..\docs\index.html...
Generating ..\docs\packages.html...
Generating ..\docs\AADSHomeServlet.html...
javadoc: In doclet class com.sun.tools.doclets.standard.Standard, method start
has thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NullPointerException
at java.util.zip.ZipFile.getInputStream(ZipFile.java:184)
at com.sun.tools.javadoc.PackageDocImpl.documentation(PackageDocImpl.jav
a:71)
at com.sun.tools.javadoc.DocImpl.comment(DocImpl.java:74)
at com.sun.tools.javadoc.DocImpl.tags(DocImpl.java:104)
at com.sun.tools.doclets.standard.HtmlStandardWriter.serialDocInclude(Ht
mlStandardWriter.java:1432)
at com.sun.tools.doclets.standard.HtmlStandardWriter.serialInclude(HtmlS
tandardWriter.java:1413)
at com.sun.tools.doclets.standard.tags.SeeTaglet.toString(SeeTaglet.java
:105)
at com.sun.tools.doclets.standard.HtmlStandardWriter.generateTagInfo(Htm
lStandardWriter.java:1545)
at com.sun.tools.doclets.standard.ClassWriter.generateClassFile(ClassWri -
Result
=> deployment aborted : file:/C:/DOCUME1/E371011/LOCALS~1/Temp/temp20811ApplicationTest.ear
Aborted: development component 'ApplicationTest'/'local'/'LOKAL'/'0.2007.06.22.16.36.17':Caught exception while checking the login credentials for SAP J2EE Engine. Check whether the SAP J2EE Engine is up and running.com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [epmft] with user name: [J2EE_ADMIN] Check your login information. Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Cannot authenticate the user.] (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.checkLoginCredentials.DMEXC)Hi Shanto,
Either your admin password is expired or you have changed the administrator password.
Do the following Steps,
Use the Config Tool to change the entry in secure storage as follows:
1. Start the Config Tool.
(Execute <SAPj2eeEngine_install_dir> configtoolconfigtool.bat.)
2. Select the secure store node.
The configuration for the secure storage in the file system appears.
3. Select the admin/password/<SID> entry.
4. Enter the administrator user's new password in the "Value" field and choose "Add".
5. Choose "File" --> "Apply" to save the data.
Note: Contrary to the message that appears, you do not need to restart the server or cluster for this change to take effect.
6. Finally restart SDM server.
Then deploy.
refer SAP note : <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_jas/~form/handler">701654</a>
Regards,
Mithu -
When a form is called an error FRM-41829 - record not created comes..i haven't got any idea where that error is happening. could someone tell me where that error could be comming from..the error comes after executing pre-form...
thanks Professor Yaffle ...i tried taking away all the initial values and now the form is working ....nw i hve to check the items one by one...thanks a lot again....
-
My iphone 3g always ended everytime i restore it plz help me
I restore my iphone in itunes but everytime i go in "restoring iphone firmware" it always ended error...plz help me to fix it
Kwonkicker wrote:
I restore my iphone in itunes but everytime ... it always ended error...
And the Error Message is...? -
Hi guys im tearing my hair out over this, sorry if its an extreme noob question but i know its quite a common problem and im sure someone on here must be able to help.
After debugging my project here is the error message -
ReferenceError: Error #1065: Variable tracker is not defined.
at CustomsConnect/buttonClick()[C:\Users\LiamT\Desktop\plz\CustomsConnect\CustomsConnect.as: 443]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at shell::Button/buttonClick()[C:\Users\LiamT\Desktop\plz\CustomsConnect\shell\Button.as:47]
Please let me know if you can point me in the right direction here - the problem has come about as I have inherited a .fla that has been set up on another machine. If you need me to post any of the code that its referring to above let me know.
Thanks in advance for any help that you can offer me.CustomsConnect is the designated document class. Tracker is relating to my google analytics tracker as far as I can see it is already defined and perhaps this line of code could be something to do with the problem
Line 77: private var tracker: GATracker;
Do you want me to post up the rest of the code?
thankyou so much Ned for taking the time out to help me with this.
Many thanks
Liam -
Plz help me from the error - "org.apache.jasper.jasperException"
I am getting error with this code ,plz help me out ,i wanna correct this urgently
I've set the Environment variables JAVA_HOME and
CATALINA_HOME and here is my coding and error report
hello.html
<head><title>Database</title></head>
<body>
<form method="get" action="add.jsp">
<pre>
<center>Enter ur Name :<input type="text" name="nam" >
<br><input type="submit" value=" Add ">
</center></pre>
</form>
</body>
</html>
add.jsp
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<html>
<head><title>JSP</title></head>
<%! String name;
Connection con=null;
Statement st=null;
%>
<body>
<% name=request.getParameter("nam");
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
//I have created a User DSN sjp
con = DriverManager.getConnection("jdbc:odbc:sjp");
st = con.createStatement();
st.executeUpdate("insert into detail values('"+name+"')");
catch(Exception e)
con.close();
st.close();
%>
<h1> Name Added</h1>
</body>
</html>
Error
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:207)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
root cause
java.lang.NullPointerException at org.apache.jsp.add_jsp._jspService(add_jsp.java:66)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Apache Tomcat/4.1.31hi,
when i use the code
if(st != null)st.close();
if(con != null ) con.close();
that works good ,the old error has been corrected.
but it's now throwing an SQLException[b] "datasource name not found and default driver not specified" why this occurs and also can u give me the explanation for the old error????
I am sure that i have created an user DSN, i am 100% sure about it .even though there is an error.
Deepak.
Deepak.C -
Plz help error while starting j2ee server
I 'm working on Win xp professional operating system.
While starting the j2ee server from command line
with the command
j2ee -verbose
earlier it was working perfectly but from 2 days its not starting even...even i have reinstalled the j2ee software ....i think there is some internal problem which is not related to setting up the enviornment variables and incorrectly typing of command... plz help me as soon as possible.. i wil be thankful ....
I am getting error message as follows
C:\Documents and Settings\Sunita Khilnaney>j2ee
java.io.IOException: The system cannot find the path specified
at java.io.Win32FileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:690)
at com.sun.enterprise.repository.ConfigurationImpl.getServerRepository(C
onfigurationImpl.java:92)
at com.sun.enterprise.repository.ConfigurationImpl.<init>(ConfigurationI
mpl.java:45)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:170)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
J2EE server listen port: 1050
java.io.FileNotFoundException: C:\j2sdkee1.3\logs\compaq\j2ee\j2ee\system.out (T
he system cannot find the path specified)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:100)
at com.sun.enterprise.server.J2EEServer.redirectStreams(J2EEServer.java:
534)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:209)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
java.io.FileNotFoundException: C:\j2sdkee1.3\logs\compaq\j2ee\j2ee\system.out (T
he system cannot find the path specified)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:100)
at com.sun.enterprise.server.J2EEServer.redirectStreams(J2EEServer.java:
534)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:209)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
java.lang.RuntimeException: C:\j2sdkee1.3\logs\compaq\j2ee\j2ee\system.out (The
system cannot find the path specified)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:350)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
J2EE server reported the following error: C:\j2sdkee1.3\logs\compaq\j2ee\j2ee\sy
stem.out (The system cannot find the path specified)
Error executing J2EE server ...
C:\Documents and Settings\Sunita Khilnaney>Hello sunita,
do one thing put yoor j2ee server installation in a folder whose name doesn't contain space.
As you can see there ia a space btwn Documents & and. btwn Sunita & Khilnaney
C:\Documents and Settings\Sunita Khilnaney>j2ee
put it in folder like c:\SunitaKhilnaney>j2ee or c:\Sunita_Khilnaney>j2ee
I hope it'll solve your pblm.
Thanks,
Dinesh -
PLZ Help!! Im getting an error in a small code
when i compile this i get an error saying
"variable tax might not have been initialized" for the line that says system.out.printin...........
PLZ HELP!!
THANKS
class A1Q2
public static void main (String[] args)
double income ;
System.out.println ("Please enter yearly income: ");
income = ITI1120.readDouble( );
char tax;
if (income <= 37885) {
tax = 'A';
} else if ( (income > 37885) && (income <= 75769) ) {
tax = 'B';
} else if ( (income > 75769) && (income <= 123184) ) {
tax = 'C';
} else if (income > 123184) {
tax = 'D';
System.out.println("Tax = " + tax);
}Hello slvr99,
Firstly, can you please use the CODE button to format your code when you post? It just makes it a lot easier for us to read.
As for your error, it really is quite literal.
variable tax might not have been initialized
means that the variable you have called "tax" may not have been initialized, you just need to set it:
char tax = ''; -
hello plz help me wat i can do for this error and plz also tell me where to place the POI api in tomcat directory.........
The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 22 in the jsp file: /HSSFExample.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:13: ';' expected
import org.a
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:8: package org.apache.poi.poifs.filesystem does not exist
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:9: package org.apache.poi.hssf.record does not exist
import org.apache.poi
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:11: package org.apache.poi.hssf.model does not exist
import org.apache.poi.hssf.model.*;
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:12: package org.apache.poi.hssf.usermodel does not exist
import org.apache.poi.hssf.usermodel.*;
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:13: cannot resolve symbol
symbol : class a
location: package org
import org.a
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:74: cannot resolve symbol
symbol : class POIFSFileSystem
location: class org.apache.jsp.HSSFExample_jsp
POIFSFileSystem fs =
^
An error occurred at line: 22 in the jsp file: /HSSFExample.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:75: cannot resolve symbol
symbol : class POIFSFileSystem
location: class org.apache.jsp.HSSFExample_jsp
new POIFSFileSystem(new FileInputStream(filename));
^
An error occurred at line: 22 in the jsp file: /HSSFExample.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:76: cannot resolve symbol
symbol : class HSSFWorkbook
location: class org.apache.jsp.HSSFExample_jsp
HSSFWorkbook wb = new HSSFWorkbook(fs);
^
An error occurred at line: 22 in the jsp file: /HSSFExample.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:76: cannot resolve symbol
symbol : class HSSFWorkbook
location: class org.apache.jsp.HSSFExample_jsp
HSSFWorkbook wb = new HSSFWorkbook(fs);
^
An error occurred at line: 35 in the jsp file: /HSSFExample.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:89: cannot resolve symbol
symbol : class HSSFSheet
location: class org.apache.jsp.HSSFExample_jsp
HSSFSheet sheet = wb.getSheetAt(k);
^
An error occurred at line: 35 in the jsp file: /HSSFExample.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:94: cannot resolve symbol
symbol : class HSSFRow
location: class org.apache.jsp.HSSFExample_jsp
HSSFRow row = sheet.getRow(r);
^
An error occurred at line: 48 in the jsp file: /HSSFExample.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:108: cannot resolve symbol
symbol : class HSSFCell
location: class org.apache.jsp.HSSFExample_jsp
HSSFCell cell = row.getCell(c);
^
An error occurred at line: 48 in the jsp file: /HSSFExample.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:115: cannot resolve symbol
symbol : variable HSSFCell
location: class org.apache.jsp.HSSFExample_jsp
case HSSFCell.CELL_TYPE_FORMULA :
^
An error occurred at line: 48 in the jsp file: /HSSFExample.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:119: cannot resolve symbol
symbol : variable HSSFCell
location: class org.apache.jsp.HSSFExample_jsp
case HSSFCell.CELL_TYPE_NUMERIC :
^
An error occurred at line: 48 in the jsp file: /HSSFExample.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\HSSFExample_jsp.java:125: cannot resolve symbol
symbol : variable HSSFCell
location: class org.apache.jsp.HSSFExample_jsp
case HSSFCell.CELL_TYPE_STRING :
^
16 errors
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:248)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:445)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:536)You can put the POI jar file in the WEB-INF/lib directory of your application, or if you want to use it in multiple applications you can put it in the tomcat 4.1/shared/lib directory.
-
Error while opening a module. plz help me, very urgent.
when i try to open a module, the following error message appears on my screen.
" no j2ee component found in d:\krisp\programs\servlets".
i've installed bea in c: drive and my servlet program is in d: drive.
plz help me, it's very urgent.Can you provide some more information? What were you doing when this happened?
Can you post the entire error message?
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/
Maybe you are looking for
-
Revision: 5558 Author: [email protected] Date: 2009-03-25 14:50:18 -0700 (Wed, 25 Mar 2009) Log Message: Add hack to Grammar.jj to allow special component tags in spark and halo namespaces to resolve to special node in the parser. This will be re-add
-
Sorenson Squeeze 3 from Final cut
Does anyone know the best settings to export to get a high quality video to show on a PC with output to a projector with or without Sorenson squeeze? Any Comments welcome! Thanks, Ed
-
Flash player says its installed but I cannot watch any videos?
every time I try to watch a video it tells me to install it again, this has been going on for a week, what is the problem with it? I have a windows 7 toshiba
-
SWF Object 1.6 issues with Safari 5
Just downloaded Safari 5 on Snow Leopard. SWF Object 1.6 is not working at all with it. It is shifting the swf files around and not playing nice. Anyone else having this issue? Steven Houtzager
-
How to lock the size of front panel so that user can't see hidden objects?
Dennis_Knutson wrote: You don't care that the code itself can be changed? For that you can lock the VI with a password