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 152085 - Error marker on but code compiles
Summary: Error marker on but code compiles
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 152304 (view as bug list)
Depends on:
Blocks: 121950
  Show dependency tree
 
Reported: 2008-11-01 13:07 UTC by xkwauk
Modified: 2009-11-09 14:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xkwauk 2008-11-01 13:07:02 UTC
This is related to issue 104665 and many duplicated bug reports. We have a few wrapped library modules. When we replace
the jars in the file system, netbeans shows many error marks. As people reported before we have to open the referenced
file and wait for a few seconds then the error marks will go away. Meanwhile the code compiles fine. This happens every
time when we update these wrapped jars. Clean-n-rebuild these wrapped libraries doesn't change the behavior.

We stuck with wrapped library module for sharing code developed outside of netbeans. It seems very clunky in addition to
error mark issue. Are there any better ways to share code?
Comment 1 xkwauk 2008-11-02 12:34:22 UTC
I just downloaded jxta-jxse 2.5 and opened it in netbeans 6.1. There were many error marks. I had to open many files to
clear up these error marks. Finally it went down to probably 4 files which need to be generated. I then ran build.
Everything compiled. I had to open all generated files to clear up all error marks left. At this point there were even
more error marks appeared. I had to open more files until everything was cleared. I don't understand how you could close
bug 104665.
Comment 2 Petr Dvorak 2008-11-03 13:34:04 UTC
Could you please attach file "~/.netbeans/var/log/messages.log" here? Is this issue reproducible with latest dev build
or with 6.5RC?
Comment 3 xkwauk 2008-11-03 20:49:43 UTC
I've never tried 6.5. 

This problem happens to every one in our team on a regular bases. 

I just downloaded and opened jxta-jxse 2.5 in netbeans 6.1 on another machine. I wish I could send you a screen shot.
Most of the packages have error badges on opening the project the very first time. I looked at the messages.log. However
there is no entry related to jxta. After I tried to fix some error badges by opening some files I got the following in
the messages.log:

