cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
james_decosta
Level 9

when do i get this exception

hi,
i want to know why i get this exception:
stack trace:

java.lang.ClassNotFoundException:
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.xxxx.roinstaller.RODataBaseRuleFalse.evaluateRule(RODataBaseRuleFalse.java:40)
at com.zerog.ia.installer.rules.CustomRule.checkSelf(DashoA8113)
at com.zerog.ia.installer.InstallPiece.checkRulesSelf(DashoA8113)
at com.zerog.ia.installer.AAMgr.a(DashoA8113)
at com.zerog.ia.installer.AAMgr.b(DashoA8113)
at com.zerog.ia.installer.AAMgr.c(DashoA8113)
at com.zerog.ia.installer.AAMgr.a(DashoA8113)
at com.zerog.ia.installer.AAMgr.b(DashoA8113)
at com.zerog.ia.installer.AAMgr.c(DashoA8113)
at com.zerog.ia.installer.AAMgr.a(DashoA8113)
at com.zerog.ia.installer.AAMgr.b(DashoA8113)
at com.zerog.ia.installer.AAMgr.c(DashoA8113)
at com.zerog.ia.installer.AAMgr.a(DashoA8113)
at com.zerog.ia.installer.AAMgr.a(DashoA8113)
at com.zerog.ia.installer.AAMgr.b(DashoA8113)
at com.zerog.ia.installer.AAMgr.c(DashoA8113)
at com.zerog.ia.installer.AAMgr.f(DashoA8113)
at com.zerog.ia.installer.AAMgr.actionPerformed(DashoA8113)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Labels (1)
0 Kudos

(6) Replies
pv7721
Level 20

You get this exception... doing what??????????
0 Kudos
james_decosta
Level 9

hello,
i want to display a panel using custom rule after getting user input for database connection.
When i inputted the right information for the minimal install set the panel which contains information "DB CONFIGURATION FOR MINIMAL IS NOT DONE PROPERLY" is displayed and i get this error in the stderr.log while
sysout("unable to load mysql database driver
and the stack trace is given to you.
The line of code which i am calling at that place:
myDriver = (Driver)Class.forName(DRIVER).newInstance();
can i get some relief from this issue.Looking for a suggestion
0 Kudos
pv7721
Level 20

Have you bundled the driver to connect to the database?
0 Kudos
james_decosta
Level 9

hello ,
what i did is :
I added a show message dialog panel in the preinstall task
and added a rule to it (my own)
and added configure dependencies and in that i added a mysql-connector-bin.jar
file .
This is what i should do no. Am i right??????
To my surprise this problem is not coming for typical install set
0 Kudos
james_decosta
Level 9

the jar file is attached herein .
0 Kudos
purcellk24
Level 7

So then your DRIVER in your custom code is incorrect.
Try debugging your custom code by adding more System.out.println() statements. You could output variables before you do any real actions in your custom code rule.
0 Kudos