Package it.eng.spagobi.engines.dossier.exceptions

Examples of it.eng.spagobi.engines.dossier.exceptions.OpenOfficeConnectionException


            XConnection connection = null;
            try {
          connection = xConnector.connect("socket,host=" + host + ",port=" + port);
          if (connection == null) {
            logger.error("Cannot connect to open office using host " + host + " and port " + port);
            throw new OpenOfficeConnectionException("Cannot connect to open office using host " + host
                + " and port " + port);
          }
            } catch (Exception e) {
              logger.error("Cannot connect to open office using host " + host + " and port " + port, e);
              throw new OpenOfficeConnectionException("Cannot connect to open office using host " + host + " and port " + port);
            }
        logger.debug("XConnection retrieved: " + connection);
        x = xRemoteContext.getServiceManager().createInstanceWithContext("com.sun.star.bridge.BridgeFactory",
          xRemoteContext);
        XBridgeFactory xBridgeFactory = (XBridgeFactory) UnoRuntime.queryInterface(XBridgeFactory.class, x);
View Full Code Here

TOP

Related Classes of it.eng.spagobi.engines.dossier.exceptions.OpenOfficeConnectionException

Copyright © 2018 www.massapicom. 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.