CPD Results

The following document contains the results of PMD's CPD 4.2.2.

Duplications

File Line
it/imolinfo/jbi4corba/jbi/processor/MessageNormalizer.java 114
it/imolinfo/jbi4corba/jbi/processor/MessageNormalizer.java 228
    public Source normalize(Source xmlSource,            
            Jbi4CorbaEndpoint endpoint,
            QName operation, boolean toWrap, boolean isOutput) throws Jbi4CorbaException {

        try {

            Service service  = endpoint.getDefinition().getService(endpoint.getServiceName());
            Port port = service.getPort(QName.valueOf(endpoint.getEndpointName()).getLocalPart());
            PortType portType = port.getBinding().getPortType();

            // Grab the operation that matches the operationName.  There actually may
            // be more than one operation with the same name (but different input/output)
            // names.  We need to fix this so that we uniquely identify which operation we're
            // going after
            Iterator it = portType.getOperations().iterator();
            javax.wsdl.Message wsdlMessage = null;
            while (it.hasNext()) {
                Operation op = (Operation)it.next();
                if (op.getName().equals(operation.toString()) ||
                        op.getName().equals(operation.getLocalPart())) {                    
                    if (isOutput) {
                        wsdlMessage = op.getOutput().getMessage();                                                
                    } else {
                        wsdlMessage = op.getInput().getMessage();
                    }
                }
            }
            
            wrapperBuilder.initialize(null,
                    wsdlMessage,
                    null);

            if (LOG.isDebugEnabled()) {                           
                LOG.debug("WSDL Message: " + wsdlMessage);
                LOG.debug("WSDL Message Parts: " + wsdlMessage.getParts());
            }

            // Take ALWAYS the first (should be the only) part
            if (wsdlMessage.getParts().values().size() == 0) {
				String msg = MESSAGES.getString("CRB000804_No_message_parts_found");
				LOG.error(msg);
                throw new Jbi4CorbaException(msg);                
            } else if (wsdlMessage.getParts().values().size() > 1) {
                String msg = "More than one message part found: using the first";
                LOG.warn(msg);
            }
            
            Part part = (Part)wsdlMessage.getParts().values().iterator().next();        

            // String[] partNames = wsdlMessage.getParts().values().iterator().next(); 
            String partName = part.getName();

            Node node = null;
            if (xmlSource instanceof DOMSource) {
                // saves a transformation
                node = ((DOMSource) xmlSource).getNode();
            } else {
                DOMResult domResult = new DOMResult();
                mTrans.transform(xmlSource, domResult);
                node = domResult.getNode();                
            }
            
            DOMSource domSource = null;
            // If do not need wrapping, return the document
            if (!toWrap) {
                domSource =  new DOMSource(node);
            } else {
                // needs wrapping
                if (node instanceof Document) {
                    wrapperBuilder.addPart(partName, ((Document) node).getDocumentElement());
                } else if (node instanceof Element) {
                    wrapperBuilder.addPart(partName, (Element) node);
                } else {
					String msg = MESSAGES
							.getString(
									"CRB000809_Error_in_normalizing_the_messsage_Invalid_result_from_XML_transformation",
									new java.lang.Object[] { node.getClass() });
					LOG.error(msg);
					throw new Jbi4CorbaException(msg);
				}
                Document doc = wrapperBuilder.getResult();            
                domSource = new DOMSource(doc);
            }

File Line
it/imolinfo/jbi4corba/webservice/runtime/ConsumerInvocationHandler.java 600
it/imolinfo/jbi4corba/webservice/runtime/ConsumerInvocationHandler.java 769
        Source wrappedContent = null;
        Source xmlSource = new StringSource(xmlResult.toString());
        try {
            MessageNormalizer messageNormalizer = new MessageNormalizer();
            wrappedContent = messageNormalizer.normalize(xmlSource, endpoint,
                    operation, true, false);
        } catch (Jbi4CorbaException e) {
            Object[] logArgs = new Object[]{e.getMessage()};
            LOG.error("CRB000744_MessageWrapping_Error", logArgs, e);
            throw new Jbi4CorbaRuntimeException(
                    "CRB000744_MessageWrapping_Error", logArgs, e);
        } finally {
            // Chrono for Customer-Normalization -end(2)
            // First retrieve Perf Measurement object from context
            mMeasurement = (Probe) cxfExchange.get("Measure-N");
            mMeasurement.end(); // Normalization Chrono stopped
        }

        try {
            inMessage.setContent(wrappedContent);
        } catch (MessagingException e) {
            Object[] logArgs = new Object[]{e.getMessage()};
            LOG.error("CRB000745_NormalizedMessageSetContent_Error",
                    logArgs, e);
            throw new Jbi4CorbaRuntimeException(
                    "CRB000745_NormalizedMessageSetContent_Error", logArgs, e);
        }

        if (LOG.isDebugEnabled()) {
            String in2string = null;
            try {
                in2string = sourceTransformer.contentToString(inMessage);
            } catch (MessagingException e) {
                Object[] logArgs = new Object[]{e.getMessage()};
                LOG.error("CRB000743_XML_toString_Error", logArgs, e);
                throw new Jbi4CorbaRuntimeException(
                        "CRB000743_XML_toString_Error", logArgs, e);
            } catch (TransformerException e) {
                Object[] logArgs = new Object[]{e.getMessage()};
                LOG.error("CRB000743_XML_toString_Error", logArgs, e);
                throw new Jbi4CorbaRuntimeException(
                        "CRB000743_XML_toString_Error", logArgs, e);
            } catch (ParserConfigurationException e) {
                Object[] logArgs = new Object[]{e.getMessage()};
                LOG.error("CRB000743_XML_toString_Error", logArgs, e);
                throw new Jbi4CorbaRuntimeException(
                        "CRB000743_XML_toString_Error", logArgs, e);
            } catch (IOException e) {
                Object[] logArgs = new Object[]{e.getMessage()};
                LOG.error("CRB000743_XML_toString_Error", logArgs, e);
                throw new Jbi4CorbaRuntimeException(
                        "CRB000743_XML_toString_Error", logArgs, e);
            } catch (SAXException e) {
                Object[] logArgs = new Object[]{e.getMessage()};
                LOG.error("CRB000743_XML_toString_Error", logArgs, e);
                throw new Jbi4CorbaRuntimeException(
                        "CRB000743_XML_toString_Error", logArgs, e);
            }
            LOG.debug("JBI-inMessage.getContent()=" + in2string);
        }

        try {

            jbiExchange.setInMessage(inMessage);

        } catch (MessagingException e) {
            Object[] params = new Object[]{inMessage, jbiExchange};

            LOG.error("CRB000703_Unable_to_set_message_in_exchange", params, e);
            throw new Jbi4CorbaRuntimeException(
                    "CRB000703_Unable_to_set_message_in_exchange", params, e);
        }

        if (LOG.isDebugEnabled()) {
            String in2string2 = null;

File Line
it/imolinfo/jbi4corba/jbi/component/runtime/RuntimeConfiguration.java 617
it/imolinfo/jbi4corba/jbi/component/runtime/RuntimeConfiguration.java 686
                                "CRB000446_AppVarExistenceFailedUpdate",
                                name)));
            }
        
            CompositeType rowType = appVar.getCompositeType();
            if (rowType.keySet().size() != APP_VAR_COUNT) {
                throw new MBeanException(new InvalidAttributeValueException(
                       MESSAGES.getString(
                                "CRB000443_AppVarRowSizeInvalid",
                                new Object[]{name, APP_VAR_COUNT,
                                        rowType.keySet().size()})));
            }

            if (!appVar.containsKey(APP_VAR_NAME)) {
                throw new MBeanException(new InvalidAttributeValueException(
                        MESSAGES.getString(
                                "CRB000444_AppVarMissingField",
                                new Object[]{name, APP_VAR_NAME})));
            } 
            String appVarName = (String) appVar.get(APP_VAR_NAME);
            if (!appVarName.equals(name)) {
                throw new MBeanException(new InvalidAttributeValueException(
                        MESSAGES.getString(
                                "CRB000448_AppVarNameMismatch",
                                new Object[] {name, appVarName})));
            }
        
            String appVarValue = (String)appVar.get(APP_VAR_VALUE);
            if (appVarValue == null) {
                throw new MBeanException(new InvalidAttributeValueException(
                        MESSAGES.getString(
                                "CRB000447_AppVarValueNull",
                                new Object[]{name, APP_VAR_VALUE})));
            }
        
            String appVarType = (String)appVar.get(APP_VAR_TYPE);
            if ( appVarType == null) {
                throw new MBeanException(new InvalidAttributeValueException(
                        MESSAGES.getString(
                                "CRB000447_AppVarValueNull",
                                new Object[]{name, APP_VAR_TYPE})));
            }
        
            mAppVarMap.put(name, new String[] { appVarValue, appVarType });
            if (LOG.isInfoEnabled()) {
                LOG.info(MESSAGES.getString(

File Line
it/imolinfo/jbi4corba/jbi/component/runtime/RuntimeConfiguration.java 311
it/imolinfo/jbi4corba/jbi/component/runtime/RuntimeConfiguration.java 386
            throw new InvalidAttributeValueException(MESSAGES.getString("CRB000413_Invalid_key_for_composite_data_for_app_config", name));
        } 
        String[] appConfigValues = new String[3];
        //appConfigValues[0] = (String) appConfig.get(APPLICATION_CONFIG_PROPERTY_IDL);
        appConfigValues[0] = (String) appConfig.get(APPLICATION_CONFIG_PROPERTY_LOCALIZATION_TYPE);
        appConfigValues[1] = (String) appConfig.get(APPLICATION_CONFIG_PROPERTY_EXTENSION_NAME);
        appConfigValues[2] = (String) appConfig.get(APPLICATION_CONFIG_PROPERTY_ORB);
        if ( appConfigValues[0] == null ||appConfigValues[1] == null || appConfigValues[2] == null ) {
            throw new InvalidAttributeValueException(MESSAGES.getString("CRB000415_Invalid_app_config_composite_data_null", name));
        }
        if(appConfigValues[2]!=null && !appConfigValues[2].equals("")){
            if(appConfigValues[2].indexOf("=") < 1){
                throw new InvalidAttributeValueException(MESSAGES.getString("CRB000422_Invalid_ORB_value"));
            }
        }
        
        if(appConfigValues[0]!=null && !appConfigValues[0].equals("")){
            if(!appConfigValues[0].equals("NameService") && !appConfigValues[0].equals("corbaloc") 
                    && !appConfigValues[0].equals("corbaname") && !appConfigValues[0].equals("IOR")){
                throw new InvalidAttributeValueException(MESSAGES.getString("CRB000424_Unable_to_add_Localization_type"));
            }
        }
        
        mAppConfigMap.put(name, appConfigValues);
        if (LOG.isInfoEnabled()) {
            LOG.info(MESSAGES.getString("CRB000421_Application_configuration_updated", new Object[] { name, appConfigValues }));

File Line
it/imolinfo/jbi4corba/webservice/runtime/ConsumerInvocationHandler.java 625
it/imolinfo/jbi4corba/webservice/runtime/ConsumerInvocationHandler.java 668
                    "CRB000703_Unable_to_set_message_in_exchange", params, e);
        }

        // ==========================================
        // Sending Asynchronously
        // ==========================================

        if (LOG.isDebugEnabled()) {
            String in2string = null;
            try {
                in2string = sourceTransformer.contentToString(inMessage);
            } catch (MessagingException e) {
                Object[] logArgs = new Object[]{e.getMessage()};
                LOG.error("CRB000743_XML_toString_Error", logArgs, e);
                throw new Jbi4CorbaRuntimeException(
                        "CRB000743_XML_toString_Error", logArgs, e);
            } catch (TransformerException e) {
                Object[] logArgs = new Object[]{e.getMessage()};
                LOG.error("CRB000743_XML_toString_Error", logArgs, e);
                throw new Jbi4CorbaRuntimeException(
                        "CRB000743_XML_toString_Error", logArgs, e);
            } catch (ParserConfigurationException e) {
                Object[] logArgs = new Object[]{e.getMessage()};
                LOG.error("CRB000743_XML_toString_Error", logArgs, e);
                throw new Jbi4CorbaRuntimeException(
                        "CRB000743_XML_toString_Error", logArgs, e);
            } catch (IOException e) {
                Object[] logArgs = new Object[]{e.getMessage()};
                LOG.error("CRB000743_XML_toString_Error", logArgs, e);
                throw new Jbi4CorbaRuntimeException(
                        "CRB000743_XML_toString_Error", logArgs, e);
            } catch (SAXException e) {
                Object[] logArgs = new Object[]{e.getMessage()};
                LOG.error("CRB000743_XML_toString_Error", logArgs, e);
                throw new Jbi4CorbaRuntimeException(
                        "CRB000743_XML_toString_Error", logArgs, e);
            }
            LOG.debug("Sending asynch message: InMessage: " + in2string + " on exchange: " + jbiExchange.getExchangeId());

File Line
it/imolinfo/jbi4corba/webservice/runtime/ConsumerInvocationHandler.java 631
it/imolinfo/jbi4corba/webservice/runtime/ConsumerInvocationHandler.java 845
                in2string2 = sourceTransformer.contentToString(inMessage);
            } catch (MessagingException e) {
                Object[] logArgs = new Object[]{e.getMessage()};
                LOG.error("CRB000743_XML_toString_Error", logArgs, e);
                throw new Jbi4CorbaRuntimeException(
                        "CRB000743_XML_toString_Error", logArgs, e);
            } catch (TransformerException e) {
                Object[] logArgs = new Object[]{e.getMessage()};
                LOG.error("CRB000743_XML_toString_Error", logArgs, e);
                throw new Jbi4CorbaRuntimeException(
                        "CRB000743_XML_toString_Error", logArgs, e);
            } catch (ParserConfigurationException e) {
                Object[] logArgs = new Object[]{e.getMessage()};
                LOG.error("CRB000743_XML_toString_Error", logArgs, e);
                throw new Jbi4CorbaRuntimeException(
                        "CRB000743_XML_toString_Error", logArgs, e);
            } catch (IOException e) {
                Object[] logArgs = new Object[]{e.getMessage()};
                LOG.error("CRB000743_XML_toString_Error", logArgs, e);
                throw new Jbi4CorbaRuntimeException(
                        "CRB000743_XML_toString_Error", logArgs, e);
            } catch (SAXException e) {
                Object[] logArgs = new Object[]{e.getMessage()};
                LOG.error("CRB000743_XML_toString_Error", logArgs, e);
                throw new Jbi4CorbaRuntimeException(
                        "CRB000743_XML_toString_Error", logArgs, e);
            }
            LOG.debug("Sending synch message: InMessage: " + in2string2 + " on exchange: " + jbiExchange.getExchangeId());

File Line
it/imolinfo/jbi4corba/jbi/processor/MessageNormalizer.java 162
it/imolinfo/jbi4corba/jbi/processor/MessageNormalizer.java 399
            Part part = (Part)wsdlFault.getParts().values().iterator().next();        

            // String[] partNames = wsdlMessage.getParts().values().iterator().next(); 
            String partName = part.getName();

            Node node = null;
            if (xmlSource instanceof DOMSource) {
                // saves a transformation
                node = ((DOMSource) xmlSource).getNode();
            } else {
                DOMResult domResult = new DOMResult();
                mTrans.transform(xmlSource, domResult);
                node = domResult.getNode();
            }

            DOMSource domSource = null;
            
            if (!toWrap) {
                // If do not need wrapping, return the document
                domSource =  new DOMSource(node);
            } else {
                // needs wrapping
                if (node instanceof Document) {
                    wrapperBuilder.addPart(partName, ((Document) node).getDocumentElement());
                } else if (node instanceof Element) {
                    wrapperBuilder.addPart(partName, (Element) node);
                } else {
        			String msg = MESSAGES
							.getString(
									"CRB000809_Error_in_normalizing_the_messsage_Invalid_result_from_XML_transformation",
									new java.lang.Object[] { node.getClass() });
					LOG.error(msg);
					throw new Jbi4CorbaException(msg);
                }

                Document doc = wrapperBuilder.getResult();
                domSource = new DOMSource(doc);
            }

File Line
it/imolinfo/jbi4corba/webservice/generator/typedef/ComplexArrayTypeDef.java 131
it/imolinfo/jbi4corba/webservice/generator/typedef/SimpleTypeDef.java 158
		ByteCodeManipulationUtil bcmUtil = new ByteCodeManipulationUtil();
		// SETTER
		bcmUtil.createSetter(cw, classInternalName, "value", aliasedClassDescriptor);
		
		// GETTER
        // bcmUtil.createGetter(cw, classInternalName, "value", aliasedClassDescriptor, false);
		
		// Default constructor		 
		MethodVisitor mvinit = cw.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null);
		mvinit.visitCode();
		Label linit = new Label();
		mvinit.visitLabel(linit);
		mvinit.visitLineNumber(7, linit);
		mvinit.visitVarInsn(ALOAD, 0);
		mvinit.visitMethodInsn(INVOKESPECIAL, javaLangObjectInternalName, "<init>", "()V");
		mvinit.visitInsn(RETURN);
		Label linit1 = new Label();
		mvinit.visitLabel(linit1);
		mvinit.visitLocalVariable("this", classDescriptor, null, linit, linit1, 0);
		mvinit.visitMaxs(1, 1);
		mvinit.visitEnd();
		
		cw.visitEnd();
		byte[] bytecode = cw.toByteArray();
		
		String relativeClassName = getClassRelativeFileName();
		
		if (LOG.isDebugEnabled()) {
			LOG.debug("Writing out TypeDef class:" + classesDir + File.separatorChar + relativeClassName);
		}
		// Writes out the class
		Util.saveAsJavaClass(classesDir, relativeClassName, bytecode);		
	}

File Line
it/imolinfo/jbi4corba/webservice/descriptor/ProviderServiceDescriptor.java 446
it/imolinfo/jbi4corba/webservice/generator/ServerCorbaClassesHolder.java 272
	}

	public void setSubstitutedInterfaceFields(
			Map<String, Map<String, String>> substitutedInterfaceFields) {
		this.substitutedInterfaceFields = substitutedInterfaceFields;
	}

	public Map<String, InterfaceType> getAllInterfacetypes() {
		return allInterfacetypes;
	}

	public void setAllInterfacetypes(Map<String, InterfaceType> allInterfaceypes) {
		this.allInterfacetypes = allInterfaceypes;
	}

	public Map<String, SearchedType> getAllCorbaTypes() {
		Map<String, SearchedType> allCorbaTypes = new HashMap<String, SearchedType>();

		allCorbaTypes.putAll(allInterfacetypes);
		allCorbaTypes.putAll(allUniontypes);

		return allCorbaTypes;
	} 
 
	public Set<Class> getAllIDLTypes() {
		return allIDLTypes;
	}

	public void setAllIDLTypes(Set<Class> allIDLTypes) {
		this.allIDLTypes = allIDLTypes;
	}

	public Map<String, List<String>> getCorbaEnumMap() {
		return corbaEnumMap;
	}

	public void setCorbaEnumMap(Map<String, List<String>> corbaEnumMap) {
		this.corbaEnumMap = corbaEnumMap;
	}

    public void setIdToClassNameMap(Map<String, String> idToClassMap) {

File Line
it/imolinfo/jbi4corba/exception/Jbi4CorbaException.java 80
it/imolinfo/jbi4corba/exception/Jbi4CorbaRuntimeException.java 82
    public Jbi4CorbaRuntimeException(
            final String message, final Object[] args, final Throwable cause) {
        super(message, cause);
        setupLocalizedMessage(args);
    }

    /**
     * Calculates {@link #localizedMessage} value.
     *
     * @param  args  the optional arguments to define the complete message. It
     *               may be <code>null</code>.
     */
    @SuppressWarnings("unchecked")
	private void setupLocalizedMessage(final Object[] args) {
        StackTraceElement[] stackTrace = getStackTrace();

        if (stackTrace.length == 0) {
            localizedMessage = getMessage();
        } else {
            try {
                Class clazz = Class.forName(stackTrace[0].getClassName());
                Messages messages = Messages.getMessages(clazz);

                localizedMessage = messages.getString(getMessage(), args);
            } catch (ClassNotFoundException e) {
                localizedMessage = getMessage();
            } catch (MissingResourceException e) {
                localizedMessage = getMessage();
            }
        }
    }

    /**
     * Override.
     * 
     * @return  The return
     */
    public String getLocalizedMessage() {                       // Overridden
        return localizedMessage;
    }
}

