Skip to content

Instantly share code, notes, and snippets.

org.springframework.oxm.MarshallingFailureException: JiBX marshalling exception; nested exception is org.jibx.runtime.JiBXException: Supplied root object of class org.springframework.oxm.jibx.Flights cannot be marshalled without top-level mapping
at org.springframework.oxm.jibx.JibxMarshaller.convertJibxException(JibxMarshaller.java:464)
at org.springframework.oxm.jibx.JibxMarshaller.marshalWriter(JibxMarshaller.java:270)
at org.springframework.oxm.support.AbstractMarshaller.marshalStreamResult(AbstractMarshaller.java:270)
at org.springframework.oxm.support.AbstractMarshaller.marshal(AbstractMarshaller.java:102)
at org.springframework.oxm.jibx.JibxMarshallerTests.indentation(JibxMarshallerTests.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class org.springframework.orm.hibernate3.HibernateSessionFactoryConfigurationTests$AnnotationSessionFactoryConfig: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [org.hibernate.SessionFactory org.springframework.orm.hibernate3.HibernateSessionFactoryConfigurationTests$AnnotationSessionFactoryConfig.sessionFactory() throws java.lang.Exception] threw exception; nested exception is java.lang.NoClassDefFoundError: org.hibernate.cfg.Configuration
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:581)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1008)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstanc
/Users/cbeams/Work/spring-framework/spring-framework/org.springframework.test/src/test/java/org/springframework/test/util/ReflectionTestUtilsTests.java:205: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds int,java.lang.Object
int sum = invokeMethod(component, "add", 1, 2);
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
FAILURE: Build failed with an exception.
* What went wrong:
@cbeams
cbeams / AspectComponentTests.java
Created September 5, 2011 19:18
component scanning for @aspect
package org.springframework.example;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Configuration;
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'artifactory'
group = 'org.springframework.demo'
version = '1.0.0.BUILD-SNAPSHOT'
description = 'Spring Demo for Artifactory'
@cbeams
cbeams / osoPush.groovy
Created October 8, 2011 09:00 — forked from jbaruch/osoPush.groovy
OSO push plugin for Artifactory
/*
* Copyright (C) 2011 JFrog Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@cbeams
cbeams / pgpSign.groovy
Created October 19, 2011 09:10
artifactory-pgp-plugin
/*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
2011-11-02 20:15:17,393 ["ajp-bio-backip/10.10.7.153-8067"-exec-6280] [ERROR] (o.a.a.plugin.GroovyRunnerImpl:224) Script execution error.
java.lang.reflect.InvocationTargetException: null
at sun.reflect.GeneratedMethodAccessor441.invoke(Unknown Source) [na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.7.0]
at java.lang.reflect.Method.invoke(Method.java:601) [na:1.7.0]
at org.artifactory.addon.plugin.GroovyRunnerImpl.executePluginAction(GroovyRunnerImpl.java:213) [artifactory-addon-plugins-2.3.4.1e.jar:na]
at org.artifactory.addon.plugin.GroovyRunnerImpl.execPluginActions(GroovyRunnerImpl.java:90) [artifactory-addon-plugins-2.3.4.1e.jar:na]
at sun.reflect.GeneratedMethodAccessor141.invoke(Unknown Source) [na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.7.0]
at java.lang.reflect.Method.invoke(Method.java:601) [na:1.7.0]
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.mock.env.MockEnvironment;
switch (project.gradle.startParameter.logLevel) {
case LogLevel.DEBUG:
case LogLevel.INFO:
break;
default:
// only show verbose fop output if the user has specified 'gradle -d' or 'gradle -i'
LoggerFactory.getILoggerFactory().getLogger('org.apache.fop').level = ch.qos.logback.classic.Level.ERROR
}