### Eclipse Workspace Patch 1.0
#P ws-gram-4.0.4
Index: client/java/source/src/org/globus/exec/client/GramJob.java
===================================================================
RCS file: /home/globdev/CVS/globus-packages/ws-gram/client/java/
source/src/org/
globus/exec/client/GramJob.java,v
retrieving revision 1.129.2.10
diff -u -r1.129.2.10 GramJob.java
--- client/java/source/src/org/globus/exec/client/GramJob.java 1 Dec
2006 21:1
0:03 -0000 1.129.2.10
+++ client/java/source/src/org/globus/exec/client/GramJob.java 10
Mar 2007 18:
13:10 -0000
@@ -69,6 +69,7 @@
import org.globus.exec.generated.ReleaseInputType;
import org.globus.exec.generated.ServiceLevelAgreementType;
import org.globus.exec.generated.StateChangeNotificationMessageType;
+import
org.globus.exec.generated.StateChangeNotificationMessageWrapperType;
import org.globus.exec.generated.StateEnumeration;
import org.globus.exec.utils.Resources;
import org.globus.exec.utils.ManagedExecutableJobConstants;
@@ -1626,10 +1627,15 @@
}
try {
- StateChangeNotificationMessageType changeNotification =
- (StateChangeNotificationMessageType)
ObjectDeserializer.toObject(
+ StateChangeNotificationMessageType changeNotification =
null;
+ if (message instanceof Element) {
+ changeNotification =
+ (StateChangeNotificationMessageType)
ObjectDeserializer.toO
bject(
(Element) message,
StateChangeNotificationMessageType.class);
+ } else if (message instanceof
StateChangeNotificationMessageWrappe
rType){
+ changeNotification =
((StateChangeNotificationMessageWrapperTy
pe) message).getStateChangeNotificationMessage();
+ }
StateEnumeration state = changeNotification.getState();
boolean holding = changeNotification.isHolding();
if (state.equals(StateEnumeration.Failed)) {
On Sep 29, 2007, at 6:41 AM, [EMAIL PROTECTED] wrote:
http://bugzilla.globus.org/globus/show_bug.cgi?id=4968