This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 166212 - org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not be instantiated: java.lang.NullPointerException
Summary: org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apac...
Status: RESOLVED WONTFIX
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@third-party
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-28 18:43 UTC by juan_ozito
Modified: 2011-11-07 09:34 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 151943


Attachments
stacktrace (4.45 KB, text/plain)
2009-05-28 18:43 UTC, juan_ozito
Details

Note You need to log in before you can comment on or make changes to this bug.
Description juan_ozito 2009-05-28 18:43:43 UTC
This issue was originally marked as duplicate of issue 149808, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related.

Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.29-gentoo-r5, amd64

User Comments:
GUEST: Program startup

GUEST: I really thing thah is beacause I installed JasperReport and IReport plugin for Netbeans

GUEST: al arrancar el programa, lo ultimo que estaba haciendo era una aplicacion web

GUEST: Tyring to start Netbeans as always: double click on the desktop icon

GUEST: Se instala Ireport y tuve el problea

GUEST: open netbeans

jurato: i tring to start netbeans ide 6.5

GUEST: -------------------------------------------------------------------------------
>Log Session: Friday, August 15, 2008 11:05:04 PM COT
>System Info: 
  Product Version         = NetBeans IDE 6.5 Beta (Build 200808111757)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22; Sun Microsystems Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_06-b02
  Java Home               = C:\Archivos de programa\Java\jdk1.6.0_06\jre
  System Locale; Encoding = es_CO (nb); Cp1252
  Home Directory          = C:\Documents and Settings\Fernando
  Current Directory       = C:\Archivos de programa\NetBeans 6.5 Beta
  User Directory          = C:\Documents and Settings\Fernando\.netbeans\6.5beta
  Installation            = C:\Archivos de programa\NetBeans 6.5 Beta\nb6.5
                            C:\Archivos de programa\NetBeans 6.5 Beta\ide10
                            C:\Archivos de programa\NetBea

GUEST: Instale el complemento iReport, al terminar la instalacion se congelo el NetBeans, lo cerr� forzando la salida y al volverlo a iniciar marc� esta excepci�n

GUEST: Abriendo el ide

GUEST: install ireport plugin

GUEST: I don't know what happenned!!! after i installed ireport this netbeans went crazy =(

GUEST: Error al iniciar Netbeans 6.5

GUEST: starting netbeans

GUEST: this a problem

GUEST: installing ireport plugin

GUEST: open netbeans

GUEST: my netbeans IDE not started when I run.

GUEST: Starting up Netbeans on Fedora 9 i386

juan_ozito: I was starting Netbeans with the command: /home/juan/netbeans/bin/netbeans --jdkhome /opt/sun-jdk-1.6.0.13
and it crash

GUEST: I was trying to start the id



Stacktrace: 
org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not be instantiated: java.lang.NullPointerException
        at org.apache.xerces.parsers.ObjectFactory.newInstance(ObjectFactory.java:0)
        at org.apache.xerces.parsers.ObjectFactory.createObject(ObjectFactory.java:0)
        at org.apache.xerces.parsers.ObjectFactory.createObject(ObjectFactory.java:0)
        at org.apache.xerces.parsers.DOMParser.<init>(DOMParser.java:0)
        at org.apache.xerces.parsers.DOMParser.<init>(DOMParser.java:0)
        at com.jaspersoft.ireport.designer.IReportManager.loadConnection(IReportManager.java:232)
Comment 1 juan_ozito 2009-05-28 18:43:53 UTC
Created attachment 82939 [details]
stacktrace
Comment 2 Jiri Skrivanek 2009-06-03 12:09:22 UTC
Problem in ireport plugin.
Comment 3 Jiri Kovalsky 2009-06-03 12:41:12 UTC
Giulio, can you please fix this problem? Thanks!
Comment 4 Marian Mirilovic 2009-07-09 09:41:38 UTC
110 duplicates ... P1
Comment 5 gt78 2009-07-09 09:54:29 UTC
ok, I'll try to fix the problem, but I need some help, because the Xerses stuff has always been a pain ... when 
deploying plugin in NetBeans.
Is no org.apache.xerces.parsers.XIncludeAwareParserConfiguration really available in the platform?
I think iReport screws up everything with this lines of code:

if (System.getProperty("javax.xml.parsers.SAXParserFactory") == null)
        {
            System.setProperty
("javax.xml.parsers.SAXParserFactory","com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl");
        }

        if (System.getProperty("javax.xml.parsers.DocumentBuilderFactory") == null)
        {
            System.setProperty
("javax.xml.parsers.DocumentBuilderFactory","com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl");
        }

        if (System.getProperty("javax.xml.datatype.DatatypeFactory") == null)
        {
            System.setProperty
("javax.xml.datatype.DatatypeFactory","com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl");
        }

        System.out.println("javax.xml.parsers.SAXParserFactory="+System.getProperty
("javax.xml.parsers.SAXParserFactory"));
        System.out.println("javax.xml.parsers.DocumentBuilderFactory="+System.getProperty
("javax.xml.parsers.DocumentBuilderFactory"));
        System.out.println("javax.xml.datatype.DatatypeFactory="+System.getProperty
("javax.xml.datatype.DatatypeFactory"));
        System.out.flush();

This was my workaround for problems I had related to the Xerces configuration. And it worked with NetBeans 6.5 solving 
a problem users had with xerces. Now it seems that this problem has solved in a different way which is no longer 
compatible with my fix. Any suggestion is really welcome.

Giulio
Comment 6 Marian Mirilovic 2011-11-07 09:34:19 UTC
Please report against http://www.jaspersoft.com/ . Thanks in advance