Announcement Announcement Module
Collapse
No announcement yet.
Native Library jline_.dll already loaded in another classloader Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Native Library jline_.dll already loaded in another classloader

    Hi,

    I am getting the error below when I refresh the dependencies in the IDE.
    The only solution I found is to delete the ivy-cache dir and create it again.
    After that, the first time refreshing dependencies doesn't cause an error, but refreshing again cause the problem again.
    In short, every second operation that involves jline_.dll fails.

    There is already a bug opened on this issue.
    http://jira.grails.org/browse/GRAILS-9572

    Any solution to this?
    I am sorry to say, that this really make working with GGTS impossible.

    Regards,
    Shai

    java.lang.UnsatisfiedLinkError: Native Library C:\Documents and Settings\shaiw\Local Settings\temp\jline_.dll already loaded in another classloader
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1772)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1703)
    at java.lang.Runtime.load0(Runtime.java:770)
    at java.lang.System.load(System.java:1003)
    at jline.WindowsTerminal.loadLibrary(WindowsTerminal. java:322)
    at jline.WindowsTerminal.initializeTerminal(WindowsTe rminal.java:240)
    at jline.Terminal.setupTerminal(Terminal.java:75)
    at jline.Terminal.getTerminal(Terminal.java:26)
    at jline.ConsoleReader.<init>(ConsoleReader.java:174)
    at jline.ConsoleReader.<init>(ConsoleReader.java:169)
    at grails.build.logging.GrailsConsole.createConsoleRe ader(GrailsConsole.java:169)
    at grails.build.logging.GrailsConsole.<init>(GrailsCo nsole.java:133)
    at grails.build.logging.GrailsConsole.createInstance( GrailsConsole.java:268)
    at grails.build.logging.GrailsConsole.getInstance(Gra ilsConsole.java:245)
    at org.codehaus.groovy.grails.cli.logging.GrailsConso leErrorPrintStream.println(GrailsConsoleErrorPrint Stream.java:53)
    at org.apache.log4j.helpers.LogLog.warn(LogLog.java:1 71)
    at org.apache.log4j.Hierarchy.emitNoAppenderWarning(H ierarchy.java:137)
    at org.apache.log4j.Category.callAppenders(Category.j ava:215)
    at org.apache.log4j.Category.forcedLog(Category.java: 391)
    at org.apache.log4j.Category.log(Category.java:856)
    at org.slf4j.impl.GrailsLog4jLoggerAdapter.logMessage (GrailsLog4jLoggerAdapter.java:191)
    at org.slf4j.impl.GrailsLog4jLoggerAdapter.debug(Grai lsLog4jLoggerAdapter.java:78)
    at org.apache.commons.logging.impl.SLF4JLog.debug(SLF 4JLog.java:128)
    at org.springframework.core.env.AbstractEnvironment.< init>(AbstractEnvironment.java:114)
    at org.springframework.core.env.StandardEnvironment.< init>(StandardEnvironment.java:54)
    at org.springframework.context.annotation.ClassPathBe anDefinitionScanner.getOrCreateEnvironment(ClassPa thBeanDefinitionScanner.java:344)
    at org.springframework.context.annotation.ClassPathBe anDefinitionScanner.<init>(ClassPathBeanDefinition Scanner.java:112)
    at org.springframework.context.annotation.ClassPathBe anDefinitionScanner.<init>(ClassPathBeanDefinition Scanner.java:83)
    at org.codehaus.groovy.grails.compiler.injection.Grai lsAwareInjectionOperation.initializeState(GrailsAw areInjectionOperation.java:90)
    at org.codehaus.groovy.grails.compiler.injection.Grai lsAwareInjectionOperation.<init>(GrailsAwareInject ionOperation.java:53)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.codehaus.jdt.groovy.internal.compiler.ast.Groo vyParser.makeCompilationUnit(GroovyParser.java:560 )
    at org.codehaus.jdt.groovy.internal.compiler.ast.Groo vyParser.<init>(GroovyParser.java:269)
    at org.codehaus.jdt.groovy.integration.internal.Multi plexingParser.<init>(MultiplexingParser.java:38)
    at org.codehaus.jdt.groovy.integration.internal.Groov yLanguageSupport.getParser(GroovyLanguageSupport.j ava:86)
    at org.codehaus.jdt.groovy.integration.LanguageSuppor tFactory.getParser(LanguageSupportFactory.java:48)
    at org.eclipse.jdt.internal.compiler.Compiler.initial izeParser(Compiler.java:743)
    at org.eclipse.jdt.internal.compiler.Compiler.<init>( Compiler.java:297)
    at org.eclipse.jdt.internal.compiler.Compiler.<init>( Compiler.java:208)
    at org.eclipse.jdt.internal.core.builder.AbstractImag eBuilder.newCompiler(AbstractImageBuilder.java:565 )
    at org.eclipse.jdt.internal.core.builder.AbstractImag eBuilder.<init>(AbstractImageBuilder.java:104)
    at org.eclipse.jdt.internal.core.builder.BatchImageBu ilder.<init>(BatchImageBuilder.java:34)
    at org.eclipse.jdt.internal.core.builder.JavaBuilder. buildAll(JavaBuilder.java:253)
    at org.eclipse.jdt.internal.core.builder.JavaBuilder. build(JavaBuilder.java:178)
    at org.eclipse.core.internal.events.BuildManager$2.ru n(BuildManager.java:728)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:42)
    at org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:199)
    at org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:239)
    at org.eclipse.core.internal.events.BuildManager$1.ru n(BuildManager.java:292)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:42)
    at org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:295)
    at org.eclipse.core.internal.events.BuildManager.basi cBuildLoop(BuildManager.java:351)
    at org.eclipse.core.internal.events.BuildManager.buil d(BuildManager.java:374)
    at org.eclipse.core.internal.events.AutoBuildJob.doBu ild(AutoBuildJob.java:143)
    at org.eclipse.core.internal.events.AutoBuildJob.run( AutoBuildJob.java:241)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:53)
    Last edited by shaiw; Dec 4th, 2012, 05:44 AM.

  • #2
    Please upgrade to the latest Grails-IDE snapshot. It is fixed there. See the issue here:

    https://issuetracker.springsource.com/browse/STS-2648

    Add this update site to your update manager and install the latest nightly Grails-IDE:

    http://dist.springsource.com/snapsho.../nightly/e4.2/

    Comment


    • #3
      Hi Andrew,
      I upgraded to version 3.2.0.M1 and it seems to fix the problem
      Thanks,
      Shai

      Comment

      Working...
      X