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.
Summary: | [65cat] IllegalStateException: FacesModel was not loaded for DataObject, dataObject=org.netbeans.modules.visualweb.project.jsfloader.JsfJspDataObject@1716e12[C:\Documents and Settings\Administrator\My Documen | ||
---|---|---|---|
Product: | third-party | Reporter: | thompsonwd40 <thompsonwd40> |
Component: | -- Other -- | Assignee: | issues@third-party <issues> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | CC: | abdulvahidu, abu_gurnah, adolf_99, alexsuporte, bitos2002, dagan, davti, deyringer, dheffelfinger, dkonecny, dome, ecivil, fedesaravia, italeb, jonathanvilalopez, kendavis416, leomcabral, mirianoe, mkroll, oddvard, oscarp, pncblessed, potingwu, rajeshbhatiya, ravilan, rdelaplante, shpimenta, thoism, valexiscg, wangcll, ymartinez40 |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=74378 | ||
Issue Type: | DEFECT | Exception Reporter: | 74378 |
Attachments: |
stacktrace
stacktrace stacktrace |
Description
thompsonwd40
2008-08-24 05:01:56 UTC
Created attachment 68176 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200808221401) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05, Java(TM) SE Runtime Environment, 1.6.0_03-b05 OS: Windows XP, 5.1, x86 User Comments: [65cat] Opening VWP page, by clicking an available tab. Using latest build, after encountering this problem yesterday to see if the problem still persists. It does. Stacktrace: java.lang.IllegalStateException: FacesModel was not loaded for DataObject, dataObject=org.netbeans.modules.visualweb.project.jsfloader.JsfJspDataObject@84433d[C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\WorkloadWebApp\web\ClassView.jsp] at org.netbeans.modules.visualweb.designer.jsf.JsfForm.loadFacesModel(JsfForm.java:3020) at org.netbeans.modules.visualweb.designer.jsf.JsfForm.access$000(JsfForm.java:131) at org.netbeans.modules.visualweb.designer.jsf.JsfForm$1.modelSetAdded(JsfForm.java:369) at org.netbeans.modules.visualweb.insync.ModelSet.fireModelSetAdded(ModelSet.java:179) at org.netbeans.modules.visualweb.insync.ModelSet.getInstance(ModelSet.java:255) at org.netbeans.modules.visualweb.insync.ModelSet$1.run(ModelSet.java:217) Created attachment 68198 [details]
stacktrace
*** Issue 144940 has been marked as a duplicate of this issue. *** I get this error if I don't install NetBeans using the Installer Note that I only use the installer, on my WinXP system. Also note that I have installed many versions of the daily builds for participation in the NetCat 65 team. Possibly something cumulative have occurred because of the builds? I have not deleted my userdir (yet). Insync is not handling the faces configuration file, it is just using the results from web/jsf module. This could be a problem in web JSF implementation. Re-assigning to Po-Ting for more investigation. Note that insync has not changed for quite sometime. Re-assigned the wrong bug I am not able to reproduce with the following steps 1)Create a visual JSF project 2)Add another page 3)Close the pages 4)Close the project 5)Open the project 6)Open the pages and switch between tabs. Please provide steps to reproduce From the stack, insync has trouble get the model and issue the exception. Please first investigate insync at where it had the trouble and got the exception. Web/jsf didn't change any model since 6.0. However the IDE dataloader has changed a lot and that looks like the cause because insync has its own classloader that may not sync with. Please first check where inside insync reports this exception. fix cross edit The error occurs immediately upon attempts to open the Visual editor. I open a VW project from the projects window, and IDE attempts to open the Visual editor - I get an error. I click a tab with a previously opened file (with Visual editor in focus) - I get an error. Tonight, I created a new VW project from scratch, using build 0824, after the final wizard entry and the VW editor fires up, error: http://statistics.netbeans.org/analytics/detail.do?id=9879 was thrown (an entirely new error not encountered before, with this problem). This error occurs when I double-click a jsp file from the Projects window. A delay as the VW editor appears (blank), then the error message dialog, which brings me here. I get different errors, when I try to open a file different ways. I will try some different iterations. Problem solved. I removed the iReports plugin, restarted my IDE and all functions correctly. Please feel free to complete this issue. As per user comment, closing the bug as non reproducible This problem still occurs for me. I don't know if it's a build issue or Java Please provide the steps, I am not able to reproduce with the steps I mentioned earlier in my comment. Or attach a project and steps to reproduce. This is how I reproduced this: Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-121 System: Mac OS X version 10.4.11 running on i386; MacRoman; en_US (nb) 1) Create a new clone of the repository 2) Build by typing 'ant' only (no options 3) Start NetBeans and register Glassfish v2 4) Create a new Visual Web project Result: Page 1 fails to load. John, what exceptions do you see? Are they the same as reported? My bad, I didn't have the stack trace in front of me. It turns out to be a different problem. java.lang.NullPointerException: Invalid FacesModel, it has null LiveUnit, facesModel=org.netbeans.modules.visualweb.insync.models.FacesModel@8468ee[ file: Page1.jsp] at org.netbeans.modules.visualweb.designer.jsf.JsfForm.initDesignProjectListening(JsfForm.java:735) at org.netbeans.modules.visualweb.designer.jsf.JsfForm.initListening(JsfForm.java:270) at org.netbeans.modules.visualweb.designer.jsf.JsfForm.init(JsfForm.java:241) at org.netbeans.modules.visualweb.designer.jsf.JsfForm.access$200(JsfForm.java:131) at org.netbeans.modules.visualweb.designer.jsf.JsfForm$1$1.run(JsfForm.java:374) This is still valid issue. The problem with RaveDocumentBuilderFactory is that it swallows exceptions in several places instead of properly rethrowing them or at least logging them, eg. RaveDocumentBuilderFactory() constuctor or RaveDocumentBuilderFactory.createDocumentBuilder() method. That's the first thing which if corrected will give us next time this problem happens the real exception. And that real exception IMO is related to iReports pluging perhaps providing its own parser causing RaveDocumentBuilderFactory to fail to create DocumentBuilderFactory? I believe the iReports plugin uses JNDI. Any NetBeans module that uses JNDI cannot be used if Visual Web projects are to be loaded during the same NetBeans session. Visual Web requires an InitialContextFactory to be created at startup. If this is what this issue is all about then there is another issue tracking this limitation, 125824 An exception causing the problem is swallowed so it is hard to say. But it does not look like JNDI is the cause. *** Issue 138878 has been marked as a duplicate of this issue. *** I think there was an issue with iReport module. The problem was that the module was trying to load apache xml parser impl, which clashed with NB library module, already providing those classes. In that case, warning is printed (look or provide the log file -> <userdir>/var/log/messages.log). In sum, the iReport module, shouldn't provide those apache classes, rather depend on the standard NB library module, which already provides them. This issue has already 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=74378 This issue already has 150 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=74378 This issue already has 203 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=74378 Build: NetBeans IDE 6.7 (Build 200906241340) VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08 OS: Windows Vista, 6.0, x86 User Comments: Double clicked a visual web page from Web Pages tree node. The page did not open, and I got this exception. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.visualweb.designer.markup.RaveDocumentBuilderFactory.createDocumentBuilder(RaveDocumentBuilderFactory.java:146) at org.netbeans.modules.visualweb.designer.markup.RaveDocumentBuilderFactory.newDocumentBuilder(RaveDocumentBuilderFactory.java:127) at org.netbeans.modules.visualweb.designer.markup.MarkupServiceImpl.createRaveSourceDocumentBuilder(MarkupServiceImpl.java:338) at org.netbeans.modules.visualweb.api.designer.markup.MarkupService.createRaveSourceDocumentBuilder(MarkupService.java:235) at org.netbeans.modules.visualweb.insync.markup.MarkupUnit.parseDom(MarkupUnit.java:348) at org.netbeans.modules.visualweb.insync.markup.MarkupUnit.read(MarkupUnit.java:502) Created attachment 85973 [details]
stacktrace
*** This issue has been marked as a duplicate of 135607 *** |