500 Servlet Exception

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

amitabhmca
Posts: 10
Joined: Wed Sep 23, 2009 8:35 am
Location: bangalore

500 Servlet Exception

Post by amitabhmca »

Hello All,

I was able to get http://IP:8080/ page but when i click on the link under this URL. ..it gives below error.

500 Servlet Exception
javac: invalid flag: /opt/openemm.org/software/java/bin/
Usage: javac <options> <source files>
use -help for a list of possible options

Please help me how to fix it..

thanks,
Amitabh
pheelix
Posts: 101
Joined: Thu Nov 20, 2008 4:34 pm
Location: Dresden, Germany
Contact:

Post by pheelix »

hi,
i faced the same error.

is it possible that you added the path in the /home/openemm/conf/core.conf file as "args" in the line <javac compiler="javac" args=""/>?

remove it and leave the line without arguments.

can you run the "javac"-command on the commandline?

if yes, there should be no problem,
if no, you should check whether you have installed JRE (runtime environment) only (comes without javac (compiler). that was my mistake.

i would suggest to (re-)install JDK 6.

btw: which OS do you use?

happy new year 2010 ;)
amitabhmca
Posts: 10
Joined: Wed Sep 23, 2009 8:35 am
Location: bangalore

Post by amitabhmca »

Hello Feelix,

Happy New Year you too.

I am getting bunch of errors..please see below:

1) I removed that line from core.conf.

I am able to run javac command as below:

# /opt/openemm.org/software/java/bin/javac
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files and annotation processors
-cp <path> Specify where to find user class files and annotation processors
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-proc:{none,only} Control whether annotation processing and/or compilation is done.
-processor <class1>[,<class2>,<class3>...]Names of the annotation processors to run; bypasses default discovery process
-processorpath <path> Specify where to find annotation processors
-d <directory> Specify where to place generated class files
-s <directory> Specify where to place generated source files
-implicit:{none,class} Specify whether or not to generate class files for implicitly referenced files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-Akey[=value] Options to pass to annotation processors
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system

#

Please let me know if i need to fix something..
=======================================

2) Another error i am facing is below:

An error occurred
Cause: javax.servlet.ServletException: org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Cannot create PoolableConnectionFactory (Access denied for user 'agnitas'@'localhost' (using password: YES)); nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'agnitas'@'localhost' (using password: YES))

========================================

getting below error..

SQL query:

GRANT DELETE ,
INSERT ,

UPDATE ,
LOCK TABLES ,
SELECT ,
ALTER ,
INDEX ,
CREATE TEMPORARY TABLES ,
DROP ,
CREATE ON openemm . * TO 'agnitas'@'localhost' IDENTIFIED BY 'openemm';

MySQL said:

#1044 - Access denied for user 'openemm'@'localhost' to database 'openemm'

Thanks,
Amitabh :cry:
pheelix
Posts: 101
Joined: Thu Nov 20, 2008 4:34 pm
Location: Dresden, Germany
Contact:

Post by pheelix »

the first one is not an error,
the output you have, when running "javac", shows that it is working.

and the second message shows that you either have no database called 'openemm' or very likely you missed to setup the database-user 'openemm' and/or granted no rights for this user on the openemm-db.

or you may have changed the password for the openemm-db-user in the mysql-server but not in the openemm-cfg.
maschoff
Site Admin
Posts: 2608
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

Sometimes it is really helpful to read the OpenEMM Install Guide - it's all in there! :-)
OpenEMM Maintainer
amitabhmca
Posts: 10
Joined: Wed Sep 23, 2009 8:35 am
Location: bangalore

Post by amitabhmca »

Thanks for your response..

I was able to setup OpenEMM and logged in as admin..

I tried sending a test mail to my gmail a/c but did not work out..

other thing is i am using Qmail so not sure if it will work..

Could you please advice if i need to install sendmail

thanks,
Amitabh
maschoff
Site Admin
Posts: 2608
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

No, OpenEMM does not work with qmail. Please read the docs!
OpenEMM Maintainer
amitabhmca
Posts: 10
Joined: Wed Sep 23, 2009 8:35 am
Location: bangalore

Post by amitabhmca »

- I installed Sendmail and ran ./OpenEMM-Installer-1.2.sh. I was able to install and could login to the OpenEMM cpntrol Panel.

When i click on Recipients it gives me an error as below:

500 Servlet Exception
java.lang.IllegalStateException: forward() not allowed after buffer has
committed.
at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:139)
at com.caucho.server.webapp.RequestDispatcherImpl.error(RequestDispatcherImpl.java:113)
at com.caucho.server.webapp.ErrorPageManager.sendServletError(ErrorPageManager.java:362)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:175)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:514)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:527)
at com.caucho.util.ThreadPool.run(ThreadPool.java:449)
at java.lang.Thread.run(Thread.java:619)

Could you please help..

Thanks,
Amitabh..
amitabhmca
Posts: 10
Joined: Wed Sep 23, 2009 8:35 am
Location: bangalore

Post by amitabhmca »

I am getting following errors/issues:

1) if i try to add a new reciepient. I get below error.

500 Servlet Exception
java.lang.IllegalStateException: forward() not allowed after buffer has
committed.
at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:139)
at com.caucho.server.webapp.RequestDispatcherImpl.error(RequestDispatcherImpl.java:113)
at com.caucho.server.webapp.ErrorPageManager.sendServletError(ErrorPageManager.java:362)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:175)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:514)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:527)
at com.caucho.util.ThreadPool.run(ThreadPool.java:449)
at java.lang.Thread.run(Thread.java:619)

2) When i try to Import and go to New Import Profile..I get below. sometime below error comes and sometimes "500 Servlet Exception" like above.

An error occurred
Cause: javax.servlet.ServletException: javax.servlet.ServletException: javax.servlet.jsp.JspTagException: java.sql.SQLException: Can't create/write to file '/tmp/#sql_7629_0.MYI' (Errcode: 13)

3) When i try to create a new target group,Page does not display.

Please help..

Thanks,
Amit
pheelix
Posts: 101
Joined: Thu Nov 20, 2008 4:34 pm
Location: Dresden, Germany
Contact:

Post by pheelix »

java.sql.SQLException: Can't create/write to file '/tmp/#sql_7629_0.MYI
missing write permissions?
amitabhmca
Posts: 10
Joined: Wed Sep 23, 2009 8:35 am
Location: bangalore

Post by amitabhmca »

Hello Pheelix,

Could you please elaborate more how do i fix this permission.

I tried deleting the DB and improted SQL but did not work out..

What about those Java errors..Is it because of permission..


thanks,
Amitabh
amitabhmca
Posts: 10
Joined: Wed Sep 23, 2009 8:35 am
Location: bangalore

Post by amitabhmca »

Hello Pheelix,

I did this - chmod 777 /tmp and did not get any more errors..

I am testing now..

thanks,
Amitabh
zachbrowne
Posts: 1
Joined: Fri Apr 23, 2010 5:30 am

This worked for me...

Post by zachbrowne »

Make sure you are installing the your domain /tmp file and not the server default...
Post Reply