typhoid / apparat

Automatically exported from code.google.com/p/apparat
0 stars 0 forks source link

Null Pointer error with LZM Compression #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at Matryoshka/onEnterFrame()

Hi there I am testing LZM compression against the flowplayer project which the 
main file can be found here, 

http://code.google.com/p/flowplayer-core/source/browse/flowplayer/trunk/src/acti
onscript/org/flowplayer/view/Launcher.as

I tried with a preloader ant task option, but seems to not work. I tried with a 
quiet option and did not work

 [reducer] [INFO] Apparat -- http://apparat.googlecode.com/
  [reducer] [INFO] Launching tool: Reducer
  [reducer] scala.MatchError: 1
  [reducer]     at apparat.tools.reducer.ReducerConfigurationFactory$.fromConfiguration(ReducerConfigurationFactory.scala:38)
  [reducer]     at apparat.tools.reducer.Reducer$ReducerTool.configure(Reducer.scala:47)
  [reducer]     at apparat.tools.ApparatApplication$.apply(ApparatApplication.scala:72)
  [reducer]     at apparat.tools.reducer.Reducer$.main(Reducer.scala:20)
  [reducer]     at apparat.tools.reducer.Reducer.main(Reducer.scala)
  [reducer]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [reducer]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  [reducer]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  [reducer]     at java.lang.reflect.Method.invoke(Method.java:597)
  [reducer]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
  [reducer]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
  [reducer]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
  [reducer]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
  [reducer]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
  [reducer]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
  [reducer]     at apparat.embedding.ant.ApparatTask.execute(ApparatTask.scala:56)
  [reducer]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
  [reducer]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  [reducer]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  [reducer]     at java.lang.reflect.Method.invoke(Method.java:597)
  [reducer]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
  [reducer]     at org.apache.tools.ant.Task.perform(Task.java:348)
  [reducer]     at org.apache.tools.ant.Target.execute(Target.java:390)
  [reducer]     at org.apache.tools.ant.Target.performTasks(Target.java:411)
  [reducer]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
  [reducer]     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
  [reducer]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
  [reducer]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
  [reducer]     at org.apache.tools.ant.Main.runBuild(Main.java:809)
  [reducer]     at org.apache.tools.ant.Main.startAnt(Main.java:217)
  [reducer]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
  [reducer]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
  [reducer] [FATAL] 1

The ant task does also not have options for all the reducer parameters like the 
7zip path etc. Any ideas how to make the main program reduce and load 
correctly. It requires to also access the flash loader parameters ie 
root.loaderInfo.parameters. Let me know if this is fixable thanks. 

Original issue reported on code.google.com by electrot...@gmail.com on 6 Jan 2012 at 3:34