[prev in list] [next in list] [prev in thread] [next in thread]
List: jibx-cvs
Subject: [Jibx-cvs] core/build/src/org/jibx/runtime/impl MarshallingContext.java,1.8,1.9
From: Dennis Sosnoski <dsosnoski () users ! sourceforge ! net>
Date: 2005-06-24 20:02:17
Message-ID: E1DluNV-0006if-OB () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/jibx/core/build/src/org/jibx/runtime/impl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25761/build/src/org/jibx/runtime/impl
Modified Files:
MarshallingContext.java
Log Message:
Improve reporting of errors getting marshaller for class.
Index: MarshallingContext.java
===================================================================
RCS file: /cvsroot/jibx/core/build/src/org/jibx/runtime/impl/MarshallingContext.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** MarshallingContext.java 10 May 2005 17:00:18 -0000 1.8
--- MarshallingContext.java 24 Jun 2005 20:02:14 -0000 1.9
***************
*** 934,943 ****
// load the marshaller class and create an instance
! Exception ex = null;
try {
// first try loading class from context classloader
Class clas = null;
- String mname = m_marshallerClasses[index];
ClassLoader loader =
Thread.currentThread().getContextClassLoader();
--- 934,946 ----
// load the marshaller class and create an instance
! String mname = m_marshallerClasses[index];
! if (mname == null) {
! throw new JiBXException("No marshaller defined for class " +
! name);
! }
try {
// first try loading class from context classloader
Class clas = null;
ClassLoader loader =
Thread.currentThread().getContextClassLoader();
***************
*** 958,973 ****
m_marshallers[index] = m;
! } catch (ClassNotFoundException e) {
! ex = e;
! } catch (InstantiationException e) {
! ex = e;
! } catch (IllegalAccessException e) {
! ex = e;
! } finally {
! if (ex != null) {
! throw new JiBXException
! ("Unable to create marshaller of class " +
! m_marshallerClasses[index], ex);
! }
}
}
--- 961,968 ----
m_marshallers[index] = m;
! } catch (Exception e) {
! throw new JiBXException
! ("Unable to create unmarshaller of class " + mname + ":",
! e);
}
}
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Jibx-cvs mailing list
Jibx-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic