Skip to main content



      Home
Home » Archived » BIRT » BIRT 2.0.1 --> BIRT 2.1
BIRT 2.0.1 --> BIRT 2.1 [message #203510] Wed, 29 November 2006 09:40 Go to next message
Eclipse UserFriend
Originally posted by: neptune3122.yahoo.fr

Hello,

I tried to update my version of BIRT (2.0.1 to 2.1) and I had two
compilation errors in my code :

The first error : The class
" org.eclipse.birt.report.engine.script.internal.ScriptExecuto r " does not
exist any more. I used it for "ScriptExecutor.WEBAPP_CLASSPATH_KEY"

The second error : The class
"org.eclipse.birt.report.engine.executor.ExecutionContext" does not exist
any more. I used it for "myClassLoader =
ExecutionContext.getCustomClassLoader(ScriptExecutor.WEBAPP_ CLASSPATH_KEY,
(Map)null);"

So, what can I use to replace this code please?

Thank you very much

Nico
Re: BIRT 2.0.1 --> BIRT 2.1 [message #203542 is a reply to message #203510] Wed, 29 November 2006 11:09 Go to previous messageGo to next message
Eclipse UserFriend
WEBAPP_CLASSPATH_KEY is located in the org.eclipse.birt.report.engine.api
package.
Specifically EngineConstants.WEBAPP_CLASSPATH_KEY.
I am not certain about the second error.

Can you post the source code?

Jason

"Nico" <neptune3122@yahoo.fr> wrote in message
news:988ec86eaa9d4e8fbd3d0b40f80a5ca4$1@www.eclipse.org...
> Hello,
>
> I tried to update my version of BIRT (2.0.1 to 2.1) and I had two
> compilation errors in my code :
>
> The first error : The class
> " org.eclipse.birt.report.engine.script.internal.ScriptExecuto r " does not
> exist any more. I used it for "ScriptExecutor.WEBAPP_CLASSPATH_KEY"
>
> The second error : The class
> "org.eclipse.birt.report.engine.executor.ExecutionContext" does not exist
> any more. I used it for "myClassLoader =
> ExecutionContext.getCustomClassLoader(ScriptExecutor.WEBAPP_ CLASSPATH_KEY,
> (Map)null);"
>
> So, what can I use to replace this code please?
>
> Thank you very much
>
> Nico
>
Re: BIRT 2.0.1 --> BIRT 2.1 [message #203566 is a reply to message #203542] Wed, 29 November 2006 11:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: neptune3122.yahoo.fr

Thank you for the first error, it is ok now.

For the second, I paste my code :

--------
public IRapportManager getReportManager(String enginePath)
{
IRapportManager rapportManager = null;
try
{
if(System.getProperty(EngineConstants.WEBAPP_CLASSPATH_KEY) == null)
{
System.setProperty(EngineConstants.WEBAPP_CLASSPATH_KEY, enginePath +
"/birtScriptClasses");

}
ClassLoader myClassLoader = null;
try
{
myClassLoader =
ExecutionContext.getCustomClassLoader(EngineConstants.WEBAPP _CLASSPATH_KEY,
(Map)null);
}
catch(Exception ex1)
{
}


if(myClassLoader==null) myClassLoader =
BirtEngineService.class.getClassLoader();

Class myProviderClass =
myClassLoader.loadClass("novacom.birt.script.utils.RapportManager ");

if(myProviderClass != null)
{
rapportManager = (IRapportManager)myProviderClass.newInstance();
}
}
catch(Exception ex)
{
ex.printStackTrace();
Logger.getInstance().printLog("Impossible de charger la classe
RapportManager");
}

return rapportManager;

}
--------


Nico
Re: BIRT 2.0.1 --> BIRT 2.1 [message #203853 is a reply to message #203566] Wed, 29 November 2006 20:28 Go to previous messageGo to next message
Eclipse UserFriend
I am not certain what this is replaced with.
If you are just trying to add to the classpath, the following are
automatically searched.
EngineConstants.WEBAPP_CLASSPATH_KEY,

EngineConstants.PROJECT_CLASSPATH_KEY,

EngineConstants.WORKSPACE_CLASSPATH_KEY

Jason

"Nico" <neptune3122@yahoo.fr> wrote in message
news:fa15da860e198a9b44b4ac14111a7da6$1@www.eclipse.org...
> Thank you for the first error, it is ok now.
>
> For the second, I paste my code :
>
> --------
> public IRapportManager getReportManager(String enginePath)
> {
> IRapportManager rapportManager = null;
> try
> {
> if(System.getProperty(EngineConstants.WEBAPP_CLASSPATH_KEY) == null)
> {
> System.setProperty(EngineConstants.WEBAPP_CLASSPATH_KEY, enginePath +
> "/birtScriptClasses");
>
> }
> ClassLoader myClassLoader = null;
> try
> {
> myClassLoader =
> ExecutionContext.getCustomClassLoader(EngineConstants.WEBAPP _CLASSPATH_KEY,
> (Map)null);
> }
> catch(Exception ex1)
> {
> }
>
> if(myClassLoader==null) myClassLoader =
> BirtEngineService.class.getClassLoader();
> Class myProviderClass =
> myClassLoader.loadClass("novacom.birt.script.utils.RapportManager ");
>
> if(myProviderClass != null)
> {
> rapportManager = (IRapportManager)myProviderClass.newInstance();
> }
> }
> catch(Exception ex)
> {
> ex.printStackTrace();
> Logger.getInstance().printLog("Impossible de charger la classe
> RapportManager");
> }
> return rapportManager;
>
> }
> --------
>
>
> Nico
>
>
>
Re: BIRT 2.0.1 --> BIRT 2.1 [message #203950 is a reply to message #203853] Thu, 30 November 2006 04:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: neptune3122.yahoo.fr

In fact, I tried to load a class.

So, I put comment for that.

But, now, I have a third error:

With BIRT 2.0.1, I created ReportEngine like that:

-------
EngineConfig config = new EngineConfig();
config.setEngineHome(pathEngine);
Level level = Level.OFF;
config.setLogConfig(pathLog, level);
ReportEngine engine = new ReportEngine(config);
return engine;
-------

With BIRT 2.1, I read that:

-------
IReportEngine engine=null;
EngineConfig config = null;
try{
config = new EngineConfig( );
config.setEngineHome(pathEngine);
config.setLogConfig(pathLog,Level.OFF);

Platform.startup(config);
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject(
IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
engine = factory.createReportEngine( config );
engine.changeLogLevel(Level.WARNING);

}catch( Exception ex){
ex.printStackTrace();
}
-------

Then, I have a big problem :

Platform.createFactoryObject(IReportEngineFactory.EXTENSION_ REPORT_ENGINE_FACTORY);

returns NULL :(

So, if I have a NULL factory, I can't create ReportEngine :(
Re: BIRT 2.0.1 --> BIRT 2.1 [message #204078 is a reply to message #203950] Thu, 30 November 2006 10:45 Go to previous messageGo to next message
Eclipse UserFriend
This generally means that the BIRT_HOME is not set correctly.
config = new EngineConfig( );
config.setEngineHome(pathEngine);
Check pathEngine.

Jason

"Nico" <neptune3122@yahoo.fr> wrote in message
news:90cf797d2a0f8d1ddf24865a2a5f3938$1@www.eclipse.org...
> In fact, I tried to load a class.
>
> So, I put comment for that.
>
> But, now, I have a third error:
>
> With BIRT 2.0.1, I created ReportEngine like that:
> -------
> EngineConfig config = new EngineConfig();
> config.setEngineHome(pathEngine); Level level = Level.OFF;
> config.setLogConfig(pathLog, level);
> ReportEngine engine = new ReportEngine(config);
> return engine;
> -------
>
> With BIRT 2.1, I read that:
>
> -------
> IReportEngine engine=null;
> EngineConfig config = null;
> try{
> config = new EngineConfig( );
> config.setEngineHome(pathEngine);
> config.setLogConfig(pathLog,Level.OFF);
> Platform.startup(config);
> IReportEngineFactory factory = (IReportEngineFactory) Platform
> .createFactoryObject(
> IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
> engine = factory.createReportEngine( config );
> engine.changeLogLevel(Level.WARNING);
> }catch( Exception ex){
> ex.printStackTrace();
> }
> -------
>
> Then, I have a big problem :
> Platform.createFactoryObject(IReportEngineFactory.EXTENSION_ REPORT_ENGINE_FACTORY);
>
> returns NULL :(
>
> So, if I have a NULL factory, I can't create ReportEngine :(
>
>
>
Re: BIRT 2.0.1 --> BIRT 2.1 [message #204154 is a reply to message #204078] Thu, 30 November 2006 12:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: neptune3122.yahoo.fr

Yes, and I copy/paste the Report Engine lib in my lib directory J2EE
Application.

So, my Engine path is : myApplication/WEB-INF/lib

And I copied in myApplication/WEB-INF/lib:
- birt-runtime-2_1_1\ReportEngine\lib
- birt-runtime-2_1_1\ReportEngine\plugins

Must I copy too "birt-runtime-2_1_1\ReportEngine\configuration",
birt-runtime-2_1_1\ReportEngine\genReport.bat" and
"birt-runtime-2_1_1\ReportEngine\genReport.sh" ?

What I need?

Thanks
Re: BIRT 2.0.1 --> BIRT 2.1 [message #204167 is a reply to message #204154] Thu, 30 November 2006 13:17 Go to previous messageGo to next message
Eclipse UserFriend
If you are deploying this as a Servlet follow this example, it has
instructions for setting up the platform.
You will notice that we sethome to "". By default the
PlatformServletContext looks for a web-inf/platform directory.

http://wiki.eclipse.org/index.php/Servlet_Example

Jason

"Nico" <neptune3122@yahoo.fr> wrote in message
news:c2b8eded9642937d86e672340a88683e$1@www.eclipse.org...
> Yes, and I copy/paste the Report Engine lib in my lib directory J2EE
> Application.
>
> So, my Engine path is : myApplication/WEB-INF/lib
>
> And I copied in myApplication/WEB-INF/lib:
> - birt-runtime-2_1_1\ReportEngine\lib
> - birt-runtime-2_1_1\ReportEngine\plugins
>
> Must I copy too "birt-runtime-2_1_1\ReportEngine\configuration",
> birt-runtime-2_1_1\ReportEngine\genReport.bat" and
> "birt-runtime-2_1_1\ReportEngine\genReport.sh" ?
>
> What I need?
>
> Thanks
>
Re: BIRT 2.0.1 --> BIRT 2.1 [message #204300 is a reply to message #204167] Fri, 01 December 2006 04:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: neptune3122.yahoo.fr

Well, I wrote the path in the code "C:/birt-runtime-2_1_1/ReportEngine"

You can see my code below

And my factory (IReportEngineFactory) is always NULL :(

--------------------------------
IReportEngine engine = null;
try {
EngineConfig config = new EngineConfig( );
config.setEngineHome("C:/birt-runtime-2_1_1/ReportEngine");
config.setLogConfig(cheminLogs, Level.OFF);

Platform.startup(config);
IReportEngineFactory factory = (IReportEngineFactory)
Platform.createFactoryObject(IReportEngineFactory.EXTENSION_ REPORT_ENGINE_FACTORY);
engine = factory.createReportEngine( config );
engine.changeLogLevel(Level.WARNING);

}catch( Exception ex){
ex.printStackTrace();
}
--------------------------------
The error [message #204316 is a reply to message #204300] Fri, 01 December 2006 04:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: neptune3122.yahoo.fr

!SESSION 2006-12-01 09:18:20.923
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Command-line arguments: -clean

!ENTRY org.eclipse.osgi 4 0 2006-12-01 09:18:20.938
!MESSAGE Bundle org.junit not found.

!ENTRY org.eclipse.birt.core 4 0 2006-12-01 09:18:24.141
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: The activator
org.eclipse.birt.core.internal.plugin.CorePlugin for bundle
org.eclipse.birt.core is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:329)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1037)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:573)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:495)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:275)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:455)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:189)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:291)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Plugin
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:123)
at
org.apache.catalina.loader.WebappClassLoader.findClassIntern al(WebappClassLoader.java:1649)
at
org.apache.catalina.loader.WebappClassLoader.findClass(Webap pClassLoader.java:931)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1373)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:123)
at
org.apache.catalina.loader.WebappClassLoader.findClassIntern al(WebappClassLoader.java:1649)
at
org.apache.catalina.loader.WebappClassLoader.findClass(Webap pClassLoader.java:931)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1373)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:368)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:134)
... 10 more
Root exception:
java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Plugin
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:123)
at
org.apache.catalina.loader.WebappClassLoader.findClassIntern al(WebappClassLoader.java:1649)
at
org.apache.catalina.loader.WebappClassLoader.findClass(Webap pClassLoader.java:931)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1373)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:123)
at
org.apache.catalina.loader.WebappClassLoader.findClassIntern al(WebappClassLoader.java:1649)
at
org.apache.catalina.loader.WebappClassLoader.findClass(Webap pClassLoader.java:931)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1373)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:368)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:134)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:329)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1037)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:573)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:495)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:275)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:455)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:189)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:291)

