SCM

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: java.lang.NullPointerException using xmllib [ Reply ]
By: ilhami visne on 2009-10-21 12:13
[forum:2073]
Hi,

Thank you for pointing this. Yes, you may not use '<-' because of XML restrictions.

I'm gonna mention this in the doc.

best wishes,
ilhami visne

RE: java.lang.NullPointerException using xmllib [ Reply ]
By: L R on 2009-10-20 12:28
[forum:2067]
ok.. i think i found the problem. you are not allowed to write the <- operator in rgg code. it would be nice if you could mention that somewhere or fix that bug.

greetings
lutz

RE: java.lang.NullPointerException using xmllib [ Reply ]
By: L R on 2009-10-19 19:21
[forum:2065]
ok.. xmllib doesnt seem to be the problem. i get the same error when trying to run this script:
----------
<rgg>
# GUI
fileName = <filechooser label="XML" description="xml Files"
extensions="xml" fileselection-mode="files-only"/>

# load libraries
setwd(rgghome)
# load data
data <- read.table(fileName, header=TRUE)
</rgg>
------------------

do i have to write the script in a certain encoding? im using ANSI.

java.lang.NullPointerException using xmllib [ Reply ]
By: L R on 2009-10-19 19:03
[forum:2064]
Hey, i need to use R's XML package in my R Scripts which uses xmllib2. But the following code doesnt seem to work:
--------------
<rgg>
fileName = <filechooser label="XML" description="xml Files"
extensions="xml" fileselection-mode="files-only"/>

fileName
library("XML")
fileName
# doc <- xmlInternalTreeParse(file)
</rgg>
--------------
yes, even the commented line with xmlInternalTreeParse crashes the program.

when i delete the line: "doc <- xmlInternal...." RGG works fine. Is there a way to parse xml files in my r scripts using rgg?

Thanks for your help! :)
Lutz



I get the following error from RGG:
---------------------
java.lang.NullPointerException
at org.arcs.rgg.rggnbmod.filetype.RGGVisualView.setRGG(RGGVisualView.java:41)
at org.arcs.rgg.rggnbmod.filetype.RGGEditorSupport$1.fileChanged(RGGEditorSupport.java:56)
at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEventImpl(FCLSupport.java:136)
at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEvent(FCLSupport.java:122)
at org.openide.filesystems.FCLSupport.dispatchEvent(FCLSupport.java:99)
at org.openide.filesystems.FileObject$ED.dispatch(FileObject.java:915)
at org.openide.filesystems.EventControl.invokeDispatchers(EventControl.java:203)
at org.openide.filesystems.EventControl.exitAtomicAction(EventControl.java:177)
at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:122)
at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:502)
at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectFactory.refresh(FileObjectFactory.java:652)
at org.netbeans.modules.masterfs.filebasedfs.fileobjects.RootObj.invokeRefreshFor(RootObj.java:179)
at org.netbeans.modules.masterfs.filebasedfs.fileobjects.RootObj.setAttribute(RootObj.java:131)
at org.openide.filesystems.FileUtil.refreshFor(FileUtil.java:155)
at org.openide.filesystems.FileUtil.refreshAll(FileUtil.java:168)
at org.netbeans.core.ui.warmup.MenuWarmUpTask$NbWindowsAdapter.run(MenuWarmUpTask.java:150)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

Thanks to:
Vienna University of Economics and Business Powered By FusionForge