Message388

Author nobody
Recipients
Date 2001-08-16.13:44:40
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I am using a package which contains a class named "visad.Data" and one named
"visad.data.mcidas.PointDataAdapter".   When I try to do:

from visad.data.mcidas import PointDataAdapter

an exception is thrown (see stack trace, below).  However if I do this sequence:

from visad import *
from visad.data.mcidas import PointDataAdapter

then the PointDataAdapter is imported without difficulty.

Here is the stack trace:
D:\src\visad\python>jy profiler.py
    Traceback (innermost last):
      File "profiler.py", line 4, in ?
    java.lang.NoClassDefFoundError: visad/data (wrong name: visad/Data)
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
            at
    java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
            at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:120)
            at
    org.python.core.SyspathJavaLoader.loadClass(SyspathJavaLoader.java:57)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
            at org.python.core.Py.findClassEx(Py.java:607)
            at
    org.python.core.SysPackageManager.findClass(SysPackageManager.java:91)
            at org.python.core.PackageManager.findClass(PackageManager.java:19)
            at
    org.python.core.SysPackageManager.findClass(SysPackageManager.java:83)
            at org.python.core.PyJavaPackage.__findattr__(PyJavaPackage.java:128)
            at org.python.core.PyObject.impAttr(PyObject.java:633)
            at org.python.core.imp.dottedFind(imp.java:412)
            at org.python.core.imp.importName(imp.java:436)
            at org.python.core.imp.importName(imp.java:509)
            at org.python.core.ImportFunction.load(__builtin__.java:967)
            at org.python.core.ImportFunction.__call__(__builtin__.java:961)
            at org.python.core.PyObject.__call__(PyObject.java:250)
            at org.python.core.__builtin__.__import__(__builtin__.java:921)
            at org.python.core.imp.importAll(imp.java:592)
            at org.python.pycode._pyx0.f$0(profiler.py)
            at org.python.pycode._pyx0.call_function(profiler.py)
            at org.python.core.PyTableCode.call(PyTableCode.java:155)
            at org.python.core.Py.runCode(Py.java:1055)
            at org.python.core.__builtin__.execfile(__builtin__.java:288)
            at org.python.core.__builtin__.execfile(__builtin__.java:292)
            at
    org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:155)
            at org.python.util.jython.main(jython.java:159)

    java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: visad/data (wrong name: 
visad/Data)


History
Date User Action Args
2008-02-20 17:16:53adminlinkissue451552 messages
2008-02-20 17:16:53admincreate