!ENTRY org.eclipse.osgi 4 0 2006-12-01 09:18:25.391
!MESSAGE Bundle
initial@reference :file:plugins/org.eclipse.birt.core_2.1.1.v20060926-0959.jar /
[11] is not active.
Re: The error [message #204409 is a reply to message #204316] Fri, 01 December 2006 12:16 Go to previous messageGo to next message
Eclipse UserFriend
The class it is complaining about is
in the org.eclipse.core.runtime_3.2.0.v20060601b.jar file.
Did you add the ReportEngine/lib files to your classpath?

Are you creating a web app or a Java app.

If you are creating a web app did you try to get this example working?
http://wiki.eclipse.org/index.php/Servlet_Example


Jason


"Nico" <neptune3122@yahoo.fr> wrote in message
news:0d0b8712f02dc666e7a096c6038c2929$1@www.eclipse.org...
> !SESSION 2006-12-01
> 09:18:20.923 -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.4.2_01
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
> Command-line arguments: -clean
>
> !ENTRY org.eclipse.osgi 4 0 2006-12-01 09:18:20.938
> !MESSAGE Bundle org.junit not found.
>
> !ENTRY org.eclipse.birt.core 4 0 2006-12-01 09:18:24.141
> !MESSAGE FrameworkEvent.ERROR
> !STACK 0
> org.osgi.framework.BundleException: The activator
> org.eclipse.birt.core.internal.plugin.CorePlugin for bundle
> org.eclipse.birt.core is invalid
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:329)
> at
> org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1037)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:573)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:495)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:275)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:455)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:189)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:291)
> Caused by: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Plugin
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:123)
> at
> org.apache.catalina.loader.WebappClassLoader.findClassIntern al(WebappClassLoader.java:1649)
> at
> org.apache.catalina.loader.WebappClassLoader.findClass(Webap pClassLoader.java:931)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1373)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1252)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:123)
> at
> org.apache.catalina.loader.WebappClassLoader.findClassIntern al(WebappClassLoader.java:1649)
> at
> org.apache.catalina.loader.WebappClassLoader.findClass(Webap pClassLoader.java:931)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1373)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:368)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:134)
> ... 10 more
> Root exception:
> java.lang.NoClassDefFoundError: org/eclipse/core/runtime/Plugin
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:123)
> at
> org.apache.catalina.loader.WebappClassLoader.findClassIntern al(WebappClassLoader.java:1649)
> at
> org.apache.catalina.loader.WebappClassLoader.findClass(Webap pClassLoader.java:931)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1373)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1252)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:123)
> at
> org.apache.catalina.loader.WebappClassLoader.findClassIntern al(WebappClassLoader.java:1649)
> at
> org.apache.catalina.loader.WebappClassLoader.findClass(Webap pClassLoader.java:931)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1373)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:368)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:276)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:134)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:966)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:317)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:329)
> at
> org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1037)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:573)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:495)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:275)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:455)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:189)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:291)
>
> !ENTRY org.eclipse.osgi 4 0 2006-12-01 09:18:25.391
> !MESSAGE Bundle
> initial@reference :file:plugins/org.eclipse.birt.core_2.1.1.v20060926-0959.jar /
> [11] is not active.
>
Re: The error [message #205583 is a reply to message #204409] Fri, 08 December 2006 06:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: neptune3122.yahoo.fr

Ok, thank you very much, I don't use servlet but I generate 2.1.1 Reports
now :)

