Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-1281

java.lang.UnsatisfiedLinkError in scanner stops application deployment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.10
    • 2.0.18
    • Core
    • None

    Description

      java.lang.UnsatisfiedLinkError indicates that some JNI native implementation cannot be found. This might happen if e.g. a corresponding shared object (Linux .so) or shared library (Windows DLL) cannot be found by the JVM for the native method.

      Currently we blow up with an Exception:

      java.lang.UnsatisfiedLinkError: com.smartgwt.client.widgets.form.fields.SelectItem.init()V
              at com.smartgwt.client.widgets.form.fields.SelectItem.init(Native Method)
              at com.smartgwt.client.widgets.form.fields.SelectItem.<clinit>(SelectItem.java:2136)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:348)
              at org.apache.webbeans.util.ClassUtil.getClassFromName(ClassUtil.java:98)
              at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.getBeanClassesPerBda(AbstractMetaDataDiscovery.java:409)
              at org.apache.webbeans.config.BeansDeployer.annotatedTypesFromClassPath(BeansDeployer.java:1282)
              at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:257)
              at org.apache.webbeans.lifecycle.AbstractLifeCycle.bootstrapApplication(AbstractLifeCycle.java:137)
              at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:103)
      

      I'd say we should treat this the same way like a NoClassDefFoundError and just ignore this very class.

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: