Community
Participate
Working Groups
Build Identifier: Eclipse 3.4.2, Babel 3.4.0.v20090620043401, TPTP Platform Project 4.5.2.v200901090956 According to the log file, "IAC could not be started due to invalid configuration files" "Execution framework config file is invalid." When TPTP gets launched, it creates a file of "serviceconfig.xml", and gets the tag name by using "getString" method. Here the return value from ResourceBundle becomes in "Japanese." This cause a wrong tag name. org.eclipse.tptp.platform.agentcontroller.config.ConfigUtility ----------------- 14-55 --------------------------------- import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.util.MissingResourceException; import java.util.ResourceBundle; import java.util.StringTokenizer; import org.w3c.dom.Attr; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import com.ibm.icu.util.ULocale; public class ConfigUtility implements IConfigUtility{ private static String resourceLocation = "org.eclipse.tptp.platform.agentcontroller.config.SetConfig"; private static String lineSeparator = System.getProperty("line.separator"); protected static ResourceBundle resource = null; public static String getString(String property) { String value; value = getString(resourceLocation, property); return value; } public static String getString(String res, String property) { try { resource = ResourceBundle.getBundle(res); } catch (MissingResourceException e) { Logger.err("Cannot find property: " + property + " in resource: " + res + e.getMessage()); } if(resource != null) { return resource.getString(property); } else { Logger.err("Cannot find resource bundle: " + res); return null; } } Reproducible: Always Steps to Reproduce: 1.Add TPTP plug-in 2.Add Japanese language pack 3.launch TPTP configuration window 4.Error message "An error occured when connecting to the host."
Created attachment 158007 [details] Error message on the configuration window of TPTP
Created attachment 158008 [details] a view of a log file
As far as we checked, the .properties file includes only English tags...
Many strings in this file are used to create the TPTP Agent Controller configuration file (serviceconfig.xml), and should not be translated. http://babel.eclipse.org/babel/translate.php?project=tptp.platform&version=4.5.2&file=platform/org.eclipse.tptp.platform.agentcontroller/src-config/org/eclipse/tptp/platform/agentcontroller/config/SetConfig.properties I marked the strings as "non-translatable" and rebuilt the language packs. I tested the new language pack in my development environment and the problem is fixed. Mori-san, please try this: http://build.eclipse.org/technology/babel/babel_language_packs/N20100203-1600/BabelLanguagePack-tptp.platform-ja_3.4.0.v20100203043847.zip
We checked the new version. It seemed to be OK. Thank you for your quick reply.
fixed