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 249575 - IDE Red Exclamation Point: Package xxxxx not found
Summary: IDE Red Exclamation Point: Package xxxxx not found
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-30 16:38 UTC by criedluv
Modified: 2015-01-17 15:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Just a screen shot of the package imports flagged as errors (133.15 KB, application/x-zip-compressed)
2014-12-30 16:38 UTC, criedluv
Details
Illustrates netbeans IDE compiling correctly but editor supporting incorrectly JAXB classes from external maven module (92.36 KB, application/x-zip-compressed)
2015-01-05 21:17 UTC, criedluv
Details
Shows the error, the pom modification and the proper result (313.04 KB, image/png)
2015-01-17 15:01 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description criedluv 2014-12-30 16:38:41 UTC
Created attachment 151320 [details]
Just a screen shot of the package imports flagged as errors

Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Settings imported from earlier version 8.0.1. 
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)


I've seen similar forum postings opened for various NB versions. I can't seem to find anything that works for me. 

The packages not found are JAXB classes, generated/jar'd by a peer level maven sub-project. 

I've seen this since at least 8.0.1 across several unrelated projects. I upgraded to 8.0.2 in hopes of resolving this. 

Note the packages really do import and the maven project does install. 

If I perform a right-click, fix imports, all packages imports remain in the editor and all error conditions for the imports remain.

References in my source to the classes that reside in the packages are not flagged as errors, do compile but are ignored by Netbeans. Ignored, meaning, no auto-completion... nothing. 

All other packages and classes work fine.
Comment 1 markiewb 2014-12-31 10:03:15 UTC
@Kevin, is it possible for you to provide the whole sourcecode, so that it can be reproduced. Can you also provide the messages.log file from Menu "View/IDE Log".
Comment 2 Dusan Balek 2015-01-02 10:31:45 UTC
Could you please create a simple test case (project with similar configuration to your application with a simple source demonstrating the problem) and attach it to the issue? Thanks.
Comment 3 criedluv 2015-01-05 21:17:50 UTC
Created attachment 151376 [details]
Illustrates netbeans IDE compiling correctly but editor supporting incorrectly JAXB classes from external maven module

build in the examples folder; go to the cxf folder; go to the jaxrs example folder; go to the client folder; go to the client folder; open the only client source class. Verify, lines 21-25 show red exclamation points and that auto-completion isn't applied to the import statements. Verify  auto-completion is not applied to any of the package class references in and around line 63.

thank you.
Comment 4 criedluv 2015-01-05 22:22:08 UTC
Here's the contents of my IDE.log after I open  the project and the class file. Thanks and pls let me know if you need any further details.



WARNING [org.openide.util.Utilities]: Unrecognized object of class me.dsnet.quickopener.actions.CustomCommand found in actions path Projects/org-netbeans-modules-maven/Actions
WARNING [org.openide.util.Utilities]: Unrecognized object of class me.dsnet.quickopener.actions.CustomCommand found in actions path Projects/org-netbeans-modules-maven/Actions
WARNING [org.openide.util.Utilities]: Unrecognized object of class me.dsnet.quickopener.actions.CustomCommand found in actions path Projects/org-netbeans-modules-maven/Actions
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 133 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 0 binary roots took: 0 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 0 source roots took: 0 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 144 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 1 binary roots took: 13 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\apps\examples\cxf\src\main\resources took: 1 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\apps\examples\cxf\src\test\java took: 1 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\apps\examples\cxf\src\test\resources took: 0 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\apps\examples\cxf\src\main\java took: 1 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 4 source roots took: 3 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 153 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 2 binary roots took: 80 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\apps\examples\cxf\jaxrs-jaxws-description-first\src\main\java took: 0 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\apps\examples\cxf\jaxrs-jaxws-description-first\src\test\java took: 1 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\apps\examples\cxf\jaxrs-jaxws-description-first\src\test\resources took: 1 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\apps\examples\cxf\jaxrs-jaxws-description-first\src\main\resources took: 1 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\apps\examples\cxf\jaxrs-jaxws-description-first\common\src\main\resources took: 48 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 2 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 5 source roots took: 51 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 2 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 168 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 0 binary roots took: 0 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\apps\examples\cxf\jaxrs-jaxws-description-first\client\src\main\resources took: 775 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 1 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\apps\examples\cxf\jaxrs-jaxws-description-first\client\src\main\java took: 35 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 3 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\apps\examples\cxf\jaxrs-jaxws-description-first\client\src\test\resources took: 2 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\apps\examples\cxf\jaxrs-jaxws-description-first\client\src\test\java took: 1 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 4 source roots took: 813 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 4 ms]
Comment 5 criedluv 2015-01-16 20:39:36 UTC
markiewb, Dusan, any ideas on this one?
Comment 6 markiewb 2015-01-17 15:01:47 UTC
Created attachment 151557 [details]
Shows the error, the pom modification and the proper result

It is not an issue of NetBeans or its maven integration.

You simply missed to add the generated sources as sources. See the screenshot.
Comment 7 markiewb 2015-01-17 15:02:57 UTC
(In reply to markiewb from comment #6)
> Created attachment 151557 [details]
> Shows the error, the pom modification and the proper result
> 
> It is not an issue of NetBeans or its maven integration.
> 
> You simply missed to add the generated sources as sources. See the
> screenshot.

Thus I change the state to resolved invalid.