Précédent   Forum des professionnels en informatique > Logiciels > Solutions d'entreprise > Business Intelligence > BIRT
BIRT Forum d'entraide sur BIRT (Business Intelligence and Reporting Tools). Avant de poster --> FAQ BIRT,Tutoriels BIRT
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 07/08/2006, 08h39   #1
Futur Membre du Club
 
Avatar de maxscljava
 
Inscription : mai 2006
Messages : 48
Détails du profil
Informations personnelles :
Localisation : Belgique

Informations forums :
Inscription : mai 2006
Messages : 48
Points : 16
Points : 16
Par défaut Erreur ReportEngine NoClassDefFoundError

Salut à tous,

J'ai une erreur et je ne comprends pas d'où elle vient.
Voilà ce que j'ai fait :
1. J'ai charger BirtRuntime 2.1.0 que j'ai dézipper dans un répertoire.
2. J'ai copier les fichiers du répertoire lib dans le répertoire ReportEngine

Quand je lance mon appli et que le debug arrive sur la ligne en rouge

EngineConfig config = new EngineConfig();
config.setEngineHome("C:/birt-runtime-2_1_0/ReportEngine");
ReportEngine engine = new ReportEngine(config);

et bien j'ai l'erreur suivante :

java.lang.NoClassDefFoundError: org/mozilla/javascript/Scriptable

malgré le fait que le js.jar se trouve bien dans le répertoire.
Que faire ?
D'avance merci pour votre aide.
maxscljava
maxscljava est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 09h15   #2
BiM
Modératrice
 
Avatar de BiM
 
Femme
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
Inscription : janvier 2005
Messages : 7 299
Détails du profil
Informations personnelles :
Sexe : Femme
Âge : 26
Localisation : France, Haute Garonne (Midi Pyrénées)

Informations professionnelles :
Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

Informations forums :
Inscription : janvier 2005
Messages : 7 299
Points : 8 650
Points : 8 650
Oh, ben t'as juste oublié de mettre les (des) jars dans ton classpath.
__________________
__~{@ BiM - Modératrice "Business Intelligence" @}~
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
___________.~{@ Lapine crétine @}~
BiM est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 09h38   #3
Futur Membre du Club
 
Avatar de maxscljava
 
Inscription : mai 2006
Messages : 48
Détails du profil
Informations personnelles :
Localisation : Belgique

Informations forums :
Inscription : mai 2006
Messages : 48
Points : 16
Points : 16
Merci BIM,

Je comprends pas comment j'ai pu être aussi c... d'oublier cela, le problème est résolu, par contre j'ai une autre erreur qui me dit que j'ai un
NullPointerException sur le même ligne.
cela me parait bizarre allors que mon config n'est pas null.

maxscljava
maxscljava est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 09h41   #4
BiM
Modératrice
 
Avatar de BiM
 
Femme
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
Inscription : janvier 2005
Messages : 7 299
Détails du profil
Informations personnelles :
Sexe : Femme
Âge : 26
Localisation : France, Haute Garonne (Midi Pyrénées)

Informations professionnelles :
Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

Informations forums :
Inscription : janvier 2005
Messages : 7 299
Points : 8 650
Points : 8 650
Sur la même ligne ? Certain ? Et tu es sûr que le chemin indiqué existe ?
__________________
__~{@ BiM - Modératrice "Business Intelligence" @}~
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
___________.~{@ Lapine crétine @}~
BiM est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 09h44   #5
Futur Membre du Club
 
Avatar de maxscljava
 
Inscription : mai 2006
Messages : 48
Détails du profil
Informations personnelles :
Localisation : Belgique

Informations forums :
Inscription : mai 2006
Messages : 48
Points : 16
Points : 16
oui sur la même ligne et le path est correct
maxscljava est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 09h48   #6
BiM
Modératrice
 
Avatar de BiM
 
Femme
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
Inscription : janvier 2005
Messages : 7 299
Détails du profil
Informations personnelles :
Sexe : Femme
Âge : 26
Localisation : France, Haute Garonne (Midi Pyrénées)

Informations professionnelles :
Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

