Failed to invoke startup or shutdown class - Weblogic

This is a discussion on Failed to invoke startup or shutdown class - Weblogic ; In what situation I'll get the error "Failed to invoke startup/shutdown=20 class" as below : java.lang.InstantiationException:=20 dsb/eBanking/backOffice/connect/HubDevicePool at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Compiled Code) at weblogic.t3.srvr.StartupThread.runStartup (StartupThread.java:180) at weblogic.t3.srvr.StartupThread.doWork(Compiled Code) at weblogic.t3.srvr.PropertyExecuteThread.run (PropertyExecuteThread.java:62) I'm pretty sure that the class HubDevicePool has ...

+ Reply to Thread
Results 1 to 4 of 4

Failed to invoke startup or shutdown class

  1. Default Failed to invoke startup or shutdown class

    In what situation I'll get the error "Failed to invoke startup/shutdown=20
    class" as below :

    java.lang.InstantiationException:=20
    dsb/eBanking/backOffice/connect/HubDevicePool
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Compiled Code)
    at weblogic.t3.srvr.StartupThread.runStartup
    (StartupThread.java:180)
    at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
    at weblogic.t3.srvr.PropertyExecuteThread.run
    (PropertyExecuteThread.java:62)

    I'm pretty sure that the class HubDevicePool has been coded (e.g.=20
    implement T3xxxDef interface, with either the startup() or shutdown()=20
    method) properly as I've another startup classes which work perfectly.=20
    The class has been compiled without error, but it just cannot run when I=20
    put it as either a startup or shutdown class for WebLogic.


  2. Default Re: Failed to invoke startup or shutdown class

    Most likely the HubDevicePool does not have a public default constructor.

    Ricky Wong <rickywong@dahsing.com> wrote:
    > In what situation I'll get the error "Failed to invoke startup/shutdown=

    =20
    > class" as below :


    > java.lang.InstantiationException:=20
    > dsb/eBanking/backOffice/connect/HubDevicePool
    > at java.lang.Class.newInstance0(Native Method)
    > at java.lang.Class.newInstance(Compiled Code)
    > at weblogic.t3.srvr.StartupThread.runStartup
    > (StartupThread.java:180)
    > at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
    > at weblogic.t3.srvr.PropertyExecuteThread.run
    > (PropertyExecuteThread.java:62)


    > I'm pretty sure that the class HubDevicePool has been coded (e.g.=20
    > implement T3xxxDef interface, with either the startup() or shutdown()=20
    > method) properly as I've another startup classes which work perfectly.=20
    > The class has been compiled without error, but it just cannot run when I=

    =20
    > put it as either a startup or shutdown class for WebLogic.


    Dimitri


  3. Default Re: Failed to invoke startup or shutdown class

    It works, many thanks !

    However I still have one more question out of my head - I found that my=20
    startup class doesn't need to implement the T3StartupDef and it still=20
    works, however my shutdown class must implement the T3ShutdownDef=20
    (otherwise I'll get ClassCastException).=20

    In article <3a030cc8@newsgroups.bea.com>, dr@dima.dhs.org says...
    > Most likely the HubDevicePool does not have a public default constructor.
    >=20
    > Ricky Wong <rickywong@dahsing.com> wrote:
    > > In what situation I'll get the error "Failed to invoke startup/shutdown=

    =20
    > > class" as below :

    >=20
    > > java.lang.InstantiationException:=20
    > > dsb/eBanking/backOffice/connect/HubDevicePool
    > > at java.lang.Class.newInstance0(Native Method)
    > > at java.lang.Class.newInstance(Compiled Code)
    > > at weblogic.t3.srvr.StartupThread.runStartup
    > > (StartupThread.java:180)
    > > at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
    > > at weblogic.t3.srvr.PropertyExecuteThread.run
    > > (PropertyExecuteThread.java:62)

    >=20
    > > I'm pretty sure that the class HubDevicePool has been coded (e.g.=20
    > > implement T3xxxDef interface, with either the startup() or shutdown()=

    =20
    > > method) properly as I've another startup classes which work perfectly.=

    =20
    > > The class has been compiled without error, but it just cannot run when =

    I=20
    > > put it as either a startup or shutdown class for WebLogic.

    >=20
    > Dimitri
    >=20



  4. Default Re: Failed to invoke startup or shutdown class

    This is a very convinient feature of Weblogic startup service - if your cla=
    ss
    does not implement T3StartupDef it will look for (using introspection)
    public static void main(String[] args) in your startup class, and, if it is
    there it will execute it.

    Ricky Wong <rickywong@dahsing.com> wrote:
    > It works, many thanks !


    > However I still have one more question out of my head - I found that my=

    =20
    > startup class doesn't need to implement the T3StartupDef and it still=20
    > works, however my shutdown class must implement the T3ShutdownDef=20
    > (otherwise I'll get ClassCastException).=20


    > In article <3a030cc8@newsgroups.bea.com>, dr@dima.dhs.org says...
    >> Most likely the HubDevicePool does not have a public default constructor=

    ..
    >>=20
    >> Ricky Wong <rickywong@dahsing.com> wrote:
    >> > In what situation I'll get the error "Failed to invoke startup/shutdow=

    n=20
    >> > class" as below :

    >>=20
    >> > java.lang.InstantiationException:=20
    >> > dsb/eBanking/backOffice/connect/HubDevicePool
    >> > at java.lang.Class.newInstance0(Native Method)
    >> > at java.lang.Class.newInstance(Compiled Code)
    >> > at weblogic.t3.srvr.StartupThread.runStartup
    >> > (StartupThread.java:180)
    >> > at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
    >> > at weblogic.t3.srvr.PropertyExecuteThread.run
    >> > (PropertyExecuteThread.java:62)

    >>=20
    >> > I'm pretty sure that the class HubDevicePool has been coded (e.g.=20
    >> > implement T3xxxDef interface, with either the startup() or shutdown()=

    =20
    >> > method) properly as I've another startup classes which work perfectly.=

    =20
    >> > The class has been compiled without error, but it just cannot run when=

    I=20
    >> > put it as either a startup or shutdown class for WebLogic.

    >>=20
    >> Dimitri
    >>=20


    Dimitri


+ Reply to Thread