How to resolve Spring Boot Array Out of Bounds Exception in Eclipse?











up vote
0
down vote

favorite












I am running a spring boot application in Java. The generated JAR file works fine when i run from the command line java -jar FILE. But, when my project runs in Eclipse, it throws an exception when I open the localhost URL.



The error is:



 .   ____          _            __ _ _
/\ / ___'_ __ _ _(_)_ __ __ _
( ( )___ | '_ | '_| | '_ / _` |
\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |___, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.1.0.RELEASE)

2018-11-21 11:41:00.251 INFO 22092 --- [ main] com.neo4j.searchapi.SearchApplication : Starting SearchApplication on W-PF1EQDR2 with PID 22092 (C:GitLabepm_poc_neo4j_DataStorageepmNeo4jPoccom.epm.neo4j.searchapitargetclasses started by DN4Q in C:GitLabepm_poc_neo4j_DataStorageepmNeo4jPoccom.epm.neo4j.searchapi)
2018-11-21 11:41:00.255 INFO 22092 --- [ main] com.neo4j.searchapi.SearchApplication : No active profile set, falling back to default profiles: default
2018-11-21 11:41:01.315 INFO 22092 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2018-11-21 11:41:01.316 INFO 22092 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2018-11-21 11:41:01.514 INFO 22092 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 186ms. Found 1 repository interfaces.
2018-11-21 11:41:02.021 INFO 22092 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
2018-11-21 11:41:02.029 INFO 22092 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
2018-11-21 11:41:02.037 INFO 22092 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
2018-11-21 11:41:02.178 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$e09f82c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.198 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.hateoas.config.HateoasConfiguration' of type [org.springframework.hateoas.config.HateoasConfiguration$$EnhancerBySpringCGLIB$$8d8a455e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.208 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration$$EnhancerBySpringCGLIB$$78fbb35b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.227 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'integrationDisposableAutoCreatedBeans' of type [org.springframework.integration.config.annotation.Disposables] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.957 INFO 22092 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8085 (http)
2018-11-21 11:41:02.978 INFO 22092 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2018-11-21 11:41:02.978 INFO 22092 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/9.0.12
2018-11-21 11:41:02.988 INFO 22092 --- [ main] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:Program FilesJavajdk-11.0.1bin;C:WINDOWSSunJavabin;C:WINDOWSsystem32;C:WINDOWS;C:/Program Files/Java/jdk-11.0.1/bin/server;C:/Program Files/Java/jdk-11.0.1/bin;C:Program FilesDockerDockerResourcesbin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program Files1ENomadBranch;C:Usersdn4q.dnxbin;C:Program FilesMicrosoft DNXDnvm;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program FilesGitcmd;C:Program Files (x86)Microsoft SQL ServerClient SDKODBC130ToolsBinn;C:Program Files (x86)Microsoft SQL Server140ToolsBinn;C:Program Files (x86)Microsoft SQL Server140DTSBinn;C:Program Files (x86)Microsoft SQL Server140ToolsBinnManagementStudio;C:Program FilesPuTTY;C:Program FilesMicrosoft SQL Server110ToolsBinn;C:Usersdn4qAppDataLocalMicrosoftWindowsApps;C:Program Filesapache-maven-3.5.4bin;C:Program FilesJavajdk-11.0.1bin;;C:Program Fileseclipse;;.]
2018-11-21 11:41:03.285 INFO 22092 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2018-11-21 11:41:03.285 INFO 22092 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2970 ms
2018-11-21 11:41:03.401 INFO 22092 --- [ main] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'formContentFilter' to: [/*]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Starting Post-processing phase
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Building annotation class map
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Building interface class map for 0 classes
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Post-processing complete
2018-11-21 11:41:04.230 INFO 22092 --- [ main] o.s.d.neo4j.mapping.Neo4jMappingContext : Neo4jMappingContext initialisation completed
2018-11-21 11:41:04.282 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: private java.lang.Long com.neo4j.searchapi.domain.Style.id
2018-11-21 11:41:04.290 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: private java.lang.String com.neo4j.searchapi.domain.Style.ShortName
2018-11-21 11:41:04.291 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: private java.lang.String com.neo4j.searchapi.domain.Style.LongName
2018-11-21 11:41:04.295 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: com.neo4j.searchapi.domain.Style.shortName
2018-11-21 11:41:04.296 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: com.neo4j.searchapi.domain.Style.longName
2018-11-21 11:41:05.327 INFO 22092 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2018-11-21 11:41:05.409 WARN 22092 --- [ main] ebConfiguration$Neo4jWebMvcConfiguration : spring.data.neo4j.open-in-view is enabled by default.Therefore, database queries may be performed during view rendering. Explicitly configure spring.data.neo4j.open-in-view to disable this warning
2018-11-21 11:41:06.135 INFO 22092 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService 'taskScheduler'
2018-11-21 11:41:06.244 INFO 22092 --- [ main] o.s.i.endpoint.EventDrivenConsumer : Adding {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the 'errorChannel' channel
2018-11-21 11:41:06.244 INFO 22092 --- [ main] o.s.i.channel.PublishSubscribeChannel : Channel 'application.errorChannel' has 1 subscriber(s).
2018-11-21 11:41:06.244 INFO 22092 --- [ main] o.s.i.endpoint.EventDrivenConsumer : started _org.springframework.integration.errorLogger
2018-11-21 11:41:06.296 INFO 22092 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8085 (http) with context path ''
2018-11-21 11:41:06.301 INFO 22092 --- [ main] com.neo4j.searchapi.SearchApplication : Started SearchApplication in 6.485 seconds (JVM running for 7.195)
2018-11-21 11:41:11.938 INFO 22092 --- [nio-8085-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2018-11-21 11:41:11.938 INFO 22092 --- [nio-8085-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2018-11-21 11:41:11.969 INFO 22092 --- [nio-8085-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 31 ms
2018-11-21 11:41:12.196 INFO 22092 --- [nio-8085-exec-1] Driver : Direct driver instance 392869212 created for server address epmdbdev02.nonprod.productmdm.vip.nordstrom.com:7687
2018-11-21 11:41:13.929 ERROR 22092 --- [nio-8085-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path threw exception [Request processing failed; nested exception is java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0] with root cause

java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0`


Here is my POM file:



<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>hidden</groupId>
<artifactId>hidden</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>


<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.5.RELEASE</version>
</parent>
<!-- Spring Data Neo4j -->


<dependencies>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<exclusions>
<exclusion>
<artifactId>neo4j</artifactId>
<groupId>org.neo4j</groupId>
</exclusion>
<exclusion>
<artifactId>neo4j-cypher-dsl</artifactId>
<groupId>org.neo4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons-core</artifactId>
<version>1.0.0.RELEASE</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm-core</artifactId>
<version>3.1.4</version>
</dependency>
<!-- Bolt driver -->
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm-bolt-driver</artifactId>
<version>3.0.0</version>
<scope>runtime</scope>
</dependency>
</dependencies>

<properties>
<java.version>1.8</java.version>
</properties>


<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.0.5.RELEASE</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>


So, now I am trying to find a way to resolve this issue and use Eclipse to directly run the JAR file. Please suggest a solution.










share|improve this question






















  • Try to run your code from command line and let's see the result: mvn clean spring-boot:run
    – zappee
    Nov 21 at 19:58










  • Tried it. Still the same problem
    – Don Joobb
    Nov 21 at 21:49















up vote
0
down vote

favorite












I am running a spring boot application in Java. The generated JAR file works fine when i run from the command line java -jar FILE. But, when my project runs in Eclipse, it throws an exception when I open the localhost URL.



The error is:



 .   ____          _            __ _ _
/\ / ___'_ __ _ _(_)_ __ __ _
( ( )___ | '_ | '_| | '_ / _` |
\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |___, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.1.0.RELEASE)

2018-11-21 11:41:00.251 INFO 22092 --- [ main] com.neo4j.searchapi.SearchApplication : Starting SearchApplication on W-PF1EQDR2 with PID 22092 (C:GitLabepm_poc_neo4j_DataStorageepmNeo4jPoccom.epm.neo4j.searchapitargetclasses started by DN4Q in C:GitLabepm_poc_neo4j_DataStorageepmNeo4jPoccom.epm.neo4j.searchapi)
2018-11-21 11:41:00.255 INFO 22092 --- [ main] com.neo4j.searchapi.SearchApplication : No active profile set, falling back to default profiles: default
2018-11-21 11:41:01.315 INFO 22092 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2018-11-21 11:41:01.316 INFO 22092 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2018-11-21 11:41:01.514 INFO 22092 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 186ms. Found 1 repository interfaces.
2018-11-21 11:41:02.021 INFO 22092 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
2018-11-21 11:41:02.029 INFO 22092 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
2018-11-21 11:41:02.037 INFO 22092 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
2018-11-21 11:41:02.178 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$e09f82c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.198 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.hateoas.config.HateoasConfiguration' of type [org.springframework.hateoas.config.HateoasConfiguration$$EnhancerBySpringCGLIB$$8d8a455e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.208 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration$$EnhancerBySpringCGLIB$$78fbb35b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.227 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'integrationDisposableAutoCreatedBeans' of type [org.springframework.integration.config.annotation.Disposables] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.957 INFO 22092 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8085 (http)
2018-11-21 11:41:02.978 INFO 22092 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2018-11-21 11:41:02.978 INFO 22092 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/9.0.12
2018-11-21 11:41:02.988 INFO 22092 --- [ main] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:Program FilesJavajdk-11.0.1bin;C:WINDOWSSunJavabin;C:WINDOWSsystem32;C:WINDOWS;C:/Program Files/Java/jdk-11.0.1/bin/server;C:/Program Files/Java/jdk-11.0.1/bin;C:Program FilesDockerDockerResourcesbin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program Files1ENomadBranch;C:Usersdn4q.dnxbin;C:Program FilesMicrosoft DNXDnvm;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program FilesGitcmd;C:Program Files (x86)Microsoft SQL ServerClient SDKODBC130ToolsBinn;C:Program Files (x86)Microsoft SQL Server140ToolsBinn;C:Program Files (x86)Microsoft SQL Server140DTSBinn;C:Program Files (x86)Microsoft SQL Server140ToolsBinnManagementStudio;C:Program FilesPuTTY;C:Program FilesMicrosoft SQL Server110ToolsBinn;C:Usersdn4qAppDataLocalMicrosoftWindowsApps;C:Program Filesapache-maven-3.5.4bin;C:Program FilesJavajdk-11.0.1bin;;C:Program Fileseclipse;;.]
2018-11-21 11:41:03.285 INFO 22092 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2018-11-21 11:41:03.285 INFO 22092 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2970 ms
2018-11-21 11:41:03.401 INFO 22092 --- [ main] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'formContentFilter' to: [/*]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Starting Post-processing phase
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Building annotation class map
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Building interface class map for 0 classes
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Post-processing complete
2018-11-21 11:41:04.230 INFO 22092 --- [ main] o.s.d.neo4j.mapping.Neo4jMappingContext : Neo4jMappingContext initialisation completed
2018-11-21 11:41:04.282 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: private java.lang.Long com.neo4j.searchapi.domain.Style.id
2018-11-21 11:41:04.290 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: private java.lang.String com.neo4j.searchapi.domain.Style.ShortName
2018-11-21 11:41:04.291 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: private java.lang.String com.neo4j.searchapi.domain.Style.LongName
2018-11-21 11:41:04.295 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: com.neo4j.searchapi.domain.Style.shortName
2018-11-21 11:41:04.296 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: com.neo4j.searchapi.domain.Style.longName
2018-11-21 11:41:05.327 INFO 22092 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2018-11-21 11:41:05.409 WARN 22092 --- [ main] ebConfiguration$Neo4jWebMvcConfiguration : spring.data.neo4j.open-in-view is enabled by default.Therefore, database queries may be performed during view rendering. Explicitly configure spring.data.neo4j.open-in-view to disable this warning
2018-11-21 11:41:06.135 INFO 22092 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService 'taskScheduler'
2018-11-21 11:41:06.244 INFO 22092 --- [ main] o.s.i.endpoint.EventDrivenConsumer : Adding {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the 'errorChannel' channel
2018-11-21 11:41:06.244 INFO 22092 --- [ main] o.s.i.channel.PublishSubscribeChannel : Channel 'application.errorChannel' has 1 subscriber(s).
2018-11-21 11:41:06.244 INFO 22092 --- [ main] o.s.i.endpoint.EventDrivenConsumer : started _org.springframework.integration.errorLogger
2018-11-21 11:41:06.296 INFO 22092 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8085 (http) with context path ''
2018-11-21 11:41:06.301 INFO 22092 --- [ main] com.neo4j.searchapi.SearchApplication : Started SearchApplication in 6.485 seconds (JVM running for 7.195)
2018-11-21 11:41:11.938 INFO 22092 --- [nio-8085-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2018-11-21 11:41:11.938 INFO 22092 --- [nio-8085-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2018-11-21 11:41:11.969 INFO 22092 --- [nio-8085-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 31 ms
2018-11-21 11:41:12.196 INFO 22092 --- [nio-8085-exec-1] Driver : Direct driver instance 392869212 created for server address epmdbdev02.nonprod.productmdm.vip.nordstrom.com:7687
2018-11-21 11:41:13.929 ERROR 22092 --- [nio-8085-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path threw exception [Request processing failed; nested exception is java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0] with root cause

java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0`


Here is my POM file:



<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>hidden</groupId>
<artifactId>hidden</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>


<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.5.RELEASE</version>
</parent>
<!-- Spring Data Neo4j -->


<dependencies>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<exclusions>
<exclusion>
<artifactId>neo4j</artifactId>
<groupId>org.neo4j</groupId>
</exclusion>
<exclusion>
<artifactId>neo4j-cypher-dsl</artifactId>
<groupId>org.neo4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons-core</artifactId>
<version>1.0.0.RELEASE</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm-core</artifactId>
<version>3.1.4</version>
</dependency>
<!-- Bolt driver -->
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm-bolt-driver</artifactId>
<version>3.0.0</version>
<scope>runtime</scope>
</dependency>
</dependencies>

<properties>
<java.version>1.8</java.version>
</properties>


<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.0.5.RELEASE</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>


So, now I am trying to find a way to resolve this issue and use Eclipse to directly run the JAR file. Please suggest a solution.










share|improve this question






















  • Try to run your code from command line and let's see the result: mvn clean spring-boot:run
    – zappee
    Nov 21 at 19:58










  • Tried it. Still the same problem
    – Don Joobb
    Nov 21 at 21:49













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am running a spring boot application in Java. The generated JAR file works fine when i run from the command line java -jar FILE. But, when my project runs in Eclipse, it throws an exception when I open the localhost URL.



The error is:



 .   ____          _            __ _ _
/\ / ___'_ __ _ _(_)_ __ __ _
( ( )___ | '_ | '_| | '_ / _` |
\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |___, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.1.0.RELEASE)

2018-11-21 11:41:00.251 INFO 22092 --- [ main] com.neo4j.searchapi.SearchApplication : Starting SearchApplication on W-PF1EQDR2 with PID 22092 (C:GitLabepm_poc_neo4j_DataStorageepmNeo4jPoccom.epm.neo4j.searchapitargetclasses started by DN4Q in C:GitLabepm_poc_neo4j_DataStorageepmNeo4jPoccom.epm.neo4j.searchapi)
2018-11-21 11:41:00.255 INFO 22092 --- [ main] com.neo4j.searchapi.SearchApplication : No active profile set, falling back to default profiles: default
2018-11-21 11:41:01.315 INFO 22092 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2018-11-21 11:41:01.316 INFO 22092 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2018-11-21 11:41:01.514 INFO 22092 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 186ms. Found 1 repository interfaces.
2018-11-21 11:41:02.021 INFO 22092 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
2018-11-21 11:41:02.029 INFO 22092 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
2018-11-21 11:41:02.037 INFO 22092 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
2018-11-21 11:41:02.178 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$e09f82c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.198 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.hateoas.config.HateoasConfiguration' of type [org.springframework.hateoas.config.HateoasConfiguration$$EnhancerBySpringCGLIB$$8d8a455e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.208 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration$$EnhancerBySpringCGLIB$$78fbb35b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.227 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'integrationDisposableAutoCreatedBeans' of type [org.springframework.integration.config.annotation.Disposables] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.957 INFO 22092 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8085 (http)
2018-11-21 11:41:02.978 INFO 22092 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2018-11-21 11:41:02.978 INFO 22092 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/9.0.12
2018-11-21 11:41:02.988 INFO 22092 --- [ main] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:Program FilesJavajdk-11.0.1bin;C:WINDOWSSunJavabin;C:WINDOWSsystem32;C:WINDOWS;C:/Program Files/Java/jdk-11.0.1/bin/server;C:/Program Files/Java/jdk-11.0.1/bin;C:Program FilesDockerDockerResourcesbin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program Files1ENomadBranch;C:Usersdn4q.dnxbin;C:Program FilesMicrosoft DNXDnvm;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program FilesGitcmd;C:Program Files (x86)Microsoft SQL ServerClient SDKODBC130ToolsBinn;C:Program Files (x86)Microsoft SQL Server140ToolsBinn;C:Program Files (x86)Microsoft SQL Server140DTSBinn;C:Program Files (x86)Microsoft SQL Server140ToolsBinnManagementStudio;C:Program FilesPuTTY;C:Program FilesMicrosoft SQL Server110ToolsBinn;C:Usersdn4qAppDataLocalMicrosoftWindowsApps;C:Program Filesapache-maven-3.5.4bin;C:Program FilesJavajdk-11.0.1bin;;C:Program Fileseclipse;;.]
2018-11-21 11:41:03.285 INFO 22092 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2018-11-21 11:41:03.285 INFO 22092 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2970 ms
2018-11-21 11:41:03.401 INFO 22092 --- [ main] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'formContentFilter' to: [/*]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Starting Post-processing phase
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Building annotation class map
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Building interface class map for 0 classes
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Post-processing complete
2018-11-21 11:41:04.230 INFO 22092 --- [ main] o.s.d.neo4j.mapping.Neo4jMappingContext : Neo4jMappingContext initialisation completed
2018-11-21 11:41:04.282 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: private java.lang.Long com.neo4j.searchapi.domain.Style.id
2018-11-21 11:41:04.290 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: private java.lang.String com.neo4j.searchapi.domain.Style.ShortName
2018-11-21 11:41:04.291 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: private java.lang.String com.neo4j.searchapi.domain.Style.LongName
2018-11-21 11:41:04.295 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: com.neo4j.searchapi.domain.Style.shortName
2018-11-21 11:41:04.296 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: com.neo4j.searchapi.domain.Style.longName
2018-11-21 11:41:05.327 INFO 22092 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2018-11-21 11:41:05.409 WARN 22092 --- [ main] ebConfiguration$Neo4jWebMvcConfiguration : spring.data.neo4j.open-in-view is enabled by default.Therefore, database queries may be performed during view rendering. Explicitly configure spring.data.neo4j.open-in-view to disable this warning
2018-11-21 11:41:06.135 INFO 22092 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService 'taskScheduler'
2018-11-21 11:41:06.244 INFO 22092 --- [ main] o.s.i.endpoint.EventDrivenConsumer : Adding {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the 'errorChannel' channel
2018-11-21 11:41:06.244 INFO 22092 --- [ main] o.s.i.channel.PublishSubscribeChannel : Channel 'application.errorChannel' has 1 subscriber(s).
2018-11-21 11:41:06.244 INFO 22092 --- [ main] o.s.i.endpoint.EventDrivenConsumer : started _org.springframework.integration.errorLogger
2018-11-21 11:41:06.296 INFO 22092 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8085 (http) with context path ''
2018-11-21 11:41:06.301 INFO 22092 --- [ main] com.neo4j.searchapi.SearchApplication : Started SearchApplication in 6.485 seconds (JVM running for 7.195)
2018-11-21 11:41:11.938 INFO 22092 --- [nio-8085-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2018-11-21 11:41:11.938 INFO 22092 --- [nio-8085-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2018-11-21 11:41:11.969 INFO 22092 --- [nio-8085-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 31 ms
2018-11-21 11:41:12.196 INFO 22092 --- [nio-8085-exec-1] Driver : Direct driver instance 392869212 created for server address epmdbdev02.nonprod.productmdm.vip.nordstrom.com:7687
2018-11-21 11:41:13.929 ERROR 22092 --- [nio-8085-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path threw exception [Request processing failed; nested exception is java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0] with root cause

java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0`


Here is my POM file:



<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>hidden</groupId>
<artifactId>hidden</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>


<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.5.RELEASE</version>
</parent>
<!-- Spring Data Neo4j -->


<dependencies>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<exclusions>
<exclusion>
<artifactId>neo4j</artifactId>
<groupId>org.neo4j</groupId>
</exclusion>
<exclusion>
<artifactId>neo4j-cypher-dsl</artifactId>
<groupId>org.neo4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons-core</artifactId>
<version>1.0.0.RELEASE</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm-core</artifactId>
<version>3.1.4</version>
</dependency>
<!-- Bolt driver -->
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm-bolt-driver</artifactId>
<version>3.0.0</version>
<scope>runtime</scope>
</dependency>
</dependencies>

<properties>
<java.version>1.8</java.version>
</properties>


<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.0.5.RELEASE</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>


So, now I am trying to find a way to resolve this issue and use Eclipse to directly run the JAR file. Please suggest a solution.










share|improve this question













I am running a spring boot application in Java. The generated JAR file works fine when i run from the command line java -jar FILE. But, when my project runs in Eclipse, it throws an exception when I open the localhost URL.



The error is:



 .   ____          _            __ _ _
/\ / ___'_ __ _ _(_)_ __ __ _
( ( )___ | '_ | '_| | '_ / _` |
\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |___, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.1.0.RELEASE)

2018-11-21 11:41:00.251 INFO 22092 --- [ main] com.neo4j.searchapi.SearchApplication : Starting SearchApplication on W-PF1EQDR2 with PID 22092 (C:GitLabepm_poc_neo4j_DataStorageepmNeo4jPoccom.epm.neo4j.searchapitargetclasses started by DN4Q in C:GitLabepm_poc_neo4j_DataStorageepmNeo4jPoccom.epm.neo4j.searchapi)
2018-11-21 11:41:00.255 INFO 22092 --- [ main] com.neo4j.searchapi.SearchApplication : No active profile set, falling back to default profiles: default
2018-11-21 11:41:01.315 INFO 22092 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2018-11-21 11:41:01.316 INFO 22092 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2018-11-21 11:41:01.514 INFO 22092 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 186ms. Found 1 repository interfaces.
2018-11-21 11:41:02.021 INFO 22092 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
2018-11-21 11:41:02.029 INFO 22092 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
2018-11-21 11:41:02.037 INFO 22092 --- [ main] faultConfiguringBeanFactoryPostProcessor : No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
2018-11-21 11:41:02.178 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$e09f82c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.198 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.hateoas.config.HateoasConfiguration' of type [org.springframework.hateoas.config.HateoasConfiguration$$EnhancerBySpringCGLIB$$8d8a455e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.208 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration$$EnhancerBySpringCGLIB$$78fbb35b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.227 INFO 22092 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'integrationDisposableAutoCreatedBeans' of type [org.springframework.integration.config.annotation.Disposables] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-11-21 11:41:02.957 INFO 22092 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8085 (http)
2018-11-21 11:41:02.978 INFO 22092 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2018-11-21 11:41:02.978 INFO 22092 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/9.0.12
2018-11-21 11:41:02.988 INFO 22092 --- [ main] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:Program FilesJavajdk-11.0.1bin;C:WINDOWSSunJavabin;C:WINDOWSsystem32;C:WINDOWS;C:/Program Files/Java/jdk-11.0.1/bin/server;C:/Program Files/Java/jdk-11.0.1/bin;C:Program FilesDockerDockerResourcesbin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program Files1ENomadBranch;C:Usersdn4q.dnxbin;C:Program FilesMicrosoft DNXDnvm;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program FilesGitcmd;C:Program Files (x86)Microsoft SQL ServerClient SDKODBC130ToolsBinn;C:Program Files (x86)Microsoft SQL Server140ToolsBinn;C:Program Files (x86)Microsoft SQL Server140DTSBinn;C:Program Files (x86)Microsoft SQL Server140ToolsBinnManagementStudio;C:Program FilesPuTTY;C:Program FilesMicrosoft SQL Server110ToolsBinn;C:Usersdn4qAppDataLocalMicrosoftWindowsApps;C:Program Filesapache-maven-3.5.4bin;C:Program FilesJavajdk-11.0.1bin;;C:Program Fileseclipse;;.]
2018-11-21 11:41:03.285 INFO 22092 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2018-11-21 11:41:03.285 INFO 22092 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2970 ms
2018-11-21 11:41:03.401 INFO 22092 --- [ main] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'formContentFilter' to: [/*]
2018-11-21 11:41:03.406 INFO 22092 --- [ main] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Starting Post-processing phase
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Building annotation class map
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Building interface class map for 0 classes
2018-11-21 11:41:04.184 INFO 22092 --- [ main] org.neo4j.ogm.metadata.DomainInfo : Post-processing complete
2018-11-21 11:41:04.230 INFO 22092 --- [ main] o.s.d.neo4j.mapping.Neo4jMappingContext : Neo4jMappingContext initialisation completed
2018-11-21 11:41:04.282 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: private java.lang.Long com.neo4j.searchapi.domain.Style.id
2018-11-21 11:41:04.290 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: private java.lang.String com.neo4j.searchapi.domain.Style.ShortName
2018-11-21 11:41:04.291 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: private java.lang.String com.neo4j.searchapi.domain.Style.LongName
2018-11-21 11:41:04.295 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: com.neo4j.searchapi.domain.Style.shortName
2018-11-21 11:41:04.296 WARN 22092 --- [ main] o.s.d.n.mapping.Neo4jPersistentProperty : Owning ClassInfo is null for property: com.neo4j.searchapi.domain.Style.longName
2018-11-21 11:41:05.327 INFO 22092 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2018-11-21 11:41:05.409 WARN 22092 --- [ main] ebConfiguration$Neo4jWebMvcConfiguration : spring.data.neo4j.open-in-view is enabled by default.Therefore, database queries may be performed during view rendering. Explicitly configure spring.data.neo4j.open-in-view to disable this warning
2018-11-21 11:41:06.135 INFO 22092 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService 'taskScheduler'
2018-11-21 11:41:06.244 INFO 22092 --- [ main] o.s.i.endpoint.EventDrivenConsumer : Adding {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the 'errorChannel' channel
2018-11-21 11:41:06.244 INFO 22092 --- [ main] o.s.i.channel.PublishSubscribeChannel : Channel 'application.errorChannel' has 1 subscriber(s).
2018-11-21 11:41:06.244 INFO 22092 --- [ main] o.s.i.endpoint.EventDrivenConsumer : started _org.springframework.integration.errorLogger
2018-11-21 11:41:06.296 INFO 22092 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8085 (http) with context path ''
2018-11-21 11:41:06.301 INFO 22092 --- [ main] com.neo4j.searchapi.SearchApplication : Started SearchApplication in 6.485 seconds (JVM running for 7.195)
2018-11-21 11:41:11.938 INFO 22092 --- [nio-8085-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2018-11-21 11:41:11.938 INFO 22092 --- [nio-8085-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2018-11-21 11:41:11.969 INFO 22092 --- [nio-8085-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 31 ms
2018-11-21 11:41:12.196 INFO 22092 --- [nio-8085-exec-1] Driver : Direct driver instance 392869212 created for server address epmdbdev02.nonprod.productmdm.vip.nordstrom.com:7687
2018-11-21 11:41:13.929 ERROR 22092 --- [nio-8085-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path threw exception [Request processing failed; nested exception is java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0] with root cause

java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0`


Here is my POM file:



<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>hidden</groupId>
<artifactId>hidden</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>


<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.5.RELEASE</version>
</parent>
<!-- Spring Data Neo4j -->


<dependencies>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<exclusions>
<exclusion>
<artifactId>neo4j</artifactId>
<groupId>org.neo4j</groupId>
</exclusion>
<exclusion>
<artifactId>neo4j-cypher-dsl</artifactId>
<groupId>org.neo4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons-core</artifactId>
<version>1.0.0.RELEASE</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm-core</artifactId>
<version>3.1.4</version>
</dependency>
<!-- Bolt driver -->
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm-bolt-driver</artifactId>
<version>3.0.0</version>
<scope>runtime</scope>
</dependency>
</dependencies>

<properties>
<java.version>1.8</java.version>
</properties>


<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.0.5.RELEASE</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>


So, now I am trying to find a way to resolve this issue and use Eclipse to directly run the JAR file. Please suggest a solution.







java spring eclipse spring-boot neo4j






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 21 at 19:49









Don Joobb

62




62












  • Try to run your code from command line and let's see the result: mvn clean spring-boot:run
    – zappee
    Nov 21 at 19:58










  • Tried it. Still the same problem
    – Don Joobb
    Nov 21 at 21:49


















  • Try to run your code from command line and let's see the result: mvn clean spring-boot:run
    – zappee
    Nov 21 at 19:58










  • Tried it. Still the same problem
    – Don Joobb
    Nov 21 at 21:49
















Try to run your code from command line and let's see the result: mvn clean spring-boot:run
– zappee
Nov 21 at 19:58




Try to run your code from command line and let's see the result: mvn clean spring-boot:run
– zappee
Nov 21 at 19:58












Tried it. Still the same problem
– Don Joobb
Nov 21 at 21:49




Tried it. Still the same problem
– Don Joobb
Nov 21 at 21:49

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53419537%2fhow-to-resolve-spring-boot-array-out-of-bounds-exception-in-eclipse%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53419537%2fhow-to-resolve-spring-boot-array-out-of-bounds-exception-in-eclipse%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Berounka

Sphinx de Gizeh

Different font size/position of beamer's navigation symbols template's content depending on regular/plain...