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 216401 - ClassCastException: org.apache.maven.wagon.providers.file.FileWagon cannot be cast to org.apache.maven.wagon.providers.http.HttpWagon
Summary: ClassCastException: org.apache.maven.wagon.providers.file.FileWagon cannot be...
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
: 216861 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-04 16:37 UTC by Petr Jiricka
Modified: 2012-09-05 08:44 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191105


Attachments
stacktrace (2.18 KB, text/plain)
2012-08-04 16:37 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2012-08-04 16:37:15 UTC
Build: NetBeans IDE Dev (Build EaselCSS-438-on-20120803)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-ea-b21
OS: Mac OS X

User Comments:
pjiricka: After startup.

pcardoe: HQL query

GUEST: I created a new local Maven repository (file://C:/path_to_repo), added it to Services/Maven Repositoris in the NetBeans IDE and try to index the repository, which resulted in a ClassCastException.




Stacktrace: 
java.lang.ClassCastException: org.apache.maven.wagon.providers.file.FileWagon cannot be cast to org.apache.maven.wagon.providers.http.HttpWagon
   at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexLoadedRepo(NexusRepositoryIndexerImpl.java:423)
   at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.access$100(NexusRepositoryIndexerImpl.java:112)
   at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:511)
   at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl$3.run(NexusRepositoryIndexerImpl.java:505)
   at org.openide.util.Mutex.writeAccess(Mutex.java:399)
   at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.indexRepo(NexusRepositoryIndexerImpl.java:505)
Comment 1 Petr Jiricka 2012-08-04 16:37:18 UTC
Created attachment 122746 [details]
stacktrace
Comment 2 Milos Kleint 2012-08-13 13:04:40 UTC
http://hg.netbeans.org/core-main/rev/062894b060ea
Comment 3 Quality Engineering 2012-08-14 02:41:47 UTC
Integrated into 'main-golden', will be available in build *201208140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/062894b060ea
User: Milos Kleint <mkleint@netbeans.org>
Log: #216401 check for httpwagon instance, there are other protocols without http headers.
Comment 4 Milos Kleint 2012-08-14 13:29:09 UTC
apparently also happening in 7.2, see issue 216861
Comment 5 Milos Kleint 2012-08-14 13:29:48 UTC
*** Bug 216861 has been marked as a duplicate of this bug. ***
Comment 6 Milos Kleint 2012-08-24 11:53:32 UTC
http://hg.netbeans.org/releases/rev/d4bd036195df
Comment 7 Quality Engineering 2012-09-01 11:06:16 UTC
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/d4bd036195df
User: Milos Kleint <mkleint@netbeans.org>
Log: #216401 merge into release72 branch
Comment 8 Tomas Danek 2012-09-05 08:44:38 UTC
no CCE thrown now; verified in 7.2 + patch1

Product Version: NetBeans IDE 7.2 (Build 201207171143)
Java: 1.7.0_08-ea; Java HotSpot(TM) 64-Bit Server VM 23.4-b01
System: Mac OS X version 10.8 running on x86_64; US-ASCII; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/7.2
Cache directory: /Users/tomas/Library/Caches/NetBeans/7.2