Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » scripted data set; bug in the BIRT plugins?
scripted data set; bug in the BIRT plugins? [message #871001] Thu, 10 May 2012 09:58 Go to next message
Tom Eugelink is currently offline Tom Eugelink
Messages: 806
Registered: July 2009
Senior Member
I'm experimenting with writing a scripted data set and I currently am generated rows. The next step is to actual fill those rows with data, and for that I need to access my own classes. I have figured out that I need to set the classpath in the "report design" preferences for this, so I have included all dependency jars of my project, but I naturally also need to include my own classes. The dialog does not allow to include a project, so I've included the classes directory.

Nevertheless, I'm still getting the infamous "is not a function, it is object.", which actually seems to mean "cannot find class". So after starting Eclipse in console mode (eclipsec) I finally found the root of my problem:

java.io.FileNotFoundException: C:\Documents%20and%20Settings\User\My%20Documents
\m2license\server\trunk\source\service\target\M2LicenseService\WEB-INF\classes (
The system cannot find the path specified)

It seems the path is added with URL escaping, but these are not unescaped. Spaces are killing MSWindows again. I assume this is a bug in the BIRT plugins?

Tom
Re: scripted data set; bug in the BIRT plugins? [message #871010 is a reply to message #871001] Thu, 10 May 2012 10:12 Go to previous messageGo to next message
Tom Eugelink is currently offline Tom Eugelink
Messages: 806
Registered: July 2009
Senior Member
Let me add some additional info, this seems to also be a problem for the jars files:

WARNING: can not load the class from file:/C:/Documents%2520and%2520Settings/Use
r/My%2520Documents/m2license/server/trunk/source/service/_lib/xml-resolver-1.2.j
ar
java.io.FileNotFoundException: C:\Documents%20and%20Settings\User\My%20Documents
\m2license\server\trunk\source\service\_lib\xml-resolver-1.2.jar (The system can
not find the path specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:214)
at java.util.zip.ZipFile.<init>(ZipFile.java:144)
at java.util.jar.JarFile.<init>(JarFile.java:152)
at java.util.jar.JarFile.<init>(JarFile.java:89)
at org.eclipse.birt.core.framework.URLClassLoader$JarLoader.<init>(URLCl
assLoader.java:414)
at org.eclipse.birt.core.framework.URLClassLoader.createLoader(URLClassL
oader.java:604)
at org.eclipse.birt.core.framework.URLClassLoader.<init>(URLClassLoader.
java:102)
at org.eclipse.birt.report.viewer.utilities.ReloadableClassLoader.<init>
(ReloadableClassLoader.java:39)
at org.eclipse.birt.report.viewer.utilities.WebViewer.startWebApp(WebVie
wer.java:751)
at org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.
java:994)
at org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.
java:988)
at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewEdit
or.display(ReportPreviewEditor.java:576)
at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewForm
Page.refresh(ReportPreviewFormPage.java:176)
at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewForm
Page.onBroughtToTop(ReportPreviewFormPage.java:109)
at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.pre
PageChanges(MultiPageReportEditor.java:921)
at org.eclipse.birt.report.designer.ui.editors.IDEMultiPageReportEditor.
prePageChanges(IDEMultiPageReportEditor.java:525)
at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.pag
eChange(MultiPageReportEditor.java:845)
at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEdi
torPart.java:290)
....


But weird enough, the classes directory is also read using ZipFile????

