Examples of XMLDriverException


Examples of org.openbp.common.io.xml.XMLDriverException

      }
    }

    if (od == null && (flags & ODM_THROW_ERROR) != 0)
    {
      throw new XMLDriverException("Object descriptor resource not found for class '" + cls.getName() + "'");
    }

    if (od != null)
    {
      // Store descriptor in cache
View Full Code Here

Examples of org.openbp.common.io.xml.XMLDriverException

      // Set indicator that loading failed
      descriptorCache.put(cls, new Boolean(false));

      if ((flags & ODM_THROW_ERROR) != 0)
      {
        throw new XMLDriverException("Object descriptor resource '" + descriptorFileName + "' not found for class '" + className + "'");
      }
      return null;
    }

    // Load the mapping from the resource
    try
    {
      descriptor = (ObjectDescriptor) XMLDriver.getInstance().deserializeStream(ObjectDescriptor.class, is);
    }
    catch (XMLDriverException pe)
    {
      // Set indicator that loading failed
      descriptorCache.put(cls, new Boolean(false));

      throw new XMLDriverException("Error loading object descriptor resource for class '" + className + "'", pe);
    }

    // Set the class and class name in the descriptor
    descriptor.setObjectClass(cls);
    descriptor.setObjectClassName(cls.getName());
View Full Code Here

Examples of org.openbp.common.io.xml.XMLDriverException

      resources = resMgr.findResources(resourcePattern);
    }
    catch (ResourceMgrException e)
    {
      String msg = LogUtil.error(getClass(), "No custom object descriptors found in resource location $0.", resourcePath);
      throw new XMLDriverException(msg);
    }

    if (resources.length == 0)
    {
      // No descriptors present
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.