Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old brokers built with Java 8 won't run in new server 1.7.x #1043

Closed
jecollins opened this issue Jan 6, 2020 · 2 comments
Closed

Old brokers built with Java 8 won't run in new server 1.7.x #1043

jecollins opened this issue Jan 6, 2020 · 2 comments

Comments

@jecollins
Copy link
Member

This is a follow-on to Issue #1042. We get a fatal JMS error when starting up an old broker under Java 11.

@jecollins
Copy link
Member Author

jecollins commented Jan 20, 2020

I think perhaps the problem is not as simple as the title suggests. Today I started up the 1.6.0 server using a Java 11 runtime, and the 1.6.0 broker, also running under Java 11, still fails in exactly the same way:

Exception in thread "main" java.lang.IllegalArgumentException: Property 'connectionFactory' is required
	at org.springframework.jms.support.JmsAccessor.afterPropertiesSet(JmsAccessor.java:169)
	at org.springframework.jms.listener.AbstractJmsListeningContainer.afterPropertiesSet(AbstractJmsListeningContainer.java:165)
	at org.powertac.samplebroker.core.JmsManagementService.registerMessageListener(JmsManagementService.java:112)
	at org.powertac.samplebroker.core.PowerTacBroker.run(PowerTacBroker.java:260)
	at org.powertac.samplebroker.core.PowerTacBroker.startSession(PowerTacBroker.java:185)
	at org.powertac.samplebroker.core.BrokerRunner.processCmdLine(BrokerRunner.java:173)
	at org.powertac.samplebroker.core.BrokerMain.main(BrokerMain.java:39)

@jecollins
Copy link
Member Author

Turns out that old brokers work fine and interact correctly with the new server if you run them under Java 8 rather than Java 11. Beyond this, it's hard to see how to fix this problem without re-compiling the old brokers with a newer version of broker-core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant