Error in compling
i don't understand why this program can't run although my computer has tomcat !please help me!!!!!the complier say it dont understand "javax.servlet"!!!help me!!
<%@ page import="javax.servlet.http.Cookie" %>
<html>
<head>
<title>this page leaves a cookie</title>
</head>
<h1>Cookies</h1>
<%
Cookie[] allCookies=request.getCookies();
Cookie ourCookie=null;
if(allCookies!=null)
for(int i=0;i<allCookies.length;i++)
if(allCookie.getName().equals("Test Cookie"))
outCookie=allCookies[i];
if(outCookie==null)
Cookie cookie=new Cookie("Test Cookie","hello from the cookie");
cookie.setPath("/");
response.addCookie(cookie);
%>
A cookie has been added to your machine~
<br>Select refresh to see the details of this cookie
<%
else
%>
The following cookie was added earlier to your machinE
<BR>version:<%=ourCookie.getVerson() %>
<br>Name:<%=ourCookie.getName() %>
<br>Value:<%=ourCookie.getValue() %>
<br>MaxAge:<%=ourCookie.getMaxAge() %>
<%
%>
</body>
</html>
The compiler tries to tell you that it cannot find the javax.servlet package in the classpath, which is been declared in the java code. You have to add the JAR with the javax.servlet package to the classpath of the compiler. This is generally available in servlet-api.jar of the Tomcat/lib directory and also in the javaee.jar of the Java EE SDK.
Similar Messages
-
Error while compling a Function:
Hi,
I am unable to complie a function as shown below:
CREATE OR REPLACE FUNCTION GET_SUBS_TYPE_KEY(
SUBNO VARCHAR2 DEFAULT NULL
RETURN SUBS_TYPE_KEY_1 PIPELINED AS
V_SUBNO VARCHAR2(40);
V_PAID VARCHAR2(10);
V_SUBS_TYP_KEY VARCHAR2(10);
V_VAL1 VARCHAR2(255);
CURSOR C1_REC IS SELECT SUBNO,PREPOST_PAID,SUBS_TYPE_KEY
FROM CTVA_ETL.RA_CRM_USER_INFO,DIM_SUBSCRIBER_TYPE
WHERE SUBSTR(DIM_SUBSCRIBER_TYPE.SUBS_TYPE_DESC,1,4)=RA_CRM_USER_INFO.PREPOST_PAID
--WHERE MSISDN='8615025400109'
--WHERE MSISDN IN ('8615025400068','8615025400083','8615025400101','8615025400132','8615025400109')
GROUP BY SUBNO,PREPOST_PAID,SUBS_TYPE_KEY;
BEGIN
OPEN C1_REC;
LOOP
FETCH C1_REC INTO V_SUBNO SUBNO_TYP_1,V_PAID,V_SUBS_TYP_KEY SUBS_TYP_KEY;
--DBMS_OUTPUT.PUT_LINE('THE MSISDN VALUE'||V_MSISDN);
EXIT WHEN C1_REC%NOTFOUND;
IF V_PAID='PREP' THEN
V_SUBS_TYP_KEY ='2';
ELSIF V_PAID='POST' THEN
V_SUBS_TYP_KEY ='2';
ELSE
V_SUBS_TYP_KEY ='-99';
LOOP
PIPE ROW ( SUBS_TYPE_KEY(C1_REC.SUBNO_TYP_1 ,C1_REC.SUBS_TYP_KEY ));
END LOOP;
END LOOP;
RETURN;
CLOSE C1_REC;
END;
its giving error in the SUBNO_TYP_1 TypeUn-formatted code is nothing but garbage. So always format your code.
CREATE OR REPLACE FUNCTION get_subs_type_key(
subno VARCHAR2 DEFAULT NULL) RETURN subs_type_key_1 pipelined
AS
v_subno VARCHAR2(40);
v_paid VARCHAR2(10);
v_subs_typ_key VARCHAR2(10);
v_val1 VARCHAR2(255);
CURSOR c1_rec
IS
SELECT subno,
prepost_paid,
subs_type_key
FROM ctva_etl.ra_crm_user_info,
dim_subscriber_type
WHERE SUBSTR(dim_subscriber_type.subs_type_desc, 1, 4) = ra_crm_user_info.prepost_paid
GROUP BY subno,
prepost_paid,
subs_type_key;
BEGIN
OPEN c1_rec;
LOOP
FETCH c1_rec INTO v_subno subno_typ_1, v_paid, v_subs_typ_key; <<-- Here i removed subs_typ_key Only god knows why you had it there.
--DBMS_OUTPUT.PUT_LINE('THE MSISDN VALUE'||V_MSISDN);
EXIT WHEN c1_rec % NOTFOUND;
IF v_paid = 'PREP'
THEN
v_subs_typ_key = '2';
ELSIF v_paid = 'POST'
THEN
v_subs_typ_key = '2';
ELSE
v_subs_typ_key = '-99';
LOOP
pipe ROW(subs_type_key(c1_rec.subno_typ_1, c1_rec.subs_typ_key));
END LOOP;
ENDIF; <<-- Here i closed your IF statement
END LOOP;
RETURN;
CLOSE c1_rec;
END; -
I am not ablr to complie client bean, i have created 2 directories beans,client under beans dir i have put home,remote,bean classes. named it as beans package. in client directory i am refering this classes by importing the beans package, but it gives error like package beans does not exist. client & beans both directory are placed in simplesessionapp directory.
error screen shot is
E:\8333\ch08\SimpleSessionApp>javac -d . client/*.java
client/SimpleSessionClient.java:3: package beans does not exist
import beans.SimpleSession;
^
client/SimpleSessionClient.java:4: package beans does not exist
import beans.SimpleSessionHome;
^
client/SimpleSessionClient.java:13: cannot find symbol
symbol : class SimpleSessionHome
location: class client.SimpleSessionClient
SimpleSessionHome home = (SimpleSessionHome) PortableRemoteObject.narro
w(ref,SimpleSessionHome.class);
^
client/SimpleSessionClient.java:13: cannot find symbol
symbol : class SimpleSessionHome
location: class client.SimpleSessionClient
SimpleSessionHome home = (SimpleSessionHome) PortableRemoteObject.narro
w(ref,SimpleSessionHome.class);
^
client/SimpleSessionClient.java:13: cannot find symbol
symbol : class SimpleSessionHome
location: class client.SimpleSessionClient
SimpleSessionHome home = (SimpleSessionHome) PortableRemoteObject.narro
w(ref,SimpleSessionHome.class);
^
client/SimpleSessionClient.java:14: cannot find symbol
symbol : class SimpleSession
location: class client.SimpleSessionClient
SimpleSession simpleSession = home.create();
^
6 errors
a
//import beans.SimpleSession;
//import beans.SimpleSessionHome;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
public class SimpleSessionClient {
public static void main(String [] args) {
try {
InitialContext jndiContext = new InitialContext();
Object ref = jndiContext.lookup("ejb/beans.SimpleSession");
SimpleSessionHome home = (SimpleSessionHome) PortableRemoteObject.narrow(ref,SimpleSessionHome.class);
SimpleSession simpleSession = home.create();
for (int i=0;i<args.length;i++) {
String returnedString = simpleSession.getEchoString(args);
System.out.println(returnedString);
} //close for loop
}catch(Exception e) {
e.printStackTrace();
} //close catch
}//close main
} // close main class
help me.I hope this question is not too simple. Does your CLASSPATH contain the path to the beans package .class file location, or the jar file that contains them?
-
Error while compling the custom agent
I am trying to develop custom agent for ifs using jdeveloper. I have attached following .jar file with project.
repos.jar,vbjorb.jar,release.jar,xmlparser2.jar, util.jar, tools.jar, adk_1081.jar, lclasess1.jar
I am getting following error while compiling.
Error: (50) constructor IfsAgent() not found in class oracle.ifs.agents.common.IfsAgent.
Error: (86) method required, but value found.
Can anybody help me to fix this error?
Thanks
SanjayLooks like the call to your agent is missing some parameters.
Here is the constructor for IfsAgent:
IfsAgent(java.lang.String name, java.lang.String[] args,
java.lang.String parameterTableSection, oracle.ifs.agents.manager.ServerManager manager)
This is the description from the iFS Online Resources whitepaper section on creating a simple agent.
The constructor for an Agent always contains these 4 arguments. The arguments are stored in the ServerManager definition file and are
passed to the Agent class when it is instantiated at runtime.
name is the name of this Agent.
args are any custom arguments you want
to pass to your Agent.
sectionName identifies the section
specfic to this Agent in the common
ParameterTable. In practice, it is
the name of this Agent.
manager is the name of the ServerManager
that hosts this Agent at runtime.
I hope this helps.
-D -
Error in compling flex field.
Hi,
I have receiving the following ERROR, when compile flex fields using adadmin.
FYI, I have been also applied CPU-Jan-2010 patch(8317778).
where I can see that what is the issue?
Enter your choice [5] : 3
Connecting to APPS......Connected successfully.
Connecting to APPLSYS......Connected successfully.
Deleting existing compiled flexfield information.
TRUNCATE TABLE FND_COMPILED_ID_FLEXS REUSE STORAGE
TRUNCATE TABLE FND_COMPILED_ID_FLEX_STRUCTS REUSE STORAGE
TRUNCATE TABLE FND_COMPILED_DESCRIPTIVE_FLEXS REUSE STORAGE
Compiling all application flexfields.
/backup/backups/by_fayaz/DBA_APPS/SILP15/apps/apps_st/appl/fnd/12.0.0/bin/fdfcmp APPS/***** 0 Y
Log filename : /backup/backups/by_fayaz/DBA_APPS/SILP15/apps/apps_st/appl/admin/SILP15/log/l2666384.req
Report filename : /backup/backups/by_fayaz/DBA_APPS/SILP15/apps/apps_st/appl/admin/SILP15/out/o2666384.out
An error occurred while compiling application flexfields.
Continue as if it were successful [No] : No
Time is: Mon Jan 18 2010 15:44:47
Backing up restart files, if any......Done.
You should check the file
/backup/backups/by_fayaz/DBA_APPS/SILP15/apps/apps_st/appl/admin/SILP15/log/adadmin.log
for errors.
Thx.Hi,
Here is the output:
First out:
Time is: Mon Jan 18 2010 15:57:56
Backing up restart files, if any......Done.
Time is: Mon Jan 18 2010 15:57:56
There is no timing information available for the current session.
AD Administration is complete.
Errors and warnings are listed in the log file
/backup/backups/by_fayaz/DBA_APPS/SILP15/apps/apps_st/appl/admin/SILP15/log/adadmin.log
and in other log files in the same directory.
second Output:
tail -100 /backup/backups/by_fayaz/DBA_APPS/SILP15/apps/apps_st/appl/admin/SILP15/log/l2666384.req
Application Id: 8901
Short Name: FV
Name: Federal Financials
Flexfield Name: $SRS$.RXFVFTXR
Title: $SRS$.RXFVFTXR
Compilation was successful for current descriptive flexfield.
Application Id: 8901
Short Name: FV
Name: Federal Financials
Flexfield Name: $SRS$.RXFVTBTS
Title: $SRS$.RXFVTBTS
Compilation was successful for current descriptive flexfield.
Flex compilation process complete ...
Flex compilation process complete ...
=====================================
Number of successful key flex compilations : 134
Number of failed key flex compilations : 0
Number of successful descriptive flex compilations : 8697
Number of failed descriptive flex compilations : 11
=====================================
Tip: To find failed flexfield compilations, please search for following string in this log file:
'Compilation aborted for current'
Concurrent request completed
Current system time is 18-JAN-2010 15:43:40
[oracle@erpapps SILP15]$
thx. -
Errors in compling InsuranceLogin.java
I got 2 erros in compling the InsuranceLogin.java (updated)
Class javax.servlet.http.HttpSessionBindingListener not found in interface oracle.ifs.adk.security.IfsHttpLogin.
package ifsdevkit.sampleapps.insurance;
^
Class javax.servlet.http.HttpSessionBindingEvent not found in import.
import javax.servlet.http.HttpSessionBindingEvent;
?Thanks Mark. Now it works.
One more question. I search through the posting archieve and found out a reply by Alison Stokes (Oracle iFS Product Management) to "Changes in *.js and *.jsp files are not effective", saying that
"If you are attempting to modify the jsps comprising Oracle iFS' Web UI, this is not supported for release 1.0."
Does it mean I can't modify the container.jsp file that defines the iFS's WebUI? Actually, I was asked to modify the looking of this body frame to contain more custom attributes. Can I do that?
Thanks. -
Error on compling the Swing program
Hi all,
I am trying to run a Login Swing program. I am want to go to the next page on click of the LOGIN button.Here is my code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class login extends JFrame implements ActionListener {
public login(){
setTitle("Login Page");
//setSize(500,500);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);
Container pane = getContentPane();
FlowLayout layout = new FlowLayout();
pane.setLayout(layout);
JLabel loginId = new JLabel("LoginId : ", JLabel.CENTER);
JTextField Id = new JTextField(20);
if(Id.equals("shri"))
System.out.println("login successful");
JLabel password = new JLabel("Password : ", JLabel.CENTER);
TextField pwd = new TextField(20);
pwd.setEchoChar('*');
JButton Enter = new JButton("Log in");
private void actionPerformed(ActionEvent e)) {
String read = Id.getText();
String in = new String(pwd.getText());
//validate login and password here. validity will be done by sending login/password to the server
if (read.equals("Shri") && in.equals("Shri")) {
System.out.println("login successfull");
} else {
JOptionPane.showMessageDialog(this,"Incorrect login or password","Error",JOptionPane.ERROR_MESSAGE);
Id.setText("");
pwd.setText("");
Id.requestFocusInWindow();
pane.add(loginId);
pane.add(Id);
pane.add(password);
pane.add(pwd);
pane.add(Enter,BorderLayout.CENTER);
setContentPane(pane);
pack();
public static void main(String[] args) {
login enter = new login();
I'm getting the error->The type login must implement the inherited abstract method ActionListener.actionPerformed(ActionEvent)
void is an invalid type for the variable actionPerformed
Syntax error on token "(", ; expected
Syntax error, insert ";" to complete LocalVariableDeclarationStatement
Please help me resolve this error and also to improvise the code.You code had basic problem like declaration errors. Have modified your code.
Try this.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Login extends JFrame implements ActionListener {
JLabel loginId;
JTextField Id;
TextField pwd;
public Login(){
setTitle("Login Page");
//setSize(500,500);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);
Container pane = getContentPane();
FlowLayout layout = new FlowLayout();
pane.setLayout(layout);
loginId = new JLabel("LoginId : ", JLabel.CENTER);
Id = new JTextField(20);
if(Id.equals("shri")) {
System.out.println("login successful");
JLabel password = new JLabel("Password : ", JLabel.CENTER);
pwd = new TextField(20);
pwd.setEchoChar('*');
JButton Enter = new JButton("Log in");
pane.add(loginId);
pane.add(Id);
pane.add(password);
pane.add(pwd);
pane.add(Enter,BorderLayout.CENTER);
setContentPane(pane);
pack();
public void actionPerformed(ActionEvent e) {
String read = Id.getText();
String in = new String(pwd.getText());
//validate login and password here. validity will be done by sending login/password to the server
if (read.equals("Shri") && in.equals("Shri")) {
System.out.println("login successfull");
} else {
JOptionPane.showMessageDialog(this,"Incorrect login or password","Error",JOptionPane.ERROR_MESSAGE);
Id.setText("");
pwd.setText("");
Id.requestFocusInWindow();
public static void main(String[] args) {
Login enter = new Login();
} -
"Class not found" error at runtime when ExternalLib DC is included in WD DC
Hi All,
I am getting "Class not found" exception at runtime when external library DC is included in Webdynpro DC.
I am following the below steps..
1) Created a Webdynpro DC - "testProj" to which i need to add the external library DC.
2) Created a DC of type "External Library" called "externaljar"
3)Added Public Parts of type assembly and compilation to the "externaljar" DC (Component Properties Tab -> Public Parts)
4) Right click on the assembly Public Part name -> Manage entities, and added the JAR files as archive.
5)Right click on the compilation Public Part name -> Manage entities, and added the JAR files as archive.
6)Go to Webdynpro DC "testProj" .
Under Component Properties Tab -> Dependencies tab -> Add -> selected the "externaljar" DC -> Next -> for "externaljar" DC checked Deploy time and Run time.
For assembly Public Part and compilation Public Part "build" is selected by default.
7) I did build of both the DC's and deployed it.
Im getting "Class not found" error.
Please let me know where i am going wrong.
Thanks,
Shilpa.Hi Balakrishna,
If I add Jar files in build path, at run time I dont get any errors, but I get error at comple time. So an external DC is made which includes all jar files in its public part and this DC is added as dependency in the webdynpro project (at deploy time,run time) as in below blog.
/people/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-ii
Here im getting the error "class not found".
Thanks,
Shilpa.
Edited by: Shilpa KG on Jun 18, 2008 4:42 PM
Edited by: Shilpa KG on Jun 18, 2008 4:44 PM -
Hi all,
I have got this error when compling form. i have just customized the existing form which was running fine. Added 3 columns into a view and r un it.
But giving error and but runing fine.
The scrool bar in one of the stacked canvas also not working well. it is not moving. Its going to the other tab of form but not showing those columns as the form is not moving.
please help me
TIA
pavan1)
one of your items should have proberty "primary key=yes".
2)
maybe your scrollbar is placed on the wrong canvas? check properties. -
Hi
I am getting the following error in the system when executing TBB1 -
No customer is assigned to business partner 169 in company code 2000
Message no. FTBP023
I have already deleted the integration with the customer/vendor in SPO and I alsothe payment tab in the master is blank.
The error occurs in the Accrual transaction the FD gets created in TBB1 Transaction.
Please advise what could be the error
Best Compliments
SHi Ravi
Thaanks for the response.
The specification in the payment details tab were alredy as desired -
Posting to GL Accounts
Payment request Without
The house bank and account ID has been specified.
Best Compliments
Sandeep -
Problem in compiling in Netbeans IDE
Hi all,
I am using Netbean 3.6. I am getting an error in compling
Class.forName("ClassName");
Cannot resolve symbol. What should I do About it.
However I am able compile the same program in command line. Only I am unable compile in netbean 3.6. Do I need to change any settings. Please let me know.
My mail Id is
[email protected]
[email protected]
Regards,
SaravanakumarIs there any reason that you are using 3.6? I am using 5.5.
anyway the forName method returns the Class object associated with the class or interface with the given string name.
so for the given:
Class.forName("ClassName");
The Class.forName method must be used with care in JRE code. A call
of the type Class.forName(classname) can only be assumes to find classes on the bootclasspath, since it does a look up on the callers classloader -
Exception must be caught or declared to be thrown?
got two errors when compling:
TryCalendar.java [20:1] unreported exception InvalidUserInputException; must be caught or declared to be thrown
int day = in.readInt();
^
TryCalendar.java [21:1] unreported exception InvalidUserInputException; must be caught or declared to be thrown
int month = in.readInt();
Is there anyone could kindly tell me how to solve? Thank you very much! The short source code as following:
import java.util.GregorianCalendar;
import java.text.DateFormatSymbols;
public class TryCalendar {
public static void main(String[] args) {
FormattedInput in = new FormattedInput();
// Get the date of birth from the keyboard
System.out.println("Enter your birth date as dd mm yyyy: ");
int day = in.readInt();
int month = in.readInt();
int year = in.readInt();
// Create birht date calendar - month is 0 to 11
GregorianCalendar birthdate = new GregorianCalendar(year, month-1, day);
GregorianCalendar today = new GregorianCalendar(); // Today's date
// Create this year's birthday
GregorianCalendar birthday = new GregorianCalendar(
today.get(today.YEAR),
birthdate.get(birthdate.MONTH),
birthdate.get(birthdate.DATE));
int age = today.get(today.YEAR) - birthdate.get(birthdate.YEAR);
String[] weekdays = new DateFormatSymbols().getWeekdays(); // Get day names
System.out.println("You were born on a " + weekdays[birthdate.get(birthdate.DAY_OF_WEEK)]);
System.out.println("This year you " + (birthday.after(today) ?"will be " : "are " ) + age + " years old.");
System.out.println("This year your birthday " + (today.before(birthday)? "will be": "was") + "on a " + weekdays[birthday.get(birthday.DAY_OF_WEEK)]);
}The compiler error has to do with "Exceptions"
"Exceptions" are things that might go wrong while the program is running. In this case, the user might type "ABC" when the program is trying to read a number using readInt. If the user does this, then that line of code will "throw" an "InvalidUserInputException".
Your code must "handle" the exception. There are two ways to do this.
Note that your code is part of a method, namely, the main method
public static void main(String args[])
int day = in.readInt(); // Exception might be thrown here
} // end of main methodThe first way to deal with the Exception is to decide that main will throw it. Already, readInt throws the Exception to main, now we will make main in turn throw the exception back to whatever called it.
This can be done as follows. Note the change to the declaration of main.
public static void main(String args[]) throws InvalidUserInputException
int day = in.readInt(); // Exception might be thrown here
} // end of main methodThen your code should compile and run. This method is not recommended - if the user types in ABC, the program will crash with a cryptic error message.
It is much better, if readInt throws the Exception, to have your code catch it. To do this, the code that might throw the exception must be contained in a try block, which must be followed by a catch block.
public static void main(String args[])
try {
int day = in.readInt(); // Exception might be thrown here
} // end of try block
catch (InvalidUserInputException iue) {
... // code to handle the exception
} // end of main methodWhat this means is that java will "try" to perform the code in the try block, and if the user types ABC instead of a number, the InvalidUserInputException thrown by int day=in.readInt() will be "caught", and the code in the catch block will run. The code in the catch block can be anything you like. The most sensible thing to do would be to print some error message informing the user that they typed something wrong. Maybe something like:
boolean done = false;
int day,month,year;
do {
try {
System.out.println("Enter your birth date as dd mm yyyy: ");
day = in.readInt(); // line (1)
month = in.readInt(); // line (2)
year = in.readInt(); // line (3)
done = true; // line (4)
catch (InvalidUserInputException iuie) {
System.out.println("Are you trying to confuse me? I'm only a poor harmless computer! "); // line (5)
System.out.println("dd mm and yyyy must be numbers!");
} while (!done);If an Exception is thrown on lines (1), (2) or (3), then line (4) will not be reached - instead, the program will run from line (5). Since done is still false, the program will loop back to ask for the birthdate again.
If no exception is thrown, line (4) ensures that the loop will finish, and the catch block is skipped altogether.
Hope that makes things clearer :-)
Yours, Mike H... -
i have 4 error after compling this files, cannot 1 help pls!
<%@ page import="java.io.*"%>
<%@ page import="java.util.zip.*"%>
<%@ page import="java.lang.Thread"%>
<%@ page import="java.net.URL"%>
<%@ page import="java.net.URLConnection"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.util.StringTokenizer.*"%>
<%
class ThreadBase implements Runnable
int counter = 0;
public void run()
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
catch(ClassNotFoundException e)
System.out.println(e);
Connection c = DriverManager.getConnection("jdbc:odbc:MHuman");
Statement s = c.createStatement();
int x = 1;
String x_str = "";
do{
x_str = Integer.toString(x);
if (x==23) x_str = "X";
else if (x==24) x_str="Y";
try
String sqlstr = "CREATE TABLE Chromosome"+x_str+" " +
"(ID number, HChr varchar (20), Hstart number, Hend number, MChr varchar (20), Mstart number, Mend number)";
System.out.println(sqlstr);
try { s.execute("Drop table Chromosome"+x_str+"");
catch (Exception e) { };
s.execute(sqlstr);
catch(SQLException e)
e.printStackTrace();
// Create BufferedReader object.
BufferedReader br = null;
try
br = new BufferedReader(
new FileReader("C:\\downloadChr\\mhuman\\chr"+x_str+".txt"));
catch(IOException e)
System.out.println(e);
String line, ID, HChr, Hstart, Hend, MChr, Mstart, Mend, sql;
StringTokenizer st;
try
cs();
while ((line = br.readLine()) != null)
st = new StringTokenizer(line, " ");
ID = st.nextToken();
HChr = st.nextToken();
Hstart = st.nextToken();
Hend = st.nextToken();
MChr = st.nextToken();
Mstart = st.nextToken();
Mend = st.nextToken();
if (!MChr.startsWith("chrNA"))
if (!MChr.startsWith("chrM"))
if (!MChr.startsWith("chrUn"))
if (!MChr.startsWith("chrFinished"))
sql = "INSERT INTO Chromosome"+x_str+" " +
"VALUES (" + ID + ", '" + HChr + "', " + Hstart + ", " + Hend + ", '" + MChr + "', " + Mstart + ", " + Mend + ")";
//System.out.println(sql);
s.executeUpdate(sql);
catch(IOException e)
System.out.println(e);
}while (x++ < 12);
c.close();
private void cs()
int a = counter;
a++;
counter = a;
System.out.println("Thread is running with Chr " + counter);
C:\Program Files\Tomcat 4.1\work\Standalone\localhost\examples\jsp\HMC\HTML\testDL3_jsp.java:74: unreported exception java.sql.SQLException; must be caught or declared to be thrown
An error occurred at line: 9 in the jsp file: /jsp/HMC/HTML/testDL3.jsp
Generated servlet error:
Connection c = DriverManager.getConnection("jdbc:odbc:MHuman");
^
An error occurred at line: 9 in the jsp file: /jsp/HMC/HTML/testDL3.jsp
Generated servlet error:
C:\Program Files\Tomcat 4.1\work\Standalone\localhost\examples\jsp\HMC\HTML\testDL3_jsp.java:76: unreported exception java.sql.SQLException; must be caught or declared to be thrown
Statement s = c.createStatement(); ^
An error occurred at line: 9 in the jsp file: /jsp/HMC/HTML/testDL3.jsp
Generated servlet error:
C:\Program Files\Tomcat 4.1\work\Standalone\localhost\examples\jsp\HMC\HTML\testDL3_jsp.java:139: unreported exception java.sql.SQLException; must be caught or declared to be thrown
s.executeUpdate(sql);
^
An error occurred at line: 9 in the jsp file: /jsp/HMC/HTML/testDL3.jsp
Generated servlet error:
C:\Program Files\Tomcat 4.1\work\Standalone\localhost\examples\jsp\HMC\HTML\testDL3_jsp.java:153: unreported exception java.sql.SQLException; must be caught or declared to be thrown
c.close();
^
4 errorsYour Connection object and Statement object is written outside try{}.
Put all your code inside try{}.
Hope this will solve your problem. -
Dear all,
I am gettitng an error while compling the visual composer..
That is in detail as bellow..
The 0calender year/week extension key is in Flash
08.2010
09.2010
10.201
11.201
when i set it as flex...it is coming as
08.2010
09.2010
10.2010
11.2010
we need the results as per the flex in Flash..
Kindly tell me how to get teh same results in Flash..
Regards..
Prasad...
Edited by: krishna prasad on Apr 14, 2010 12:18 PM
Edited by: krishna prasad on Apr 15, 2010 8:02 AMclosing/...
-
how to open log file.( igot an error while deploying vc application error is ERROR IN COMPLING FLEX APPLCATIONS,OPEN LOG FILE)
THANKS
KISHOREhi Kishore...
Launch the Visual Administrator.
Connect the relevant machine.
Navigate to Server -> Services -> Visual Composer - Development server and change the value of the VC.VerboseErrorMessages field to True.
Restart the J2EE Engine (from SAP Management Console).
Connect again to the Visual Composer and deploy the relevant model.The error message should appear with details...
Do these steps to know the Error what you are getting ..after getting error.. please post it here so that we can help you out..
You can refer this oss note 974494(as i mentioned to you in your previous thread)..
If you already solved then close the theread
regards
parth
Maybe you are looking for
-
Delivery schedule line number in make to order
Hi all, i am doing make to order scenario with 20 strategy group. In sales order we r defining the different delivery schedule lines.when i run the MRP and getting the plan orders for all the FG material and semifinished material, the sale order numb
-
How to feed data into crystal reporte with "SQLQuery" method in c#?
Hi there, I've an old app that was written in VB with some crystal reports from Crystal Report 7. Now I need to upgrade this old app into c# with newer version of Crystal Report, so we decide to go for VS2010. I can open the report template in the VS
-
Final Cut Pro X looks out of place in yosmite
In yosmite fcpx looks really weird... Its icon and overall design hasn't been updated for yosmite
-
Maintaing the formulas from an existing excel file when creating a pdf form
Im sure its been asked but I would like to maintain the active formulas in my existing excel (2013) file when I create a new form utilizind Adobe Acrobat XI Pro. Thanks,
-
Shipment cost - change customization of item categories via user exit
hey , is it possible to manpiulate the item categories customization to open manually/ automaticly via user exit even if i customized them to open manually ? for example : if the shipment type is X - open manually , else automaticly . Regards ASA .