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 176730 - ClassNotFoundException: org.netbeans.modules.hibernate.service.spi.HibernateEnvironmentImpl
Summary: ClassNotFoundException: org.netbeans.modules.hibernate.service.spi.HibernateE...
Status: RESOLVED INCOMPLETE
Alias: None
Product: contrib
Classification: Unclassified
Component: Scala (show other bugs)
Version: 6.x
Hardware: All Mac OS X
: P3 normal (vote)
Assignee: _ dcaoyuan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-12 14:27 UTC by malakim
Modified: 2009-11-13 07:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 161975


Attachments
stacktrace (2.10 KB, text/plain)
2009-11-12 14:27 UTC, malakim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description malakim 2009-11-12 14:27:17 UTC
Build: NetBeans IDE 6.7.1 (Build 200907230233)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-90, Java(TM) SE Runtime Environment, 1.6.0_15-b03-219
OS: Mac OS X, 10.6.2, x86_64

Stacktrace: 
java.lang.ClassNotFoundException: org.netbeans.modules.hibernate.service.spi.HibernateEnvironmentImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(AccessController.java:0)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
        at org.netbeans.modules.projectapi.LazyLookupProviders.loadPSPInstance(LazyLookupProviders.java:98)
Comment 1 malakim 2009-11-12 14:27:20 UTC
Created attachment 90948 [details]
stacktrace
Comment 2 Milos Kleint 2009-11-13 02:39:26 UTC
a hibernate ralated issue it seems.
Comment 3 Petr Cyhelsky 2009-11-13 07:31:21 UTC
I can't see how can this be caused by hibernate - the involved code seems ok - the framework provider tries to load hibernate enviroment:

HibernateEnvironment he = enclosingProject.getLookup().lookup(HibernateEnvironment.class);

which is registered thus:

ServiceProvider(service=HibernateEnvironment.class, projectType={
    "org-netbeans-modules-maven",
    "org-netbeans-modules-java-j2seproject",
    "org-netbeans-modules-web-project"
}, projectTypes=@LookupProvider.Registration.ProjectType(id="org-netbeans-modules-ant-freeform", position=700))

This hasn't been changed for ages and always worked.

In addition before this there was NPE involving scala (see ui gestures, it is not in messages.log), maybe something went wrong there? In case it is not Scala either, please reassign.