Re: java.lang.reflect.InvocationTargetException
Re: java.lang.reflect.InvocationTargetException
- Subject: Re: java.lang.reflect.InvocationTargetException
- From: Chuck Hill <email@hidden>
- Date: Mon, 11 Jul 2016 19:11:38 +0000
- Thread-topic: java.lang.reflect.InvocationTargetException
There must be more to that stack trace, a deeper caused by. As a guess, it is having trouble reading the component template (reading what is in the .wo directory).
From:
<webobjects-dev-bounces+chill=email@hidden> on behalf of Kwasi O-Ahoofe <email@hidden>
Date: Monday, July 11, 2016 at 11:58 AM
To: WebObjects-Dev <email@hidden>
Subject: java.lang.reflect.InvocationTargetException
Has anyone encountered this exception [ java.lang.reflect.InvocationTargetException
] when instantiating a ERXComponent subclass in a ProjectWonder/WebObjects Application. Asked another way, why is this code snippet below throwing java.lang.reflect.InvocationTargetException ??
And what is the resolution or the fix?
BmassReportMillModule1 newBmassReportMillModule1 = (BmassReportMillModule1) pageWithName( BmassReportMillModule1.class);
Caused by:
com.webobjects.foundation.NSForwardException [java.lang.NullPointerException]
null:java.lang.NullPointerException
at com.webobjects.appserver._private.WOComponentDefinition.finishInitializingComponent(WOComponentDefinition.java:672)
at com.webobjects.appserver.WOComponent.<init>(WOComponent.java:241)
at er.extensions.components.ERXComponent.<init>(ERXComponent.java:47)
at GenericMaintenanceComponent.<init>(GenericMaintenanceComponent.java:29)
at BmassReportMillModule1.<init>(BmassReportMillModule1.java:155)
public
class BmassReportMillModule1
extends ERXComponent {
// These ivars point to Classes/ERXComponents that utilize << import
java.lang.reflect.*; >>
public static RMPDFPage
_nextPDFPage = null;
public static RMFlashPage
_nextFLASHPage = null;
public static RMCSVPage
_nextRMCSVPage = null;
public static RMExcelPage
_nextRMExcelPage = null;
public static RMJPGPage
_nextRMJPGPage = null;
public static RMHTMLPage
_nextRMHTMLPage = null;
public BmassReportMillModule1(WOContext
aContext)
Any help will be appreciated… Thanks
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden