ladenise Posted April 5, 2012 Share Posted April 5, 2012 Hello, I'm having a problem running the sample reports.When I select any of them (sugarcrm or foodmart), it keeps loading indefinitely. Could you help me please ? I'm running JaserReports Server 4.5 under:- OS X Lion Server- Apple Java 1.6.0_31- Tomcat 6- MySQL 5.1.61 Link to comment Share on other sites More sharing options...
szaharia Posted April 5, 2012 Share Posted April 5, 2012 Moving it to the JR Server forum ... Link to comment Share on other sites More sharing options...
willeja Posted June 21, 2012 Share Posted June 21, 2012 Hi there,we have just installed jasper server on a linux (Centos) and have the same problem.We did the installation command line and accepted all the defaults, installed the sample stuff etc.As database we took the postgresql as deliverd within the install.Someone can help us out here?Regards,Jan Link to comment Share on other sites More sharing options...
gdmoreno Posted June 21, 2012 Share Posted June 21, 2012 Hi,I would suggest doing the manual WAR installation process, which is documented in the installation guide (it's a PDF in the docs folder). Also - are the log files recording any errors? Link to comment Share on other sites More sharing options...
willeja Posted June 22, 2012 Share Posted June 22, 2012 Now I did the WAR file install, but same problem.When running the page, in the console (of firebug) I see the following:$(fromLocation) is null toLoc.innerHTML = $(fromLocation).innerHTML; Link to comment Share on other sites More sharing options...
Raphaël Peguet Posted June 22, 2012 Share Posted June 22, 2012 Hi Willja,did you do the full install using the buildomatic/js-install script?When you check your DB, can you see sugarcrm and foodmart DB, and is there any tables in each? Raphael Link to comment Share on other sites More sharing options...
willeja Posted June 22, 2012 Share Posted June 22, 2012 Hi Raphael,I have the databases. This is a part of the tables of foodmart:(select * from pg_tables;) schemaname | tablename | tableowner | tablespace | hasindexes | hasrules | hastriggers--------------------+-------------------------------+------------+------------+------------+----------+------------- public | customer | postgres | | t | f | f public | days | postgres | | f | f | f public | department | postgres | | t | f | f public | employee | postgres | | t | f | f public | employee_closure | postgres | | t | f | f public | expense_fact | postgres | | t | f | f public | position | postgres | | t | f | f public | product | postgres | | t | f | f public | product_class | postgres | | f | f | f There is data in the tables too...Post Edited by willeja at 06/22/2012 10:56 Link to comment Share on other sites More sharing options...
willeja Posted June 22, 2012 Share Posted June 22, 2012 gdmorenoWrote: Hi, I would suggest doing the manual WAR installation process, which is documented in the installation guide (it's a PDF in the docs folder). Also - are the log files recording any errors? gdmoreno,in catalina.out I find following error when running a report:2012-06-22 12:58:24,836 ERROR Digester,http-8080-3:1366 - Begin event threw errorjava.lang.NoClassDefFoundError: Could not initialize class java.awt.ColorHope this one helps? Link to comment Share on other sites More sharing options...
willeja Posted June 22, 2012 Share Posted June 22, 2012 oke, strange thing I just noticed:There are some reports that keeps loading like "Accounts Report" and "Employee List". But there are also reports that just give a white page like "Sales By Month" or "Department".Does this make it even more difficult? Link to comment Share on other sites More sharing options...
gdmoreno Posted June 25, 2012 Share Posted June 25, 2012 Interesting error that showed up in your log files. I would try adding this option to your startup script:-Djava.awt.headless=trueI know that the server works with this option, so let's see what happens when you add that to your startup scripts. A good place to do it would be in the setenv.sh file. If nothing else, it would eliminate this as a potential problem. I would be interested in seeing a fuller stack trace, to at least where the first JasperReports classes start showing up. Link to comment Share on other sites More sharing options...
willeja Posted June 25, 2012 Share Posted June 25, 2012 Thanks for the reply.If I use this in my setenv.sh, the jasperserver won't start up... Code: What output from which files do you need?Post Edited by willeja at 06/25/2012 08:54 Link to comment Share on other sites More sharing options...
willeja Posted June 25, 2012 Share Posted June 25, 2012 gdmorenoWrote: Interesting error that showed up in your log files. I would try adding this option to your startup script: -Djava.awt.headless=true I know that the server works with this option, so let's see what happens when you add that to your startup scripts. A good place to do it would be in the setenv.sh file. If nothing else, it would eliminate this as a potential problem. I would be interested in seeing a fuller stack trace, to at least where the first JasperReports classes start showing up. Good news: It works!I added the "-Djava.awt.headless=true" option in the /xxx/jasperreports/apache-tomcat/scripts/ctl.sh file:"export JAVA_OPTS="-Xms1024m -Xmx1536m -XX:PermSize=32m -XX:MaxPermSize=128m -Xss2m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true"" Thanks everyone for helping me out, thanks gdmoreno for pointing me to the wright direction!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now