我刚刚下载了spring-xd-1.1.0.M2.zip并按照以下链接中的说明进行安装: http://docs.spring.io/autorepo/docs/spring-xd/1.1.0.M2/reference/html/
我的机器上有Java7(这是列出的唯一先决条件)。
当我尝试启动spring xd时,它失败并出现以下异常: C:\软件\弹簧XD-1.1.0.M2 \ XD \ BIN> XD-singlenode
Started : SingleNodeApplication
Documentation: https://github.com/spring-projects/spring-xd/wiki
14:55:20,358 1.1.0.M2 ERROR main boot.SpringApplication - Application startup failed
org.kohsuke.args4j.IllegalAnnotationError: java.lang.reflect.InvocationTargetException
at org.kohsuke.args4j.CmdLineParser.createOptionHandler(CmdLineParser.java:176)
at org.kohsuke.args4j.CmdLineParser.addOption(CmdLineParser.java:131)
at org.kohsuke.args4j.ClassParser.parse(ClassParser.java:34)
at org.kohsuke.args4j.CmdLineParser.<init>(CmdLineParser.java:91)
at org.springframework.xd.dirt.server.options.CommandLinePropertySourceOverridingListener.onApplicationEvent(CommandLinePropertySourceOverridingListener.java:69
)
at org.springframework.xd.dirt.server.options.CommandLinePropertySourceOverridingListener.onApplicationEvent(CommandLinePropertySourceOverridingListener.java:45
)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)
at org.springframework.boot.context.event.EventPublishingRunListener.publishEvent(EventPublishingRunListener.java:100)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:59)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:286)
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:139)
at org.springframework.xd.dirt.server.ContainerBootstrapContext.<init>(ContainerBootstrapContext.java:48)
at org.springframework.xd.dirt.server.SingleNodeApplication.run(SingleNodeApplication.java:53)
at org.springframework.xd.dirt.server.SingleNodeApplication.main(SingleNodeApplication.java:46)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.kohsuke.args4j.CmdLineParser.createOptionHandler(CmdLineParser.java:170)
... 14 more
Caused by: java.util.regex.PatternSyntaxException: Illegal hexadecimal escape sequence near index 36
.*C:\Softwares\spring-xd-1.1.0.M2\xd\lib\messagebus\([^/]*).*
^
at java.util.regex.Pattern.error(Unknown Source)
at java.util.regex.Pattern.x(Unknown Source)
at java.util.regex.Pattern.escape(Unknown Source)
at java.util.regex.Pattern.atom(Unknown Source)
at java.util.regex.Pattern.sequence(Unknown Source)
at java.util.regex.Pattern.expr(Unknown Source)
at java.util.regex.Pattern.compile(Unknown Source)
at java.util.regex.Pattern.<init>(Unknown Source)
at java.util.regex.Pattern.compile(Unknown Source)
at org.springframework.xd.dirt.server.options.ResourcePatternScanningOptionHandler.init(ResourcePatternScanningOptionHandler.java:91)
at org.springframework.xd.dirt.server.options.ResourcePatternScanningOptionHandler.<init>(ResourcePatternScanningOptionHandler.java:58)
at org.springframework.xd.dirt.server.options.ResourcePatternScanningOptionHandlers$SingleNodeDataTransportOptionHandler.<init>(ResourcePatternScanningOptionHan
dlers.java:51)
... 19 more
Exception in thread "main" org.kohsuke.args4j.IllegalAnnotationError: java.lang.reflect.InvocationTargetException
at org.kohsuke.args4j.CmdLineParser.createOptionHandler(CmdLineParser.java:176)
at org.kohsuke.args4j.CmdLineParser.addOption(CmdLineParser.java:131)
at org.kohsuke.args4j.ClassParser.parse(ClassParser.java:34)
at org.kohsuke.args4j.CmdLineParser.<init>(CmdLineParser.java:91)
at org.springframework.xd.dirt.server.options.CommandLinePropertySourceOverridingListener.onApplicationEvent(CommandLinePropertySourceOverridingListener.java:69
)
at org.springframework.xd.dirt.server.options.CommandLinePropertySourceOverridingListener.onApplicationEvent(CommandLinePropertySourceOverridingListener.java:45
)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)
at org.springframework.boot.context.event.EventPublishingRunListener.publishEvent(EventPublishingRunListener.java:100)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:59)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:286)
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:139)
at org.springframework.xd.dirt.server.ContainerBootstrapContext.<init>(ContainerBootstrapContext.java:48)
at org.springframework.xd.dirt.server.SingleNodeApplication.run(SingleNodeApplication.java:53)
at org.springframework.xd.dirt.server.SingleNodeApplication.main(SingleNodeApplication.java:46)
我下载了spring-xd-1.0.3.RELEASE.zip,它运行正常。 任何人都知道最新版本的spring-xd会出现这个问题吗?
由于 阿希什
答案 0 :(得分:1)
答案 1 :(得分:0)