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 200805 - Stand Alone project added to platform is not update within application
Summary: Stand Alone project added to platform is not update within application
Status: RESOLVED INCOMPLETE
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0.1
Hardware: All All
: P2 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-09 18:44 UTC by javydreamercsw
Modified: 2011-08-23 15:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Wrong version displayed (8.74 KB, image/png)
2011-08-09 18:52 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2011-08-09 18:44:38 UTC
Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) Client VM 21.0-b17

I have a custom platform which includes some NetBeans modules and a stand alone project. Everything compiles and runs fine but some error badges remain in the editor. Looking around for a while I narrowed it to the Stand Alone project. For some reason the project is displayed as version 1.1 when 1.3 is the actual value. I verified that the platform contains the latest version 1.3 (inspecting the contents of the jar file and manifest) but for some reason the project still sees 1.1. I tried removing and recreating the custom platform (within the IDE), removing and adding the dependencies on the module all without luck.

Might be a caching issue. I'll try to clean my var folder and retry and see if it does the trick.
Comment 1 javydreamercsw 2011-08-09 18:50:22 UTC
Just removing the cache part of the user's var folder cleared the red badges but the project still displays version 1.1 of the stand alone project within it's libraries node. Will try removing the var folder altogether and see.
Comment 2 javydreamercsw 2011-08-09 18:52:10 UTC
Created attachment 109892 [details]
Wrong version displayed
Comment 3 javydreamercsw 2011-08-09 18:55:18 UTC
This is the manifest currently on the custom platform location:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.2
Created-By: 1.7.0-b147 (Oracle Corporation)
OpenIDE-Module-Public-Packages: com.dreamer.outputhandler.*, org.jives
 oftware.smack.util.*
OpenIDE-Module-Module-Dependencies: org.netbeans.core.io.ui/1 > 1.11.1
 , org.openide.awt > 7.30.1, org.openide.io > 1.26.1, org.openide.util
  > 8.14.1, org.openide.util.lookup > 8.6.1, org.openide.windows > 6.3
 9.1
OpenIDE-Module-Java-Dependencies: Java > 1.6
OpenIDE-Module-Build-Version: 110809
OpenIDE-Module-Specification-Version: 1.3
AutoUpdate-Show-In-Client: true
OpenIDE-Module: com.dreamer.outputhandler/1
OpenIDE-Module-Implementation-Version: 3
OpenIDE-Module-Localizing-Bundle: com/dreamer/outputhandler/Bundle.pro
 perties
OpenIDE-Module-Requires: org.openide.modules.ModuleFormat1
Class-Path: ext/smack-3.2.1.jar

Notice in the picture that even the wrapped library, smack-3.2.1.jar, is even there. The library was not present on version 1.1, was introduced in 1.2 but an older version(smack-2.3.1.jar). smack-3.2.1.jar was introduced in version 1.3 of the plugin.
Comment 4 javydreamercsw 2011-08-09 18:58:09 UTC
The library still shows the wrong version, but the rest behaves correctly. Still something's wrong in the caching...
Comment 5 Jesse Glick 2011-08-22 22:27:15 UTC
Let me know when you figure out how to reproduce from scratch, particularly if restarting the IDE works, or if restarting after removing var/cache/ works.
Comment 6 javydreamercsw 2011-08-23 12:58:01 UTC
I haven't been able to reproduce since I changed my approach. I'm guessing it was my fault. Here's what I believe:

1) The IDE had version 1.1 installed as a plugin
2) The project's custom NetBeans platform had 1.3 in it.

I guess that confused the IDE.

FYI I fixed the issue by installing plugins in a shared folder (option in the update tab). This created a new Extra module (in my case) containing the installed modules. I use that as my application's platform now without issues.
Comment 7 Jesse Glick 2011-08-23 15:08:47 UTC
(In reply to comment #6)
> 1) The IDE had version 1.1 installed as a plugin
> 2) The project's custom NetBeans platform had 1.3 in it.
> 
> I guess that confused the IDE.

It should be no problem to have this situation. I am not sure what went wrong.

> I fixed the issue by installing plugins in a shared folder (option in the
> update tab). This created a new Extra module

"cluster"?
Comment 8 javydreamercsw 2011-08-23 15:12:58 UTC
That's what I thought but when I changed to the new approach it got fixed.

Yes, I meant an extra cluster (actually named extra) when I installed my plugin. Lots of the installed plugins end up there.