• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: java.lang.reflect.InvocationTargetException
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)

 

}

 

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Intercepting a failed action method invocation
  • Next by Date: Re: Intercepting a failed action method invocation
  • Previous by thread: ERXDisplayGroup vs insertNewObjectAtIndex
  • Next by thread: Summary of the State of the Community
  • Index(es):
    • Date
    • Thread