Jump to content
Changes to the Jaspersoft community edition download ×

Error open Document


2004 IR Help

Recommended Posts

By: Dejan - dnikolov

Error open Document

2002-10-26 04:40

Hi when I start first time iReport0.4 I get error:

 

null java.lang.NullPointerException

at com/ms/wfc/ui/Cursor.<init>

at com/businesslogic/ui/ireport/ReportForm.<init>

at com/businesslogic/ireport/MainForm.openDocument

at com/businesslogic/ireport/MainForm.<init>

at com/businesslogic/ireport/MainForm.main

and iReport window is opened

but I can?t open document or start new empty document

 

 

 

 

 

By: Giulio Toffoli - gt78

RE: Error open Document

2002-10-26 06:57

This bug has been already notified to me from a indian softwarehause that has not more answered me.

 

Check that there is in com/business/ui/ directorythis files:

cursorminus.cur

and

cursorplus.cur

 

I have missed to put them ?

 

Giulio

 

 

 

 

By: Giulio Toffoli - gt78

RE: Error open Document

2002-10-26 07:01

Have you tried to run iReport coping only the executable file in a new location without the com directory?

 

Giulio

 

 

 

 

By: Dejan - dnikolov

RE: Error open Document

2002-10-27 23:08

This way not provides result.

In new version i have the same problem

 

 

 

 

By: Giulio Toffoli - gt78

RE: Error open Document

2002-10-28 00:30

It's very strange, I use iReport 0.0.5 on al lot of workstations without problems. Try to put iReport 0.0.5 unzipped dir over a previous working version (i.e. 0.0.2 or 0.0.3).

I have mistaked the previous post. The directory in which copy cur files is

combusinesslogicireportui .

 

What OS are you using? MS JVM version?

Giulio

 

 

 

 

 

 

 

By: Dejan - dnikolov

RE: Error open Document

2002-10-28 02:08

OS Win2000

jdk1.4

Whos system variable use iReport

 

 

 

 

By: Giulio Toffoli - gt78

RE: Error open Document

2002-10-28 02:31

mh.. for find cursor file iReport don't use any system variable. The jdk1.4 is not important for run iReport (jdk is used only for compiling reports).

Now I take a look to the cursor loading code...

 

Giulio

 

 

 

 

 

By: Dejan - dnikolov

RE: Error open Document

2002-10-28 02:55

I have working with iReport 0.4.

When I delete the first row from classpath MS JVM

I don?t remember some like systemroot.

I have the problem to open new or open existing xml file.

I delete all iReport directory but when I unzip the

classpath MS JVM and classpath(env variable)

and java home is set to previews setting . From where

is readied the values. And earlier version have the

same problem.

I try to other computer but it work properly.

Any idea??

 

 

 

 

 

By: Giulio Toffoli - gt78

RE: Error open Document

2002-10-28 03:04

Ok!!! Yes the problem was it!!! JVM Classpath!!!

Add this directory to your MS JVM classpath:

%systemroot%javaclasses

 

If you can not make this, open regedit and set the value for key HKEY_LOCAL_MACHINESOFTWAREMicrosoftJava VMClasspath to %systemroot%javaclasses;.

 

Giulio

 

 

 

 

 

By: Dejan - dnikolov

RE: Error open Document

2002-10-28 03:28

I set the classpath in regirty.

When i start iReport in MS JVM

i view this but i can't open xml file

 

 

 

 

By: Dejan - dnikolov

RE: Error open Document

2002-10-28 03:33

I set the classpath in regirty.

When i start iReport in MS JVM

i view this but i can't open xml file

 

 

 

 

By: Dejan - dnikolov

RE: Error open Document

2002-10-28 03:51

I set the classpath in regirty.

When i start iReport in MS JVM

i view this but i can't open xml file

 

 

 

 

By: Giulio Toffoli - gt78

RE: Error open Document

2002-10-28 03:53

What is the error? Is the same?

 

 

 

 

 

By: Giulio Toffoli - gt78

RE: Error open Document

2002-10-28 04:00

Are you sure that your MS classpath (written in registry, and the only one that interests to us) is the same of that you have on other machines?

 

Giulio

 

 

 

 

 

By: Dejan - dnikolov

RE: Error open Document

2002-10-28 04:01

Yes. Error is the same

 

 

 

 

By: Giulio Toffoli - gt78

RE: Error open Document

2002-10-28 04:20

If you see first a void message box, then the message box with the nullPointer Exception, then the report properties window end finally the exception window of dead, Ii have correctly reproduced yout problem and the solution is....

 

you must add to %systemroot%javaclasses the local dir path ( ';.' ). The key in registy must be like this:"%systemroot%javaclasses;C:ProgrammiInfosysWebgediltomcat_envWEB-INFclasses;.;"

 

Giulio

 

 

 

 

By: Dejan - dnikolov

RE: Error open Document

2002-10-28 04:31

Yes. It is.

Thank's

 

 

 

 

By: Giulio Toffoli - gt78

RE: Error open Document

2002-10-28 04:48

All resolved?

Giulio

 

 

 

 

By: Dejan - dnikolov

RE: Error open Document

2002-10-28 05:17

Yes. But i have other problem.

When i compile i get message

abnormal termination.

in classpath MS JVM

i have jar file from jasperreports0.4.2

path to tools.jar from java1.4

and to database driver to oracle.

java home to java1.4

and classpath(env variable):

 

e:iReport0.5iReport0.5bin

.

e:iReport0.5iReport0.5bin

.

is repeat more times

 

 

 

 

 

 

By: Giulio Toffoli - gt78

RE: Error open Document

2002-10-28 05:47

The abnormal termination happen when the execution of java.exe IReportCompiler <...options...> fails.

Th causes of fails can be many, but nearly always it is a problem of classpath.

 

Solution:

Try to use IReportCompiler outside iReport in this way from prompt:

> set path=%path%;c:myjdkbin

> set classpath=%classpath%;.;all-jasper-jars-in-jasper-lib-separated-by;

> cd c:pathtoiReportbin

>java iReportCompiler

 

Try to compile a simple file.xml

 

If all works fine, you must use this classpath for iReport so.

In this case only the java "sun" classpath is important.

e:ireport.... entries in classpath are repeated because there is a bug in iReport that append every start of program the local and program directory...

 

 

Giulio

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...