Hi all,
Does anyone have experiance with creating a custom plug-in for the Content Transformation Services?
Our goal is to transform a image to format to that isnt supported by the CTS and thus we are forced to create our own custom build plug-in for this purpose.
After following the instructions in CTS_Product_53_SPx_development.pdf i created a custom plugin that seems to load ok when the CTS services are started.
Everything looks ok in the logs but when i try to trigger the plug-in from with our new profile i get this error message:
No Media Plug-in of type CUSTOM_PLUGIN available to handle a 'test_plugin' transformation
This is very odd since CUSTOM_PLUGIN is exacly what my custom plugin is named in my configuration file for the plugin (SERVERNAME).
I dont get any logs from my custom plugin, even though i edited the log4j.properties according to the CTS_Product_53_SPx_development.pdf, so in the java code we are writing the debug messages to both the logger (that doesnt work) and System.err. When i look at the Str_err.log in the <CTS_install_dir>/config dir, i can see my debug messages and one of the messages is the output of the getName() method - that is CUSTOM_PLUGIN.
So my question is, what am i missing here?
Thanks,
Vasse
More detailed log of the "error" from the cts_log.txt:
2009-04-16 14:06:23,244 DEBUG [Thread-149] CTSQueueProcessor - *************** docbaseX CTSQueueProcessor *********************
2009-04-16 14:06:23,260 DEBUG [Thread-155] CTSLegacyQueueProcessor - Query to get executed: select stamp,priority, date_sent from dm_queue where name='dm_autorender_win31' AND sign_off_user is nullstring ORDER BY priority DESC, date_sent ASC
2009-04-16 14:06:23,260 DEBUG [Thread-149] CTSQueueProcessor - Query to get executed: select stamp,priority, date_sent from dm_queue where name='dm_mediaserver' AND sign_off_user is nullstring ORDER BY priority DESC, date_sent ASC
2009-04-16 14:06:23,918 DEBUG [Thread-149] CTSPluginHandlerImpl - The source format is: text, content type is: text
2009-04-16 14:06:23,918 DEBUG [Thread-149] CTSPluginHandlerImpl - Message from queue item: -profile_id="0800f61380b76c78"
2009-04-16 14:06:23,918 DEBUG [Thread-149] CTSPluginHandlerImpl - The profile ID is: 0800f61380b76c78
2009-04-16 14:06:23,918 DEBUG [Thread-149] CTSPluginHandlerImpl - The target format is: text
2009-04-16 14:06:23,981 DEBUG [Thread-149] CTSQueueProcessor - Sign-off queue item (1b00f61380226239): profile can be executed
2009-04-16 14:06:23,981 DEBUG [Thread-149] CTSQueueProcessor - 1b00f61380226239 Current Time = Thursday, April 16, 2009 2:06:23 PM CEST
2009-04-16 14:06:23,981 DEBUG [Thread-149] CTSQueueProcessor - 1b00f61380226239 qItem Sent Date = Thursday, April 16, 2009 2:06:36 PM CEST
2009-04-16 14:06:23,996 DEBUG [Thread-149] CTSQueueProcessor - 1b00f61380226239 qItem Expriry Date = Friday, April 17, 2009 2:06:36 PM CEST
2009-04-16 14:06:23,996 DEBUG [Thread-149] CTSQueueProcessor - 1b00f61380226239 qItem Expired = false
2009-04-16 14:06:24,545 DEBUG [Thread-149] CTSQueueProcessor - gbw02280_docbaseX successfully signed off the item: 1b00f61380226239
2009-04-16 14:06:24,607 DEBUG [Thread-149] CTSSessionHandlerImpl - This is a 5.3 docbase
2009-04-16 14:06:24,827 DEBUG [Thread-149] CTSSessionImpl - [5] A new ICTSSession was created for system@docbaseX: s4
2009-04-16 14:06:24,874 DEBUG [Thread-149] CTSSessionUtils - ### checkSessionStatus: activeSessions=7, inactiveSessions=51
2009-04-16 14:06:24,874 DEBUG [Thread-149] CTSSessionUtils - releaseThreadSession: true-f=false: com.documentum.cts.impl.services.session.CTSSessionImpl@4e5056:s1
2009-04-16 14:06:24,874 DEBUG [Thread-149] CTSSessionUtils - setThreadSession: false: com.documentum.cts.impl.services.session.CTSSessionImpl@132b67c:s4
2009-04-16 14:06:24,889 INFO [Thread-149] CTSThreadPoolManagerImpl - Number of ICTSTask Threads Created: 10
2009-04-16 14:06:24,905 INFO [Thread-149] CTSThreadPoolManagerImpl - Added ICTSTask to the ICTSThreadPoolManager: dm_transcode_content
2009-04-16 14:06:24,905 DEBUG [Thread-149] CTSSessionImpl - [4] An ICTSSession was released for system@docbaseX
2009-04-16 14:06:24,905 DEBUG [Thread-149] CTSSessionUtils - releaseThreadSession: false-f=false: com.documentum.cts.impl.services.session.CTSSessionImpl@132b67c
2009-04-16 14:06:24,921 INFO [Thread-170] CTSThreadPoolManagerImpl - Processing next CTSTask...
2009-04-16 14:06:24,921 INFO [Thread-170] CTSThreadPoolManagerImpl - About to get notifier from CTSTask...
2009-04-16 14:06:24,921 INFO [Thread-170] CTSThreadPoolManagerImpl - About to get session from CTSTask...
2009-04-16 14:06:25,296 DEBUG [Thread-170] CTSSessionImpl - [5] A new ICTSSession was created for system@docbaseX: s5
2009-04-16 14:06:25,296 DEBUG [Thread-170] CTSSessionUtils - setThreadSession: false: com.documentum.cts.impl.services.session.CTSSessionImpl@183e965:s5
2009-04-16 14:06:25,296 DEBUG [Thread-170] CTSTaskBase - getUserSession: got a new thread session: com.documentum.cts.impl.services.session.CTSSessionImpl@183e965:s5
2009-04-16 14:06:25,296 INFO [Thread-170] CTSThreadPoolManagerImpl - About to get RUN CTSTask...
2009-04-16 14:06:25,296 DEBUG [Thread-170] CTSTask - Task operation, object id: 0900f61380b7ffa1, formats: from text to text
2009-04-16 14:06:25,578 DEBUG [Thread-170] CTSTask - TASK with profile id: 0800f61380b76c78 and name: test_plugin has been initialized! - -profile_id="0800f61380b76c78"
2009-04-16 14:06:25,688 DEBUG [Thread-170] CTSPluginHandlerImpl - executeProfile - test_plugin (0800f61380b76c78)
2009-04-16 14:06:25,704 INFO [Thread-170] CTSPluginHandlerImpl - **** Executing Atomic CTSProfile test_plugin ******
2009-04-16 14:06:25,719 DEBUG [Thread-170] CTSSessionImpl - [4] An ICTSSession was released for system@docbaseX
2009-04-16 14:06:25,719 DEBUG [Thread-170] CTSPluginHandlerImpl - No Media Plug-in of type VASSE available to handle a 'test_plugin' transformation
2009-04-16 14:06:25,751 DEBUG [Thread-170] CTSSessionImpl - [5] login succeeded for system@docbaseX: s5
2009-04-16 14:06:25,766 DEBUG [Thread-170] CTSTaskKeyLock - locked the CTSTask key: 0900f61380b7ffa1
2009-04-16 14:06:25,782 DEBUG [Thread-170] CTSTaskKeyLock - unlocked the CTSTask key: 0900f61380b7ffa1
2009-04-16 14:06:25,782 DEBUG [Thread-170] CTSTask - deleteOutputResults called for profile: test_plugin
2009-04-16 14:06:25,782 DEBUG [Thread-170] CTSThreadPoolManagerImpl - Successfully processed document format: null, with ID: null
2009-04-16 14:06:25,782 INFO [Thread-170] CTSThreadPoolManagerImpl - ICTSTask has returned successfully...
2009-04-16 14:06:25,782 INFO [Thread-170] CTSQueueProcessor - theCTSResponseContent is null
2009-04-16 14:06:25,939 DEBUG [Thread-170] CTSSessionImpl - [6] A new ICTSSession was created for system@docbaseX: s6
2009-04-16 14:06:25,939 DEBUG [Thread-170] CTSSessionUtils - setThreadSession: true: com.documentum.cts.impl.services.session.CTSSessionImpl@2f7cfe:s6
2009-04-16 14:06:25,986 DEBUG [Thread-170] CTSQueueProcessor - getNumberOfSignedOffItems: 1
2009-04-16 14:06:25,986 DEBUG [Thread-149] CTSQueueProcessor - getNumberOfSignedOffItems: 1
2009-04-16 14:06:27,098 DEBUG [Thread-149] CTSQueueProcessor - GC: total= 63 MB, free= 41 MB