Projects tigase _server server-core Issues #757
BoshConnectionManager.java class setProperties(Map<String, Object>) method line 557 can not cast String to Long (#757)
来恩 周 opened 8 years ago
Due Date
2017-02-19

when I set init.properties bosh/max-wait=600

#bosh component max-wait time
bosh/max-wait=600
//the exception
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long
	at tigase.server.bosh.BoshConnectionManager.setProperties(BoshConnectionManager.java:557)
	at tigase.conf.ConfiguratorAbstract.itemUpdated(ConfiguratorAbstract.java:291)
	at tigase.conf.ConfiguratorAbstract.itemUpdated(ConfiguratorAbstract.java:1)
	at tigase.conf.ConfigurationCache.addItem(ConfigurationCache.java:119)
//java code BoshConnectionManager.java class setProperties(Map<String, Object>) method line 557 

	@Override
	public void setProperties(Map<String, Object> props) throws ConfigurationException {
		super.setProperties(props);
		if (props.get(MAX_WAIT_DEF_PROP_KEY) != null) {
//			max_wait = (Long) props.get(MAX_WAIT_DEF_PROP_KEY);
// change to 
			max_wait = Long.valueOf((String) props.get(MAX_WAIT_DEF_PROP_KEY));
			log.info("Setting max_wait to: " + max_wait);
		}

11111111.jpeg 2222222.jpeg

wojciech.kapcia@tigase.net commented 8 years ago

Please familiarize yourself with init.properties documentation ( Tigase XMPP Server init.properties Configuration) - properties in Tigase should contain type information to work, in your case:

bosh/max-wait[L]=30

You can check etc/config-dump.properties for all properties and appropriate types.

issue 1 of 1
Type
Bug
Priority
Minor
Assignee
RedmineID
4894
Version
tigase-server-7.1.1
Estimation
1h
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#757
Please wait...
Page is in error, reload to recover