Jump to content
Changes to the Jaspersoft community edition download ×

Using Jasper in UNIX without X-Windows lib???


Recommended Posts

By: Anuradha - anura

Using Jasper in UNIX without X-Windows lib???

2003-10-08 21:06

Hi,

Is it possible to use JASPER in UNIX runtime environment without X-Windows library???

The thing is..while working in UNIX 'am able to convert the .xml file into .jasper file. The problem comes only when converting .jasper into .jrprint file...

'am getting the following error:

 

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0'

as the value of the DISPLAY variable.

 

at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:54)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:115)

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:53)

at dori.jasper.engine.fill.JRBaseFiller.<clinit>(JRBaseFiller.java:210)

at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:150)

at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:350)

at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:271)

at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:239)

at com.orbitech.frameworks.bline.report.BLineJasperReportManager.fillReport(Unknown Source)

at com.orbitech.frameworks.bline.user.BLineReportUser.eojReport(BLineReportUser.java:262)

at com.orbitech.frameworks.bline.gen.BLineReport.invokeUserEoj(BLineReport.java:1489)

at com.orbitech.frameworks.bline.gen.BLineReport.eoj(BLineReport.java:817)

at com.orbitech.frameworks.bline.gen.BLineReport.blineMainPolymorph(BLineReport.java:194)

at com.orbitech.frameworks.bline.engine.BLine.execute(Unknown Source)

at com.orbitech.frameworks.bline.engine.BLineController.multiBlineMain(Unknown Source)

at com.orbitech.frameworks.bline.engine.BLineController.blineMain(Unknown Source)

at com.orbitech.frameworks.bline.engine.BLineDriver.invokeDriver(Unknown Source)

at com.orbitech.frameworks.bline.engine.BLineDriverInfLocalProxy.invokeDriver(BLineDriverInf

LocalProxy.java:178)

at com.orbitech.frameworks.bline.user.BLineDriverMain.main(Unknown Source)

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

 

This is urgent.. Plzz do help me in this regard.

 

Thanx !

Anu.

 

 

 

 

 

By: Mohamed Kreifeur - moh2100

RE: Using Jasper in UNIX without X-Windows lib???

2003-10-09 07:48

Hi Anu

I am having the same problem with you. I am getting that error when I try to fill the report (ant fill) that creates .jrprint file.

I found two solution in this forum :

1- Use java 1.4 or

2- Install X window emilator (Xvfb)

 

- For the first solution, I can't use java 1.4 because I am using AIX 4.3. And I have to update AIX to version 5 in order to use java 1.4.

- So I choose the 2nd solution, I Installed Xvfb, I started with specific parameters (described in the forum), I set the display variable to the server IP address and whene I run the fill (ant fill) it runs undefintely (no response).

I tried also to install X window (Exceed) on the client machine and set the display variable to :

- the server IP address, I got the same error : the fill runs undefinitely (no response).

- the client IP address I got this error:

 

[java] java.lang.NoSuchMethodException: <init>

[java] at java.lang.Class.getConstructor0(Native Method)

[java] at java.lang.Class.getConstructor(Class.java:967)

[java] at dori.jasper.engine.fill.JRBaseFiller.loadCalculator(JRBaseFiller.java:591)

[java] at dori.jasper.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:330)

[java] at dori.jasper.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:114)

[java] at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:110)

[java] at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:219)

[java] at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:140)

[java] at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:108)

[java] at TSPM01.main(TSPM01.java:65)

[java]

[java] NESTED BY :

[java] dori.jasper.engine.JRException: Error loading expression class : TSPM01

[java] at dori.jasper.engine.fill.JRBaseFiller.loadCalculator(JRBaseFiller.java:596)

[java] at dori.jasper.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:330)

[java] at dori.jasper.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:114)

[java] at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:110)

[java] at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:219)

[java] at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:140)

[java] at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:108)

[java] at TSPM01.main(TSPM01.java:65)

[java] Java Result: 1

 

I already wrote a email to teodor, and I hope he will have time to see my problem, I am very desappointed.

 

Please let me know if you will have some solutions.

Moh

kreifeurm at hotmail.com

 

 

 

 

 

 

 

 

 

By: Anuradha - anura

RE: Using Jasper in UNIX without X-Windows lib???

2003-10-10 04:47

Hi,

 

I used "PJA 2.5"(Pure Java AWT) in solving this problem..but somehow it doesn't work!

 

My runApp.sh contains the following:

 

java -Djava.awt.headless=true

-Xbootclasspath/a:pja.jar

-Dawt.toolkit=com.eteks.awt.PJAToolkit

-Djava.awt.graphicsenv=orbimaker.users.viral.

pja_2.5Beta.classes.com.eteks.java2d.PJAGraphicsEnvironment.class

-Djava2d.font.usePlatformFont=false

-Dsun.java2d.fontpath=/usr/j2sdk1.4.1_01/jre/lib/

fonts

 

and I tried several things: export DISPLAY, setenv DISPLAY variable to 0.0.

 

Still it doesn't work...

 

===========

I got the following error:

 

Exception in thread "main" java.lang.Error: Could not find class: orbimaker.users.

viral.pja_2.5Beta.classes.com.eteks.java2d.PJAGraphicsEnvironment.class

at java.lang.Throwable.fillInStackTrace(Native Method)

at java.lang.Throwable.fillInStackTrace(Compiled Code)

at java.lang.Throwable.<init>(Compiled Code)

at java.lang.Error.<init>(Error.java:50)

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi

ronment.java:65)

at <Unloaded Method>

at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:139)

at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:350)

at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManag

er.java:271)

at dori.jasper.engine.JasperFillManager.fillReportToFile(JasperFillManag

er.java:239)

at com.orbitech.frameworks.bline.report.BLineJasperReportManager.fillRep

ort(Unknown Source)

at com.orbitech.frameworks.bline.user.BLinereportUser.eojReport(Unknown

Source)

at com.orbitech.frameworks.bline.gen.BLinereport.invokeUserEoj(Unknown S

ource)

at com.orbitech.frameworks.bline.gen.BLinereport.eoj(Compiled Code)

at com.orbitech.frameworks.bline.gen.BLinereport.blineMainPolymorph(Comp

iled Code)

at com.orbitech.frameworks.bline.engine.BLine.execute(Compiled Code)

at com.orbitech.frameworks.bline.engine.BLineController.multiBlineMain(C

ompiled Code)

at com.orbitech.frameworks.bline.engine.BLineController.blineMain(Compil

ed Code)

at com.orbitech.frameworks.bline.engine.BLineDriver.invokeDriver(Compile

d Code)

at com.orbitech.frameworks.bline.engine.BLineDriverInfLocalProxy.invokeD

river(BLineDriverInfLocalProxy.java:178)

at com.orbitech.frameworks.bline.user.BLineDriverMain.main(Compiled Code)

 

 

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

 

Can anyone solve this problem...plzz...??? This is urgent!

 

Regards,

Anu.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...