Coupling error:
class file:
file:/C:/Documents%20and%20Settings/xkwauk/.netbeans/6.1/var/cache/index/0.8/s2699/classes/net/jxta/impl/protocol/PSEConfigAdv.sig
source file: file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/PSEConfigAdv.java
METHOD: <init>
METHOD: getID
METHOD: handleElement
METHOD: getDocument
METHOD: newInstance
METHOD: newInstance
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Incorrect error badges detected,
file=C:\3rdparty\jxse-src-2.5\impl\src\net\jxta\impl\access\AccessList.java.
WARNING [org.netbeans.modules.java.source.tasklist.IncorrectErrorBadges]: Going to recompute
root=C:\3rdparty\jxse-src-2.5\impl\src, files in
error=[file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/access/AccessList.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/cm/Cm.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/cm/Indexer.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/cm/Srdi.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/cm/SrdiIndex.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/discovery/DiscoveryServiceImpl.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/discovery/DiscoveryServiceInterface.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/document/DOMXMLDocument.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/document/DOMXMLElement.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/document/LiteXMLDocument.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/document/LiteXMLElement.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/document/PlainTextDocument.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/document/PlainTextElement.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/document/TextDocumentCommon.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/BlockingMessenger.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/EndpointServiceImpl.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/EndpointServiceInterface.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/EndpointUtils.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/IPUtils.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/JxtaMessageMessageElement.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/LoopbackMessenger.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/WireFormatMessageBinary.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/loader/RefJxtaLoader.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/membership/PasswdMembershipService.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/meter/GenericServiceMonitor.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/meter/MetricUtilities.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/meter/MonitorManager.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/meter/ServiceMonitorImpl.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/meter/ServiceMonitorPulseInfo.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/meter/ServiceMonitorResource.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peer/PeerInfoHandler.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peer/PeerInfoMessenger.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peer/PeerInfoServiceImpl.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peer/PeerInfoServiceInterface.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peer/RemoteMonitorPeerInfoHandler.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peer/RemoteMonitorQuery.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peer/RemoteMonitorResponse.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peergroup/AutomaticConfigurator.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peergroup/Boot.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peergroup/ConfigDialog.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peergroup/DefaultConfigurator.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peergroup/GenericPeerGroup.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peergroup/IncompleteConfigurationException.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peergroup/NullConfigurator.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peergroup/PeerGroupInterface.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peergroup/Platform.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peergroup/PlatformConfigurator.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peergroup/RefCountPeerGroupInterface.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peergroup/ShadowPeerGroup.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/peergroup/StdPeerGroupParamAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/pipe/BlockingWireOutputPipe.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/pipe/InputPipeImpl.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/pipe/NonBlockingOutputPipe.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/pipe/NonBlockingWireOutputPipe.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/pipe/PipeRegistrar.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/pipe/PipeResolver.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/pipe/PipeServiceImpl.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/pipe/PipeServiceInterface.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/pipe/SecureInputPipeImpl.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/pipe/SecureOutputPipe.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/pipe/WireHeader.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/pipe/WirePipe.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/pipe/WirePipeImpl.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/AccessPointAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/Certificate.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/CertificateSigningRequest.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/DiscoveryConfigAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/DiscoveryQuery.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/DiscoveryResponse.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/GroupConfig.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/HTTPAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/LeaseRequestMsg.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/LeaseResponseMsg.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/LimitedRangeRdvMsg.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/ModuleClassAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/ModuleImplAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/ModuleSpecAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/PeerAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/PeerGroupAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/PeerGroupConfigAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/PeerInfoQueryMsg.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/PeerInfoResponseMsg.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/PipeAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/PipeResolverMsg.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/PlatformConfig.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/PSEConfigAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/RdvAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/RdvConfigAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/RelayConfigAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/ResolverQuery.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/ResolverResponse.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/ResolverSrdiMsgImpl.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/RouteAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/RouteQuery.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/RouteResponse.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/SignedAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/SrdiMessageImpl.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/protocol/TCPAdv.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/proxy/ProxyService.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/proxy/Requestor.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/rendezvous/PeerConnection.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/rendezvous/RendezVousPropagateMessage.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/rendezvous/RendezVousServiceImpl.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/rendezvous/RendezVousServiceInterface.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/rendezvous/RendezVousServiceProvider.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/rendezvous/StdRendezVousService.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/resolver/InternalQueryHandler.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/resolver/ResolverServiceImpl.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/resolver/ResolverServiceInterface.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/util/ACLSeedingManager.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/util/AdvCooker.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/util/ConsumerBiasedQueue.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/util/EndpointServiceStatsFilter.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/util/GenerateID.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/util/JxtaHash.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/util/ModuleManager.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/util/ProducerBiasedQueue.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/util/RdvAdvSeedingManager.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/util/ResourceDispatcher.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/util/TimerThreadNamer.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/util/UnbiasedQueue.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/util/URISeedingManager.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/xindice/Debug.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/access/always/AlwaysAccessService.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/access/pse/PSEAccessService.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/access/simpleACL/SimpleACLAccessService.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/cbjx/CbJxDefs.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/cbjx/CbJxMessageInfo.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/cbjx/CbJxMessenger.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/cbjx/CbJxTransport.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/endpointMeter/EndpointMeter.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/endpointMeter/EndpointMetric.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/endpointMeter/EndpointServiceMetric.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/endpointMeter/EndpointServiceMonitor.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/endpointMeter/EndpointServiceMonitorFilter.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/endpointMeter/InboundMeter.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/endpointMeter/InboundMetric.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/endpointMeter/IncomingMessageListenerMeter.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/endpointMeter/MessengerMeter.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/endpointMeter/OutboundMeter.java,
file:/C:/3rdparty/jxse-src-2.5/impl/src/net/jxta/impl/endpoint/endpointMeter/OutboundMetric.java, file:/C:/3rd

Comment 4 Jan Lahoda 2008-11-10 15:05:53 UTC
The usual problem with this issues is the lack of reproducible cases. Issue #104665 was closed simply because all known
reproducible cases at that time were either fixed or reported as separate issues.

I can reproduce the problem with jxta-jxse. There are at least three distinct problems there:
1. the project itself is misconfigured: in the build script, the api/src, impl/src and build_generated source roots are
compiled by the same instance of javac - they form one compilation unit. But, in the project.xml, there is a circular
dependency between api/src and impl/src. The IDE quite obviously cannot handle this (if the command line compiler would
be executed in the same manner as described in the project.xml, it wouldn't handle it too).
2. (only in NB6.5) the fact that the build_generated folder appeared may not be noticed in some cases (cause by fix for
issue #146800). We will need to distinguish existing and non-existing folders.
3. even with both 1. and 2. fixed localy, the error badges still remain on some source roots (tutorials and unit tests).
Likely because the changes in the api/src and impl/src source roots are not propagated to the other two.

I you have another reproducible case, please describe it in detail, so that it can be analyzed and fixed. Thanks.
Comment 5 Jan Lahoda 2008-11-10 15:14:54 UTC
*** Issue 152304 has been marked as a duplicate of this issue. ***
Comment 6 xkwauk 2008-12-08 14:34:40 UTC
Our project has about 30 modules, plus close to 20 wrapped libraries. There are 2 wrapped library modules that depend on
other code we developed and they are updated frequently. Whenever these two wrapped jars are updated, many code that
depend on these two jars will show error badges. We had to open some of the files to clean it up. There are no circular
dependencies. 

I tried jxta-jxse with NB 6.5. I think it gets better.
Comment 7 Rastislav Komara 2009-02-03 10:52:48 UTC
Overtake.
Comment 8 Jan Lahoda 2009-08-20 09:58:16 UTC
Reassigning all moonko's java/source bugs to myself.
Comment 9 David Strupl 2009-11-09 14:03:00 UTC
Without any additional information I am closing this as incomplete. If this is to be fixed somone has to supply steps how to reproduce in 6.8 beta or later builds.