Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ISCFile.lastModified NullPointerException

    fyi,
    I thought to try the latest 9/05/2011 build, but it doesn't startup:

    Code:
    ISC: Configuring log4j from: file:/PROJECT/war/WEB-INF/classes/log4j.isc.config.xml
    === 2011-05-10 11:40:39,947 [main] INFO  ISCInit - Isomorphic SmartClient Framework - Initializing
    === 2011-05-10 11:40:39,947 [main] INFO  ConfigLoader - Attempting to load framework.properties from CLASSPATH
    === 2011-05-10 11:40:40,009 [main] INFO  ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/PROJECT/war/WEB-INF/lib/isomorphic_core_rpc.jar!/framework.properties
    === 2011-05-10 11:40:40,009 [main] INFO  ConfigLoader - Attempting to load project.properties from CLASSPATH
    === 2011-05-10 11:40:40,009 [main] INFO  ConfigLoader - Unable to locate project.properties in CLASSPATH
    === 2011-05-10 11:40:40,009 [main] INFO  ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/PROJECT/war/WEB-INF/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties
    === 2011-05-10 11:40:40,009 [main] INFO  ConfigLoader - Attempting to load server.properties from CLASSPATH
    === 2011-05-10 11:40:40,009 [main] INFO  ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/PROJECT/war/WEB-INF/classes/server.properties
    === 2011-05-10 11:40:40,009 [main] INFO  Logger - Logging system started.
    === 2011-05-10 11:40:40,009 [main] INFO  ISCInit - Isomorphic SmartClient Framework (SC_SNAPSHOT-2011-05-09/EVAL Deployment 2011-05-09) - Initialization Complete
    === 2011-05-10 11:40:40,009 [main] DEBUG ISCInit - Verifying webroot: PROJECT\war
    === 2011-05-10 11:40:40,009 [main] ERROR ISCInit - Can't find marker file for webRoot: PROJECT/war/PROJECT/sc for configured/autodetected webRoot - if you moved the 'isomorphic' directory, please set isomorphicPathRootRelative in server.properties to the new location and restart the servlet engine.
    === 2011-05-10 11:40:40,009 [main] INFO  ISCInit - WebRoot auto-detection failed - using container IO
    === 2011-05-10 11:40:40,275 [main] INFO  PoolManager - SmartClient pooling disabled for 'DataSource' objects
    Problem loading builtinTypes.xml
    Exception when loading from __USE_CONTAINER__/PROJECT/sc/system/schema/builtinTypes.xml:
    java.lang.NullPointerException
    	at com.isomorphic.io.ISCFile.lastModified(ISCFile.java:419)
    	at com.isomorphic.store.ProcessedFileCache.getObjectFromFile(ProcessedFileCache.java:131)
    	at com.isomorphic.store.ProcessedFileCache.getObjectFromFile(ProcessedFileCache.java:74)
    	at com.isomorphic.store.ProcessedFileCache.getObjectFromFile(ProcessedFileCache.java:138)
    	at com.isomorphic.xml.XML.getXMLDocument(XML.java:254)
    	at com.isomorphic.xml.XML.toDSRecords(XML.java:262)
    	at com.isomorphic.xml.XML.toDSRecords(XML.java:265)
    	at com.isomorphic.datasource.BasicDataSource.<clinit>(BasicDataSource.java:1610)
    	at com.isomorphic.datasource.DataSource.fromConfig(DataSource.java:337)
    	at com.isomorphic.datasource.FileSystemDSRepo.loadDS(FileSystemDSRepo.java:110)
    ...


    and another exception at startup:
    Code:
    java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Map
    	at com.isomorphic.datasource.BasicDataSource.buildFieldData(BasicDataSource.java:430)
    	at com.isomorphic.datasource.BasicDataSource.init(BasicDataSource.java:218)
    	at com.isomorphic.datasource.DataSource.initialize(DataSource.java:352)
    	at com.isomorphic.datasource.BasicDataSource.fromConfig(BasicDataSource.java:165)
    	at com.isomorphic.datasource.DataSource.fromConfig(DataSource.java:337)
    	at com.isomorphic.datasource.DataSource.fromXML(DataSource.java:496)
    	at com.isomorphic.datasource.DataSource.fromXML(DataSource.java:465)
    ...

    #2
    The first seems to indicate the Init servlet has not been run, and the second indicates bad <inherits>. Check the Troubleshooting section at the end of the installation procedure, both are mentioned.

    Comment


      #3
      Tried with the 14/05/2011 build (upgrading from 2/05/2011) and same error occurred (never had it before on an upgrade).

      Restarting Eclipse was the magic trick. The project works again.

      Comment

      Working...
      X