File Line
it/imolinfo/jbi4corba/webservice/generator/AnyTypeUtils.java 62
it/imolinfo/jbi4corba/webservice/generator/UnionTypeUtils.java 304
				returnType = arrayReturnType + "L" + replaceType + ";";
			} else {
				returnType = origReturnType;
			}
		}

		List<String> paramsWithUnions = new ArrayList<String>();

		for (String origParamType : params) {
			String paramType = origParamType;
			// ignore holders which are with generic types
			if (origParamType.indexOf('>') < 0)
			{
				idx = origParamType.lastIndexOf("[");
				String arrayParamType = "";
				if (idx >= 0)
					arrayParamType = origParamType.substring(0, idx + 1);
				
				if (origParamType.length() > 2) {
					paramType = origParamType.substring(idx + 2);
					if (paramType.endsWith(";"))
						paramType = paramType.substring(0, paramType.length() - 1);
					paramType = Util.replaceSeparatorWithDot(paramType);

File Line
it/imolinfo/jbi4corba/webservice/runtime/CorbaTransformationUtils.java 1450
it/imolinfo/jbi4corba/webservice/runtime/CorbaTransformationUtils.java 1519
                corbaObjClassStr = runtimeInfo.getIdTOClassNameMap().get(paramAny.type().id());
                if (corbaObjClassStr == null) {
                    String lastElem = paramAny.type().id().substring(paramAny.type().id().lastIndexOf("/"), paramAny.type().id().length());
                    String vers = lastElem.substring(lastElem.indexOf(":"));
                    corbaObjClassStr = runtimeInfo.getIdTOClassNameMap().get(paramAny.type().id().substring(0, paramAny.type().id().lastIndexOf("/")) + vers);
                }

File Line
it/imolinfo/jbi4corba/jbi/processor/MessageDenormalizer.java 117
it/imolinfo/jbi4corba/jbi/processor/MessageDenormalizer.java 217
                                  QName operation, boolean isInput) throws Jbi4CorbaException {

        // Gets the WSDL data
        final Service service  = endpoint.getDefinition().getService(endpoint.getServiceName());
        final Port port = service.getPort(QName.valueOf(endpoint.getEndpointName()).getLocalPart());
        final PortType portType = port.getBinding().getPortType();

        // Grab the operation that matches the operationName.  There actually may
        // be more than one operation with the same name (but different input/output)
        // names.  We need to fix this so that we uniquely identify which operation we're
        // going after
        final Iterator it = portType.getOperations().iterator();
        Message wsdlMessage = null;
        while (it.hasNext()) {
            final Operation op = (Operation)it.next();
            if (op.getName().equals(operation.toString()) ||
                op.getName().equals(operation.getLocalPart())) {
                if (isInput) {

File Line
it/imolinfo/jbi4corba/webservice/generator/Util.java 1051
it/imolinfo/jbi4corba/webservice/generator/Util.java 1128
					+ Arrays.asList(urlClassLoader.getURLs()));

			LOG.debug("class name: " + className);
			return urlClassLoader.loadClass(className);

		} catch (MalformedURLException e) {
			Object[] args = new Object[] { PROTOCOL
					+ new File(dir).getAbsolutePath() + "/" };

			LOG.error("CRB000533_Could_not_instantiate_url_class_loader", args,
					e);
			throw new ClassGenerationException(
					"CRB000533_Could_not_instantiate_url_class_loader", args, e);
		} catch (ClassNotFoundException e) {
			Object[] args = new Object[] { PROTOCOL
					+ new File(dir).getAbsolutePath() + "/" };

			LOG.error("CRB000533_Could_not_instantiate_url_class_loader", args,
					e);
			throw new ClassGenerationException(
					"CRB000533_Could_not_instantiate_url_class_loader", args, e);
		}
	}

	/**
	 * This method find all the '.class' files in classesDir.
	 * 
	 * @param classesDir
	 *            The directory to inspect.
	 * @param classLoader
	 *            The class loader used to istantiate the classes.
	 * 
	 * @return The list of files found.
	 * 
	 * @throws ClassGenerationException
	 *             The class generation exception
	 */
	public static List<Class> findGeneratedClasses(String classesDir,

File Line
it/imolinfo/jbi4corba/webservice/generator/Util.java 897
it/imolinfo/jbi4corba/webservice/generator/Util.java 948
			className = getClassName(classAsFile, dir, CLASS_FILE_EXTENSION);
			
			LOG.debug("class name: " + className);
			return urlClassLoader.loadClass(className);

		} catch (MalformedURLException e) {
			Object[] args = new Object[] { PROTOCOL
					+ new File(dir).getAbsolutePath() + "/" };

			LOG.error("CRB000533_Could_not_instantiate_url_class_loader", args,
					e);
			throw new ClassGenerationException(
					"CRB000533_Could_not_instantiate_url_class_loader", args, e);
		} catch (ClassNotFoundException e) {
			Object[] args = new Object[] { PROTOCOL
					+ new File(dir).getAbsolutePath() + "/" };

			LOG.debug("Class " + className + "is not a type", args,
					e);
			return null;
		}
		
	}

File Line
it/imolinfo/jbi4corba/webservice/generator/Util.java 875
it/imolinfo/jbi4corba/webservice/generator/Util.java 928
	private static Class loadHelperClass(String dir, File classAsFile) throws ClassGenerationException {
		URLClassLoader urlClassLoader = null;
		String className = null;

		try {
			File fcd = new File(dir);

			if (LOG.isDebugEnabled()) {
				LOG
						.debug("ClassesDir.getAbsolutePath="
								+ fcd.getAbsolutePath());
			}

			URL u = new URL(PROTOCOL + fcd.getAbsolutePath() + "/");
			urlClassLoader = new URLClassLoader(new URL[] { u }, Util.class
					.getClassLoader());

			LOG.debug("url classloader: "
					+ Arrays.asList(urlClassLoader.getURLs()));

			className = getClassName(classAsFile, dir, CLASS_FILE_EXTENSION);

File Line
it/imolinfo/jbi4corba/webservice/runtime/ConsumerInvocationHandler.java 1546
it/imolinfo/jbi4corba/webservice/runtime/ConsumerInvocationHandler.java 1587
    protected javax.jbi.messaging.InOnly createInOnlyExchange() {

        ComponentContext context = RuntimeContext.getInstance().getComponentContext();

        LOG.debug("Component context class:" + context.getClass().getName());
        DeliveryChannel channel;
        try {
            channel = context.getDeliveryChannel();
            LOG.debug("Channel:" + channel.getClass().getName());
        } catch (MessagingException e) {
            Object[] args = new Object[]{context};

            LOG.error("CRB000719_Unable_to_get_delivery_channel_from_context",
                    args, e);
            throw new Jbi4CorbaRuntimeException(
                    "CRB000719_Unable_to_get_delivery_channel_from_context",
                    args, e);
        }
        MessageExchangeFactory factory = channel.createExchangeFactory();

        javax.jbi.messaging.InOnly exchange;

File Line
it/imolinfo/jbi4corba/webservice/generator/Util.java 948
it/imolinfo/jbi4corba/webservice/generator/Util.java 1051
			String className = getClassName(classAsFile, dir, CLASS_FILE_EXTENSION);
			LOG.debug("class name: " + className);
			return urlClassLoader.loadClass(className);

		} catch (MalformedURLException e) {
			Object[] args = new Object[] { PROTOCOL
					+ new File(dir).getAbsolutePath() + "/" };

			LOG.error("CRB000533_Could_not_instantiate_url_class_loader", args,
					e);
			throw new ClassGenerationException(
					"CRB000533_Could_not_instantiate_url_class_loader", args, e);
		} catch (ClassNotFoundException e) {
			Object[] args = new Object[] { PROTOCOL
					+ new File(dir).getAbsolutePath() + "/" };

			LOG.error("CRB000533_Could_not_instantiate_url_class_loader", args,

File Line
it/imolinfo/jbi4corba/jbi/processor/MessageNormalizer.java 199
it/imolinfo/jbi4corba/jbi/processor/MessageNormalizer.java 438
            fault.setContent(domSource);
        } catch (WrapperProcessingException ex) {
			String msg = MESSAGES.getString("CRB000808_Error_in_normalizing_the_messsage");
			LOG.error(msg, ex.getMessage());
            throw new Jbi4CorbaException(msg);
        } catch (TransformerException ex) {
			String msg = MESSAGES.getString("CRB000808_Error_in_normalizing_the_messsage");
			LOG.error(msg, ex.getMessage());
            throw new Jbi4CorbaException(msg);            
        } catch (MessagingException ex) {
			String msg = MESSAGES.getString("CRB000808_Error_in_normalizing_the_messsage");
			LOG.error(msg, ex.getMessage());
            throw new Jbi4CorbaException(msg);                        
        }
    }

File Line
it/imolinfo/jbi4corba/webservice/generator/Util.java 897
it/imolinfo/jbi4corba/webservice/generator/Util.java 1128
					+ Arrays.asList(urlClassLoader.getURLs()));

			LOG.debug("class name: " + className);
			return urlClassLoader.loadClass(className);

		} catch (MalformedURLException e) {
			Object[] args = new Object[] { PROTOCOL
					+ new File(dir).getAbsolutePath() + "/" };

			LOG.error("CRB000533_Could_not_instantiate_url_class_loader", args,
					e);
			throw new ClassGenerationException(
					"CRB000533_Could_not_instantiate_url_class_loader", args, e);
		} catch (ClassNotFoundException e) {
			Object[] args = new Object[] { PROTOCOL
					+ new File(dir).getAbsolutePath() + "/" };

			LOG.error("CRB000533_Could_not_instantiate_url_class_loader", args,