Informations forums :
Inscription : janvier 2005
Messages : 7 299
Points : 8 650
Points : 8 650
Tu prend le mode Debug d'Eclipse et tu t'éclates
__________________
__~{@ BiM - Modératrice "Business Intelligence" @}~
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
___________.~{@ Lapine crétine @}~
BiM est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 09h50   #7
Futur Membre du Club
 
Avatar de maxscljava
 
Inscription : mai 2006
Messages : 48
Détails du profil
Informations personnelles :
Localisation : Belgique

Informations forums :
Inscription : mai 2006
Messages : 48
Points : 16
Points : 16
Ok je cherche et je post si je trouve.

Merci encore pour ton aide
maxscljava est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 10h21   #8
BiM
Modératrice
 
Avatar de BiM
 
Femme
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
Inscription : janvier 2005
Messages : 7 299
Détails du profil
Informations personnelles :
Sexe : Femme
Âge : 26
Localisation : France, Haute Garonne (Midi Pyrénées)

Informations professionnelles :
Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

Informations forums :
Inscription : janvier 2005
Messages : 7 299
Points : 8 650
Points : 8 650
Si tu trouves pas tu peux toujours essayer de décrire le comportement de ton appli.
__________________
__~{@ BiM - Modératrice "Business Intelligence" @}~
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
___________.~{@ Lapine crétine @}~
BiM est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 11h02   #9
Futur Membre du Club
 
Avatar de maxscljava
 
Inscription : mai 2006
Messages : 48
Détails du profil
Informations personnelles :
Localisation : Belgique

Informations forums :
Inscription : mai 2006
Messages : 48
Points : 16
Points : 16
Bon et bien après des recherches approffondies, voilà ce que je trouve :

java.lang.NullPointerException
at org.eclipse.birt.report.engine.extension.internal.ExtensionManager.loadGenerationExtensionDefns(ExtensionManager.java:265)

et là je suis perdu

quelqu'un aurait-il une solution ?

d'avance merci
maxscljava
maxscljava est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 11h08   #10
BiM
Modératrice
 
Avatar de BiM
 
Femme
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
Inscription : janvier 2005
Messages : 7 299
Détails du profil
Informations personnelles :
Sexe : Femme
Âge : 26
Localisation : France, Haute Garonne (Midi Pyrénées)

Informations professionnelles :
Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

Informations forums :
Inscription : janvier 2005
Messages : 7 299
Points : 8 650
Points : 8 650
Tu peux mettre ton erreur en entier s'il te plaît ? (entouré des balises [CODE]).
__________________
__~{@ BiM - Modératrice "Business Intelligence" @}~
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
___________.~{@ Lapine crétine @}~
BiM est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 11h10   #11
Futur Membre du Club
 
Avatar de maxscljava
 
Inscription : mai 2006
Messages : 48
Détails du profil
Informations personnelles :
Localisation : Belgique

Informations forums :
Inscription : mai 2006
Messages : 48
Points : 16
Points : 16
Voici la stacktrace complète

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
java.lang.NullPointerException
    at org.eclipse.birt.report.engine.extension.internal.ExtensionManager.loadGenerationExtensionDefns(ExtensionManager.java:265)
    at org.eclipse.birt.report.engine.extension.internal.ExtensionManager.<init>(ExtensionManager.java:79)
    at org.eclipse.birt.report.engine.extension.internal.ExtensionManager.createInstance(ExtensionManager.java:91)
    at org.eclipse.birt.report.engine.extension.internal.ExtensionManager.getInstance(ExtensionManager.java:100)
    at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.<init>(ReportEngineHelper.java:71)
    at org.eclipse.birt.report.engine.api.impl.ReportEngine.<init>(ReportEngine.java:85)
    at be.gfdi.reporting.ReportsWizard.generateReport(ReportsWizard.java:195)
    at be.gfdi.reporting.ReportsWizard.performFinish(ReportsWizard.java:133)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:666)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
    at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:645)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3287)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2907)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:811)
    at org.eclipse.jface.window.Window.open(Window.java:789)
    at be.gfdi.reporting.action.ReportsAction.run(ReportsAction.java:58)
    at be.gfdi.ent.thirdexplorer.MVCThirdExplorer$2.widgetDefaultSelected(MVCThirdExplorer.java:234)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:97)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3287)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2907)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1899)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1863)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:417)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at be.gfdi.fwk.client.core.application.ClientFrameworkApplication.run(ClientFrameworkApplication.java:72)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:99)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:374)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)
