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: <[email protected]> on behalf of Kwasi O-Ahoofe <[email protected]> Date: Monday, July 11, 2016 at 11:58 AM To: WebObjects-Dev <[email protected]> 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) } PS: 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) { super(aContext); : } : : } Any help will be appreciated… Thanks Kwasi
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
