October 25, 2009 – 11:26 am
setValidating(false) will not prevent DTD validation, but you can set http://apache.org/xml/features/nonvalidating/load-external-dtd feature to false. I think is a Xerces-only feature, though, it may not be recognized by other parsers.
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setValidating(false);
[...]
August 25, 2009 – 7:30 pm
Java 6 includes STaX , when I tried to parse a Evernote backup file with it, I got a “OOME” error.
java.lang.OutOfMemoryError: Java heap space
at com.sun.org.apache.xerces.internal.util.XMLStringBuffer.append(XMLStringBuffer.java:205)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.refresh(XMLDocumentScannerImpl.java:1520)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.invokeListeners(XMLEntityScanner.java:2070)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.peekChar(XMLEntityScanner.java:486)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2679)
[...]
By ruben.laguna
|
Posted in mac, netbeans, windows
|
Also tagged api, bug, exception, implementation, jar, library, netbeans, oome, outofmemoryexception, parser, parsing, provider, service, spi, stax, woodstox, wrapper, xml
|
I spent some time on GraphBrowser, starting off the project, the first step has been to add basic support for opeining Graphviz DOT files.
There are already some pages on the net talking about how to add open file support for new file types in NetBeans.
File Type Integration Tutorial
So there is no need to [...]
By ruben.laguna
|
Posted in java, netbeans
|
Also tagged api, dot, file, graph, graphbrowser, graphviz, guess, library, netbeans, open, support, visual
|
I decided to start a small project trying to port the GUESS framework into Netbeans RCP.
The plan is to replace the GUESS own graphical library with Netbeans Visual Library stuff and replace the GUESS Python like interpreter with something more along the lines of JSR 223 Scripting for the Java Platform.
For the moment I [...]
I was fiddling with the Netbeans Visual Library again, trying to show a complex graph on screen and I run into a problem: There were so many connection in the graph that some widgets were hard to read because the ConnectionWidget arrows were printed over them.
So I tried to I try to rearrange the [...]
By ruben.laguna
|
Posted in netbeans
|
Also tagged connectionwidget, graph, illegalstateexception, labelwidget, layerwidget, library, netbeans, order, visual, visualization, widget
|
Today I experienced a strange problem. Or I thought it was strange . I just checkout a my project from Subversion into Netbeans and it didn’t work!. How come? I have another working copy that works just ok. So I check the logs in $app/build/testuserdir/var/log/messages.log and I found
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
INFO [org.netbeans.core.windows.persistence]: [PersistenceManager.getTopComponentForID] Problem when deserializing TopComponent [...]
December 12, 2008 – 9:31 am
First read this Mozillazine page
In my case the problem was that some program overwrote the registry entry HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java Runtime Environment/BrowserJavaVersion with the old value 1.6.0_01. When I set it back to 1.6.0_06 everything worked fine again.
Now the addons window looks like
before it showed Java Platform SE 6 U1 instead
Bookmark It
Hide Sites
$$(‘div.d323′).each( function(e) { [...]
If you are getting javax.jnlp.UnavailableServiceException from javax.jnlp.ServiceManager.lookup() or if javax.jnlp.ServiceManager.getServicesNames returns null you must be aware that those call only return useful thing when you run your code fromt the Java Web Start environment.
It´s not enough to include the jnlp.jar or javaws.jar in the classpath.
For example to make it work from Netbeans you must [...]