Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-3720

cant connect with debugger for unit tests



    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.4.0.RELEASE, 3.5.0.M2
    • Fix Version/s: None
    • Component/s: GRAILS
    • Environment:
      windows, jdk7.0.51


      have same problem somewhere with new forked testing model in IDE.

      create a project on either 3.4 (grails2.3.5 is s what i set up ) or 3.5M2

      create domain object. change spoc template so it works. overcome the native2ascii error in previous issuse just created

      try and run your unit test with a break point it - console output seems to just stop. Cannot connect and no debugger is fired up

      actually just tried it all again and back to this

      Error running forked test-app: Error occurred processing message bundles: Error starting Sun's native2ascii: (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
      org.codehaus.groovy.grails.compiler.PackagingException: Error occurred processing message bundles: Error starting Sun's native2ascii:
      Caused by: : Error starting Sun's native2ascii:
      at org.apache.tools.ant.taskdefs.optional.native2ascii.SunNative2Ascii.run(SunNative2Ascii.java:67)
      at org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii.convert(DefaultNative2Ascii.java:54)
      at org.apache.tools.ant.taskdefs.optional.Native2Ascii.convert(Native2Ascii.java:294)
      at org.apache.tools.ant.taskdefs.optional.Native2Ascii.execute(Native2Ascii.java:251)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      Caused by: java.lang.ClassNotFoundException: sun.tools.native2ascii.Main
      at org.apache.tools.ant.taskdefs.optional.native2ascii.SunNative2Ascii.run(SunNative2Ascii.java:51)
      ... 6 more
      Error |
      Error running forked test-app: Error occurred processing message bundles: Error starting Sun's native2ascii:
      Error |
      Forked Grails VM exited with error

      something wrong with debug/forked exec and passing attributes - and also doesnt appear to read buildConfig properly

      i have to set grails.project.fork.test:false to work as test, and i cant connect to it if i try using the debugger

      just get this the nothing

      Loading Grails 2.3.5

      Configuring classpath
      Environment set to test

      further the red light on the console no longer seems to do anything - it stays on regardless




            kdvolder Kris De Volder
            will.woodman William Woodman
            0 Vote for this issue
            3 Start watching this issue