Nevertheless, I have a problem again:

I can't delete rptdocument. After engine.shutdown() and
Platform.shutdown(), my Java application can't delete the rptdocument
file. I must shutdown Tomcat to be able to delete the rptdocument file,
why?
It is very important for me to delete this file.

Thanks

Nico
Re: The error [message #205631 is a reply to message #205583] Fri, 08 December 2006 11:07 Go to previous messageGo to next message
Eclipse UserFriend
Make sure you do a task.close() which should close the rptdocument.

Jason

"Nico" <neptune3122@yahoo.fr> wrote in message
news:1f373927cc6da7a6a3e18ea0e96c8f37$1@www.eclipse.org...
> Ok, thank you very much, I don't use servlet but I generate 2.1.1 Reports
> now :)
>
> Nevertheless, I have a problem again:
>
> I can't delete rptdocument. After engine.shutdown() and
> Platform.shutdown(), my Java application can't delete the rptdocument
> file. I must shutdown Tomcat to be able to delete the rptdocument file,
> why? It is very important for me to delete this file.
>
> Thanks
>
> Nico
>
>
Re: The error [message #206336 is a reply to message #205631] Thu, 14 December 2006 12:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: neptune3122.yahoo.fr

my method RptDocument generator:
-------------------------

IReportRunnable design = engine.openReportDesign(cheminRptDesign);
IRunTask task = engine.createRunTask(design);
task.setParameterValues(mapParams);
task.setLocale(locale);
task.run(cheminRptDocument);
task.close();


my method to create html report:
-----------------------
IReportDocument iReportDocument =
engine.openReportDocument(cheminRptDocument);
IRenderTask task = engine.createRenderTask(iReportDocument);

HTMLRenderOption options = new HTMLRenderOption();
options.setOutputFileName(cheminFinal);
options.setOutputFormat("html");

HashMap contextMap = new HashMap();
HTMLRenderContext renderContext = new HTMLRenderContext();

if(cheminRelatifImages != null)
renderContext.setImageDirectory(cheminRelatifImages);

contextMap.put(EngineConstants.APPCONTEXT_HTML_RENDER_CONTEX T,
renderContext);
task.setAppContext(contextMap);

task.setRenderOption(options);
task.setLocale(locale);
task.render("0-" + iReportDocument.getPageCount());

task.close();




---

Always the same problem :( (only since BIRT 2.1.1)


Thanks


Nico
The solution [message #206517 is a reply to message #206336] Fri, 15 December 2006 01:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: neptune3122.yahoo.fr

It is ok.

In addition to "task.close()",

It needs: iReportDocument.close();
Re: BIRT 2.0.1 --> BIRT 2.1 [message #213150 is a reply to message #203542] Mon, 22 January 2007 15:59 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

I think I have a similar problem, I get my classes not loaded to a
ScriptedDataSet:

in a servlet I do the following:
IRunAndRenderTask task = birtReportEngine.createRunAndRenderTask(design);

contextMap.put(EngineConstants.WEBAPP_CLASSPATH_KEY,
sc.getRealPath("classes")); // sc = ServletContext

task.setAppContext(contextMap);

Map appContext = task.getAppContext();

for (Iterator iterator = appContext.entrySet().iterator();
iterator.hasNext();) {

Entry entry = (Entry) iterator.next();

log.debug("AppContext: " + entry.getKey() + " - " + entry.getValue());

}

HTMLRenderOption options = new HTMLRenderOption();

options.setOutputFormat(RenderOptionBase.OUTPUT_FORMAT_PDF);

options.setOutputStream(resp.getOutputStream());

task.setRenderOption(options);

task.run();

In a report, I use a ScriptedDataSet, which tries to instantiate a POJO from
webapp:
<script-data-set name="DataSet" id="19">
<property name="dataSource">DataSource</property>
<list-property name="resultSet">
....define some properties...
</list-property>
<method name="open"><![CDATA[currs = new
Packages.com.equirion.printing.CurrencyListPrintingDataSet() ;]] ></method>
</script-data-set>
This produces the followin error:

WARNING: A BIRT exception occurred: Error evaluating Javascript expression.
Script engine error: TypeError: [JavaPackage
com.equirion.printing.CurrencyListPrintingDataSet] is not a function.
(DataSet[DataSet].__bm_OPEN#2)
Script source: DataSet[DataSet].__bm_OPEN, line: 1, text:
__bm_OPEN(). See next exception for more information.
Error evaluating Javascript expression. Script engine error: TypeError:
[JavaPackage com.equirion.printing.CurrencyListPrintingDataSet] is not a
function. (DataSet[DataSet].__bm_OPEN#2)
Script source: DataSet[DataSet].__bm_OPEN, line: 1, text:
__bm_OPEN()
org.eclipse.birt.data.engine.core.DataException: A BIRT exception occurred:
Error evaluating Javascript expression. Script engine error: TypeError:
[JavaPackage com.equirion.printing.CurrencyListPrintingDataSet] is not a
function. (DataSet[DataSet].__bm_OPEN#2)
Script source: DataSet[DataSet].__bm_OPEN, line: 1, text:
__bm_OPEN(). See next exception for more information.
Error evaluating Javascript expression. Script engine error: TypeError:
[JavaPackage com.equirion.printing.CurrencyListPrintingDataSet] is not a
function. (DataSet[DataSet].__bm_OPEN#2)
Script source: DataSet[DataSet].__bm_OPEN, line: 1, text:
__bm_OPEN()
at
org.eclipse.birt.data.engine.core.DataException.wrap(DataExc eption.java:114)
at
org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJ SAsExpr(ScriptEvalUtil.java:552)
at
org.eclipse.birt.data.engine.script.JSMethodRunner.runScript (JSMethodRunner.java:79)
at
org.eclipse.birt.report.engine.script.internal.DtEScriptExec utor.handleJS(DtEScriptExecutor.java:71)
at
org.eclipse.birt.report.engine.script.internal.DataSetScript Executor.handleJS(DataSetScriptExecutor.java:159)
at
org.eclipse.birt.report.engine.script.internal.ScriptDataSet ScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:6 6)
at
org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open( ScriptDataSetRuntime.java:68)
at
org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.j ava:227)
at
org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java :203)
at
org.eclipse.birt.data.engine.impl.QueryExecutor.execute(Quer yExecutor.java:695)
at
org.eclipse.birt.data.engine.impl.ServiceForQueryResults.exe cuteQuery(ServiceForQueryResults.java:152)
at
org.eclipse.birt.data.engine.impl.QueryResults.getResultIter ator(QueryResults.java:158)
at
org.eclipse.birt.report.engine.data.dte.DteResultSet.<init>(DteResultSet.java:79)
at
org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec uteQuery(DteDataEngine.java:113)
at
org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e xecute(AbstractDataEngine.java:208)
at
org.eclipse.birt.report.engine.executor.ExecutionContext.exe cuteQuery(ExecutionContext.java:1541)
at
org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex ecuteQuery(QueryItemExecutor.java:62)
at
org.eclipse.birt.report.engine.executor.TableItemExecutor.ex ecute(TableItemExecutor.java:74)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:35)
at
org.eclipse.birt.report.engine.layout.content.BlockStackingE xecutor.getNextChild(BlockStackingExecutor.java:47)
at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .traverseChildren(PDFBlockStackingLM.java:72)
at
org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layo utChildren(PDFStackingLM.java:130)
at
org.eclipse.birt.report.engine.layout.pdf.PDFPageLM.layout(P DFPageLM.java:198)
at
org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEng ine.layoutReport(PDFReportLayoutEngine.java:55)
at
org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEng ine.layout(PDFReportLayoutEngine.java:68)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:187)
at com.equirion.tntf.wal.printing.PrintServlet.doGet(PrintServl et.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(Servl etWrapper.java:1282)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(Servl etWrapper.java:1239)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(We bAppFilterChain.java:136)
at
com.equirion.tntf.cal.http.SessionFilter.doFilter(SessionFil ter.java:149)
at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilte r(FilterInstanceWrapper.java:142)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(We bAppFilterChain.java:121)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(W ebAppFilterChain.java:82)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest (ServletWrapper.java:670)
at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRe quest(CacheServletWrapper.java:89)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContai ner.java:1878)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChanne lLink.java:84)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleD iscrimination(HttpInboundLink.java:472)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleN ewInformation(HttpInboundLink.java:411)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(H ttpInboundLink.java:288)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback .sendToDiscriminaters(NewConnectionInitialReadCallback.java: 207)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback .complete(NewConnectionInitialReadCallback.java:109)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete (WorkQueueManager.java:566)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQ ueueManager.java:619)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQ ueueManager.java:952)
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(Work QueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: org.eclipse.birt.core.exception.CoreException: Error evaluating
Javascript expression. Script engine error: TypeError: [JavaPackage
com.equirion.printing.CurrencyListPrintingDataSet] is not a function.
(DataSet[DataSet].__bm_OPEN#2)
Script source: DataSet[DataSet].__bm_OPEN, line: 1, text:
__bm_OPEN()
at
org.eclipse.birt.core.script.JavascriptEvalUtil.wrapRhinoExc eption(JavascriptEvalUtil.java:280)
at
org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawS cript(JavascriptEvalUtil.java:104)
at
org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScri pt(JavascriptEvalUtil.java:136)
at
org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJ SAsExpr(ScriptEvalUtil.java:548)
... 48 more
Caused by: org.mozilla.javascript.EcmaError: TypeError: [JavaPackage
com.equirion.printing.CurrencyListPrintingDataSet] is not a function.
(DataSet[DataSet].__bm_OPEN#2)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRu ntime.java:3240)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRu ntime.java:3230)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime .java:3246)
at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntim e.java:3258)
at
org.mozilla.javascript.ScriptRuntime.notFunctionError(Script Runtime.java:3317)
at
org.mozilla.javascript.ScriptRuntime.notFunctionError(Script Runtime.java:3308)
at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime .java:2057)
at org.mozilla.javascript.gen.c5._c1(DataSet[DataSet].__bm_OPEN :2)
at org.mozilla.javascript.gen.c5.call(DataSet[DataSet].__bm_OPE N)
at
org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRun time.java:105)
at org.mozilla.javascript.gen.c6._c0(DataSet[DataSet].__bm_OPEN :1)
at org.mozilla.javascript.gen.c6.call(DataSet[DataSet].__bm_OPE N)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:304)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:2769)
at org.mozilla.javascript.gen.c6.call(DataSet[DataSet].__bm_OPE N)
at org.mozilla.javascript.gen.c6.exec(DataSet[DataSet].__bm_OPE N)
at
org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawS cript(JavascriptEvalUtil.java:97)
... 50 more


