Beiträge von Train18

Discord Einladung
Trete unserem Discord-Server bei (klicke hier zum Beitreten).

    @tomy Danke für die Weiterentwicklung. :)


    Der Blueprint Refresh lief mit dem neuen Release nun erheblich länger, endete jedoch mit dieser Fehlermeldung.


    RWInfo Version 1.4.1-hf-2
    Uncaught exception on thread Thread[Thread-8,6,main]
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(Unknown Source)
    at ch.tkl.rw.asset.model.Blueprint.initCategory(Blueprint.java:107)
    at ch.tkl.rw.asset.model.Blueprint.<init>(Blueprint.java:47)

    Danke @tomy das letzte Problem wurde mit dem Update behoben.


    Jedoch erhalte ich am Ende des Asset Datenbank Refresh folgende Meldung (am Ende geht´s noch weiter, aber ich kann nicht mehr markieren):


    RWInfo Version 1.4.1-hf-1
    Uncaught exception on thread Thread[Thread-8,6,main]
    java.lang.IllegalArgumentException: Execution of method "add" on field "products" caused an error : Insert of object "ch.tkl.rw.asset.model.Product@1f158bd" using statement "INSERT INTO PRODUCT ("NAME",PROVIDER_ID) VALUES (?,?)" failed : data exception: string data, right truncation; table: PRODUCT column: NAME
    Insert of object "ch.tkl.rw.asset.model.Product@1f158bd" using statement "INSERT INTO PRODUCT ("NAME",PROVIDER_ID) VALUES (?,?)" failed : data exception: string data, right truncation; table: PRODUCT column: NAME
    org.datanucleus.exceptions.NucleusDataStoreException: Insert of object "ch.tkl.rw.asset.model.Product@1f158bd" using statement "INSERT INTO PRODUCT ("NAME",PROVIDER_ID) VALUES (?,?)" failed : data exception: string data, right truncation; table: PRODUCT column: NAME
    at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:507)
    at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObjectInTable(RDBMSPersistenceHandler.java:162)
    at org.datanucleus.store.rdbms.RDBMSPersistenceHandler.insertObject(RDBMSPersistenceHandler.java:138)
    at org.datanucleus.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3448)
    at org.datanucleus.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3424)
    at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2000)
    at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:2097)
    at org.datanucleus.store.types.SCOUtils.validateObjectForWriting(SCOUtils.java:1295)
    at org.datanucleus.store.rdbms.scostore.ElementContainerStore.validateElementForWriting(ElementContainerStore.java:368)
    at org.datanucleus.store.rdbms.scostore.FKSetStore.add(FKSetStore.java:434)
    at org.datanucleus.store.types.wrappers.backed.HashSet.add(HashSet.java:566)
    at org.datanucleus.store.types.SCOUtils.attachCopyElements(SCOUtils.java:647)
    at org.datanucleus.store.types.wrappers.HashSet.attachCopy(HashSet.java:203)
    at org.datanucleus.store.types.wrappers.HashSet.attachCopy(HashSet.java:39)
    at org.datanucleus.store.fieldmanager.AttachFieldManager.storeObjectField(AttachFieldManager.java:224)
    at org.datanucleus.state.AbstractStateManager.providedObjectField(AbstractStateManager.java:1460)
    at org.datanucleus.state.StateManagerImpl.providedObjectField(StateManagerImpl.java:117)
    at ch.tkl.rw.asset.model.Provider.dnProvideField(Provider.java)
    at ch.tkl.rw.asset.model.Provider.dnProvideFields(Provider.java)
    at org.datanucleus.state.StateManagerImpl.provideFields(StateManagerImpl.java:1174)
    at org.datanucleus.state.StateManagerImpl.internalAttachCopy(StateManagerImpl.java:4241)
    at org.datanucleus.state.StateManagerImpl.attachCopy(StateManagerImpl.java:4190)
    at org.datanucleus.state.StateManagerImpl.attachCopy(StateManagerImpl.java:117)
    at org.datanucleus.ExecutionContextImpl.attachObjectCopy(ExecutionContextImpl.java:2565)
    at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:1917)
    at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1843)
    at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1698)
    at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:720)
    at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:745)
    at ch.tkl.rw.asset.DataManager.findProduct(DataManager.java:144)
    at ch.tkl.rw.asset.RefreshBlueprints.findProducts(RefreshBlueprints.java:152)
    at ch.tkl.rw.asset.RefreshBlueprints.findFiles(RefreshBlueprints.java:140)
    at ch.tkl.rw.asset.RefreshBlueprints.access$100(RefreshBlueprints.java:32)
    at ch.tkl.rw.asset.RefreshBlueprints$4.run(RefreshBlueprints.java:99)
    Caused by: java.sql.SQLDataException: data exception: string data, right truncation; table: PRODUCT column: NAME
    at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
    at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
    at org.hsqldb.jdbc.JDBCPreparedStatement.fetchResult(Unknown Source)
    at org.hsqldb.jdbc.JDBCPreparedStatement.executeUpdate(Unknown Source)
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
    at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeUpdate(ParamLoggingPreparedStatement.java:393)
    at org.datanucleus.store.rdbms.SQLController.executeStatementUpdate(SQLController.java:431)
    at org.datanucleus.store.rdbms.request.InsertRequest.execute(InsertRequest.java:412)
    ... 33 more
    Caused by: org.hsqldb.HsqlException: data exception: string data, right truncation; table: PRODUCT column: NAME
    at org.hsqldb.error.Error.error(Unknown Source)
    at org.hsqldb.Table.enforceTypeLimits(Unknown Source)
    at org.hsqldb.Table.insertSingleRow(Unknown Source)
    at org.hsqldb.StatementDML.insertRowSet(Unknown Source)
    at org.hsqldb.StatementInsert.getResult(Unknown Source)

    Ich habe die Datei in beide Richtungen "geserzt" und es gab damit keine Probleme. Müsste die Datei eigentlich o.k. sein.


    Den PC neu gestartet und damit auch das Tool, Ergebnis: Wie bisher.


    Vielleicht kann @tomy das mal überprüfen. :)

    Bei mir besteht das Problem nach 7247 Assets, Fehlermeldung wie folgt:


    RWInfo Version 1.4.0


    Uncaught exception on thread Thread[Thread-8,6,main]
    ch.tkl.rwbase.InvalidNestingException: position >= fileSize in file /Assets/Ted/Hamburg-Bremen/Scenery/Buildings/Bruecken/Lombardsbrücke/Lombardslampe/ita lampione 04.bin
    at ch.tkl.rwbase.ReadSerz.buildNode(ReadSerz.java:153)
    at ch.tkl.rwbase.StructureTag.buildNode(StructureTag.java:28)
    at ch.tkl.rwbase.ReadSerz.buildNode(ReadSerz.java:210)