java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I get an exception when attempting to use java agent based reloading to reload the following class. The class successfully reloads when compiled with Java 5 compliance in eclipse but fails with Java 6. package com.test.reloading; import java.io.File; import java.io.IOException; import org.springframework.stereotype.Component; @Component public class Test { public Test() throws IOException { File accessList = File.createTempFile("dude", "blah"); if(!accessList.exists()) { accessList.createNewFile(); } } boolean isAdmin(String line) { // System.out.println("dude"); return false; } } The following is the error I get. Exception in thread "Thread-1" java.lang.IllegalStateException: nyi 13 at com.springsource.loaded.TypeDiffComputer.sameInstruction(TypeDiffComputer.java:307) at com.springsource.loaded.TypeDiffComputer.computeAnyMethodDifferences(TypeDiffComputer.java:179) at com.springsource.loaded.TypeDiffComputer.computeMethodDelta(TypeDiffComputer.java:80) at com.springsource.loaded.TypeDiffComputer.computeDelta(TypeDiffComputer.java:54) at com.springsource.loaded.TypeDiffComputer.computeDifferences(TypeDiffComputer.java:45) at com.springsource.loaded.ReloadableType.loadNewVersion(ReloadableType.java:216) at com.springsource.loaded.TypeRegistry.loadNewVersion(TypeRegistry.java:610) at com.springsource.loaded.agent.ReloadableFileChangeListener.fileChanged(ReloadableFileChangeListener.java:38) at com.springsource.loaded.agent.Watcher.determineChangesSince(FileSystemWatcher.java:100) at com.springsource.loaded.agent.Watcher.run(FileSystemWatcher.java:87) at java.lang.Thread.run(Thread.java:662)
    via by Mike Youngstrom,
  • I get an exception when attempting to use java agent based reloading to reload the following class. The class successfully reloads when compiled with Java 5 compliance in eclipse but fails with Java 6. package com.test.reloading; import java.io.File; import java.io.IOException; import org.springframework.stereotype.Component; @Component public class Test { public Test() throws IOException { File accessList = File.createTempFile("dude", "blah"); if(!accessList.exists()) { accessList.createNewFile(); } } boolean isAdmin(String line) { // System.out.println("dude"); return false; } } The following is the error I get. Exception in thread "Thread-1" java.lang.IllegalStateException: nyi 13 at com.springsource.loaded.TypeDiffComputer.sameInstruction(TypeDiffComputer.java:307) at com.springsource.loaded.TypeDiffComputer.computeAnyMethodDifferences(TypeDiffComputer.java:179) at com.springsource.loaded.TypeDiffComputer.computeMethodDelta(TypeDiffComputer.java:80) at com.springsource.loaded.TypeDiffComputer.computeDelta(TypeDiffComputer.java:54) at com.springsource.loaded.TypeDiffComputer.computeDifferences(TypeDiffComputer.java:45) at com.springsource.loaded.ReloadableType.loadNewVersion(ReloadableType.java:216) at com.springsource.loaded.TypeRegistry.loadNewVersion(TypeRegistry.java:610) at com.springsource.loaded.agent.ReloadableFileChangeListener.fileChanged(ReloadableFileChangeListener.java:38) at com.springsource.loaded.agent.Watcher.determineChangesSince(FileSystemWatcher.java:100) at com.springsource.loaded.agent.Watcher.run(FileSystemWatcher.java:87) at java.lang.Thread.run(Thread.java:662)
    via by Mike Youngstrom,
    • java.lang.IllegalStateException: nyi 13 at com.springsource.loaded.TypeDiffComputer.sameInstruction(TypeDiffComputer.java:307) at com.springsource.loaded.TypeDiffComputer.computeAnyMethodDifferences(TypeDiffComputer.java:179) at com.springsource.loaded.TypeDiffComputer.computeMethodDelta(TypeDiffComputer.java:80) at com.springsource.loaded.TypeDiffComputer.computeDelta(TypeDiffComputer.java:54) at com.springsource.loaded.TypeDiffComputer.computeDifferences(TypeDiffComputer.java:45) at com.springsource.loaded.ReloadableType.loadNewVersion(ReloadableType.java:216) at com.springsource.loaded.TypeRegistry.loadNewVersion(TypeRegistry.java:610) at com.springsource.loaded.agent.ReloadableFileChangeListener.fileChanged(ReloadableFileChangeListener.java:38) at com.springsource.loaded.agent.Watcher.determineChangesSince(FileSystemWatcher.java:100) at com.springsource.loaded.agent.Watcher.run(FileSystemWatcher.java:87) at java.lang.Thread.run(Thread.java:662)
    No Bugmate found.