"Jason Weathersby" <jweathersby@actuate.com> schrieb im Newsbeitrag
news:ekkbb4$sq$1@utils.eclipse.org...
> WEBAPP_CLASSPATH_KEY is located in the org.eclipse.birt.report.engine.api
> package.
> Specifically EngineConstants.WEBAPP_CLASSPATH_KEY.
> I am not certain about the second error.
>
> Can you post the source code?
>
> Jason
>
> "Nico" <neptune3122@yahoo.fr> wrote in message
> news:988ec86eaa9d4e8fbd3d0b40f80a5ca4$1@www.eclipse.org...
>> Hello,
>>
>> I tried to update my version of BIRT (2.0.1 to 2.1) and I had two
>> compilation errors in my code :
>>
>> The first error : The class
>> " org.eclipse.birt.report.engine.script.internal.ScriptExecuto r " does not
>> exist any more. I used it for "ScriptExecutor.WEBAPP_CLASSPATH_KEY"
>>
>> The second error : The class
>> "org.eclipse.birt.report.engine.executor.ExecutionContext" does not exist
>> any more. I used it for "myClassLoader =
>> ExecutionContext.getCustomClassLoader(ScriptExecutor.WEBAPP_ CLASSPATH_KEY,
>> (Map)null);"
>>
>> So, what can I use to replace this code please?
>>
>> Thank you very much
>>
>> Nico
>>
>
>
Re: BIRT 2.0.1 --> BIRT 2.1 [message #214215 is a reply to message #213150] Thu, 25 January 2007 16:38 Go to previous message
Eclipse UserFriend
Where is your classes directory?
If it is below WEB-INF, try setting WEBAPP_CLASSPATH_KEY
to /WEB-INF/classes.

Jason

"Wolfgang Herr" <herr@tambas.at> wrote in message
news:ep38jt$u11$1@utils.eclipse.org...
> Hello,
>
> I think I have a similar problem, I get my classes not loaded to a
> ScriptedDataSet:
>
> in a servlet I do the following:
> IRunAndRenderTask task = birtReportEngine.createRunAndRenderTask(design);
>
> contextMap.put(EngineConstants.WEBAPP_CLASSPATH_KEY,
> sc.getRealPath("classes")); // sc = ServletContext
>
> task.setAppContext(contextMap);
>
> Map appContext = task.getAppContext();
>
> for (Iterator iterator = appContext.entrySet().iterator();
> iterator.hasNext();) {
>
> Entry entry = (Entry) iterator.next();
>
> log.debug("AppContext: " + entry.getKey() + " - " + entry.getValue());
>
> }
>
> HTMLRenderOption options = new HTMLRenderOption();
>
> options.setOutputFormat(RenderOptionBase.OUTPUT_FORMAT_PDF);
>
> options.setOutputStream(resp.getOutputStream());
>
> task.setRenderOption(options);
>
> task.run();
>
> In a report, I use a ScriptedDataSet, which tries to instantiate a POJO
> from webapp:
> <script-data-set name="DataSet" id="19">
> <property name="dataSource">DataSource</property>
> <list-property name="resultSet">
> ...define some properties...
> </list-property>
> <method name="open"><![CDATA[currs = new
> Packages.com.equirion.printing.CurrencyListPrintingDataSet() ;]] ></method>
> </script-data-set>
> This produces the followin error:
>
> WARNING: A BIRT exception occurred: Error evaluating Javascript
> expression. Script engine error: TypeError: [JavaPackage
> com.equirion.printing.CurrencyListPrintingDataSet] is not a function.
> (DataSet[DataSet].__bm_OPEN#2)
> Script source: DataSet[DataSet].__bm_OPEN, line: 1, text:
> __bm_OPEN(). See next exception for more information.
> Error evaluating Javascript expression. Script engine error: TypeError:
> [JavaPackage com.equirion.printing.CurrencyListPrintingDataSet] is not a
> function. (DataSet[DataSet].__bm_OPEN#2)
> Script source: DataSet[DataSet].__bm_OPEN, line: 1, text:
> __bm_OPEN()
> org.eclipse.birt.data.engine.core.DataException: A BIRT exception
> occurred: Error evaluating Javascript expression. Script engine error:
> TypeError: [JavaPackage com.equirion.printing.CurrencyListPrintingDataSet]
> is not a function. (DataSet[DataSet].__bm_OPEN#2)
> Script source: DataSet[DataSet].__bm_OPEN, line: 1, text:
> __bm_OPEN(). See next exception for more information.
> Error evaluating Javascript expression. Script engine error: TypeError:
> [JavaPackage com.equirion.printing.CurrencyListPrintingDataSet] is not a
> function. (DataSet[DataSet].__bm_OPEN#2)
> Script source: DataSet[DataSet].__bm_OPEN, line: 1, text:
> __bm_OPEN()
> at
> org.eclipse.birt.data.engine.core.DataException.wrap(DataExc eption.java:114)
> at
> org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJ SAsExpr(ScriptEvalUtil.java:552)
> at
> org.eclipse.birt.data.engine.script.JSMethodRunner.runScript (JSMethodRunner.java:79)
> at
> org.eclipse.birt.report.engine.script.internal.DtEScriptExec utor.handleJS(DtEScriptExecutor.java:71)
> at
> org.eclipse.birt.report.engine.script.internal.DataSetScript Executor.handleJS(DataSetScriptExecutor.java:159)
> at
> org.eclipse.birt.report.engine.script.internal.ScriptDataSet ScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:6 6)
> at
> org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open( ScriptDataSetRuntime.java:68)
> at
> org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.j ava:227)
> at
> org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java :203)
> at
> org.eclipse.birt.data.engine.impl.QueryExecutor.execute(Quer yExecutor.java:695)
> at
> org.eclipse.birt.data.engine.impl.ServiceForQueryResults.exe cuteQuery(ServiceForQueryResults.java:152)
> at
> org.eclipse.birt.data.engine.impl.QueryResults.getResultIter ator(QueryResults.java:158)
> at
> org.eclipse.birt.report.engine.data.dte.DteResultSet.<init>(DteResultSet.java:79)
> at
> org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec uteQuery(DteDataEngine.java:113)
> at
> org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e xecute(AbstractDataEngine.java:208)
> at
> org.eclipse.birt.report.engine.executor.ExecutionContext.exe cuteQuery(ExecutionContext.java:1541)
> at
> org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex ecuteQuery(QueryItemExecutor.java:62)
> at
> org.eclipse.birt.report.engine.executor.TableItemExecutor.ex ecute(TableItemExecutor.java:74)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:35)
> at
> org.eclipse.birt.report.engine.layout.content.BlockStackingE xecutor.getNextChild(BlockStackingExecutor.java:47)
> at
> org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .traverseChildren(PDFBlockStackingLM.java:72)
> at
> org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layo utChildren(PDFStackingLM.java:130)
> at
> org.eclipse.birt.report.engine.layout.pdf.PDFPageLM.layout(P DFPageLM.java:198)
> at
> org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEng ine.layoutReport(PDFReportLayoutEngine.java:55)
> at
> org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEng ine.layout(PDFReportLayoutEngine.java:68)
> at
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:187)
> at
> com.equirion.tntf.wal.printing.PrintServlet.doGet(PrintServl et.java:133)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(Servl etWrapper.java:1282)
> at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(Servl etWrapper.java:1239)
> at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(We bAppFilterChain.java:136)
> at
> com.equirion.tntf.cal.http.SessionFilter.doFilter(SessionFil ter.java:149)
> at
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilte r(FilterInstanceWrapper.java:142)
> at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(We bAppFilterChain.java:121)
> at
> com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(W ebAppFilterChain.java:82)
> at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest (ServletWrapper.java:670)
> at
> com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRe quest(CacheServletWrapper.java:89)
> at
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContai ner.java:1878)
> at
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChanne lLink.java:84)
> at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleD iscrimination(HttpInboundLink.java:472)
> at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleN ewInformation(HttpInboundLink.java:411)
> at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(H ttpInboundLink.java:288)
> at
> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback .sendToDiscriminaters(NewConnectionInitialReadCallback.java: 207)
> at
> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback .complete(NewConnectionInitialReadCallback.java:109)
> at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete (WorkQueueManager.java:566)
> at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQ ueueManager.java:619)
> at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQ ueueManager.java:952)
> at
> com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(Work QueueManager.java:1039)
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
> Caused by: org.eclipse.birt.core.exception.CoreException: Error evaluating
> Javascript expression. Script engine error: TypeError: [JavaPackage
> com.equirion.printing.CurrencyListPrintingDataSet] is not a function.
> (DataSet[DataSet].__bm_OPEN#2)
> Script source: DataSet[DataSet].__bm_OPEN, line: 1, text:
> __bm_OPEN()
> at
> org.eclipse.birt.core.script.JavascriptEvalUtil.wrapRhinoExc eption(JavascriptEvalUtil.java:280)
> at
> org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawS cript(JavascriptEvalUtil.java:104)
> at
> org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScri pt(JavascriptEvalUtil.java:136)
> at
> org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJ SAsExpr(ScriptEvalUtil.java:548)
> ... 48 more
> Caused by: org.mozilla.javascript.EcmaError: TypeError: [JavaPackage
> com.equirion.printing.CurrencyListPrintingDataSet] is not a function.
> (DataSet[DataSet].__bm_OPEN#2)
> at
> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRu ntime.java:3240)
> at
> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRu ntime.java:3230)
> at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime .java:3246)
> at
> org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntim e.java:3258)
> at
> org.mozilla.javascript.ScriptRuntime.notFunctionError(Script Runtime.java:3317)
> at
> org.mozilla.javascript.ScriptRuntime.notFunctionError(Script Runtime.java:3308)
> at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime .java:2057)
> at org.mozilla.javascript.gen.c5._c1(DataSet[DataSet].__bm_OPEN :2)
> at org.mozilla.javascript.gen.c5.call(DataSet[DataSet].__bm_OPE N)
> at
> org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRun time.java:105)
> at org.mozilla.javascript.gen.c6._c0(DataSet[DataSet].__bm_OPEN :1)
> at org.mozilla.javascript.gen.c6.call(DataSet[DataSet].__bm_OPE N)
> at
> org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:304)
> at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:2769)
> at org.mozilla.javascript.gen.c6.call(DataSet[DataSet].__bm_OPE N)
> at org.mozilla.javascript.gen.c6.exec(DataSet[DataSet].__bm_OPE N)
> at
> org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawS cript(JavascriptEvalUtil.java:97)
> ... 50 more
>
>
> "Jason Weathersby" <jweathersby@actuate.com> schrieb im Newsbeitrag
> news:ekkbb4$sq$1@utils.eclipse.org...
>> WEBAPP_CLASSPATH_KEY is located in the org.eclipse.birt.report.engine.api
>> package.
>> Specifically EngineConstants.WEBAPP_CLASSPATH_KEY.
>> I am not certain about the second error.
>>
>> Can you post the source code?
>>
>> Jason
>>
>> "Nico" <neptune3122@yahoo.fr> wrote in message
>> news:988ec86eaa9d4e8fbd3d0b40f80a5ca4$1@www.eclipse.org...
>>> Hello,
>>>
>>> I tried to update my version of BIRT (2.0.1 to 2.1) and I had two
>>> compilation errors in my code :
>>>
>>> The first error : The class
>>> " org.eclipse.birt.report.engine.script.internal.ScriptExecuto r " does not
>>> exist any more. I used it for "ScriptExecutor.WEBAPP_CLASSPATH_KEY"
>>>
>>> The second error : The class
>>> "org.eclipse.birt.report.engine.executor.ExecutionContext" does not
>>> exist any more. I used it for "myClassLoader =
>>> ExecutionContext.getCustomClassLoader(ScriptExecutor.WEBAPP_ CLASSPATH_KEY,
>>> (Map)null);"
>>>
>>> So, what can I use to replace this code please?
>>>
>>> Thank you very much
>>>
>>> Nico
>>>
>>
>>
>
>
Previous Topic:reports portable to multiple RDBMS
Next Topic:2.2 source using extension points that can't be found
Goto Forum:
  


Current Time: Thu Jul 17 09:10:40 EDT 2025

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

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

Back to the top