Java Reference
In-Depth Information
With this mechanism, the ClientDeploylet applet will take charge of all client-server deploy-
ment communication in order to provide to our code the given deployment services. We also
cover the very beginning of the applet lifecycle, thanks to a launching servlet (see Web address
in Figure 7.8) that is discussed in the next sections.
If we input in our AccountApplet zero working hours per day, we'll obtain a division by zero
exception that will be sent automatically to our deployment server (see Listing 7.8, line 45).
Then, the IT development staff would have a recorded log like the following:
Processing Debug message:
message=Uncaught Exception: / by zero
Deploylet log=
- *** logged: com.marinilli.b2.c7.deploylet.AccountApplet
with ServerDeploylet: //localhost/deploylet/127.0.0.1-0
- init()
- account applet started
Uncaught Exception trace:
java.lang.ArithmeticException: / by zero
at com.marinilli.b2.c7.deploylet.AccountApplet.calculate(AccountApplet.
java:76)
at com.marinilli.b2.c7.deploylet.AccountApplet$1.actionPerformed
(AccountApplet.java:33)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
7
Search WWH ::




Custom Search