org.kohsuke.args4j.IllegalAnnotationError

java.lang.reflect.InvocationTargetException

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Stack Overflow by El Fufu
    ,
  • Stack trace

    • org.kohsuke.args4j.IllegalAnnotationError: java.lang.reflect.InvocationTargetException at org.kohsuke.args4j.CmdLineParser.createOptionHandler(CmdLineParser.java:176)[args4j-2.0.16.jar:na] at org.kohsuke.args4j.CmdLineParser.addOption(CmdLineParser.java:131)[args4j-2.0.16.jar:na] at org.kohsuke.args4j.ClassParser.parse(ClassParser.java:34)[args4j-2.0.16.jar:na] at org.kohsuke.args4j.CmdLineParser.<init>(CmdLineParser.java:91)[args4j-2.0.16.jar:na] at org.springframework.xd.dirt.server.options.CommandLinePropertySourceOverridingListener.onApplicationEvent(CommandLinePropertySourceOverridingListener.java:69)[spring-xd-dirt-1.2.0.RELEASE.jar:1.2.0.RELEASE] at org.springframework.xd.dirt.server.options.CommandLinePropertySourceOverridingListener.onApplicationEvent(CommandLinePropertySourceOverridingListener.java:45)[spring-xd-dirt-1.2.0.RELEASE.jar:1.2.0.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151)[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE] at org.springframework.boot.context.event.EventPublishingRunListener.publishEvent(EventPublishingRunListener.java:100)[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE] at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:59)[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:285)[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE] at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:139)[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE] at org.springframework.xd.dirt.server.container.ContainerBootstrapContext.<init>(ContainerBootstrapContext.java:48)[spring-xd-dirt-1.2.0.RELEASE.jar:1.2.0.RELEASE] at org.springframework.xd.dirt.server.singlenode.SingleNodeApplication.run(SingleNodeApplication.java:57)[spring-xd-dirt-1.2.0.RELEASE.jar:1.2.0.RELEASE] at org.springframework.xd.dirt.server.singlenode.SingleNodeApplication.main(SingleNodeApplication.java:50)[spring-xd-dirt-1.2.0.RELEASE.jar:1.2.0.RELEASE] Caused by: java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[na:1.8.0_101] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)[na:1.8.0_101] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)[na:1.8.0_101] at java.lang.reflect.Constructor.newInstance(Unknown Source)[na:1.8.0_101] at org.kohsuke.args4j.CmdLineParser.createOptionHandler(CmdLineParser.java:170)[args4j-2.0.16.jar:na] ... 14 more Caused by: java.lang.IllegalStateException: Expected to match 'file:/C:/Program%20Files/spring-xd-1.2.0.RELEASE/xd/bin/../lib/messagebus/kafka/' with regex '.*C:/Program Files/spring-xd-1.2.0.RELEASE/xd/bin/../lib/messagebus/([^/]*).*' at org.springframework.xd.dirt.server.options.ResourcePatternScanningOptionHandler.init(ResourcePatternScanningOptionHandler.java:101)[spring-xd-dirt-1.2.0.RELEASE.jar:1.2.0.RELEASE] at org.springframework.xd.dirt.server.options.ResourcePatternScanningOptionHandler.<init>(ResourcePatternScanningOptionHandler.java:58)[spring-xd-dirt-1.2.0.RELEASE.jar:1.2.0.RELEASE] at org.springframework.xd.dirt.server.options.ResourcePatternScanningOptionHandlers$SingleNodeDataTransportOptionHandler.<init>(ResourcePatternScanningOptionHandlers.java:52)[spring-xd-dirt-1.2.0.RELEASE.jar:1.2.0.RELEASE] ... 19 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,