JDBCConfig import fails when you have a layer that refers to a style that doesn’t exist (any more).
Technically, that means there is a fault in your data directory, however, the objects that cause the problem should be mentioned in the logs by name so that the user can fix the issue in his data directory, without needing to use a debugger to find out what is causing the problem.
Caused by: org.springframework.dao.EmptyResultDataAccessException: Incorrect result size: expected 1, actual 0
at org.springframework.dao.support.DataAccessUtils.nullableSingleResult(DataAccessUtils.java:97)
at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.queryForObject(NamedParameterJdbcTemplate.java:233)
at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.queryForObject(NamedParameterJdbcTemplate.java:241)
at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.queryForObject(NamedParameterJdbcTemplate.java:257)
at org.geoserver.jdbcconfig.internal.ConfigDatabase.findObjectId(ConfigDatabase.java:879)
at org.geoserver.jdbcconfig.internal.ConfigDatabase.addAttribute(ConfigDatabase.java:598)
at org.geoserver.jdbcconfig.internal.ConfigDatabase.addAttributes(ConfigDatabase.java:566)
at org.geoserver.jdbcconfig.internal.ConfigDatabase.add(ConfigDatabase.java:535)
at org.geoserver.jdbcconfig.internal.ConfigDatabase$$FastClassBySpringCGLIB$$dd464281.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
at org.geoserver.jdbcconfig.internal.ConfigDatabase$$EnhancerBySpringCGLIB$$46c3140d.add(<generated>)
at org.geoserver.jdbcconfig.catalog.JDBCCatalogFacade.addInternal(JDBCCatalogFacade.java:908)
at org.geoserver.jdbcconfig.catalog.JDBCCatalogFacade.add(JDBCCatalogFacade.java:297)
at org.geoserver.catalog.impl.DefaultCatalogFacade.syncTo(DefaultCatalogFacade.java:991)
at org.geoserver.catalog.impl.IsolatedCatalogFacade.syncTo(IsolatedCatalogFacade.java:471)
… 73 more
|