Topic Maximum lenght of 256 causing issue

General questions on how to use Hermes or problems encountered

Topic Maximum lenght of 256 causing issue

Postby exto » Mon Mar 01, 2010 10:08 pm

Is there a simple way for me to increase the maximum topic size in the message store. The current size limit is 256. Unfortunately I have topics which are larger than this (due to the use of MULTITOPICS in SonicMQ implementation).

Can I increase the size? or is this something that needs to fixed in the code?

java.sql.SQLException: A truncation error was encountered trying to shrink VARCHAR '.......' to length 256. Query: insert into stores values (?, ?, ?, ?) Parameters: [....]
at org.apache.commons.dbutils.QueryRunner.rethrow(QueryRunner.java:330)
at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:399)
at hermes.store.schema.DefaultJDBCAdapter.insert(DefaultJDBCAdapter.java:149)
at hermes.store.SingleUserMessageStore.store(SingleUserMessageStore.java:230)
at hermes.browser.tasks.RecordDestinationTask.invoke(RecordDestinationTask.java:85)
at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
at java.lang.Thread.run(Thread.java:619)
exto
 
Posts: 2
Joined: Tue May 26, 2009 10:42 pm

Re: Topic Maximum lenght of 256 causing issue

Postby Colin » Sun Mar 14, 2010 11:19 am

I can fix this but its a code change. What are your upper limits?

If you raise an issue at http://hermesjms.com/jira then I'll get it into a build soon - its a simple fix.

Regards,

Colin.
Colin
Site Admin
 
Posts: 835
Joined: Sun Sep 19, 2004 4:49 pm
Location: London, UK

Re: Topic Maximum lenght of 256 causing issue

Postby exto » Mon Mar 15, 2010 5:01 pm

exto
 
Posts: 2
Joined: Tue May 26, 2009 10:42 pm


Return to Using Hermes

Who is online

Users browsing this forum: No registered users and 1 guest

cron