WARNING: can not load the class from file:/C:/Documents%2520and%2520Settings/Use
r/My%2520Documents/m2license/server/trunk/source/service/target/M2LicenseService
/WEB-INF/classes
java.io.FileNotFoundException: C:\Documents%20and%20Settings\User\My%20Documents
\m2license\server\trunk\source\service\target\M2LicenseService\WEB-INF\classes (
The system cannot find the path specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:214)
at java.util.zip.ZipFile.<init>(ZipFile.java:144)
at java.util.jar.JarFile.<init>(JarFile.java:152)
at java.util.jar.JarFile.<init>(JarFile.java:89)
at org.eclipse.birt.core.framework.URLClassLoader$JarLoader.<init>(URLCl
assLoader.java:414)
at org.eclipse.birt.core.framework.URLClassLoader.createLoader(URLClassL
oader.java:604)
at org.eclipse.birt.core.framework.URLClassLoader.<init>(URLClassLoader.
java:102)
at org.eclipse.birt.report.viewer.utilities.ReloadableClassLoader.<init>
(ReloadableClassLoader.java:39)
at org.eclipse.birt.report.viewer.utilities.WebViewer.startWebApp(WebVie
wer.java:751)
at org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.
java:994)
at org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.
java:988)
at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewEdit
or.display(ReportPreviewEditor.java:576)
at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewForm
Page.refresh(ReportPreviewFormPage.java:176)
at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewForm
Page.onBroughtToTop(ReportPreviewFormPage.java:109)
at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.pre
PageChanges(MultiPageReportEditor.java:921)
at org.eclipse.birt.report.designer.ui.editors.IDEMultiPageReportEditor.
prePageChanges(IDEMultiPageReportEditor.java:525)
at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.pag
eChange(MultiPageReportEditor.java:845)
at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEdi
torPart.java:290)
....
Re: scripted data set; bug in the BIRT plugins? [message #871073 is a reply to message #871010] Thu, 10 May 2012 13:18 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Tom

You should be able to include a project. To do this make sure you click
the enable project specific settings check box on the classpath preference.

Jason

On 5/10/2012 10:12 AM, tbee wrote:
> Let me add some additional info, this seems to also be a problem for the
> jars files:
>
> WARNING: can not load the class from
> file:/C:/Documents%2520and%2520Settings/Use
> r/My%2520Documents/m2license/server/trunk/source/service/_lib/xml-resolver-1.2.j
>
> ar
> java.io.FileNotFoundException:
> C:\Documents%20and%20Settings\User\My%20Documents
> \m2license\server\trunk\source\service\_lib\xml-resolver-1.2.jar (The
> system can
> not find the path specified)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:214)
> at java.util.zip.ZipFile.<init>(ZipFile.java:144)
> at java.util.jar.JarFile.<init>(JarFile.java:152)
> at java.util.jar.JarFile.<init>(JarFile.java:89)
> at org.eclipse.birt.core.framework.URLClassLoader$JarLoader.<init>(URLCl
> assLoader.java:414)
> at org.eclipse.birt.core.framework.URLClassLoader.createLoader(URLClassL
> oader.java:604)
> at org.eclipse.birt.core.framework.URLClassLoader.<init>(URLClassLoader.
> java:102)
> at org.eclipse.birt.report.viewer.utilities.ReloadableClassLoader.<init>
> (ReloadableClassLoader.java:39)
> at org.eclipse.birt.report.viewer.utilities.WebViewer.startWebApp(WebVie
> wer.java:751)
> at org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.
> java:994)
> at org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.
> java:988)
> at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewEdit
> or.display(ReportPreviewEditor.java:576)
> at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewForm
> Page.refresh(ReportPreviewFormPage.java:176)
> at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewForm
> Page.onBroughtToTop(ReportPreviewFormPage.java:109)
> at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.pre
> PageChanges(MultiPageReportEditor.java:921)
> at org.eclipse.birt.report.designer.ui.editors.IDEMultiPageReportEditor.
> prePageChanges(IDEMultiPageReportEditor.java:525)
> at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.pag
> eChange(MultiPageReportEditor.java:845)
> at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEdi
> torPart.java:290)
> ....
>
>
> But weird enough, the classes directory is also read using ZipFile????
>
> WARNING: can not load the class from
> file:/C:/Documents%2520and%2520Settings/Use
> r/My%2520Documents/m2license/server/trunk/source/service/target/M2LicenseService
>
> /WEB-INF/classes
> java.io.FileNotFoundException:
> C:\Documents%20and%20Settings\User\My%20Documents
> \m2license\server\trunk\source\service\target\M2LicenseService\WEB-INF\classes
> (
> The system cannot find the path specified)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:214)
> at java.util.zip.ZipFile.<init>(ZipFile.java:144)
> at java.util.jar.JarFile.<init>(JarFile.java:152)
> at java.util.jar.JarFile.<init>(JarFile.java:89)
> at org.eclipse.birt.core.framework.URLClassLoader$JarLoader.<init>(URLCl
> assLoader.java:414)
> at org.eclipse.birt.core.framework.URLClassLoader.createLoader(URLClassL
> oader.java:604)
> at org.eclipse.birt.core.framework.URLClassLoader.<init>(URLClassLoader.
> java:102)
> at org.eclipse.birt.report.viewer.utilities.ReloadableClassLoader.<init>
> (ReloadableClassLoader.java:39)
> at org.eclipse.birt.report.viewer.utilities.WebViewer.startWebApp(WebVie
> wer.java:751)
> at org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.
> java:994)
> at org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.
> java:988)
> at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewEdit
> or.display(ReportPreviewEditor.java:576)
> at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewForm
> Page.refresh(ReportPreviewFormPage.java:176)
> at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewForm
> Page.onBroughtToTop(ReportPreviewFormPage.java:109)
> at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.pre
> PageChanges(MultiPageReportEditor.java:921)
> at org.eclipse.birt.report.designer.ui.editors.IDEMultiPageReportEditor.
> prePageChanges(IDEMultiPageReportEditor.java:525)
> at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.pag
> eChange(MultiPageReportEditor.java:845)
> at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEdi
> torPart.java:290)
> ....


