cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

error for importing extensions into ThingWorx9.4 , looks like Compatibility problem of imported jar

千松_10631492
3-Newcomer

error for importing extensions into ThingWorx9.4 , looks like Compatibility problem of imported jar

Hi,

I try to import a extension to ThingWorx9.4. but import failed with errors looks like some Compatibility problems of jar in extension package.  These problems had not happened with ThingWorx9.3. 

What should I do with ThingWorx9.4 ?

 

Here is the logs

java.lang.Exception: org/jfree/data/time/RegularTimePeriod
at com.thingworx.entities.utils.ResourceUtilities.createResourceInstance(ResourceUtilities.java:26)
at com.thingworx.contentmanagement.ImportProcessorWorker.createImportedResources(ImportProcessorWorker.java:2342)
at com.thingworx.contentmanagement.ImportProcessorWorker.processEntities(ImportProcessorWorker.java:1865)
at com.thingworx.contentmanagement.ImportProcessorWorker.run(ImportProcessorWorker.java:206)
at com.thingworx.contentmanagement.ImportProcessor.processImport(ImportProcessor.java:80)
at com.thingworx.extensibility.utils.ExtensionPackageUtilities.importMetadata(ExtensionPackageUtilities.java:1414)
at com.thingworx.extensibility.utils.ExtensionPackageUtilities.installLeafExtensionPackage(ExtensionPackageUtilities.java:677)
at com.thingworx.extensibility.utils.ExtensionPackageUtilities.recurseForInstallPhase(ExtensionPackageUtilities.java:262)
at com.thingworx.extensibility.utils.ExtensionPackageUtilities.installExtensions(ExtensionPackageUtilities.java:599)
at com.thingworx.extensibility.utils.ExtensionPackageUtilities.installExtensionPackages(ExtensionPackageUtilities.java:390)
at com.thingworx.extensibility.utils.ExtensionPackageUtilities.installExtensionPackagesFromUpgradeQueue(ExtensionPackageUtilities.java:2377)
at com.thingworx.system.ThingWorxServer.start(ThingWorxServer.java:786)
at com.thingworx.system.ThingWorxServer.loadModel(ThingWorxServer.java:1026)
at com.thingworx.system.ThingWorxServer.doStandalone(ThingWorxServer.java:340)
at com.thingworx.system.ThingWorxServer.initializePlatform(ThingWorxServer.java:2489)
at com.thingworx.system.ThingWorxBootstrapper.contextInitialized(ThingWorxBootstrapper.java:38)

4 REPLIES 4

Hi,

 

Two reasons

1. The old extension still exists

2. Or Restart the server and try again !

 

Thanks,

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.

Hi @千松_10631492 

 

Could you please provide the application log while importing the extension?

 

/VR 

 

 

Hi, thanks

I get the logs while importing the extension from ApplicationLog.log. 

 

2023-08-23 10:28:50.670+0000 [L: INFO] [O: c.t.w.Importer] [I: ] [U: r_user] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Starting entity import of /ThingworxStorage/extensions/temp/Extensions_79e60f8a-4ec7-42f4-af0f-2e974b13e964/Extensions/metadata.xml
2023-08-23 10:28:50.698+0000 [L: INFO] [O: c.t.migration] [I: ] [U: r_user] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Export file missing version information. No migration will be performed.
2023-08-23 10:28:50.698+0000 [L: INFO] [O: c.t.w.Importer] [I: ] [U: r_user] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Successfully added for import /ThingworxStorage/extensions/temp/Extensions_79e60f8a-4ec7-42f4-af0f-2e974b13e964/Extensions/metadata.xml
2023-08-23 10:28:50.698+0000 [L: INFO] [O: c.t.w.Importer] [I: ] [U: r_user] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Starting entity import of /ThingworxStorage/extensions/temp/Extensions_79e60f8a-4ec7-42f4-af0f-2e974b13e964/Extensions/Entities
2023-08-23 10:28:50.701+0000 [L: INFO] [O: c.t.migration] [I: ] [U: r_user] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Start migrating from version [9.1.0] to version [9.1.0] ...
2023-08-23 10:28:50.701+0000 [L: INFO] [O: c.t.migration] [I: ] [U: r_user] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Finished migrating from version [9.1.0] to version [9.1.0].
2023-08-23 10:28:50.701+0000 [L: INFO] [O: c.t.migration] [I: ] [U: r_user] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Start migrating from version [9.3.0] to version [9.3.0] ...
2023-08-23 10:28:50.702+0000 [L: INFO] [O: c.t.migration] [I: ] [U: r_user] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Finished migrating from version [9.3.0] to version [9.3.0].
2023-08-23 10:28:50.702+0000 [L: INFO] [O: c.t.w.Importer] [I: ] [U: r_user] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Successfully added for import /ThingworxStorage/extensions/temp/Extensions_79e60f8a-4ec7-42f4-af0f-2e974b13e964/Extensions/Entities/DataShapes_Combine.xml
2023-08-23 10:28:50.796+0000 [L: ERROR] [O: c.t.e.u.ResourceUtilities] [I: ] [U: SuperUser] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Unable To Create Resource Instance From Class: com.xxx.xxxx.resources.Functions
2023-08-23 10:28:50.796+0000 [L: ERROR] [O: c.t.c.ImportProcessor] [I: ] [U: SuperUser] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] *** Unable to create resource instance in Resource:Functions
2023-08-23 10:28:50.797+0000 [L: ERROR] [O: c.t.c.ImportProcessor] [I: ] [U: SuperUser] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Unable to process import: org/jfree/data/time/RegularTimePeriod
2023-08-23 10:28:50.805+0000 [L: ERROR] [O: c.t.e.u.ExtensionPackageUtilities] [I: ] [U: SuperUser] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Unable to delete Extensions:1.1.0. This is likely due to other errors: ExtensionPackage Extensions Does Not Exist
2023-08-23 10:28:50.805+0000 [L: ERROR] [O: c.t.e.u.ExtensionPackageUtilities] [I: ] [U: SuperUser] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Failed to install extension Extensions:1.1.0 because Import Failed: org/jfree/data/time/RegularTimePeriod
2023-08-23 10:28:50.826+0000 [L: ERROR] [O: c.t.e.u.ExtensionPackageUtilities] [I: ] [U: r_user] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Failed to install extension packages.
2023-08-23 10:28:50.837+0000 [L: ERROR] [O: c.t.w.ExtensionPackageUploader] [I: ] [U: r_user] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Import Failed: org/jfree/data/time/RegularTimePeriod

Hi @千松_10631492.

 

We noticed this error in the log:

2023-08-23 10:28:50.796+0000 [L: ERROR] [O: c.t.e.u.ResourceUtilities] [I: ] [U: SuperUser] [S: ] [P: ] [T: ajp-nio-127.0.0.1-8009-exec-9] Unable To Create Resource Instance From Class: com.xxx.xxxx.resources.Functions

 

Notice the bold.  Did you forget to update it to the correct name?

 

Regards.

 

--Sharon

Announcements


Top Tags