Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Exception generated when working with a Joint Data Set with Scripted Data Sources and Java Classes(Possible repeat of Bug 206054? (from 2007))
Exception generated when working with a Joint Data Set with Scripted Data Sources and Java Classes [message #986532] Tue, 20 November 2012 18:55 Go to next message
Chris Swingler is currently offline Chris Swingler
Messages: 3
Registered: November 2012
Junior Member
I've created a Scripted Data Source using an external Java class that works fine on its own, but does not when asked to be part of a Joint Data Set.

I'm skipping over the steps to reproduce, as it exactly follows this ancient BIRT bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=206054

The only peculiar thing that takes place is this. From the Edit Data Set window, Previewing works fine. If you click the list of Output Columns, it also appears fine. After clicking OK, though, you get "Script engine error: Type Error [JavaPackage <package name>] is not a function it is object.

Any ideas?

Thanks!
Re: Exception generated when working with a Joint Data Set with Scripted Data Sources and Java Class [message #986566 is a reply to message #986532] Tue, 20 November 2012 23:59 Go to previous messageGo to next message
Michael Williams is currently offline Michael Williams
Messages: 1639
Registered: July 2009
Senior Member

If you drag the joint dataSet into your design window, to create a table, and preview, does it work? Can you attach your report?

Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Re: Exception generated when working with a Joint Data Set with Scripted Data Sources and Java Class [message #986568 is a reply to message #986566] Wed, 21 November 2012 00:04 Go to previous messageGo to next message
Chris Swingler is currently offline Chris Swingler
Messages: 3
Registered: November 2012
Junior Member
Dragging it over does not work, and the little triangle to bring down the members of the data set doesn't work either.

Strangely, while troubleshooting this, I grabbed the example scripted data source from birt-exchange.org and tried it - that worked fine. I'll have to see if it's possible for me to post my report tomorrow when I get back into the office.

Re: Exception generated when working with a Joint Data Set with Scripted Data Sources and Java Class [message #986844 is a reply to message #986568] Wed, 21 November 2012 22:07 Go to previous messageGo to next message
Chris Swingler is currently offline Chris Swingler
Messages: 3
Registered: November 2012
Junior Member
Okay, after a bit more digging, I found that if I moved everything in the Data Source Open script to the Data Set Open, it works fine. If that's by design, i guess, let me know?

I'll have to see if there's more information I can dig up here next week. I'll follow up, and if prudent, file a bug report!

Thanks for your interest, and help, if I eventually do something in need of it Smile
Re: Exception generated when working with a Joint Data Set with Scripted Data Sources and Java Class [message #987522 is a reply to message #986844] Mon, 26 November 2012 23:19 Go to previous message
Michael Williams is currently offline Michael Williams
Messages: 1639
Registered: July 2009
Senior Member

Yeah, I typically use the dataSet's Open script for connecting to data. Glad it's working now!

Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Previous Topic:Your Feedback Is Needed To Plan the Next Eclipse BIRT Release
Next Topic:How Do I Hide certain detail and column areas in a crosstab?
Goto Forum:
  


Current Time: Sat Oct 25 03:33:45 GMT 2014

Powered by FUDForum. Page generated in 0.05958 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software