maxscljava est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 11h17   #12
BiM
Modératrice
 
Avatar de BiM
 
Femme
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
Inscription : janvier 2005
Messages : 7 299
Détails du profil
Informations personnelles :
Sexe : Femme
Âge : 26
Localisation : France, Haute Garonne (Midi Pyrénées)

Informations professionnelles :
Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

Informations forums :
Inscription : janvier 2005
Messages : 7 299
Points : 8 650
Points : 8 650
be.gfdi, c'est un package à toi non ?

Apparement, l'erreur se déroulerait au moment où il recherche les extensions disponibles (HTML, PDF, et autres éventuellement). Tu dois encore avoir des problèmes de JARs parce qu'il n'a pas l'air d'en trouver.

Assure toi d'avoir bien tout intégré.
__________________
__~{@ BiM - Modératrice "Business Intelligence" @}~
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
___________.~{@ Lapine crétine @}~
BiM est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 11h28   #13
Futur Membre du Club
 
Avatar de maxscljava
 
Inscription : mai 2006
Messages : 48
Détails du profil
Informations personnelles :
Localisation : Belgique

Informations forums :
Inscription : mai 2006
Messages : 48
Points : 16
Points : 16
Oui le package est à moi.
En ce qui concerne les jars j'ai tout ajouter mais rien n'y fait.
maxscljava est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 11h50   #14
Futur Membre du Club
 
Avatar de maxscljava
 
Inscription : mai 2006
Messages : 48
Détails du profil
Informations personnelles :
Localisation : Belgique

Informations forums :
Inscription : mai 2006
Messages : 48
Points : 16
Points : 16
J'ai chercher un peu plus loin et il semblerait que l'erreur soit ici :

classe : ExtensionManager.class

public final static String EXTENSION_POINT_GENERATION = "org.eclipse.birt.report.engine.reportitemGeneration"; //$NON-NLS-1$
IExtensionPoint extPoint = registry.getExtensionPoint(EXTENSION_POINT_GENERATION);
maxscljava est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 11h54   #15
BiM
Modératrice
 
Avatar de BiM
 
Femme
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
Inscription : janvier 2005
Messages : 7 299
Détails du profil
Informations personnelles :
Sexe : Femme
Âge : 26
Localisation : France, Haute Garonne (Midi Pyrénées)

Informations professionnelles :
Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

Informations forums :
Inscription : janvier 2005
Messages : 7 299
Points : 8 650
Points : 8 650
J'avais bien compris que ca venait de la...
Est ce que dans ton classpath tu retrouves ce package ?
__________________
__~{@ BiM - Modératrice "Business Intelligence" @}~
Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
___________.~{@ Lapine crétine @}~
BiM est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 12h01   #16
Futur Membre du Club
 
Avatar de maxscljava
 
Inscription : mai 2006
Messages : 48
Détails du profil
Informations personnelles :
Localisation : Belgique

Informations forums :
Inscription : mai 2006
Messages : 48
Points : 16
Points : 16
non pas du tout
je l'ai chercher aussi mais je ne le trouve pas, il n'est pas dans le unzip du BirtRuntime2.1.0
maxscljava est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/08/2006, 15h52   #17
Futur Membre du Club
 
Avatar de maxscljava
 
Inscription : mai 2006
Messages : 48
Détails du profil
Informations personnelles :
Localisation : Belgique

Informations forums :
Inscription : mai 2006
Messages : 48
Points : 16
Points : 16
J'ai été voir sur le net il y a bien un autre qui a le problème mais pas de solution, alors si toutefois vous trouvez, un grand merci de me communiquer la réponse.

maxscljava
maxscljava est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 08/08/2006, 11h27   #18
Futur Membre du Club
 
Avatar de maxscljava
 
Inscription : mai 2006
Messages : 48
Détails du profil
Informations personnelles :
Localisation : Belgique

Informations forums :
Inscription : mai 2006
Messages : 48
Points : 16
Points : 16
Salut,

Le package ne se trouve pas dans mon classpath mais il n'est pas non plus dans le BirtRuntime 2.1.0
maxscljava est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 13h11.


 
 
 
 
Partenaires

Hébergement Web