Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No resource available at '/reference.conf' #8

Closed
mallim opened this issue May 17, 2013 · 2 comments
Closed

No resource available at '/reference.conf' #8

mallim opened this issue May 17, 2013 · 2 comments

Comments

@mallim
Copy link

mallim commented May 17, 2013

Version Used

    <dependency>
        <groupId>com.mchange</groupId>
        <artifactId>c3p0</artifactId>
        <version>0.9.5-pre2</version>
        <scope>test</scope>
    </dependency>

Given this configuration in Spring 3

<bean id="vrsDataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
    <property name="driverClass" value="com.mysql.jdbc.Driver"/>
    <property name="jdbcUrl" value="jdbc:mysql://192.168.170.138:3306/mmc_vrsdb"/>
    <property name="user" value="vrsmmc_root"/>
    <property name="password" value="vrsmmc_root"/>
    <property name="preferredTestQuery" value="SELECT 1"/>
    <property name="idleConnectionTestPeriod" value="14400"/>
    <property name="testConnectionOnCheckin" value="true"/>
    <property name="testConnectionOnCheckout" value="false"/>
    <property name="minPoolSize" value="1"/>
    <property name="maxPoolSize" value="5"/>
    <property name="acquireIncrement" value="1"/>
    <property name="maxIdleTimeExcessConnections" value="240"/>
</bean>

The following error was thrown

2013-05-17 09:26:44,618 [MLog-Init-Reporter] [ INFO] MLog:106 - MLog clients using log4j logging.
2013-05-17 09:26:44,633 [MLog-Init-Reporter] [DEBUG] MLog:95 - Could not find resource path text file for path '/com/mchange/v2/cfg/vmConfigResourcePaths.txt'
2013-05-17 09:26:44,633 [MLog-Init-Reporter] [DEBUG] MLog:95 - Added paths from resource path text file at '/mchange-config-resource-paths.txt'
2013-05-17 09:26:44,633 [MLog-Init-Reporter] [DEBUG] MLog:95 - Reading VM config for path list /com/mchange/v2/log/default-mchange-log.properties, hocon:/reference.conf, /mchange-commons.properties, hocon:/application.conf, /c3p0.properties, hocon:/c3p0.conf, /mchange-log.properties, /
2013-05-17 09:26:44,633 [MLog-Init-Reporter] [DEBUG] MLog:95 - The configuration file for resource identifier 'hocon:/reference.conf' could not be found. Skipping.
java.io.FileNotFoundException: No resource available at '/reference.conf' for HOCON identifier 'hocon:/reference.conf'. Also HOCON lib (typesafe-config) is not available.
    at com.mchange.v2.cfg.BasicMultiPropertiesConfig.configSource(BasicMultiPropertiesConfig.java:86)
    at com.mchange.v2.cfg.BasicMultiPropertiesConfig.firstInit(BasicMultiPropertiesConfig.java:174)
    at com.mchange.v2.cfg.BasicMultiPropertiesConfig.(BasicMultiPropertiesConfig.java:110)
    at com.mchange.v2.cfg.ConfigUtils.read(ConfigUtils.java:57)
    at com.mchange.v2.cfg.ConfigUtils.readVmConfig(ConfigUtils.java:106)
    at com.mchange.v2.cfg.MLogConfigSource.readVmConfig(MLogConfigSource.java:46)
    at com.mchange.v2.log.MLogConfig.(MLogConfig.java:58)
    at com.mchange.v2.log.MLog.(MLog.java:50)

Action Taken

Revert to version 0.9.2.1

@swaldman
Copy link
Owner

hi. this is okay; it is not an error at all. note that these items are being logged at DEBUG level. the config library is checking in a bunch of places for config information, and logging at DEBUG where it has failed to find it. but there are now lots of different places config information can live. not finding it in any one particular place is not a problem. (maybe we shouldn't log the stack trace, because it freaks people out to see stack traces even in DEBUG logs?)

anything that users should consider an error will be logged by c3p0/mchange-commons-java at some level above INFO. logging can be quite verbose at DEBUG log levels. If these messages are bothersome to you, just edit your logging config so that the logger com.mchange.v2.log.MLog logs at INFO and above.

@mallim
Copy link
Author

mallim commented May 17, 2013

Thanks for the prompt response.

I have turned off the message in log4j in this way:

<logger name="com.mchange.v2">
    <level value="info"/>
</logger>

@ewsq ewsq mentioned this issue Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants