java.lang.IllegalArgumentException: Could not find 'Unit' with specified ID: unit:4228

freecol | *anonymous | 10 years ago
  1. 0

    Server disconnects when moving Expert Fisherman

    freecol | 10 years ago | *anonymous
    java.lang.IllegalArgumentException: Could not find 'Unit' with specified ID: unit:4228
  2. 0

    Problems with assigning trade routes

    freecol | 6 years ago | *anonymous
    java.lang.IllegalArgumentException: Could not find 'TradeRoute' with specified ID: tradeRoute:108196
  3. 0

    Declaring independence is impossible - server crashes

    freecol | 8 years ago | *anonymous
    java.lang.IllegalArgumentException: Trying to retrieve FreeColGameObjectType with ID 'model.foundingFather.thomasJefferson.name' returned 'null'.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    To recreate this issue, run these commands in development mode: {code}project --topLevelPackage com.example persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY{code} Then with the shell still running, create a new Java class as follows: {code}package com.example.domain; public class Pizza { }{code} The shell throws this error: {code}Parsing failure for '/Users/aswan/projects/bugs/jpa/src/main/java/com/example/domain/Pizza.java' (development mode diagnostics) java.lang.IllegalArgumentException: Could not locate 'Pizza' in compilation unit at org.springframework.roo.support.util.Assert.notNull(Assert.java:112) at org.springframework.roo.classpath.javaparser.JavaParserClassMetadata.<init>(JavaParserClassMetadata.java:67) at org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.get(JavaParserMetadataProvider.java:152) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:147) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:216) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:268) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:147) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:149) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:236) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:214) at org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.onFileEvent(JavaParserMetadataProvider.java:131) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:304) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:178) at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:125) at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:240) at org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:68) at java.lang.Thread.run(Thread.java:680) {code}

    Spring JIRA | 5 years ago | Andrew Swan
    java.lang.IllegalArgumentException: Could not locate 'Pizza' in compilation unit
  6. 0

    To recreate this issue, run these commands in development mode: {code}project --topLevelPackage com.example persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY{code} Then with the shell still running, create a new Java class as follows: {code}package com.example.domain; public class Pizza { }{code} The shell throws this error: {code}Parsing failure for '/Users/aswan/projects/bugs/jpa/src/main/java/com/example/domain/Pizza.java' (development mode diagnostics) java.lang.IllegalArgumentException: Could not locate 'Pizza' in compilation unit at org.springframework.roo.support.util.Assert.notNull(Assert.java:112) at org.springframework.roo.classpath.javaparser.JavaParserClassMetadata.<init>(JavaParserClassMetadata.java:67) at org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.get(JavaParserMetadataProvider.java:152) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:147) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:216) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:268) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:147) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:81) at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:149) at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:236) at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:214) at org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.onFileEvent(JavaParserMetadataProvider.java:131) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanAll(PollingFileMonitorService.java:304) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:178) at org.springframework.roo.process.manager.internal.DefaultProcessManager.backgroundPoll(DefaultProcessManager.java:125) at org.springframework.roo.process.manager.internal.DefaultProcessManager.timerBasedPoll(DefaultProcessManager.java:240) at org.springframework.roo.process.manager.internal.DefaultProcessManager$2.run(DefaultProcessManager.java:68) at java.lang.Thread.run(Thread.java:680) {code}

    Spring JIRA | 5 years ago | Andrew Swan
    java.lang.IllegalArgumentException: Could not locate 'Pizza' in compilation unit

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Could not find 'Unit' with specified ID: unit:4228

      at net.sf.freecol.server.control.InGameInputHandler.move()
    2. net.sf.freecol
      Connection$1.run
      1. net.sf.freecol.server.control.InGameInputHandler.move(InGameInputHandler.java:427)
      2. net.sf.freecol.server.control.InGameInputHandler.access$400(InGameInputHandler.java:42)
      3. net.sf.freecol.server.control.InGameInputHandler$5.handle(InGameInputHandler.java:82)
      4. net.sf.freecol.server.control.InputHandler$CurrentPlayerNetworkRequestHandler.handle(InputHandler.java:173)
      5. net.sf.freecol.server.control.InputHandler.handle(InputHandler.java:83)
      6. net.sf.freecol.common.networking.Connection$1.run(Connection.java:496)
      6 frames