, i don't know what is causing trouble
but, i found that it works fine if i'm passing object to
notifyObservers(Object arg)
on the other hand it fails on notifyObservers()
at the moment, i'm using December release [may try to upgrade if somebody
tell me about any working/stable version]
or i'm free to use any version say last nightly version

VINK

-----Original Message-----
From: Russell Butek [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 6:38 PM
To: [EMAIL PROTECTED]
Subject: Re: Exception on implementing java.util.Observer in WebService


A couple things.

First, you're getting an exception from the server (SOAPFaultBuilder is
trying to build it up).  Even though this exception isn't getting to you
because of a bug in SOAPFaultBuilder, you can use tcpmon to see that
exception.

Secondly, what version of AXIS are you running?  Line 134 in the current
build cannot possibly throw NullPointerException:  "if (f == null)".
Perhaps your problem has been fixed in a recent build?

Russell Butek
[EMAIL PROTECTED]


"Kumar, Vinay 2" <[EMAIL PROTECTED]> on 03/18/2002 12:47:15 AM

Please respond to [EMAIL PROTECTED]

To:    "'AXIS-USER'" <[EMAIL PROTECTED]>
cc:
Subject:    Exception on implementing java.util.Observer in WebService



hello,

my client is a Applet
in my Web Service i try to implement Observer Interface to watch any change
in my Object Store

the moment i call function "notifyObservers()" in Class which extends
Observable,

it has to call the "update(java.util.Observable aObservable, Object
aObject)" function in Web Service
but, it raises the following exception in Applet:

Any comments? suggestions?

VINK


java.lang.NullPointerException
 at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:13

4)
 at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationCo

ntext.java:671)
 at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1489)
 at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
 at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
 at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
 at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
 at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
 at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
 at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
 at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext

.java:204)
 at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:378)
 at org.apache.axis.client.Call.invoke(Call.java:1268)
 at org.apache.axis.client.Call.invoke(Call.java:1113)
 at org.apache.axis.client.Call.invoke(Call.java:1043)
 at org.apache.axis.client.Call.invoke(Call.java:676)
 at GenericApplet.SendCommand(GenericApplet.java:275)
 at GenericApplet.actionPerformed(GenericApplet.java:194)
 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.AWTEventMulticaster.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)


Reply via email to