java.lang.RuntimeException: Error invoking the specified method: getApplicationContext

Apereo Issues | Chris Wagner | 8 years ago
  1. 0

    When attempting to run 'ant crn-import' or any other task that includes 'crn-import' the process will fail once it attempts to import channels if in security.properties authorizationProvider is not defined. Possible resolutions: 1. More detailed error message 2. Automatically define the authorizationProvider as org.jasig.portal.security.provider.AuthorizationServiceFactoryImpl which is currently the only implementation of this class Below is the stack trace that is produced when this happens. [java] Import Channel Type: uportal-impl/target/classes/properties/db/entities/channel-type/Web_Proxy.channel-type [java] Import Channel Type: uportal-impl/target/classes/properties/db/entities/channel-type/XML_SSL.channel-type [java] Import Channel Type: uportal-impl/target/classes/properties/db/entities/channel-type/XML_XSLT.channel-type [java] Import Channel: uportal-impl/src/main/resources/properties/db/entities/channel/about-college-life.channel [java] Exception in thread "main" java.lang.RuntimeException: Error invoking the specified method: getApplicationContext [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:200) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.runtime.ScriptRunner$TaskDecorator.perform(ScriptRunner.java:310) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:264) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:204) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:156) [java] at org.danann.cernunnos.runtime.Main.main(Main.java:59) [java] Caused by: java.lang.RuntimeException: Error invoking the specified method: getBean [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:200) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123) [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:196) [java] ... 6 more [java] Caused by: java.lang.RuntimeException: Error invoking the specified method: getBean [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:200) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123) [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:196) [java] ... 9 more [java] Caused by: java.lang.RuntimeException: Unable to iterate files in the specified way. [java] dir=. [java] includes=**/*.channel [java] excludes=[Not Evaluated] [java] at org.danann.cernunnos.io.FileIteratorTask.perform(FileIteratorTask.java:158) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123) [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:196) [java] ... 12 more [java] Caused by: java.lang.RuntimeException: Unable to invoke the specified script: classpath://org/jasig/portal/io/import-channel_v3-0.crn [java] at org.danann.cernunnos.flow.CernunnosTask.perform(CernunnosTask.java:91) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123) [java] at org.danann.cernunnos.flow.IfTask.perform(IfTask.java:62) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123) [java] at org.danann.cernunnos.io.FileIteratorTask.perform(FileIteratorTask.java:151) [java] ... 18 more [java] Caused by: java.lang.RuntimeException: Error invoking the specified method: publishChannel [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:200) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.runtime.ScriptRunner$TaskDecorator.perform(ScriptRunner.java:310) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:264) [java] at org.danann.cernunnos.flow.CernunnosTask.perform(CernunnosTask.java:87) [java] ... 27 more [java] Caused by: java.lang.reflect.InvocationTargetException [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:192) [java] ... 31 more [java] Caused by: java.lang.RuntimeException: Error publishing the channel definition. [java] at org.jasig.portal.tools.chanpub.UrlChannelPublisher.publishChannel(UrlChannelPublisher.java:34) [java] ... 36 more [java] Caused by: java.lang.NullPointerException [java] at org.jasig.portal.services.AuthorizationService.<init>(AuthorizationService.java:76) [java] at org.jasig.portal.services.AuthorizationService.instance(AuthorizationService.java:96) [java] at org.jasig.portal.tools.chanpub.ChannelPublisher.publishChannel(ChannelPublisher.java:247) [java] at org.jasig.portal.tools.chanpub.ChannelPublisher.publishChannel(ChannelPublisher.java:221) [java] at org.jasig.portal.tools.chanpub.UrlChannelPublisher.publishChannel(UrlChannelPublisher.java:30) [java] ... 36 more BUILD FAILED /home/unicon/uPortal-3.0.0-src/build.xml:241: The following error occurred while executing this line: /home/unicon/uPortal-3.0.0-src/build.xml:757: The following error occurred while executing this line: /home/unicon/uPortal-3.0.0-src/build.xml:760: The following error occurred while executing this line: /home/unicon/uPortal-3.0.0-src/build.xml:247: Java returned: 1

    Apereo Issues | 8 years ago | Chris Wagner
    java.lang.RuntimeException: Error invoking the specified method: getApplicationContext
  2. 0

    When attempting to run 'ant crn-import' or any other task that includes 'crn-import' the process will fail once it attempts to import channels if in security.properties authorizationProvider is not defined. Possible resolutions: 1. More detailed error message 2. Automatically define the authorizationProvider as org.jasig.portal.security.provider.AuthorizationServiceFactoryImpl which is currently the only implementation of this class Below is the stack trace that is produced when this happens. [java] Import Channel Type: uportal-impl/target/classes/properties/db/entities/channel-type/Web_Proxy.channel-type [java] Import Channel Type: uportal-impl/target/classes/properties/db/entities/channel-type/XML_SSL.channel-type [java] Import Channel Type: uportal-impl/target/classes/properties/db/entities/channel-type/XML_XSLT.channel-type [java] Import Channel: uportal-impl/src/main/resources/properties/db/entities/channel/about-college-life.channel [java] Exception in thread "main" java.lang.RuntimeException: Error invoking the specified method: getApplicationContext [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:200) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.runtime.ScriptRunner$TaskDecorator.perform(ScriptRunner.java:310) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:264) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:204) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:156) [java] at org.danann.cernunnos.runtime.Main.main(Main.java:59) [java] Caused by: java.lang.RuntimeException: Error invoking the specified method: getBean [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:200) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123) [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:196) [java] ... 6 more [java] Caused by: java.lang.RuntimeException: Error invoking the specified method: getBean [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:200) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123) [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:196) [java] ... 9 more [java] Caused by: java.lang.RuntimeException: Unable to iterate files in the specified way. [java] dir=. [java] includes=**/*.channel [java] excludes=[Not Evaluated] [java] at org.danann.cernunnos.io.FileIteratorTask.perform(FileIteratorTask.java:158) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123) [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:196) [java] ... 12 more [java] Caused by: java.lang.RuntimeException: Unable to invoke the specified script: classpath://org/jasig/portal/io/import-channel_v3-0.crn [java] at org.danann.cernunnos.flow.CernunnosTask.perform(CernunnosTask.java:91) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123) [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123) [java] at org.danann.cernunnos.flow.IfTask.perform(IfTask.java:62) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123) [java] at org.danann.cernunnos.io.FileIteratorTask.perform(FileIteratorTask.java:151) [java] ... 18 more [java] Caused by: java.lang.RuntimeException: Error invoking the specified method: publishChannel [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:200) [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58) [java] at org.danann.cernunnos.runtime.ScriptRunner$TaskDecorator.perform(ScriptRunner.java:310) [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:264) [java] at org.danann.cernunnos.flow.CernunnosTask.perform(CernunnosTask.java:87) [java] ... 27 more [java] Caused by: java.lang.reflect.InvocationTargetException [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:192) [java] ... 31 more [java] Caused by: java.lang.RuntimeException: Error publishing the channel definition. [java] at org.jasig.portal.tools.chanpub.UrlChannelPublisher.publishChannel(UrlChannelPublisher.java:34) [java] ... 36 more [java] Caused by: java.lang.NullPointerException [java] at org.jasig.portal.services.AuthorizationService.<init>(AuthorizationService.java:76) [java] at org.jasig.portal.services.AuthorizationService.instance(AuthorizationService.java:96) [java] at org.jasig.portal.tools.chanpub.ChannelPublisher.publishChannel(ChannelPublisher.java:247) [java] at org.jasig.portal.tools.chanpub.ChannelPublisher.publishChannel(ChannelPublisher.java:221) [java] at org.jasig.portal.tools.chanpub.UrlChannelPublisher.publishChannel(UrlChannelPublisher.java:30) [java] ... 36 more BUILD FAILED /home/unicon/uPortal-3.0.0-src/build.xml:241: The following error occurred while executing this line: /home/unicon/uPortal-3.0.0-src/build.xml:757: The following error occurred while executing this line: /home/unicon/uPortal-3.0.0-src/build.xml:760: The following error occurred while executing this line: /home/unicon/uPortal-3.0.0-src/build.xml:247: Java returned: 1

    Apereo Issues | 8 years ago | Chris Wagner
    java.lang.RuntimeException: Error invoking the specified method: getApplicationContext
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.jasig.portal.services.AuthorizationService.<init>()
    2. org.jasig.portal
      UrlChannelPublisher.publishChannel
      1. org.jasig.portal.services.AuthorizationService.<init>(AuthorizationService.java:76)
      2. org.jasig.portal.services.AuthorizationService.instance(AuthorizationService.java:96)
      3. org.jasig.portal.tools.chanpub.ChannelPublisher.publishChannel(ChannelPublisher.java:247)
      4. org.jasig.portal.tools.chanpub.ChannelPublisher.publishChannel(ChannelPublisher.java:221)
      5. org.jasig.portal.tools.chanpub.UrlChannelPublisher.publishChannel(UrlChannelPublisher.java:30)
      5 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. org.danann.cernunnos
      Main.main
      1. org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:192)
      2. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
      3. org.danann.cernunnos.runtime.ScriptRunner$TaskDecorator.perform(ScriptRunner.java:310)
      4. org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:264)
      5. org.danann.cernunnos.flow.CernunnosTask.perform(CernunnosTask.java:87)
      6. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
      7. org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123)
      8. org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66)
      9. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
      10. org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123)
      11. org.danann.cernunnos.flow.IfTask.perform(IfTask.java:62)
      12. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
      13. org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123)
      14. org.danann.cernunnos.io.FileIteratorTask.perform(FileIteratorTask.java:151)
      15. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
      16. org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123)
      17. org.danann.cernunnos.core.SetAttributeTask.perform(SetAttributeTask.java:66)
      18. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
      19. org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123)
      20. org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:196)
      21. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
      22. org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123)
      23. org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:196)
      24. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
      25. org.danann.cernunnos.AbstractContainerTask.performSubtasks(AbstractContainerTask.java:123)
      26. org.danann.cernunnos.core.InvokeMethodTask.perform(InvokeMethodTask.java:196)
      27. org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(RuntimeTaskDecorator.java:58)
      28. org.danann.cernunnos.runtime.ScriptRunner$TaskDecorator.perform(ScriptRunner.java:310)
      29. org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:264)
      30. org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:204)
      31. org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.java:156)
      32. org.danann.cernunnos.runtime.Main.main(Main.java:59)
      32 frames