Help me debug my error...
i've created a servlet... however, i have some error when compiling it... below is my codes plus the error message...
/**** HelloWorld.java ****/
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloWorld extends HttpServlet {
public void service(HttpServletRequest req,
HttpServletResponse res) throws IOException {
res.setContentType("text/plain");
ServletOutputStream os = res.getOutputStream();
os.write("Hello, world.".getBytes());
os.flush();
public String getServletInfo() {
return "HelloWorld Servlet";
the error message is -
java.lang.NoSuchMethodError: main
Exception in thread "main"
or should i compile the servlet in c prompt???
can someone tell me whats the problem with my codes???
thanks in advance....
This is not the error you got when compiling and you will get it if you try to run this with ,java HelloWorld'.
You cann't run servlets from the command prompt directly.
I saw in your other post that you have Tomcat installed on your PC. You put this HelloWorld.class file in tomcat\webapps\examples\web-inf\classes directory. Any give the URL,
http://localhost:8080/examples/servlet/HelloWorld.
Don't forget to start your tomcat before giving URL in the browser.
Hope this helps.
Sudha
Similar Messages
-
Gurus,
Using Ciscoview to monitor our 3750 switch, I noticed high IP error counts. After connecting to the box and issuing the "debug ip error" command the following output was displayed:
"datagramsize=92, IP 27444: s=192.168.1.100(Vlan1), d=192.168.1.255, totlen 78, fragment 0, fo 0, dispose udp.noport"
The destination IP is the broadcast address of our subnet; Cisco documentation says that "the router received a UDP packet when no application was listening to the UDP port."
I'm trying to figure out why so much udp traffic is destined towards the broadcast address, and what is causing the IP errors.
Thanks for your help!
KevinUDP broadcasts are a normal solution to initiate connections between clients and servers. This should not nescessarily be an error but it could be a misbehaving application or something like a virus trying to spread.
Your search should focus on the source of the datagrams:s=192.168.1.100(Vlan1) If you are getting these packets from many different hosts, try to figure out which apps they have in common.
In that way, you should be able to find out wether it is caused by an application or a virus.
Regards,
Leo -
Need some help in debugging this exported script
Below is DDL generated by visio forward engineering tool . The example below consists of 2 test tables with one foreign key.
Forward engineering generated DDL script
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Table1]') AND type in (N'U'))
DROP TABLE [dbo].[Table1]
GO
CREATE TABLE [dbo].[Table1] (
[test] CHAR(10) NOT NULL
, [test2] CHAR(10) NULL
GO
ALTER TABLE [dbo].[Table1] ADD CONSTRAINT [Table1_PK] PRIMARY KEY CLUSTERED (
[test]
GO
GO
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Table2]') AND type in (N'U'))
DROP TABLE [dbo].[Table2]
GO
CREATE TABLE [dbo].[Table2] (
[test2] CHAR(10) NOT NULL
GO
ALTER TABLE [dbo].[Table2] ADD CONSTRAINT [Table2_PK] PRIMARY KEY CLUSTERED (
[test2]
GO
GO
ALTER TABLE [dbo].[Table1] WITH CHECK ADD CONSTRAINT [Table2_Table1_FK1] FOREIGN KEY (
[test2]
REFERENCES [dbo].[Table2] (
[test2]
GO
GO
When i converted this DDL script using scratch editor the migration tool gave some errors can anyone help me to resolve below
DECLARE
v_temp NUMBER(1, 0) := 0;
BEGIN
BEGIN
SELECT 1 INTO v_temp
FROM DUAL
WHERE EXISTS ( SELECT *
FROM objects
WHERE OBJECT_ID_ = NULL/*TODO:OBJECT_ID(N'[OPS].[Table1]')*/
AND TYPE IN ( N'U' )
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
IF v_temp = 1 THEN
TRUNCATE TABLE Table1;
END IF;
END;
CREATE TABLE Table1
test CHAR(10) NOT NULL,
test2 CHAR(10)
ALTER TABLE Table1
ADD
CONSTRAINT Table1_PK PRIMARY KEY( test );
--SQLDEV:Following Line Not Recognized
DECLARE
v_temp NUMBER(1, 0) := 0;
BEGIN
BEGIN
SELECT 1 INTO v_temp
FROM DUAL
WHERE EXISTS ( SELECT *
FROM objects
WHERE OBJECT_ID_ = NULL/*TODO:OBJECT_ID(N'[OPS].[Table2]')*/
AND TYPE IN ( N'U' )
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
IF v_temp = 1 THEN
TRUNCATE TABLE Table2;
END IF;
END;
CREATE TABLE Table2
test2 CHAR(10) NOT NULL
ALTER TABLE Table2
ADD
CONSTRAINT Table2_PK PRIMARY KEY( test2 );
--SQLDEV:Following Line Not Recognized
ALTER TABLE Table1
ADD
CONSTRAINT Table2_Table1_FK1 FOREIGN KEY( test2 ) REFERENCES Table2 (test2)
--SQLDEV:Following Line Not Recognized
;Pl do not post duplicates - Need some help in debugging this script
-
Debug got error about DCInvokeMethod.java
I got error message "Unable to find Source File" while debuging.
Error msg: " The debugger has finished steping, but it cannot find the source file. Unable to find source file for package oracle.adf.model.binding, filename DCInvokeMethod.java....." Which package I am missing and how to add it? Please help!This is some internal package which you don't have source code to step into. You can select 'Don't ask me again...' or just hit cancel and then F9 to continue the program.
Timo -
Picking problem.Can anyone help me debug my code?
Can someone help me debug my code?
I try to pick a ColorCube,
but when I pick a ColorCube in my scene,
I get the following error message:
Exception occurred during Behavior execution:
javax.media.j3d.CapabilityNotSetException: GeometryArray: no capability to get v
ertex count
at javax.media.j3d.GeometryArray.getVertexCount(GeometryArray.java:581)
at com.sun.j3d.utils.picking.PickResult.intersect(PickResult.java:654)
at com.sun.j3d.utils.picking.PickResult.generateIntersections(PickResult
.java:635)
at com.sun.j3d.utils.picking.PickResult.numIntersections(PickResult.java
:422)
at com.sun.j3d.utils.picking.PickTool.pickGeomAllSortedIntersect(PickToo
l.java:854)
at com.sun.j3d.utils.picking.PickTool.pickGeomClosestIntersect(PickTool.
java:915)
at com.sun.j3d.utils.picking.PickTool.pickClosest(PickTool.java:566)
at SimpleBehaviorApp$SimpleBehavior.processStimulus(SimpleBehaviorApp.ja
va:119)
at javax.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:172)
at javax.media.j3d.J3dThread.run(J3dThread.java:250)
when i try to run the following code:
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.GraphicsConfiguration;
import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.geometry.ColorCube;
import com.sun.j3d.utils.picking.*;
import com.sun.j3d.utils.universe.SimpleUniverse;
import javax.media.j3d.*;
import javax.vecmath.*;
import javax.swing.JOptionPane;
import java.awt.event.*;
import java.util.Enumeration;
// SimpleBehaviorApp renders a single ColorCube
// that rotates when any key is pressed.
public class SimpleBehaviorApp extends Applet
BranchGroup objRoot;
Canvas3D canvas3D;
public SimpleBehaviorApp()
setLayout(new BorderLayout());
GraphicsConfiguration config =
SimpleUniverse.getPreferredConfiguration();
canvas3D = new Canvas3D(config);
add("Center", canvas3D);
BranchGroup scene = createSceneGraph();
// SimpleUniverse is a Convenience Utility class
SimpleUniverse simpleU = new SimpleUniverse(canvas3D);
simpleU.getViewingPlatform().setNominalViewingTransform();
simpleU.addBranchGraph(scene);
} // end of SimpleBehaviorApp (constructor)
public BranchGroup createSceneGraph()
// Create the root of the branch graph
objRoot = new BranchGroup();
objRoot.setCapability(BranchGroup.ALLOW_PICKABLE_READ);
objRoot.setCapability(BranchGroup.ALLOW_PICKABLE_WRITE);
objRoot.setCapability(BranchGroup.ENABLE_PICK_REPORTING);
objRoot.setCapability(BranchGroup.ALLOW_AUTO_COMPUTE_BOUNDS_READ);
objRoot.setCapability(BranchGroup.ALLOW_AUTO_COMPUTE_BOUNDS_WRITE);
ColorCube ca=new ColorCube(0.4);
ca.setCapability(ColorCube.ALLOW_PICKABLE_READ);
ca.setCapability(ColorCube.ALLOW_PICKABLE_WRITE);
ca.setCapability(ColorCube.ALLOW_GEOMETRY_READ);
ca.setCapability(ColorCube.ALLOW_GEOMETRY_WRITE);
ca.setCapability(ColorCube.ENABLE_PICK_REPORTING);
ca.setCapability(ColorCube.ALLOW_BOUNDS_READ);
ca.setCapability(ColorCube.ALLOW_AUTO_COMPUTE_BOUNDS_READ);
ca.setPickable(true);
objRoot.addChild(ca);
SimpleBehavior myRotationBehavior = new SimpleBehavior(objRoot,canvas3D);
myRotationBehavior.setSchedulingBounds(new BoundingSphere());
objRoot.addChild(myRotationBehavior);
// Let Java 3D perform optimizations on this scene graph.
objRoot.compile();
return objRoot;
} // end of CreateSceneGraph method of SimpleBehaviorApp
//�������OSimpleBehavior�����@���������������u��
public class SimpleBehavior extends Behavior
private TransformGroup targetTG;
private Transform3D rotation = new Transform3D();
private WakeupCondition wCond;
private PickCanvas pickCanvas;
// create SimpleBehavior
public SimpleBehavior(BranchGroup targetBG,Canvas3D canvas3D)
wCond=new WakeupOnAWTEvent(MouseEvent.MOUSE_PRESSED);
pickCanvas=new PickCanvas(canvas3D,targetBG);
pickCanvas.setTolerance(5.0f);
pickCanvas.setMode(PickCanvas.GEOMETRY_INTERSECT_INFO);
public void initialize()
// set initial wakeup condition
this.setSchedulingBounds(new BoundingSphere(new Point3d(),300));
this.wakeupOn(wCond);
public void processStimulus(Enumeration criteria)
PickResult pickResult;
MouseEvent event=(MouseEvent)((WakeupOnAWTEvent) criteria.nextElement()).getAWTEvent()[0];
pickCanvas.setShapeLocation(event);
Point3d eyePos=pickCanvas.getStartPosition();
if(pickCanvas.pickClosest()!=null)
pickResult=pickCanvas.pickClosest();
Node node=pickResult.getObject();
PickTool.setCapabilities(node,PickTool.INTERSECT_FULL);
else
JOptionPane.showMessageDialog(null,"pickCanvas.pickClosest()������");
this.wakeupOn(wCond);
} // end of class SimpleBehavior
public static void main(String[] args)
Frame frame = new MainFrame(new SimpleBehaviorApp(), 256, 256);
} // end of main (method of SimpleBehaviorApp)
} // end of class SimpleBehaviorAppHi Tinyuh,
ColorCube?? I learnt thru mistakes. YEPThe following code creates a pickable colorcube.. it works for me!
public BranchGroup addObject(Vector3d vector)
BranchGroup branch = new BranchGroup();
branch.setCapability(BranchGroup.ENABLE_PICK_REPORTING);
branch.setCapability(BranchGroup.ALLOW_DETACH);
TransformGroup trans = new TransformGroup();
trans.setBounds(new BoundingSphere());
Transform3D t3d = new Transform3D();
t3d.setTranslation(vector);
trans.setTransform(t3d);
branch.addChild(trans);
ColorCube cube = new ColorCube(0.5d);
cube.setCollidable(true);
cube.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
cube.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
cube.setCapability(Shape3D.ALLOW_COLLIDABLE_READ);
cube.setPickable(true);
trans.addChild(cube);
return branch; -
HELP PLEASE w/ utPLSQL error
I am running some unit tests, and I keep getting this error.
UT_FOR_LOOPS_TEST: Unable to run ut_ppkg_interaction.UT_FOR_LOOPS_TEST: ORA-00001: unique constraint (TEST.SYS_C0077930) violated
Could I get some help with understanding how to debug this error.
ThanksAssuming you are doing a record at a time in a cursor for loop, you probably have something like this:
declare
some variables
cursor c is
select whatever from wherever;
begin
for r in c loop
insert into test (columns) values (r.col1, r.col2, etc);
end loop;
exception
when dup_val_on_index then
<this is the named error you are hitting>
when others then
whatever
end
What you need to do is nest the block so the error is handled without causing a termination of the main block/procedure. Look up nested blocks/exception handling. Then modify your code accordingly. -
First, I'm a complete noob here and in AS3. i know AS2 and this is my first project in AS3...
here's my FLA:
http://www.directoph.com/projectbetatest/3dbrochuretest/3D-Brochure3.fla
here's the live demo:
http://www.directoph.com/projectbetatest/3dbrochuretest/
Movie Behavior:
It's a digital version of brochure with three versions (US, Hawaii, Canada), upon loading of the main movie, a script will load an image that will be the reference for the magnification. click and dragging over the brochure will magnify its contents. clicking "view back" will 3D rotate the brochure then load the back image, then script again to magnify the back contents.
all works well for the 3 versions.
the problem occurs when, lets say, I'm in Hawaii version and I clicked USA. Same with when in Canada version and I clicked USA or Hawaii, in short, errors occurs when jumping into an 'earlier' frame, or in backward behavior.
clicking to Hawaii or Canada from USA - no error;
clicking to Canada from Hawaii - no error;
clicking to USA from Hawaii - error;
clicking to USA from Canada - error;
clicking to Hawaii from Canada - error;
Error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at 3D_fla::MainTimeline/frame1()
at flash.display::MovieClip/gotoAndPlay()
at 3D_fla::MainTimeline/usa2()
I hope I made it clear. Ignore the "PDF" button by the way, I haven't coded it yet. If you find my code as crappy as hell, feel free to laugh... :-)
Any help would be greatly appreciated. Thanks!The 1009 error indicates that one of the objects being targeted by your code is out of scope. This could mean that the object....
- is not in the display list
- doesn't have an instance name (or the instance name is mispelled)
- does not exist in the frame where that code is trying to talk to it
- is animated into place but is not assigned instance names in every keyframe for it
- is one of two or more consecutive keyframes of the same objects with different names assigned.
If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved. -
hi
can anyone help me debug my code? no compilation errors or exceptions thrown. but it's not working like i want it to
createAccount() calls insertAccount() which calls getNextID() which calls selectNextID()
this should create a new account, with an account id selected from the db and incremented +1. so if i create 100 accounts, it should number accounts 1-100, the lastkey table in the db should have a value 100 for account_lastkey when i'm done.
what happens is that 100 accounts are created, all with account number 0. somehow my getNextID() and selectNextID() methods are not working. please help
* createAccount is used by administrator to add a new Account
* in the system.
* @param newAccount AccountEntryStruct containing data for new account
* @return int the new unique Account ID
* @exception com.kafein.idl.exceptions.DataValidationException
public int createAccount(AccountEntryStruct newAccount) throws
DataValidationException {
validateData (newAccount); // throws DataValidationException;
int accountID = 0;
// Create new Account.
Account anAccount = new Account(accountID,
newAccount.userName,
newAccount.userEmail,
newAccount.creditCardType,
newAccount.creditCardNumber,
newAccount.creditCardExpirationDate.year,
newAccount.creditCardExpirationDate.month,
newAccount.userPassword,
newAccount.initialBalance);
// Insert here / call method insertAccount() pass it in an account object
// or call manager object - accountmanager.put()
// Insert Account into Database
try {
insertAccount(anAccount);
catch(Exception e) {
e.printStackTrace();
accounts.put(accountID,anAccount);
return accountID;
* getNextID is used to generate a unique ID.
* @return int an Account ID
protected synchronized int getNextID() {
int nextAccountID=0;
try {
nextAccountID = selectNextID();
catch(Exception e) {
e.printStackTrace();
return nextAccountID;
* jdbc related methods
private int selectNextID() throws Exception {
int account_lastkey;
try {
Statement statement = connection.createStatement();
ResultSet rs = statement.executeQuery(
"Select ACCOUNT_LASTKEY from LASTKEY");
System.out.println("Account Lastkey");
//while (rs != null && rs.next()) {
rs.next();
account_lastkey = rs.getInt(1);
System.out.println(account_lastkey);
connection.commit();
statement.close();
//return account_lastkey;
return account_lastkey;
} catch(Exception e) {
System.err.println("System Exception in selectNextID");
System.err.println(e);
throw e;
* insertAccount is used to insert a new Account in the Database
* @param int AccountID
* @return AccountStruct containing data for the existing Account
private void insertAccount(Account anAccount) throws Exception {
AccountStruct anAccountStruct = anAccount.getAccountStruct();
String acct_username = anAccountStruct.userName;
String acct_useremail = anAccountStruct.userEmail;
String acct_cc_type = anAccountStruct.creditCardType;
String acct_cc_number = anAccountStruct.creditCardNumber;
int acct_cc_expyr = anAccountStruct.creditCardExpirationDate.year;
int acct_cc_expmo = anAccountStruct.creditCardExpirationDate.month;
String acct_userpassword = anAccountStruct.userPassword;
float acct_userbalance = anAccountStruct.accountBalance;
int acct_id = getNextID();
try {
System.out.println("Inserting data...");
connection.setAutoCommit(false);
// Calculate Start time
Log.debug("Starting data insertion ( 1" +
" row) into ACCOUNT table..");
long startTime = System.currentTimeMillis();
preparedStatement = connection.prepareStatement(
"INSERT INTO ACCOUNT (ACCT_ID, ACCT_USERNAME, ACCT_USEREMAIL, ACCT_CC_TYPE, ACCT_CC_NUMBER, " +
"ACCT_CC_EXPYR, ACCT_CC_EXPMO, ACCT_USERPASSWORD, ACCT_USERBALANCE) VALUES ( ?, ?, ?, ?, ?, ? , ?, ?, ?)");
//acct_id = 1000;
preparedStatement.setInt(1, acct_id);
preparedStatement.setString(2, acct_username);
preparedStatement.setString(3, acct_useremail);
preparedStatement.setString(4, acct_cc_type);
preparedStatement.setString(5, acct_cc_number);
preparedStatement.setInt(6, acct_cc_expyr);
preparedStatement.setInt(7, acct_cc_expmo);
preparedStatement.setString(8, acct_userpassword);
preparedStatement.setFloat(9, acct_userbalance);
preparedStatement.executeUpdate();
connection.commit();
preparedStatement = connection.prepareStatement(
"UPDATE LASTKEY SET ACCOUNT_LASTKEY = ?");
preparedStatement.setInt(1, acct_id);
preparedStatement.executeUpdate();
connection.commit();
System.out.println("1 account created.");
preparedStatement.close();
long stopTime = System.currentTimeMillis();
Log.debug("Account table load complete.");
Log.debug("Load time = " +
((stopTime - startTime)/(1000f)) + " seconds");
Log.debug("Data insertion complete");
} catch(Exception e) {
System.err.println("System Exception in loadData");
System.err.println(e);
throw e;
thank you for responding!
well, i tried changine the line in createAccount() from int accountID=0; to intaccountID=1111;
this does not create 100 accounts with id 1111 - it still creates 100 accounts with id 0, so that's why, even though this method definitely needs work, i don't think that this is the line that's causing identical id's of 0 to be generated. -
Please Help!!! error executing procedure and populating to gridview
I have used a tool to convert my sql 2000 stored procedure to Oracle 10g PL/SQL, here is an example
SQL 2000 Stored Procedure
CREATE PROCEDURE [GetEmployees]
AS
Select * from EMPMST ORDER BY emp_name
GO
After Transformation i got 2 files, one was a procedure and other a package
CREATE OR REPLACE PACKAGE GLOBALPKG
AS
TYPE RCT1 IS REF CURSOR;
TRANCOUNT INTEGER := 0;
IDENTITY INTEGER;
END;
CREATE OR REPLACE PROCEDURE GetEmployees
RCT1 IN OUT GLOBALPKG.RCT1
AS
BEGIN
OPEN RCT1 FOR
SELECT *
FROM EMPMST
ORDER BY emp_name;
END;
When i execute the procedure GetEmployees i got this error :
SQL> execute GetEmployees;
BEGIN GetEmployees; END;
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'GETEMPLOYEES'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
I am developing a webpage (asp.net using Visualstudio .net 2005 ) where i have a grid view in which i want to display all the output of the GetEmpoyee procedure but it is giving an error.
Please Help me in debugging this error. Thanks in advance.Hi Pruthvi,
It seems to me the convertion is correct. You need a REF CURSOR and by the Stored Procedure itself without using Package the REF CURSOR cannot specify as OUT output parameter.
You can use SQL Developer to help you to make sure you put the Package in the right Database Schema.
http://otn.oracle.com/sqldeveloper
After you converted the Stored Procedure you need to modify your .NET code as well. The .NET code that calls your old MS SQL Stored Procedure will not work. To see how to involve the REF CURSOR in .NET you can check here:
http://blogs.oracle.com/MingMan/stories/storyReader$9
Good Luck
Ming Man -
Hi,
i need your help in debugging the vf03 tcode. the senariou is as follows.
in vf03 when i enter the billing document no. and press enter and then when i click on parter push button on the application toolbar and then click on ship-to-party item then under the field tax juridiction cde which is refering to txjcd field of vbadr table im getting the value as TAXUSX instead of a 10 digit value which is present in txjcd field of kna1 table for that particular customer.
and this is happening only for few invoice no's not for all.
i think that some where the data is getting changed or not properly communicated for some invoice numbers.
i need help for where to start tracing and how to debug this error out and the flow logic of debugging.
waiting for ur reply
regards,
maqsoodHi kahan,
frist you have check with your function consultant is there are mataing the TAX for that countary .
and come to debug.
easyt way is take that screen field name(patha pres F1 and technical attributes ) and program name screen name .
then seach that field in that program screen put break-point at that level and run tranction.
stil you facing any problem send more details i will try to help you.
Do Reward points..if found helpful
thaks,
saleem -
What transactions are helpful in debugging performance of a program
What transactions help in debugging performance related issues of a custom program?
Hi.... Gopal...,
First rectify the errors and warning in ur program with...
> SLIN -> Extended program Check
> SCID -> Code Inspecter
Then Analyze the performance level of ur program with...
> SE30 -> Runtime analysis
There you can study the actions of ur statements with Tracing the statements with...
> ST05 -> SQL Trace
Then do the modifications according to the issues...,
Thank you,
Naveen.I -
i had to take my photoshop file into a hardrive because my dad was going to give me a new Mac and when things didn't work out and went back to my old one i use the time capsule thing to save everything before but didn't give me photoshop so i physically moved the file and tried to open it but then this error shows up
Please uninstall and reinstall the product.
If this problem still occurs, please contact Adobe technical support for help, and mention the error code shown at the bottom of this screen.
Error: 16
and when i click the uninstall app on the file it tells me this
The alias “Uninstall Adobe Photoshop CS6 2” can’t be opened because the original item can’t be found
and when i click fix alias i click on photoshop and the app just turns into photoshop and i just run in circles
please help thank youRun the cleaner tool and reinstall.
Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
Download CS6 products
Mylenium -
Need help in analysing the error in JasperReportIntegration Test Applicatio
Our DBA installed Jasper Reports Integration kit Version 1.1.0.0 in our test environment. Apex version is 3.2.1.00.12. Oracle database is 11g and Apache Tomcat is 7.0.26
I was able to bring up the Jasper Reports Integration test application. When I navigate to "Report Tester" tab, changed the JasperReportIntegration URL to the correct localhost and then cklick the "Show report (directly)" button, I got this message:
Jun 12, 2012 11:41:58 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [ReportWrapper] in context with path [JasperReportsIntegration] threw exception [Servlet execution threw an exception] with root cause
Throwable occurred: java.lang.NoClassDefFoundError: net.sf.jasperreports.engine.util.JRStyledTextParser (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:121)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:87)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:57)
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:52)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
at de.oc.integration.jasper.webapp.ReportWrapper.service(ReportWrapper.java:318)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
at java.lang.Thread.run(Thread.java:736)
Can anyone help me understand this error and let me know if this message is caused by installing the jasper report integration kit incorrectly?
Thanks.
Edited by: bratz69 on Jun 12, 2012 7:35 PMHi Dietmar,
Thanks for your reply.
There's no jasperreports-fonts-3.7.4.jar file in the webapps/JasperReportsIntegration/WEB-INF/lib folder. The only font file available is jasperreports-fonts-4.5.0.jar. I've downloaded the 3.7.40 jar file and saved it in the same folder without deleting the 4.5.0.jar. I tried to run the Test application again and still give me the same error.
Jun 13, 2012 3:58:26 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [ReportWrapper] in context with path [JasperReportsIntegration] threw exception [Servlet execution threw an exception] with root cause
Throwable occurred: java.lang.NoClassDefFoundError: net.sf.jasperreports.engine.util.JRStyledTextParser (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:121)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:87)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:57)
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:52)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
at de.oc.integration.jasper.webapp.ReportWrapper.service(ReportWrapper.java:318)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
at java.lang.Thread.run(Thread.java:736)
I also tried the suggestion from the link provided by Nick. However, the syntax is for SUN environment and we are using IBM so I searched the equivalent of that command in IBM. Our DBA added the Java system property in the startup script by adding these 2 lines. But it errored out on the first 2 lines. I'm not sure if I do have the right syntax.
java.version=1.4
java.awt.headless=true
----- Error
27) ./startup.sh
./startup.sh[25]: java.version=1.4: not found
./startup.sh[26]: java.awt.headless=true: not found
Using CATALINA_BASE: /dbfupg/apache-tomcat-7.0.26
Using CATALINA_HOME: /dbfupg/apache-tomcat-7.0.26
Using CATALINA_TMPDIR: /dbfupg/apache-tomcat-7.0.26/temp
Using JRE_HOME: /usr/java6/jre
Using CLASSPATH: /dbfupg/apache-tomcat-7.0.26/bin/bootstrap.jar:/dbfupg/apache-tomcat-7.0.26/bin/tomcat-juli.jar
----- Start up script
27) cat startup.sh
#!/bin/sh
java.version=1.4
java.awt.headless=true
os400=false
case "`uname`" in
OS400*) os400=true;;
esac
# resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
PRGDIR=`dirname "$PRG"`
EXECUTABLE=catalina.sh
# Check that target executable exists
if $os400; then
# -x will Only work on the os400 if the files are:
# 1. owned by the user
# 2. owned by the PRIMARY group of the user
# this will not work if the user belongs in secondary groups
eval
else
if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
echo "Cannot find $PRGDIR/$EXECUTABLE"
echo "The file is absent or does not have execute permission"
echo "This file is needed to run this program"
exit 1
fi
fi
exec "$PRGDIR"/"$EXECUTABLE" start "$@"
BTW, Thanks for the update on the new version.
Thanks!
Edited by: bratz69 on Jun 13, 2012 4:48 PM -
Adobe Premiere Elements 11 unable to launch - User receives Debug & Runtime Errors
Adobe Premiere Elements 11 unable to launch - User receives Debug & Runtime Error. The Adobe program launches and the Premiere Elements splash screen displays. Once the "Loading ImportQuicktime.pm" function completes the following errors display:
The program has been re-installed without success. The only way to open the program is to "Run as Different User" windows 7 function, using the local admin account. The Preferences Folders have been deleted and recreated without success. Any information for this error will be great. Thank you for your time.Hi UBDEV,
Thanks for posting on the Adobe forums.
Please tell us if this system is on Network, if yes please make sure that My Documents Folder should be on the local drive not on the Network drive.
Regards,
Sandeep -
Please Help me with the error P6
I recently installed the Primavera P6 but when I started
using it for the first time I get the following error
message :
C:\Program files\Primavera\Project
Management\Languages\comCaptions.en-us
<br
/>Please help me with this error ;
ThanksHi,
This sounds like an issue
that might best be handled by support. You can find
information on contacting support here:<br
/><br
/>http://www.primavera.com/customer/support.asp<br
/>
Thanks,
Sean
Maybe you are looking for
-
DB Adapter -Polling SQL and After Read SQL:
Hi.., I have DB adapter Configured for logical delete. Here is the SQLs Polling SQL: SELECT LOG_ID, ORG_ID, ROUTE, ATTRIBUTE9 FROM GETS_UX.GETS_UX_PROF_TRANS_LOG WHERE (((ROUTE = 'ERP INBOUND') AND (((ORG_ID = 123) OR (ORG_ID = 234)) OR (ORG_ID = 5))
-
Bank statement detail report in cash management
Iam able to see all ap payment numbers in " transactions available for reconciliation report" but some of them are missing in bank statement detail report. Do anyone have any idea on this? pls suggest.
-
Unable to boot from a cd on several iMacs
I have read all the topics covering this situation but none of the responses seem to cover my situation. I am the computer fix it person at an elementary school and have about 8 iMacs that will not boot from a CD. I am trying to tidy these machines u
-
Duplicate Files...How can I find them all?
I have many duplicate files. How can I locate them all so I can organize them (delete the ones I don't need)? Is there a program that will do this?
-
Unable to repair, delete or reinstall Acrobat Elements 6.0
When attempting to reinstall a corrupted version of Acrobat Elements 6.0, I receive an error message that says Error 1606. Could not access network location ?/;xlstart." This is a fatal error and the machine is not on a network. There is no option o