First time install on brand new LAMP install HTTP Status 500

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
pspenn
Posts: 16
Joined: Wed Oct 28, 2009 7:17 am
Location: Atlanta, GA

First time install on brand new LAMP install HTTP Status 500

Post by pspenn »

1. Brekeke Product Name and version: Latest

2. Java version: 1.4.2

3. OS type and the version: Centos 5.5

4. UA (phone), gateway or other hardware/software involved:

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :

6. Your problem:

I have just finished installing Centos 5.5 and applying all of the updates. The next install was tomcat5 via Yum. It added all of the necessary dependencies and started with no problems. I then dropped the Proxy.war file in the Webapps folder. I can get to the first page via http://xxx.xxx.xxx.xxx:8080/proxy. When I enter my 60 day Eval key and click "I Agree", I get the following errors:
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.IllegalStateException: enc
com.brekeke.util.EasyCryptoUtil.enc(Unknown Source)
com.brekeke.sipadmin.web.LogSelect.getUD(Unknown Source)
com.brekeke.sipadmin.SocketWrap.getUD(Unknown Source)
com.brekeke.sipadmin.SipAdminBase.newUserDataFile(Unknown Source)
com.brekeke.sipadmin.web.InputLicense.exec(Unknown Source)
com.brekeke.web.Bean.execMain(Unknown Source)
com.brekeke.sipadmin.SipAdminBase.execMain(Unknown Source)
com.brekeke.web.Bean.execute(Unknown Source)
com.brekeke.web.Bean.go(Unknown Source)
com.brekeke.web.Bean.go(Unknown Source)
com.brekeke.sipadmin.web.Login.exec(Unknown Source)
com.brekeke.web.Bean.execMain(Unknown Source)
com.brekeke.sipadmin.SipAdminBase.execMain(Unknown Source)
com.brekeke.web.Bean.execute(Unknown Source)
com.brekeke.web.Bean.go(Unknown Source)
com.brekeke.web.Bean.go(Unknown Source)
com.brekeke.sipadmin.web.InputLicense.exec(Unknown Source)
com.brekeke.web.Bean.execMain(Unknown Source)
com.brekeke.sipadmin.SipAdminBase.execMain(Unknown Source)
com.brekeke.web.Bean.execute(Unknown Source)
com.brekeke.web.Bean.go(Unknown Source)
com.brekeke.web.Bean.startBean(Unknown Source)
com.brekeke.web.GateServlet.performTask(Unknown Source)
com.brekeke.web.GateServlet.doPost(Unknown Source)
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so)
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.
I quite honestly don't even know where to look for the Apache Tomcat/5.5.23 logs but that will be the next thing I look at.

I am sure this can be easily replicated since I have done nothing other than install Centos 5.5 and then Tomcat.
Has anyone come across this? And even better, does anyone have a suggestion as to how to resolve?
Thanks,
Perry
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

can you post the log.log here?
which is at webapps\proxy\WEB-INF\work\logs\

and what java is used by sip server? is it Sun's java?
pspenn
Posts: 16
Joined: Wed Oct 28, 2009 7:17 am
Location: Atlanta, GA

Post by pspenn »

Hello Hope,

Here is the log.log file. (I see something of interest with javax.crypto)
2010-05-21 12:33:01,487 [http-8080-Processor25] ERROR (?:?) -
javax.crypto.IllegalBlockSizeException: 2 trailing bytes
at gnu.javax.crypto.jce.cipher.CipherAdapter.engineDoFinal(libgcj.so.7rh)
at javax.crypto.Cipher.doFinal(libgcj.so.7rh)
at javax.crypto.Cipher.doFinal(libgcj.so.7rh)
at com.brekeke.util.EasyCryptoUtil.enc(Unknown Source)
at com.brekeke.sipadmin.web.LogSelect.getUD(Unknown Source)
at com.brekeke.sipadmin.SocketWrap.getUD(Unknown Source)
at com.brekeke.sipadmin.SipAdminBase.newUserDataFile(Unknown Source)
at com.brekeke.sipadmin.web.InputLicense.exec(Unknown Source)
at com.brekeke.web.Bean.execMain(Unknown Source)
at com.brekeke.sipadmin.SipAdminBase.execMain(Unknown Source)
at com.brekeke.web.Bean.execute(Unknown Source)
at com.brekeke.web.Bean.go(Unknown Source)
at com.brekeke.web.Bean.go(Unknown Source)
at com.brekeke.sipadmin.web.Login.exec(Unknown Source)
at com.brekeke.web.Bean.execMain(Unknown Source)
at com.brekeke.sipadmin.SipAdminBase.execMain(Unknown Source)
at com.brekeke.web.Bean.execute(Unknown Source)
at com.brekeke.web.Bean.go(Unknown Source)
at com.brekeke.web.Bean.go(Unknown Source)
at com.brekeke.sipadmin.web.InputLicense.exec(Unknown Source)
at com.brekeke.web.Bean.execMain(Unknown Source)
Here is what I get when I type 'java -version'
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK Server VM (build 1.6.0-b09, mixed mode)
It is Sun's Java.

Thanks again for the assistance,
Perry
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

pspenn
Posts: 16
Joined: Wed Oct 28, 2009 7:17 am
Location: Atlanta, GA

Post by pspenn »

WOW!!!! I sooo should have posted my help request sooner. My head was bleeding on Friday from beating it against the wall in frustration. You just made it look so easy. I guess reading log files is a good thing. :lol:
Now for the learning part....
What from the logs told you that I was missing the JDK?

Thank you so much for your help!
Problem solved!

Perry
janP
Posts: 336
Joined: Sun Nov 25, 2007 2:55 pm

Post by janP »

>> What from the logs told you that I was missing the JDK?
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK Server VM (build 1.6.0-b09, mixed mode)
It means you are using OpenJDK instead of Sun's official JDK.
http://openjdk.java.net/

You need to...
- Download Sun's JDK from http://java.sun.com
- Install it.
- Set PATH and CLASSPATH variables to point Sun's Java folder.

That's all. Easy.
Post Reply