Examples of TreeMapperException


Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.TreeMapperException

        if (invalid != null) {
            StringBuilder sb = new StringBuilder();
            for (InvalidMapping im : invalid) {
                sb.append(im.getError() + " ");
            }
            throw new TreeMapperException(sb.toString());
        }
    }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.TreeMapperException

            // this is for generator map pair, not needed and the program can't handle it sometimes
            return;
        }
        Node node = targetTreeComponent.findNode(target);
        if (node == null && !target.endsWith(":nil")) {
            throw new TreeMapperException("Internal error, map list contains a target \"" + target
                            + "\" which is not in the target tree.");
        }
        String err = checkMapping.checkSource(source);
        firstInstanceInserter.setSourceDeList(checkMapping.sourceDeList);
        bChecked=true;

        // check multiple instance sources map to a single instance target
        if(!targetTreeComponent.m_flat && node!=null && target.indexOf('.')<0 &&
              checkMapping.checkLoopSourceToSingleTarget(source)){
            String replacedSource = firstInstanceInserter.processExpression(source);
            if (replacedSource != null) {
                source = replacedSource;
                m.setNewExpression(source);
            }
        }
        if (node != null) {
            node.setTargetMappedFlag(true);
            if (node.isLoopNode()) {
                node.setSourcePath(source);
            }
        }
        if (err != null && !err.equals("")) {
            throw new TreeMapperException("Error:\n" + err);
        }
    }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.TreeMapperException

        if (invalid != null) {
            StringBuilder sb = new StringBuilder();
            for (InvalidMapping err : invalid) {
                sb.append(err.getError() + " ");
            }
            throw new TreeMapperException(sb.toString());
        }
    }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.TreeMapperException

              LdapUtils.setLdapAttributeType(targetTreeComponent, node, m.getExpression());
            }
            targetTreeComponent.setDirty();
        }
        if (node == null) {
            throw new TreeMapperException("Cannot find the target node " + targetDE + " in the target tree.");
        }
        if (targetDE.charAt(0) == '[') {
            String expr = m.getExpression();
            String fixed = "Fixed ";
            if (expr != null && expr.startsWith(fixed)) {
                String expr1 = StringUtils.removeStart(expr, fixed);
                Node source_generator = treeMapper.m_sourceTreeComponent.expandTreeAndLookForNode(expr1);
                if (source_generator != null) {
                    addMapping(nodeMapping);
                    int k1 = fixed.length(), k2 = expr.length();
                    try {
                        // remove "Fixed [" and "]" from the expr
                        node.m_mappingKits.fixGeneratorPath(expr.substring(k1 + 1, k2 - 1));
                    } catch (Exception e) {
                        throw new TreeMapperException("Cannot define the fixed multiplicity for the target node "
                                        + targetDE + ".");
                    }
                }
            } else {
                node.m_mappingKits.resetGenerator();
            }
        } else {
            String err = checkMapping.checkSource(m.getExpression());
            addMapping(nodeMapping);
            node.setTargetMappedFlag(true);
            treeMapper.updateMapAreaTables(m);
            if (node.isLoopNode()) {
                node.setSourcePath(m.getExpression());
            }
            if (err != null && !err.equals("")) {
                throw new TreeMapperException("target: " + targetDE + "\nsource: " + m.getExpression()
                                + "\nsource expression contains errors\n" + err);
            }
            if (LdapUtils.isLdapClassEntryCommand(node.getTreeComponent(), node)) {
                node.setCmd(m.getExpression());
            }
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.