Prediction App : An unexpected error has occurred.

89 views
Skip to first unread message

ball

unread,
May 10, 2013, 9:43:52 AM5/10/13
to web4j...@googlegroups.com, bvbal...@gmail.com
I am not able to login to the prediction application, getting the error like "An unexpected error has occurred."

tried with username= testeD and password = testtest. when i use these credentials, the application keep on asking usrname and password.

when i tried to create an account (using not registered yet), it is showing the following error

"Sorry, we goofed.
An unexpected error has occurred. An email describing the details has likely been sent to the webmaster"

here atteched the log file also.
edited perdict.xml file and placed in tomcat home (Tomcat 6.0\conf\Catalina\localhost\predict.xml). in this file added mysql username and passwored.
created the a recaptcha account and replaced in web.xml & WEB-INF/tags/captcha.tag files with private &public kys.
could anyone plese help me on this issue.

thanks in advance,
balaji




2013_05_10_11_27.txt

John O'Hanley

unread,
May 10, 2013, 6:47:33 PM5/10/13
to web4j-users
Hello,

It looks like the database connection is ok, which is good.

The log file shows *4* different start-ups in quick succession. It's
as if it's deployed more than once. Why is that? You should only have
1 deployment.
May 10, 2013 4:57:20 PM hirondelle.web4j.BuildImpl init
May 10, 2013 4:57:37 PM hirondelle.web4j.BuildImpl init
May 10, 2013 4:58:19 PM hirondelle.web4j.BuildImpl init
May 10, 2013 4:59:03 PM hirondelle.web4j.BuildImpl init


The startups end prematurely, after this line:
May 10, 2013 4:59:03 PM hirondelle.predict.main.codes.CodeTableUtil
fetchAndRememberCodeTable
FINE: Code Table 'OUTCOMES': (6) {
'1' = 'Right'
'2' = 'Mostly Right'
'3' = 'Half Right'
'4' = 'Mostly Wrong'
'5' = 'Wrong'
'6' = 'Undecidable'
}

After that, you should have more logging, but you don't.

Note that there is an example log file output that is distributed with
the Predictions app (named EXAMPLE_LOG_FILE.txt).
Here is a working example:
...previous statements left out...
16-May-2012 6:28:55 PM hirondelle.web4j.database.ConvertColumnImpl
convert
FINEST: Successfully converted ResultSet column idx '3' into a
hirondelle.web4j.security.SafeText
16-May-2012 6:28:55 PM hirondelle.predict.main.codes.CodeTableUtil
fetchAndRememberCodeTable
FINE: Code Table 'OUTCOMES': (6) {
'1' = 'Right'
'2' = 'Mostly Right'
'3' = 'Half Right'
'4' = 'Mostly Wrong'
'5' = 'Wrong'
'6' = 'Undecidable'
}
... Here is the part you are missing:...
16-May-2012 6:28:55 PM hirondelle.web4j.Controller init
FINE: Database init and startup tasks completed 4084 ms after start.
16-May-2012 6:28:55 PM hirondelle.web4j.CheckModelObjects
performChecks
CONFIG: Performing checks on Model Objects for Cross-Site Scripting
vulnerabilities and unsupported constructor arguments.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
CONFIG: Fetching all concrete classes.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
FINEST: Ignoring package-info.class.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
FINEST: Ignoring package-info.class.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
FINEST: Ignoring package-info.class.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
FINEST: Ignoring package-info.class.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
FINEST: Ignoring package-info.class.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
FINEST: Ignoring package-info.class.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
FINEST: Ignoring package-info.class.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
FINEST: Ignoring package-info.class.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
FINEST: Ignoring package-info.class.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
FINEST: Ignoring package-info.class.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
FINEST: Ignoring package-info.class.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
FINEST: Ignoring package-info.class.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
FINEST: Ignoring package-info.class.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
FINEST: Ignoring package-info.class.
16-May-2012 6:28:55 PM hirondelle.web4j.readconfig.ConfigReader
fetchConcreteClassesThatImplement
FINEST: Ignoring package-info.class.
16-May-2012 6:28:55 PM hirondelle.web4j.CheckModelObjects logResults
CONFIG: ** SUCCESS *** : Scanned Model Objects for Cross-Site
Scripting vulnerabilities. Found 0 incidents.


Search under your Tomcat instance for its log files. **You may see the
actual error in those locations, not in your app's log file**.

Suggestions, if you are still having problems :
- please ensure you complete the tutorial first; it doesn't take long,
and it's is easier to configure
- look for error messages in Tomcat's log files
- send a stack trace to this forum

Regards,
John
Reply all
Reply to author
Forward
0 new messages