java.lang.AssertionError: Expecting empty but was:<[{"severity"=2, "groupName"="referencedFileError(http://camel.apache.org/schema/spring/camel-spring.xsd)", "message"="Referenced file contains errors (http://camel.apache.org/schema/spring/camel-spring.xsd). For more information, right click on the message in the Problems View and select "Show Details..."", "lineNumber"=1, "ValidationId"="org.eclipse.wst.xml.core.xml"}]>

GitHub | apupier | 3 months ago
  1. 0

    GitHub comment 688#248035194

    GitHub | 3 months ago | apupier
    java.lang.AssertionError: Expecting empty but was:<[{"severity"=2, "groupName"="referencedFileError(http://camel.apache.org/schema/spring/camel-spring.xsd)", "message"="Referenced file contains errors (http://camel.apache.org/schema/spring/camel-spring.xsd). For more information, right click on the message in the Problems View and select "Show Details..."", "lineNumber"=1, "ValidationId"="org.eclipse.wst.xml.core.xml"}]>
  2. 0

    fabric8-forge release failing: Could not find artifact org.jboss.teiid:teiid-runtime:jar:9.0.0.Final in jboss-public-repository-group

    GitHub | 2 months ago | rawlingsj
    java.lang.AssertionError: Failed to invoke maven goals: [package] in folder: /mnt/hudson_workspace/workspace/fabric8-forge-pullreq/fabric8-forge/target/createdProjects/spring-boot-camel-teiid-archetype/my-spring-boot-camel-teiid. Exit Code: expected:<0> but was:<1>
  3. 0

    Do i have a Hibernate cache or mapping error?

    Stack Overflow | 4 years ago | Thomas
    java.lang.AssertionError: expected [1] but found [0] </code></pre> <p>And i don't see why. Is there something missing in the mapping, or is do i have to clear a hibernate cache? I see that there is no new select-query so hibernate is caching the A object - but shouldn't it update the reference from A to the Bs in it's cache??</p> <p>As additional info here's my persistence.xml</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;persistence version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" xmlns="http://java.sun.com/xml/ns/persistence"&gt; &lt;persistence-unit name="local" transaction-type="RESOURCE_LOCAL" &gt; &lt;/persistence-unit&gt; &lt;/persistence&gt; </code></pre> <p>My ARepositoryTest-context.xml</p> <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jpa="http://www.springframework.org/schema/data/jpa" xmlns:context="http://www.springframework.org/schema/context" xmlns:jdbc="http://www.springframework.org/schema/jdbc" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd"&gt; &lt;context:annotation-config /&gt; &lt;context:component-scan base-package="my.package"/&gt; &lt;import resource="classpath:/SpringBeans.xml"/&gt; &lt;/beans&gt; </code></pre> <p>and my SpringBeans.xml</p> <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jpa="http://www.springframework.org/schema/data/jpa" xmlns:context="http://www.springframework.org/schema/context" xmlns:jdbc="http://www.springframework.org/schema/jdbc" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd"&gt; &lt;context:annotation-config /&gt; &lt;jpa:repositories base-package="my.package.dao" /&gt; &lt;bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"&gt; &lt;property name="entityManagerFactory" ref="entityManagerFactory" /&gt; &lt;property name="jpaDialect"&gt; &lt;bean class="org.springframework.orm.jpa.vendor.HibernateJpaDialect" /&gt; &lt;/property&gt; &lt;/bean&gt; &lt;bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&gt; &lt;property name="persistenceUnitName" value="local"/&gt; &lt;property name="dataSource" ref="dataSource" /&gt; &lt;property name="jpaVendorAdapter"&gt; &lt;bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"&gt; &lt;property name="showSql" value="true"/&gt; &lt;property name="generateDdl" value="true" /&gt; &lt;property name="databasePlatform" value="org.hibernate.dialect.HSQLDialect"/&gt; &lt;property name="database" value="HSQL" /&gt; &lt;/bean&gt; &lt;/property&gt; &lt;property name="jpaPropertyMap"&gt; &lt;map&gt; &lt;entry key="hibernate.show_sql" value="true" /&gt; &lt;/map&gt; &lt;/property&gt; &lt;/bean&gt; &lt;bean class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" id="dataSource"&gt; &lt;property name="driverClassName" value="org.hsqldb.jdbcDriver" /&gt; &lt;property name="url" value="jdbc:hsqldb:file:${user.home}/data;shutdown=true" /&gt; &lt;property name="username" value="sa" /&gt; &lt;property name="password" value="" /&gt; &lt;/bean&gt; &lt;bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"/&gt; &lt;/beans&gt; </code></pre> <p>edit: added version numbers, and xml files</p> <hr> <p>edit: for JB Nizet answer If i add to Class A</p> <pre><code>public void addB( B b ) { this.b.add( b ); } </code></pre> <p>and adapt the testcase</p> <pre><code>@Test( groups = { "integration" } ) public void testSaveWithA() { A a = new A(); aRepository.save( a ); B b = new B(); a.addB( b ); aRepository.saveAndFlush( a ); A findOne = aRepository.findOne( a.getId() ); Assert.assertEquals( findOne.getB().size(), 1 ); } </code></pre> <p>the test passes But within the hsql file there is no link between A and B:</p> <pre><code>INSERT INTO A VALUES(1) INSERT INTO B VALUES(1,NULL) </code></pre> <p>So it won't be able to select it correct in an other transaction.</p> <p>If i expand the new mMethod in A</p> <pre><code>public void addB( B b ) { this.b.add( b ); b.setA( this ); } </code></pre> <p>An exception occures when flushing or committing</p> <pre><code>java.lang.StackOverflowError at java.util.HashMap$KeyIterator.&lt;init&gt;(HashMap.java:926) at java.util.HashMap$KeyIterator.&lt;init&gt;(HashMap.java:926)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [Question] support for included schema definitions

    GitHub | 3 months ago | boeboe
    java.lang.AssertionError: Expected: To be empty but: Request violations: - Body does not match schema for action(POST /products) mime-type('application/json') Content: { "name" : "Motorbike", "price" : 150.0, "weight" : 800 } Message: Schema invalid: Unrecognized token 'product': was expecting ('true', 'false' or 'null') at [Source: Inline schema definition; line: 1, column: 8] Response violations: - Body does not match schema for action(POST /products) response(201) mime-type('application/json') Content: { "name" : "Motorbike", "price" : 150.0, "weight" : 800, "id" : "7fa62cdc-ed3f-493c-893b-41beaffd588f" } Message: Schema invalid: Unrecognized token 'product': was expecting ('true', 'false' or 'null') at [Source: Inline schema definition; line: 1, column: 8]
  6. 0

    gradle test fails even Travis says that tests pass

    GitHub | 2 years ago | damianszczepanik
    java.lang.AssertionError: Expected size:<3> but was:<4> in: <[Violation(filenameOrJavaClassName=C:\git-repo\sputnik-damian\sputnik\build\resources\test\java\TestFile.java, line=0, message=File does not end with a newline., severity=ERROR), Violation(filenameOrJavaClassName=C:\git-repo\sputnik-damian\sputnik\build\resources\test\java\TestFile.java, line=0, message=Missing package-info.java file., severity=ERROR), Violation(filenameOrJavaClassName=C:\git-repo\sputnik-damian\sputnik\build\resources\test\java\TestFile.java, line=1, message=Missing a Javadoc comment., severity=ERROR), Violation(filenameOrJavaClassName=C:\git-repo\sputnik-damian\sputnik\build\resources\test\java\TestFile.java, line=2, message=Missing a Javadoc comment., severity=ERROR)]>

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.AssertionError

      Expecting empty but was:<[{"severity"=2, "groupName"="referencedFileError(http://camel.apache.org/schema/spring/camel-spring.xsd)", "message"="Referenced file contains errors (http://camel.apache.org/schema/spring/camel-spring.xsd). For more information, right click on the message in the Problems View and select "Show Details..."", "lineNumber"=1, "ValidationId"="org.eclipse.wst.xml.core.xml"}]>

      at org.fusesource.ide.projecttemplates.tests.integration.wizards.FuseIntegrationProjectCreatorRunnableIT.checkNoValidationIssueWithSeverity()
    2. org.fusesource.ide
      FuseIntegrationProjectCreatorRunnableForCBRIT.testCBRSpringCreation
      1. org.fusesource.ide.projecttemplates.tests.integration.wizards.FuseIntegrationProjectCreatorRunnableIT.checkNoValidationIssueWithSeverity(FuseIntegrationProjectCreatorRunnableIT.java:237)
      2. org.fusesource.ide.projecttemplates.tests.integration.wizards.FuseIntegrationProjectCreatorRunnableIT.checkNoValidationError(FuseIntegrationProjectCreatorRunnableIT.java:212)
      3. org.fusesource.ide.projecttemplates.tests.integration.wizards.FuseIntegrationProjectCreatorRunnableIT.testProjectCreation(FuseIntegrationProjectCreatorRunnableIT.java:163)
      4. org.fusesource.ide.projecttemplates.tests.integration.wizards.FuseIntegrationProjectCreatorRunnableForCBRIT.testCBRSpringCreation(FuseIntegrationProjectCreatorRunnableForCBRIT.java:47)
      4 frames