Broken connection with MariaDB2019 Community Moderator ElectionOn the insertion dynamic column of mariaDBMariaDB CONNECT engine to read external fileNOT LIKE on connect table on mariadbMariaDB ColumnStore QuestionsHow does MariaDB work with maintaining db connection?How to use PHP with MariaDB?Connecting to MariaDB from an Android appHow to connect mariadb with javafx?MariaDB Connect engine virtual column invalid identifierBuilding MariaDB on s390

Is honey really a supersaturated solution? Does heating to un-crystalize redissolve it or melt it?

Why one should not leave fingerprints on bulbs and plugs?

What is "focus distance lower/upper" and how is it different from depth of field?

Is "upgrade" the right word to use in this context?

A diagram about partial derivatives of f(x,y)

Brexit - No Deal Rejection

A single argument pattern definition applies to multiple-argument patterns?

How could an airship be repaired midflight?

How could a scammer know the apps on my phone / iTunes account?

What is the significance behind "40 days" that often appears in the Bible?

Is a party consisting of only a bard, a cleric, and a warlock functional long-term?

Why is the President allowed to veto a cancellation of emergency powers?

Why does overlay work only on the first tcolorbox?

Are ETF trackers fundamentally better than individual stocks?

World War I as a war of liberals against authoritarians?

The German vowel “a” changes to the English “i”

Why does energy conservation give me the wrong answer in this inelastic collision problem?

ERC721: How to get the owned tokens of an address

I got the following comment from a reputed math journal. What does it mean?

Instead of a Universal Basic Income program, why not implement a "Universal Basic Needs" program?

How should I state my peer review experience in the CV?

Why is a white electrical wire connected to 2 black wires?

Professor being mistaken for a grad student

Shortcut for setting origin to vertex



Broken connection with MariaDB



2019 Community Moderator ElectionOn the insertion dynamic column of mariaDBMariaDB CONNECT engine to read external fileNOT LIKE on connect table on mariadbMariaDB ColumnStore QuestionsHow does MariaDB work with maintaining db connection?How to use PHP with MariaDB?Connecting to MariaDB from an Android appHow to connect mariadb with javafx?MariaDB Connect engine virtual column invalid identifierBuilding MariaDB on s390










0















I have a Wildly server connected to MariaDB Server on the same machine.



For some reason I get this error from time to time:



20:38:51,536 INFO [stdout] (default task-1) 20:38:51.535 [default task-1] WARN o.h.e.jdbc.spi.SqlExceptionHelper - SQL Error: 0, SQLState: 08
20:38:51,536 INFO [stdout] (default task-1) 20:38:51.536 [default task-1] ERROR o.h.e.jdbc.spi.SqlExceptionHelper - (conn=25) Connection reset by peer (Write failed)
20:38:51,549 INFO [stdout] (default task-1) 20:38:51.548 [default task-1] ERROR o.s.t.i.TransactionInterceptor - Application exception overridden by rollback exception
20:38:51,550 INFO [stdout] (default task-1) org.springframework.dao.DataAccessResourceFailureException: could not prepare statement; nested exception is org.hibernate.exception.JDBCConnectionException: could not prepare statement
20:38:51,550 INFO [stdout] (default task-1) at deployment.datalis_admin.war//org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:275)
20:38:51,550 INFO [stdout] (default task-1) at deployment.datalis_admin.war//org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:253)
20:38:51,550 INFO [stdout] (default task-1) at deployment.datalis_admin.war//org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)


In MariaDB log I get: 2019-03-06 20:27:51 25 [Warning] Aborted connection 25 to db: 'production_gateway' user: 'wildfly' host: 'localhost' (Got timeout reading communication packets)



Do you know what might be the issue and how to fix it?



POM file:



https://pastebin.com/HUNy0ULy


application.properties:



spring.datasource.jndi-name=java:/global/production_gateway
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect
spring.jpa.show-sql = true
spring.jpa.hibernate.ddl-auto = update


JPA configuration:



import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor;
import org.springframework.orm.jpa.JpaTransactionManager;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@EnableTransactionManagement
public class ContextDatasource

@Bean
public EntityManager entityManager(EntityManagerFactory emf)
return emf.createEntityManager();


