Thank Greg very much! I expect the 2.0 release so much :) On Wed, Jan 5, 2011 at 7:34 PM, Greg Brown <[email protected]> wrote:
> Ah. If you downloaded the demo source from trunk, you'll need Pivot 2.0 to > run it. Looks like you are using 1.5.2. You can either build it from source > or you can grab some pre-release JARs from here: > > http://ixnay.biz/pivot-jfree-demos/lib/ > > FYI the final 2.0 release will be available shortly. > > G > > > On Jan 5, 2011, at 2:43 AM, Le Zhou wrote: > > Thank Greg for quick response! :) I used the ScriptApplication approach to > run the chats demo and got the same error again :( > > My command and the error messages are shown below: > > lez...@lezhou:~/apache-pivot-1.5.2/lib$ java -cp > /home/lezhou/workspace/HelloPivot/bin/biz/ixnay/pivot/demos/charts/jfree/:charts-demo.jar:pivot-charts-1.5.2.jar:pivot-jfree-1.5.jar:pivot-wtk-1.5.2.jar:pivot-core-1.5.2.jar:pivot-tools-1.5.2.jar:pivot-wtk-terra-1.5.2.jar > org.apache.pivot.wtk.ScriptApplication > --src=/home/lezhou/workspace/HelloPivot/bin/biz/ixnay/pivot/demos/charts/jfree/charts_demo.bxml > An error occurred while processing org.apache.pivot.wtk.TabPane starting > at line number 24 in file > /home/lezhou/workspace/HelloPivot/bin/biz/ixnay/pivot/demos/charts/jfree/charts_demo.bxml: > org.apache.pivot.serialization.SerializationException: Property elements > cannot have a namespace prefix. > at > org.apache.pivot.wtkx.WTKXSerializer.processStartElement(WTKXSerializer.java:648) > at org.apache.pivot.wtkx.WTKXSerializer.readObject(WTKXSerializer.java:456) > at > org.apache.pivot.wtkx.WTKXSerializer.readObject(WTKXSerializer.java:412) > at > org.apache.pivot.wtk.ScriptApplication.startup(ScriptApplication.java:66) > at > org.apache.pivot.wtk.DesktopApplicationContext$HostFrame.processWindowEvent(DesktopApplicationContext.java:95) > at java.awt.Window.processEvent(Window.java:1823) > at java.awt.Component.dispatchEventImpl(Component.java:4630) > at java.awt.Container.dispatchEventImpl(Container.java:2099) > at java.awt.Window.dispatchEventImpl(Window.java:2478) > at java.awt.Component.dispatchEvent(Component.java:4460) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) > at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) > at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) > > > On Wed, Jan 5, 2011 at 2:08 AM, Greg Brown <[email protected]> wrote: > >> You don't need to rewrite anything - just make sure that all of the JARs >> are on your classpath and launch it via ScriptApplication: >> >> java -cp ... org.apache.pivot.wtk.ScriptApplication >> --src=/biz/ixnay/pivot/demos/charts/jfree/charts_demo.bxml >> >> Let me know if you have any problems. >> >> G >> >> On Jan 4, 2011, at 3:57 AM, Le Zhou wrote: >> >> Hi everyone, >> >> I can not view the "Charting" demo at http://pivot.apache.org/demos/, so >> i want to run the demo as an application on my computer to see what it is >> like. >> >> I used the source code from >> http://code.google.com/p/pivot-jfree/source/browse/trunk/demos/src/biz/ixnay/pivot/demos/charts/jfree >> >> I made the ChartsDemo class implement Applicaton, added one main funcion, >> just as the "Hello WTKX" program, and put all .bxml files under classpath, >> >> When I ran this application, I got an error as follows: >> >> "An error occurred while processing org.apache.pivot.wtk.TabPane starting >> at line number 24 in file >> /home/lezhou/workspace/HelloPivot/bin/biz/ixnay/pivot/demos/charts/jfree/charts_demo.bxml: >> org.apache.pivot.serialization.SerializationException: Property elements >> cannot have a namespace prefix." >> >> When I comment out all content between <TabPane> and </TabPane>, which are >> the same as follows: >> >> <bxml:include src="pie_charts.bxml" TabPane.tabData="Pie Chart"/> >> <bxml:include src="bar_charts.bxml" TabPane.tabData="Bar Chart"/> >> <bxml:include src="line_charts.bxml" TabPane.tabData="Line Chart"/> >> <bxml:include src="area_charts.bxml" TabPane.tabData="Area Chart"/> >> <bxml:include src="high_low_charts.bxml" TabPane.tabData="High Low >> Chart"/> >> >> previous error never come out anymore. I guess "bxml:include" might be >> treated as namespace prefix, but I've no idea how to solve this problem... >> >> Can anyone help me? Thanks a lot! >> >> >> > >
