[Swift-devel] Swift trunk seems to be broken

Mihael Hategan hategan at mcs.anl.gov
Tue Jul 28 00:10:59 CDT 2009


Fixed in cog r2446.

On Mon, 2009-07-27 at 23:51 -0500, Michael Wilde wrote:
> I think its cog rev 2440 thats causing the problem.
> 
> 2440 fails:
> 
> com$ swift t3.swift
> Swift svn swift-r3021 cog-r2440
> 
> RunID: 20090727-2333-dpf7v3ze
> Execution failed:
> 	org.globus.cog.karajan.workflow.KarajanRuntimeException: Could not 
> convert value to number: unbounded
> Caused by:
> 	For input string: "unbounded"
> com$ cd -
> /home/wilde/swift/src/cog/modules/swift
> com$
> com$
> 
> 
> 2339 works:
> 
> com$ swift t3.swift
> Swift svn swift-r3021 cog-r2439
> 
> RunID: 20090727-2337-g19sgr5f
> com$
> 
> 
> 2440 is:
> 
> com$ svn diff -r 2439:2440
> Index: 
> modules/karajan/src/org/globus/cog/karajan/workflow/nodes/functions/Misc.java
> ===================================================================
> --- 
> modules/karajan/src/org/globus/cog/karajan/workflow/nodes/functions/Misc.java 
> (revision 2439)
> +++ 
> modules/karajan/src/org/globus/cog/karajan/workflow/nodes/functions/Misc.java 
> (revision 2440)
> @@ -84,7 +84,13 @@
> 
>   	public boolean sys_equals(VariableStack stack) throws 
> ExecutionException {
>   		Object[] args = getArguments(ARGS_2VALUES, stack);
> -		return args[0].equals(args[1]);
> +		if (args[0] instanceof Number) {
> +			Number n2 = TypeUtil.toNumber(args[1]);
> +			return ((Number) args[0]).doubleValue() == n2.doubleValue();
> +		}
> +		else {
> +			return args[0].equals(args[1]);
> +		}
> 
> Exception in log (example) is below.
> 
> - Mike
> 
> 2009-07-27 21:36:28,559-0500 INFO  unknown Swift svn swift-r3019 (swift 
> modified locally) cog-r2445
> 
> 2009-07-27 21:36:28,561-0500 INFO  unknown RUNID 
> id=tag:benc at ci.uchicago.edu,2007:swift:run:20090727-2136-ibeu4gif
> 2009-07-27 21:36:28,719-0500 DEBUG VDL2ExecutionContext 
> org.globus.cog.karajan.workflow.KarajanRuntimeException: Could not 
> convert value to number: unbounded
> org.globus.cog.karajan.workflow.KarajanRuntimeException: Could not 
> convert value to number: unbounded
> Caused by: org.globus.cog.karajan.workflow.KarajanRuntimeException: 
> Could not convert value to number: unbounded
>          at org.globus.cog.karajan.util.TypeUtil.toNumber(TypeUtil.java:61)
>          at 
> org.globus.cog.karajan.workflow.nodes.functions.Misc.sys_equals(Misc.java:88)
>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>          at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
>          at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
>          at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
>          at java.lang.reflect.Method.invoke(Method.java:391)
>          at 
> org.globus.cog.karajan.workflow.nodes.functions.FunctionsCollection.function(FunctionsCollection.java:78)
>          at 
> org.globus.cog.karajan.workflow.nodes.functions.AbstractFunction.post(AbstractFunction.java:45)
>          at 
> org.globus.cog.karajan.workflow.nodes.AbstractSequentialWithArguments.childCompleted(AbstractSequentialWithArguments.java(Compiled 
> Code))
>          at 
> org.globus.cog.karajan.workflow.nodes.Sequential.notificationEvent(Sequential.java(Compiled 
> Code))
>          at 
> org.globus.cog.karajan.workflow.nodes.FlowNode.event(FlowNode.java(Compiled 
> Code))
>          at 
> org.globus.cog.karajan.workflow.events.EventBus.send(EventBus.java(Compiled 
> Code))
>          at 
> org.globus.cog.karajan.workflow.events.EventBus.sendHooked(EventBus.java(Compiled 
> Code))
>          at 
> org.globus.cog.karajan.workflow.nodes.FlowNode.fireNotificationEvent(FlowNode.java(Compiled 
> Code))
>          at 
> org.globus.cog.karajan.workflow.nodes.FlowNode.complete(FlowNode.java(Compiled 
> Code))
>          at 
> org.globus.cog.karajan.workflow.nodes.functions.AbstractFunction.executeChildren(AbstractFunction.java:37)
>          at 
> org.globus.cog.karajan.workflow.nodes.FlowContainer.execute(FlowContainer.java(Compiled 
> Code))
>          at 
> org.globus.cog.karajan.workflow.nodes.FlowNode.restart(FlowNode.java(Compiled 
> Code))
>          at 
> org.globus.cog.karajan.workflow.nodes.FlowNode.start(FlowNode.java(Inlined 
> Compiled Code))
>          at 
> org.globus.cog.karajan.workflow.nodes.FlowNode.controlEvent(FlowNode.java(Compiled 
> Code))
>          at 
> org.globus.cog.karajan.workflow.nodes.FlowNode.event(FlowNode.java(Compiled 
> Code))
>          at 
> org.globus.cog.karajan.workflow.FlowElementWrapper.event(FlowElementWrapper.java(Compiled 
> Code))
>          at 
> org.globus.cog.karajan.workflow.events.EventBus.send(EventBus.java(Compiled 
> Code))
>          at 
> org.globus.cog.karajan.workflow.events.EventBus.sendHooked(EventBus.java(Inlined 
> Compiled Code))
>          at 
> org.globus.cog.karajan.workflow.events.EventWorker.run(EventWorker.java(Compiled 
> Code))
> Caused by: java.lang.NumberFormatException: For input string: "unbounded"
>          at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java(Compiled 
> Code))
>          at 
> java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java(Compiled 
> Code))
>          at java.lang.Double.valueOf(Double.java:227)
>          at org.globus.cog.karajan.util.TypeUtil.toNumber(TypeUtil.java:51)
>          ... 25 more
> 
> 
> 
> 
> 
> On 7/27/09 11:21 PM, Michael Wilde wrote:
> > This script:
> > 
> > com$ cat >t3.swift
> > type d {
> >   int x;
> > }
> > com$
> > 
> > Gives:
> > 
> > com$ swift t3.swift
> > Swift svn swift-r3019 cog-r2445
> > 
> > RunID: 20090727-2313-2zka71if
> > Execution failed:
> >     org.globus.cog.karajan.workflow.KarajanRuntimeException: Could not 
> > convert value to number: unbounded
> > Caused by:
> >     For input string: "unbounded"
> > com$
> > 
> > 
> > com$ java -version
> > java version "1.5.0_06"
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> > Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)
> > com$
> > 
> > 
> > Is anyone else seeing this problem?
> > 
> > This fails for me on both communicado and on the BG/P.
> > On the BG/P I tried with both Java 2.4 and Java 6; both failed the same 
> > way.
> > 
> > - Mike
> > 
> > 
> > _______________________________________________
> > Swift-devel mailing list
> > Swift-devel at ci.uchicago.edu
> > http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel




More information about the Swift-devel mailing list