Jason Weathersby

BIRT Exchange
Re: scripted data set; bug in the BIRT plugins? [message #871074 is a reply to message #871073] Thu, 10 May 2012 13:19 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

See
http://birtworld.blogspot.com/2009/12/birt-designer-classpath-changes.html

Jason


On 5/10/2012 1:18 PM, Jason Weathersby wrote:
>
> Tom
>
> You should be able to include a project. To do this make sure you click
> the enable project specific settings check box on the classpath preference.
>
> Jason
>
> On 5/10/2012 10:12 AM, tbee wrote:
>> Let me add some additional info, this seems to also be a problem for the
>> jars files:
>>
>> WARNING: can not load the class from
>> file:/C:/Documents%2520and%2520Settings/Use
>> r/My%2520Documents/m2license/server/trunk/source/service/_lib/xml-resolver-1.2.j
>>
>>
>> ar
>> java.io.FileNotFoundException:
>> C:\Documents%20and%20Settings\User\My%20Documents
>> \m2license\server\trunk\source\service\_lib\xml-resolver-1.2.jar (The
>> system can
>> not find the path specified)
>> at java.util.zip.ZipFile.open(Native Method)
>> at java.util.zip.ZipFile.<init>(ZipFile.java:214)
>> at java.util.zip.ZipFile.<init>(ZipFile.java:144)
>> at java.util.jar.JarFile.<init>(JarFile.java:152)
>> at java.util.jar.JarFile.<init>(JarFile.java:89)
>> at org.eclipse.birt.core.framework.URLClassLoader$JarLoader.<init>(URLCl
>> assLoader.java:414)
>> at org.eclipse.birt.core.framework.URLClassLoader.createLoader(URLClassL
>> oader.java:604)
>> at org.eclipse.birt.core.framework.URLClassLoader.<init>(URLClassLoader.
>> java:102)
>> at org.eclipse.birt.report.viewer.utilities.ReloadableClassLoader.<init>
>> (ReloadableClassLoader.java:39)
>> at org.eclipse.birt.report.viewer.utilities.WebViewer.startWebApp(WebVie
>> wer.java:751)
>> at org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.
>> java:994)
>> at org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.
>> java:988)
>> at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewEdit
>> or.display(ReportPreviewEditor.java:576)
>> at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewForm
>> Page.refresh(ReportPreviewFormPage.java:176)
>> at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewForm
>> Page.onBroughtToTop(ReportPreviewFormPage.java:109)
>> at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.pre
>> PageChanges(MultiPageReportEditor.java:921)
>> at org.eclipse.birt.report.designer.ui.editors.IDEMultiPageReportEditor.
>> prePageChanges(IDEMultiPageReportEditor.java:525)
>> at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.pag
>> eChange(MultiPageReportEditor.java:845)
>> at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEdi
>> torPart.java:290)
>> ....
>>
>>
>> But weird enough, the classes directory is also read using ZipFile????
>>
>> WARNING: can not load the class from
>> file:/C:/Documents%2520and%2520Settings/Use
>> r/My%2520Documents/m2license/server/trunk/source/service/target/M2LicenseService
>>
>>
>> /WEB-INF/classes
>> java.io.FileNotFoundException:
>> C:\Documents%20and%20Settings\User\My%20Documents
>> \m2license\server\trunk\source\service\target\M2LicenseService\WEB-INF\classes
>>
>> (
>> The system cannot find the path specified)
>> at java.util.zip.ZipFile.open(Native Method)
>> at java.util.zip.ZipFile.<init>(ZipFile.java:214)
>> at java.util.zip.ZipFile.<init>(ZipFile.java:144)
>> at java.util.jar.JarFile.<init>(JarFile.java:152)
>> at java.util.jar.JarFile.<init>(JarFile.java:89)
>> at org.eclipse.birt.core.framework.URLClassLoader$JarLoader.<init>(URLCl
>> assLoader.java:414)
>> at org.eclipse.birt.core.framework.URLClassLoader.createLoader(URLClassL
>> oader.java:604)
>> at org.eclipse.birt.core.framework.URLClassLoader.<init>(URLClassLoader.
>> java:102)
>> at org.eclipse.birt.report.viewer.utilities.ReloadableClassLoader.<init>
>> (ReloadableClassLoader.java:39)
>> at org.eclipse.birt.report.viewer.utilities.WebViewer.startWebApp(WebVie
>> wer.java:751)
>> at org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.
>> java:994)
>> at org.eclipse.birt.report.viewer.utilities.WebViewer.display(WebViewer.
>> java:988)
>> at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewEdit
>> or.display(ReportPreviewEditor.java:576)
>> at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewForm
>> Page.refresh(ReportPreviewFormPage.java:176)
>> at org.eclipse.birt.report.designer.ui.preview.editors.ReportPreviewForm
>> Page.onBroughtToTop(ReportPreviewFormPage.java:109)
>> at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.pre
>> PageChanges(MultiPageReportEditor.java:921)
>> at org.eclipse.birt.report.designer.ui.editors.IDEMultiPageReportEditor.
>> prePageChanges(IDEMultiPageReportEditor.java:525)
>> at org.eclipse.birt.report.designer.ui.editors.MultiPageReportEditor.pag
>> eChange(MultiPageReportEditor.java:845)
>> at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEdi
>> torPart.java:290)
>> ....
>


Jason Weathersby

BIRT Exchange
Re: scripted data set; bug in the BIRT plugins? [message #871174 is a reply to message #871073] Fri, 11 May 2012 05:15 Go to previous messageGo to next message
Tom Eugelink is currently offline Tom Eugelink
Messages: 806
Registered: July 2009
Senior Member
> You should be able to include a project. To do this make sure you click the enable project specific settings check box on the classpath preference.


Apparently these is some kind of project-type checking. I've got a TestReports project which is listed in the "enable project specific settings" (it was created as part of the tutorial), but my regular Java project is not. My Java project started out as a REST project, then wicket was added and now Birt.

Tom
Re: scripted data set; bug in the BIRT plugins? [message #871261 is a reply to message #871174] Fri, 11 May 2012 12:41 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

So it is not giving you the option to select the project that contains
BIRT to set a specific project classpath?

Jason

On 5/11/2012 5:15 AM, tbee wrote:
>> You should be able to include a project. To do this make sure you
>> click the enable project specific settings check box on the classpath
>> preference.
>
>
> Apparently these is some kind of project-type checking. I've got a
> TestReports project which is listed in the "enable project specific
> settings" (it was created as part of the tutorial), but my regular Java
> project is not. My Java project started out as a REST project, then
> wicket was added and now Birt.
>
> Tom


Jason Weathersby

BIRT Exchange
Re: scripted data set; bug in the BIRT plugins? [message #871341 is a reply to message #871261] Sat, 12 May 2012 04:10 Go to previous messageGo to next message
Tom Eugelink is currently offline Tom Eugelink
Messages: 806
Registered: July 2009
Senior Member
Correct. It seems to be only showing projects that were started as "report project".

Tom


On 2012-05-11 18:41, Jason Weathersby wrote:
> So it is not giving you the option to select the project that contains BIRT to set a specific project classpath?
>
> Jason
>
> On 5/11/2012 5:15 AM, tbee wrote:
>>> You should be able to include a project. To do this make sure you
>>> click the enable project specific settings check box on the classpath
>>> preference.
>>
>>
>> Apparently these is some kind of project-type checking. I've got a
>> TestReports project which is listed in the "enable project specific
>> settings" (it was created as part of the tutorial), but my regular Java
>> project is not. My Java project started out as a REST project, then
>> wicket was added and now Birt.
>>
>> Tom
>
Re: scripted data set; bug in the BIRT plugins? [message #871748 is a reply to message #871341] Mon, 14 May 2012 15:32 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Tom,

None of the other add options are viable?

Jason

On 5/12/2012 4:13 AM, tbee wrote:
> Correct. It seems to be only showing projects that were started as
> "report project".
>
> Tom
>
>
> On 2012-05-11 18:41, Jason Weathersby wrote:
>> So it is not giving you the option to select the project that contains
>> BIRT to set a specific project classpath?
>>
>> Jason
>>
>> On 5/11/2012 5:15 AM, tbee wrote:
>>>> You should be able to include a project. To do this make sure you
>>>> click the enable project specific settings check box on the classpath
>>>> preference.
>>>
>>>
>>> Apparently these is some kind of project-type checking. I've got a
>>> TestReports project which is listed in the "enable project specific
>>> settings" (it was created as part of the tutorial), but my regular Java
>>> project is not. My Java project started out as a REST project, then
>>> wicket was added and now Birt.
>>>
>>> Tom
>>
>


Jason Weathersby

BIRT Exchange
Re: scripted data set; bug in the BIRT plugins? [message #871773 is a reply to message #871748] Mon, 14 May 2012 16:46 Go to previous messageGo to next message
Tom Eugelink is currently offline Tom Eugelink
Messages: 806
Registered: July 2009
Senior Member
> None of the other add options are viable?

The add-jars throws FileNotFoundExceptions because of the spaces being replaced with %20 (as shown in the first post). The add external folder does the same. The only remaining option AFAIK would have been to add the project with "include dependencies".

Tom
Re: scripted data set; bug in the BIRT plugins? [message #871893 is a reply to message #871773] Tue, 15 May 2012 00:57 Go to previous message
Tom Eugelink is currently offline Tom Eugelink
Messages: 806
Registered: July 2009
Senior Member
FYI: I did find a working setup though, because this only affects the preview. I'm using JRebel to modify a scripted data set in Java (fetching data from a mix of Cassandra and LDAP), simply save the report with the layout changes, and then refresh it in a browser.
Previous Topic:font-face in Birt
Next Topic:Manually control paging in BIRT
Goto Forum:
  


Current Time: Fri Apr 18 19:23:33 EDT 2014

Powered by FUDForum. Page generated in 0.01848 seconds