oracle / opengrok

OpenGrok is a fast and usable source code search and cross reference engine, written in Java
http://oracle.github.io/opengrok/
Other
4.34k stars 745 forks source link

Problem with OpenGrok and ClearCase #58

Closed avirosenfeld closed 5 years ago

avirosenfeld commented 11 years ago

When starting Catalina run, I get the following two problems:

WARNING: ClearCaseRepository not working (missing binaries?): SNAPSHOT-VIEW-DIR

May 02, 2013 3:11:36 PM org.opensolaris.opengrok.web.WebappListener contextInitialized SEVERE: OpenGrok: Failed to start configuration listener thread

Any idea, Anyone?

Thanks, Avi

vladak commented 10 years ago

Not sure about the ClearCase warning. The listener failure is more interesting. I think this comes from the code in src/org/opensolaris/opengrok/web/WebappListener.java:

61        String address = context.getInitParameter("ConfigAddress");
62        if (address != null && address.length() > 0) {
63            OpenGrokLogger.getLogger().log(Level.CONFIG, "Will listen for configuration on [{0}]", address);
64            String[] cfg = address.split(":");
65            if (cfg.length == 2) {
66                try {
67                    SocketAddress addr = new InetSocketAddress(InetAddress.getByName(cfg[0]), Integer.parseInt(cfg[1]));
68                    if (!RuntimeEnvironment.getInstance().startConfigurationListenerThread(addr)) {
69                        OpenGrokLogger.getLogger().log(Level.SEVERE, "OpenGrok: Failed to start configuration listener thread");
70                    }
71                } catch (NumberFormatException ex) {
72                    OpenGrokLogger.getLogger().log(Level.SEVERE, "OpenGrok: Failed to start configuration listener thread:", ex);
73                } catch (UnknownHostException ex) {
74                    OpenGrokLogger.getLogger().log(Level.SEVERE, "OpenGrok: Failed to start configuration listener thread:", ex);
75                }
76            } else {
77                OpenGrokLogger.getLogger().log(Level.SEVERE, "Incorrect format for the configuration address: ");
78                for (int i = 0; i < cfg.length; ++i) {
79                    OpenGrokLogger.getLogger().log(Level.SEVERE, "[{0}]", cfg[i]);
80                }
81            }
82        }

specifically line 69 since the exception does not seem to be displayed. More context is needed, especially more entries from the log file (I'd assume that startConfigurationListenerThread() would give some).

vladak commented 10 years ago

Also, is this still reproducible ?

vladak commented 5 years ago

startConfigurationListenerThread got removed with the transition to the RESTful API, hence closing. The issue has too little information about the Clearcase problem.