@Bean
public PlatformTransactionManager transactionManager(final EntityManagerFactory emf)
final JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setEntityManagerFactory(emf);
return transactionManager;


@Bean
public PersistenceExceptionTranslationPostProcessor exceptionTranslation()
return new PersistenceExceptionTranslationPostProcessor();




JDBC driver:



mariadb-java-client-2.4.0.jar


MariaDB version:



mysql Ver 15.1 Distrib 10.3.13-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2


Can you advice?










share|improve this question




























    0















    I have a Wildly server connected to MariaDB Server on the same machine.



    For some reason I get this error from time to time:



    20:38:51,536 INFO [stdout] (default task-1) 20:38:51.535 [default task-1] WARN o.h.e.jdbc.spi.SqlExceptionHelper - SQL Error: 0, SQLState: 08
    20:38:51,536 INFO [stdout] (default task-1) 20:38:51.536 [default task-1] ERROR o.h.e.jdbc.spi.SqlExceptionHelper - (conn=25) Connection reset by peer (Write failed)
    20:38:51,549 INFO [stdout] (default task-1) 20:38:51.548 [default task-1] ERROR o.s.t.i.TransactionInterceptor - Application exception overridden by rollback exception
    20:38:51,550 INFO [stdout] (default task-1) org.springframework.dao.DataAccessResourceFailureException: could not prepare statement; nested exception is org.hibernate.exception.JDBCConnectionException: could not prepare statement
    20:38:51,550 INFO [stdout] (default task-1) at deployment.datalis_admin.war//org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:275)
    20:38:51,550 INFO [stdout] (default task-1) at deployment.datalis_admin.war//org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:253)
    20:38:51,550 INFO [stdout] (default task-1) at deployment.datalis_admin.war//org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)


    In MariaDB log I get: 2019-03-06 20:27:51 25 [Warning] Aborted connection 25 to db: 'production_gateway' user: 'wildfly' host: 'localhost' (Got timeout reading communication packets)



    Do you know what might be the issue and how to fix it?



    POM file:



    https://pastebin.com/HUNy0ULy


    application.properties:



    spring.datasource.jndi-name=java:/global/production_gateway
    spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
    spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect
    spring.jpa.show-sql = true
    spring.jpa.hibernate.ddl-auto = update


    JPA configuration:



    import javax.persistence.EntityManager;
    import javax.persistence.EntityManagerFactory;

    import org.springframework.context.annotation.Bean;
    import org.springframework.context.annotation.Configuration;
    import org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor;
    import org.springframework.orm.jpa.JpaTransactionManager;
    import org.springframework.transaction.PlatformTransactionManager;
    import org.springframework.transaction.annotation.EnableTransactionManagement;

    @Configuration
    @EnableTransactionManagement
    public class ContextDatasource

    @Bean
    public EntityManager entityManager(EntityManagerFactory emf)
    return emf.createEntityManager();


    @Bean
    public PlatformTransactionManager transactionManager(final EntityManagerFactory emf)
    final JpaTransactionManager transactionManager = new JpaTransactionManager();
    transactionManager.setEntityManagerFactory(emf);
    return transactionManager;


    @Bean
    public PersistenceExceptionTranslationPostProcessor exceptionTranslation()
    return new PersistenceExceptionTranslationPostProcessor();




    JDBC driver:



    mariadb-java-client-2.4.0.jar


    MariaDB version:



    mysql Ver 15.1 Distrib 10.3.13-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2


    Can you advice?










    share|improve this question


























      0












      0








      0








      I have a Wildly server connected to MariaDB Server on the same machine.



      For some reason I get this error from time to time:



      20:38:51,536 INFO [stdout] (default task-1) 20:38:51.535 [default task-1] WARN o.h.e.jdbc.spi.SqlExceptionHelper - SQL Error: 0, SQLState: 08
      20:38:51,536 INFO [stdout] (default task-1) 20:38:51.536 [default task-1] ERROR o.h.e.jdbc.spi.SqlExceptionHelper - (conn=25) Connection reset by peer (Write failed)
      20:38:51,549 INFO [stdout] (default task-1) 20:38:51.548 [default task-1] ERROR o.s.t.i.TransactionInterceptor - Application exception overridden by rollback exception
      20:38:51,550 INFO [stdout] (default task-1) org.springframework.dao.DataAccessResourceFailureException: could not prepare statement; nested exception is org.hibernate.exception.JDBCConnectionException: could not prepare statement
      20:38:51,550 INFO [stdout] (default task-1) at deployment.datalis_admin.war//org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:275)
      20:38:51,550 INFO [stdout] (default task-1) at deployment.datalis_admin.war//org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:253)
      20:38:51,550 INFO [stdout] (default task-1) at deployment.datalis_admin.war//org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)


      In MariaDB log I get: 2019-03-06 20:27:51 25 [Warning] Aborted connection 25 to db: 'production_gateway' user: 'wildfly' host: 'localhost' (Got timeout reading communication packets)



      Do you know what might be the issue and how to fix it?



      POM file:



      https://pastebin.com/HUNy0ULy


      application.properties:



      spring.datasource.jndi-name=java:/global/production_gateway
      spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
      spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect
      spring.jpa.show-sql = true
      spring.jpa.hibernate.ddl-auto = update


      JPA configuration:



      import javax.persistence.EntityManager;
      import javax.persistence.EntityManagerFactory;

      import org.springframework.context.annotation.Bean;
      import org.springframework.context.annotation.Configuration;
      import org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor;
      import org.springframework.orm.jpa.JpaTransactionManager;
      import org.springframework.transaction.PlatformTransactionManager;
      import org.springframework.transaction.annotation.EnableTransactionManagement;

      @Configuration
      @EnableTransactionManagement
      public class ContextDatasource

      @Bean
      public EntityManager entityManager(EntityManagerFactory emf)
      return emf.createEntityManager();


      @Bean
      public PlatformTransactionManager transactionManager(final EntityManagerFactory emf)
      final JpaTransactionManager transactionManager = new JpaTransactionManager();
      transactionManager.setEntityManagerFactory(emf);
      return transactionManager;


      @Bean
      public PersistenceExceptionTranslationPostProcessor exceptionTranslation()
      return new PersistenceExceptionTranslationPostProcessor();




      JDBC driver:



      mariadb-java-client-2.4.0.jar


      MariaDB version:



      mysql Ver 15.1 Distrib 10.3.13-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2


      Can you advice?










      share|improve this question
















      I have a Wildly server connected to MariaDB Server on the same machine.



      For some reason I get this error from time to time:



      20:38:51,536 INFO [stdout] (default task-1) 20:38:51.535 [default task-1] WARN o.h.e.jdbc.spi.SqlExceptionHelper - SQL Error: 0, SQLState: 08
      20:38:51,536 INFO [stdout] (default task-1) 20:38:51.536 [default task-1] ERROR o.h.e.jdbc.spi.SqlExceptionHelper - (conn=25) Connection reset by peer (Write failed)
      20:38:51,549 INFO [stdout] (default task-1) 20:38:51.548 [default task-1] ERROR o.s.t.i.TransactionInterceptor - Application exception overridden by rollback exception
      20:38:51,550 INFO [stdout] (default task-1) org.springframework.dao.DataAccessResourceFailureException: could not prepare statement; nested exception is org.hibernate.exception.JDBCConnectionException: could not prepare statement
      20:38:51,550 INFO [stdout] (default task-1) at deployment.datalis_admin.war//org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:275)
      20:38:51,550 INFO [stdout] (default task-1) at deployment.datalis_admin.war//org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:253)
      20:38:51,550 INFO [stdout] (default task-1) at deployment.datalis_admin.war//org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)


      In MariaDB log I get: 2019-03-06 20:27:51 25 [Warning] Aborted connection 25 to db: 'production_gateway' user: 'wildfly' host: 'localhost' (Got timeout reading communication packets)



      Do you know what might be the issue and how to fix it?



      POM file:



      https://pastebin.com/HUNy0ULy


      application.properties:



      spring.datasource.jndi-name=java:/global/production_gateway
      spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
      spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect
      spring.jpa.show-sql = true
      spring.jpa.hibernate.ddl-auto = update


      JPA configuration:



      import javax.persistence.EntityManager;
      import javax.persistence.EntityManagerFactory;

      import org.springframework.context.annotation.Bean;
      import org.springframework.context.annotation.Configuration;
      import org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor;
      import org.springframework.orm.jpa.JpaTransactionManager;
      import org.springframework.transaction.PlatformTransactionManager;
      import org.springframework.transaction.annotation.EnableTransactionManagement;

      @Configuration
      @EnableTransactionManagement
      public class ContextDatasource

      @Bean
      public EntityManager entityManager(EntityManagerFactory emf)
      return emf.createEntityManager();


      @Bean
      public PlatformTransactionManager transactionManager(final EntityManagerFactory emf)
      final JpaTransactionManager transactionManager = new JpaTransactionManager();
      transactionManager.setEntityManagerFactory(emf);
      return transactionManager;


      @Bean
      public PersistenceExceptionTranslationPostProcessor exceptionTranslation()
      return new PersistenceExceptionTranslationPostProcessor();




      JDBC driver:



      mariadb-java-client-2.4.0.jar


      MariaDB version:



      mysql Ver 15.1 Distrib 10.3.13-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2


      Can you advice?







      mariadb wildfly wildfly-11 mariadb-connect-engine mariadb-connector-c






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 6 at 21:06







      Peter Penzov

















      asked Mar 6 at 20:44









      Peter PenzovPeter Penzov

      21561188395




      21561188395






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Please show us your pom.xml and watch out if your driver's version is compatible for your DB version as well. Some they have to update the driver web the DB developer make some change.






          share|improve this answer























          • I updated the post.

            – Peter Penzov
            Mar 6 at 21:06











          • Lastest version for both, so the error can come from something else.

            – Ragnar
            Mar 7 at 8:30











          • Is it for all calls, just some or intermittent?

            – Will T
            Mar 7 at 8:53










          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',
          autoActivateHeartbeat: false,
          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%2f55031862%2fbroken-connection-with-mariadb%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Please show us your pom.xml and watch out if your driver's version is compatible for your DB version as well. Some they have to update the driver web the DB developer make some change.






          share|improve this answer























          • I updated the post.

            – Peter Penzov
            Mar 6 at 21:06











          • Lastest version for both, so the error can come from something else.

            – Ragnar
            Mar 7 at 8:30











          • Is it for all calls, just some or intermittent?

            – Will T
            Mar 7 at 8:53















          0














          Please show us your pom.xml and watch out if your driver's version is compatible for your DB version as well. Some they have to update the driver web the DB developer make some change.






          share|improve this answer























          • I updated the post.

            – Peter Penzov
            Mar 6 at 21:06











          • Lastest version for both, so the error can come from something else.

            – Ragnar
            Mar 7 at 8:30











          • Is it for all calls, just some or intermittent?

            – Will T
            Mar 7 at 8:53













          0












          0








          0







          Please show us your pom.xml and watch out if your driver's version is compatible for your DB version as well. Some they have to update the driver web the DB developer make some change.






          share|improve this answer













          Please show us your pom.xml and watch out if your driver's version is compatible for your DB version as well. Some they have to update the driver web the DB developer make some change.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 6 at 20:49









          RagnarRagnar

          1,04811230




          1,04811230












          • I updated the post.

            – Peter Penzov
            Mar 6 at 21:06











          • Lastest version for both, so the error can come from something else.

            – Ragnar
            Mar 7 at 8:30











          • Is it for all calls, just some or intermittent?

            – Will T
            Mar 7 at 8:53

















          • I updated the post.

            – Peter Penzov
            Mar 6 at 21:06











          • Lastest version for both, so the error can come from something else.

            – Ragnar
            Mar 7 at 8:30











          • Is it for all calls, just some or intermittent?

            – Will T
            Mar 7 at 8:53
















          I updated the post.

          – Peter Penzov
          Mar 6 at 21:06





          I updated the post.

          – Peter Penzov
          Mar 6 at 21:06













          Lastest version for both, so the error can come from something else.

          – Ragnar
          Mar 7 at 8:30





          Lastest version for both, so the error can come from something else.

          – Ragnar
          Mar 7 at 8:30













          Is it for all calls, just some or intermittent?

          – Will T
          Mar 7 at 8:53





          Is it for all calls, just some or intermittent?

          – Will T
          Mar 7 at 8:53



















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55031862%2fbroken-connection-with-mariadb%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

          Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

          Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

          Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved