You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Adrian (Jira)" <ji...@apache.org> on 2021/02/17 15:27:00 UTC
[jira] [Updated] (IGNITE-14200) Ignite Spring Data -
IgniteRepositoryFactory swallow cause exception
[ https://issues.apache.org/jira/browse/IGNITE-14200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrian updated IGNITE-14200:
----------------------------
Description:
When using Spring Data with Ignite if an exception occurs we get only:
{code:java}
throw new IgniteException("Failed to initialize Ignite repository factory. Ignite instance or"
+ " IgniteConfiguration or a path to Ignite's spring XML "
+ "configuration must be defined in the"
+ " application configuration");
}
{code}
all cause exceptions are swallowed and in my case, I wasted some time because the error was not clear.
was:
When using Spring Data with Ignite if an exception occurs we get only:
{code:java}
throw new IgniteException("Failed to initialize Ignite repository factory. Ignite instance or"
+ " IgniteConfiguration or a path to Ignite's spring XML "
+ "configuration must be defined in the"
+ " application configuration");
}
{code}
So in my example, I got the error when creating IgniteConfigurer and the error I mentioned was meaningless. I couldn't get what is wrong. So I found that in:
{code:java}
IgniteRepositoryFactory.igniteForRepoConfig{code}
all parent errors are ignored.
> Ignite Spring Data - IgniteRepositoryFactory swallow cause exception
> ---------------------------------------------------------------------
>
> Key: IGNITE-14200
> URL: https://issues.apache.org/jira/browse/IGNITE-14200
> Project: Ignite
> Issue Type: Bug
> Components: springdata
> Affects Versions: 2.9.1
> Reporter: Adrian
> Priority: Major
>
>
> When using Spring Data with Ignite if an exception occurs we get only:
> {code:java}
> throw new IgniteException("Failed to initialize Ignite repository factory. Ignite instance or"
> + " IgniteConfiguration or a path to Ignite's spring XML "
> + "configuration must be defined in the"
> + " application configuration");
> }
> {code}
>
> all cause exceptions are swallowed and in my case, I wasted some time because the error was not clear.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)