Skip to content

Instantly share code, notes, and snippets.

View dmitry-osin's full-sized avatar

Dmitry Osin dmitry-osin

  • Haulmont LTD
  • Moscow, Russia
View GitHub Profile
Internal Exception
REST service call failed
com.wiley.gts.bce.common.remoting.client.BceRestTemplateResponseErrorHandler.handleError(BceRestTemplateResponseErrorHandler.java:53)
org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:700)
org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:653)
org.springframework.web.client.RestTemplate.execute(RestTemplate.java:613)
org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:559)
com.wiley.gts.bce.common.remoting.client.BceRestOperations.exchange(BceRestOperations.java:105)
com.wiley.gts.entity.service.controller.impl.v3.ProductV3ControllerImpl.getProducts(ProductV3ControllerImpl.java:267)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<exception>
<errorCode>1</errorCode>
<exceptionClass>com.temis.tsl.ApplicationException</exceptionClass>
<localizedMessage>com.temis.text.remote.essex.SimpleWebApplicationException: ESSEX returned the following error: Error while loading disambiguator extension (code 8)</localizedMessage>
<message>com.temis.text.remote.essex.SimpleWebApplicationException: ESSEX returned the following error: Error while loading disambiguator extension (code 8)</message>
<stackTraces>
script.tsl:592: com.temis.text.remote.essex.SimpleWebApplicationException: ESSEX returned the following error: Error while loading disambiguator extension (code 8)
at com.temis.tsl.ApplicationException.throwException(ApplicationException.java:24)
at com.temis.tsl.ReflectionHelper.invokeMethod(ReflectionHelper.java:323)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<exception>
<errorCode>1</errorCode>
<exceptionClass>com.temis.tsl.ApplicationException</exceptionClass>
<localizedMessage>com.temis.text.remote.essex.SimpleWebApplicationException: ESSEX returned the following error: instance communication timeout (code 10)</localizedMessage>
<message>com.temis.text.remote.essex.SimpleWebApplicationException: ESSEX returned the following error: instance communication timeout (code 10)</message>
<stackTraces>
script.tsl:592: com.temis.text.remote.essex.SimpleWebApplicationException: ESSEX returned the following error: instance communication timeout (code 10)
at com.temis.tsl.ApplicationException.throwException(ApplicationException.java:24)
at com.temis.tsl.ReflectionHelper.invokeMethod(ReflectionHelper.java:323)
CogitoKnowledgeHelper synthesis = doc.getDocHelper().getKnowledgeHelper("AGU-Concept Set");
if (synthesis != null) {
synthesis.getDescriptors(d -> d.getType().startsWith("/ConceptPath/Entity/GeoAge"))
.stream()
.forEach(d -> {
d.addAttribute("taxonomyIdDD", "aaaaaaaa7777777");
});
synthesis.getDescriptors(d -> d.getType().startsWith("/ConceptPath/Entity/Location"))
.stream()
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
version="2.1">
<persistence-unit name="blogPU" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<properties>
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/tweet?useSSL=false&amp;serverTimezone=UTC&amp;allowPublicKeyRetrieval=true" />
<property name="javax.persistence.jdbc.user" value="super_admin" />
<property name="javax.persistence.jdbc.password" value="super_admin" />
package pw.osin.example.data;
import pw.osin.example.model.Tweet;
import javax.persistence.EntityManager;
import javax.persistence.Persistence;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import java.util.List;
package pw.osin.example.data;
import javax.persistence.EntityManager;
import javax.persistence.Persistence;
public enum PersistenceHolder {
INSTANCE;
private EntityManager entityManager;
public List<Tweet> findByQuery(String query) {
final TypedQuery<Tweet> typedQuery = getEntityManager().createNamedQuery(Tweet.FIND_BY_QUERY, Tweet.class);
typedQuery.setParameter("query", query);
return typedQuery.getResultList();
}
package pw.osin.example.model;
import javax.persistence.*;
@NamedQueries({
@NamedQuery(name = Tweet.FIND_BY_QUERY, query = "SELECT tweet FROM Tweet tweet WHERE LOWER(tweet.text) LIKE CONCAT('%', LOWER(:query) , '%')")
})
@Entity
public class Tweet {
package pw.osin.example.data;
import pw.osin.example.model.Tweet;
import javax.persistence.EntityManager;
import javax.persistence.Persistence;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import java.util.List;