You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stéphane Démaret (JIRA)" <ji...@apache.org> on 2012/11/12 11:53:12 UTC

[jira] [Created] (DIRSERVER-1762) Switching log in debug make the service crash at startup

Stéphane Démaret created DIRSERVER-1762:
-------------------------------------------

             Summary: Switching log in debug make the service crash at startup
                 Key: DIRSERVER-1762
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1762
             Project: Directory ApacheDS
          Issue Type: Bug
          Components: ldap
    Affects Versions: 2.0.0-M8
         Environment: Windows XP SP3
java version "1.6.0_32"
Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
Java HotSpot(TM) Client VM (build 20.7-b02, mixed mode, sharing)
            Reporter: Stéphane Démaret
            Priority: Minor
             Fix For: 2.0.0-M9


When I switch the log rootcategory to DEBUG in log4j.properties, I am unable to start service.

The last action logged in the log file is :

[2012-11-11 20:53:02] DEBUG [org.apache.directory.shared.ldap.model.schema.registries.Registries] - USING :

I discovered this issue while investigating a problem with SSL communications with postgres which cause another issue in Apache Directory.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DIRSERVER-1762) Switching log in debug make the service crash at startup

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13496400#comment-13496400 ] 

Emmanuel Lecharny commented on DIRSERVER-1762:
----------------------------------------------

Processing the config atm. I actually get the server stopping in DEBUG, still no idea why... 
                
> Switching log in debug make the service crash at startup
> --------------------------------------------------------
>
>                 Key: DIRSERVER-1762
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1762
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M8
>         Environment: Windows XP SP3
> java version "1.6.0_32"
> Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
> Java HotSpot(TM) Client VM (build 20.7-b02, mixed mode, sharing)
>            Reporter: Stéphane Démaret
>            Priority: Minor
>             Fix For: 2.0.0-M9
>
>         Attachments: default.zip
>
>
> When I switch the log rootcategory to DEBUG in log4j.properties, I am unable to start service.
> The last action logged in the log file is :
> [2012-11-11 20:53:02] DEBUG [org.apache.directory.shared.ldap.model.schema.registries.Registries] - USING :
> I discovered this issue while investigating a problem with SSL communications with postgres which cause another issue in Apache Directory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DIRSERVER-1762) Switching log in debug make the service crash at startup

Posted by "Stéphane Démaret (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497009#comment-13497009 ] 

Stéphane Démaret commented on DIRSERVER-1762:
---------------------------------------------

I will try to download the latest source code from the repository and build it ASAP. I will keep you posted.
                
> Switching log in debug make the service crash at startup
> --------------------------------------------------------
>
>                 Key: DIRSERVER-1762
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1762
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M8
>         Environment: Windows XP SP3
> java version "1.6.0_32"
> Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
> Java HotSpot(TM) Client VM (build 20.7-b02, mixed mode, sharing)
>            Reporter: Stéphane Démaret
>            Priority: Minor
>             Fix For: 2.0.0-M9
>
>         Attachments: default.zip
>
>
> When I switch the log rootcategory to DEBUG in log4j.properties, I am unable to start service.
> The last action logged in the log file is :
> [2012-11-11 20:53:02] DEBUG [org.apache.directory.shared.ldap.model.schema.registries.Registries] - USING :
> I discovered this issue while investigating a problem with SSL communications with postgres which cause another issue in Apache Directory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (DIRSERVER-1762) Switching log in debug make the service crash at startup

Posted by "Stéphane Démaret (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stéphane Démaret updated DIRSERVER-1762:
----------------------------------------

    Attachment: default.zip

Here are the conf and log folders of the instances\default folder.

If it can help, I can provid you with the whole instances folder.

I saw no exception in the log, and the log4j configuration is the original one (I've just changed the log level to Debug)
                
> Switching log in debug make the service crash at startup
> --------------------------------------------------------
>
>                 Key: DIRSERVER-1762
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1762
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M8
>         Environment: Windows XP SP3
> java version "1.6.0_32"
> Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
> Java HotSpot(TM) Client VM (build 20.7-b02, mixed mode, sharing)
>            Reporter: Stéphane Démaret
>            Priority: Minor
>             Fix For: 2.0.0-M9
>
>         Attachments: default.zip
>
>
> When I switch the log rootcategory to DEBUG in log4j.properties, I am unable to start service.
> The last action logged in the log file is :
> [2012-11-11 20:53:02] DEBUG [org.apache.directory.shared.ldap.model.schema.registries.Registries] - USING :
> I discovered this issue while investigating a problem with SSL communications with postgres which cause another issue in Apache Directory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DIRSERVER-1762) Switching log in debug make the service crash at startup

Posted by "Stéphane Démaret (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497615#comment-13497615 ] 

Stéphane Démaret commented on DIRSERVER-1762:
---------------------------------------------

Emmanuel,

I've tried to compile the project from the trunk and I get this error in maven :

[ERROR] Failed to execute goal on project apacheds-core-api: Could not resolve dependencies for project 
org.apache.directory.server:apacheds-core-api:bundle:2.0.0-M9-SNAPSHOT: 

The following artifacts could not be resolved: 
org.apache.directory.shared:shared-i18n:jar:1.0.0-M14-SNAPSHOT 
org.apache.directory.shared:shared-asn1-api:jar:1.0.0-M14-SNAPSHOT 
org.apache.directory.shared:shared-ldap-client-api:jar:1.0.0-M14-SNAPSHOT 
org.apache.directory.shared:shared-ldap-codec-core:jar:1.0.0-M14-SNAPSHOT 
org.apache.directory.shared:shared-ldap-extras-aci:jar:1.0.0-M14-SNAPSHOT 
org.apache.directory.shared:shared-ldap-extras-util:jar:1.0.0-M14-SNAPSHOT 
org.apache.directory.shared:shared-ldap-model:jar:1.0.0-M14-SNAPSHOT 
org.apache.directory.shared:shared-ldap-schema-data:jar:1.0.0-M14-SNAPSHOT
org.apache.directory.shared:shared-util:jar:1.0.0-M14-SNAPSHOT: 

Failure to find org.apache.directory.shared:shared-i18n:jar:1.0.0-M14-SNAPSHOT 
in http://localhost:8080/archiva/repository/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of archiva.snapshots has elapsed or updates are forced -> [Help 1]

I've added the following configuration in my archiva server :

Remote Repository :

Name*:	Apache Development Snapshot Repository
URL*:	https://repository.apache.org/content/repositories/snapshots/
Type:        maven 2.x repository

Repository Proxy Connectors :

Network Proxy*:	                (direct connection)
Managed Repository*:	snapshots
Remote Repository*:	        apache.snapshots
Policies:	
Return error when:	        always
Cache failures: 	                no
Releases: 	                        always
On remote error: 	        queue error
Checksum: 	                fail
Snapshots: 	                always

Do I miss something?
                
> Switching log in debug make the service crash at startup
> --------------------------------------------------------
>
>                 Key: DIRSERVER-1762
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1762
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M8
>         Environment: Windows XP SP3
> java version "1.6.0_32"
> Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
> Java HotSpot(TM) Client VM (build 20.7-b02, mixed mode, sharing)
>            Reporter: Stéphane Démaret
>            Priority: Minor
>             Fix For: 2.0.0-M9
>
>         Attachments: default.zip
>
>
> When I switch the log rootcategory to DEBUG in log4j.properties, I am unable to start service.
> The last action logged in the log file is :
> [2012-11-11 20:53:02] DEBUG [org.apache.directory.shared.ldap.model.schema.registries.Registries] - USING :
> I discovered this issue while investigating a problem with SSL communications with postgres which cause another issue in Apache Directory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DIRSERVER-1762) Switching log in debug make the service crash at startup

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13496038#comment-13496038 ] 

Emmanuel Lecharny commented on DIRSERVER-1762:
----------------------------------------------

Can you provide the log configuratio you are using ?

Also did you get any other error on the console ? A StackTrace ?

(btw, we are trying to reproduce the issue, more to come later)
                
> Switching log in debug make the service crash at startup
> --------------------------------------------------------
>
>                 Key: DIRSERVER-1762
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1762
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M8
>         Environment: Windows XP SP3
> java version "1.6.0_32"
> Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
> Java HotSpot(TM) Client VM (build 20.7-b02, mixed mode, sharing)
>            Reporter: Stéphane Démaret
>            Priority: Minor
>             Fix For: 2.0.0-M9
>
>
> When I switch the log rootcategory to DEBUG in log4j.properties, I am unable to start service.
> The last action logged in the log file is :
> [2012-11-11 20:53:02] DEBUG [org.apache.directory.shared.ldap.model.schema.registries.Registries] - USING :
> I discovered this issue while investigating a problem with SSL communications with postgres which cause another issue in Apache Directory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DIRSERVER-1762) Switching log in debug make the service crash at startup

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13496041#comment-13496041 ] 

Emmanuel Lecharny commented on DIRSERVER-1762:
----------------------------------------------

We will also need the server configuraton you are using, because we don't have any issue starting the server with log in DEBUG mode : it's very likely that some of your configuration will cause one LOG somewhere to generate a NPE which stops the server, but we can't easily tell which call to log is the cause... (we have ten of thousands log calls in the server)
                
> Switching log in debug make the service crash at startup
> --------------------------------------------------------
>
>                 Key: DIRSERVER-1762
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1762
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M8
>         Environment: Windows XP SP3
> java version "1.6.0_32"
> Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
> Java HotSpot(TM) Client VM (build 20.7-b02, mixed mode, sharing)
>            Reporter: Stéphane Démaret
>            Priority: Minor
>             Fix For: 2.0.0-M9
>
>
> When I switch the log rootcategory to DEBUG in log4j.properties, I am unable to start service.
> The last action logged in the log file is :
> [2012-11-11 20:53:02] DEBUG [org.apache.directory.shared.ldap.model.schema.registries.Registries] - USING :
> I discovered this issue while investigating a problem with SSL communications with postgres which cause another issue in Apache Directory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (DIRSERVER-1762) Switching log in debug make the service crash at startup

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13496041#comment-13496041 ] 

Emmanuel Lecharny edited comment on DIRSERVER-1762 at 11/13/12 8:44 AM:
------------------------------------------------------------------------

We will also need the server configuraton you are using, because we don't have any issue starting the server with log in DEBUG mode : it's very likely that some of your configuration will cause one LOG somewhere to generate a NPE which stops the server, but we can't easily tell which call to log is the cause... (we have thousands log calls in the server)
                
      was (Author: elecharny):
    We will also need the server configuraton you are using, because we don't have any issue starting the server with log in DEBUG mode : it's very likely that some of your configuration will cause one LOG somewhere to generate a NPE which stops the server, but we can't easily tell which call to log is the cause... (we have ten of thousands log calls in the server)
                  
> Switching log in debug make the service crash at startup
> --------------------------------------------------------
>
>                 Key: DIRSERVER-1762
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1762
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M8
>         Environment: Windows XP SP3
> java version "1.6.0_32"
> Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
> Java HotSpot(TM) Client VM (build 20.7-b02, mixed mode, sharing)
>            Reporter: Stéphane Démaret
>            Priority: Minor
>             Fix For: 2.0.0-M9
>
>
> When I switch the log rootcategory to DEBUG in log4j.properties, I am unable to start service.
> The last action logged in the log file is :
> [2012-11-11 20:53:02] DEBUG [org.apache.directory.shared.ldap.model.schema.registries.Registries] - USING :
> I discovered this issue while investigating a problem with SSL communications with postgres which cause another issue in Apache Directory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DIRSERVER-1762) Switching log in debug make the service crash at startup

Posted by "Stéphane Démaret (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497908#comment-13497908 ] 

Stéphane Démaret commented on DIRSERVER-1762:
---------------------------------------------

Good news, it seems there is no issue with the application, the problem was with the wrapper which timeout at startup because the application is slower with the DEBUG option on.

I've added the following properties in the wrapper.conf to fix the issue : wrapper.startup.timeout=0 (default is 30)

I guess it would be a good idea to add this property in the wrapper.conf with a better default value and/or a comment in the log4j file to indicate that the wrapper value must be changed.

Sorry I didn't catch it before but at least I know how to build the application now... BTW, when I compile with the test on, it fails on the annotation project.
                
> Switching log in debug make the service crash at startup
> --------------------------------------------------------
>
>                 Key: DIRSERVER-1762
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1762
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M8
>         Environment: Windows XP SP3
> java version "1.6.0_32"
> Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
> Java HotSpot(TM) Client VM (build 20.7-b02, mixed mode, sharing)
>            Reporter: Stéphane Démaret
>            Priority: Minor
>             Fix For: 2.0.0-M9
>
>         Attachments: default.zip
>
>
> When I switch the log rootcategory to DEBUG in log4j.properties, I am unable to start service.
> The last action logged in the log file is :
> [2012-11-11 20:53:02] DEBUG [org.apache.directory.shared.ldap.model.schema.registries.Registries] - USING :
> I discovered this issue while investigating a problem with SSL communications with postgres which cause another issue in Apache Directory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DIRSERVER-1762) Switching log in debug make the service crash at startup

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497623#comment-13497623 ] 

Emmanuel Lecharny commented on DIRSERVER-1762:
----------------------------------------------

Ah, sadly, you should first compile the Shared project... The best is to get all the sources from :

svn co http://svn.apache.org/repos/asf/directory/trunks apacheds-trunk

and to rebuild everything (use mvn clean install -DskipTests to go faster)

There are probably more accurate informations on the new site :
http://directory.staging.apache.org/apacheds/advanced-ug/0.2-building-trunks.html#02-building-trunks
which is not *yet* available in its final version...
                
> Switching log in debug make the service crash at startup
> --------------------------------------------------------
>
>                 Key: DIRSERVER-1762
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1762
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M8
>         Environment: Windows XP SP3
> java version "1.6.0_32"
> Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
> Java HotSpot(TM) Client VM (build 20.7-b02, mixed mode, sharing)
>            Reporter: Stéphane Démaret
>            Priority: Minor
>             Fix For: 2.0.0-M9
>
>         Attachments: default.zip
>
>
> When I switch the log rootcategory to DEBUG in log4j.properties, I am unable to start service.
> The last action logged in the log file is :
> [2012-11-11 20:53:02] DEBUG [org.apache.directory.shared.ldap.model.schema.registries.Registries] - USING :
> I discovered this issue while investigating a problem with SSL communications with postgres which cause another issue in Apache Directory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DIRSERVER-1762) Switching log in debug make the service crash at startup

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13496676#comment-13496676 ] 

Emmanuel Lecharny commented on DIRSERVER-1762:
----------------------------------------------

I don't see anything obvious, except that there may be something wrong in the addusing/addUsedBy methods in Registries (those methods are only called in debug mode).

I have added a try/catch around the code, to print a stack trace if we have any kind of exception thrown.

Can you check with the latest trunk to see if you get some stackTrace that could help me to know where the error comes from ?

Thanks !
                
> Switching log in debug make the service crash at startup
> --------------------------------------------------------
>
>                 Key: DIRSERVER-1762
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1762
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M8
>         Environment: Windows XP SP3
> java version "1.6.0_32"
> Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
> Java HotSpot(TM) Client VM (build 20.7-b02, mixed mode, sharing)
>            Reporter: Stéphane Démaret
>            Priority: Minor
>             Fix For: 2.0.0-M9
>
>         Attachments: default.zip
>
>
> When I switch the log rootcategory to DEBUG in log4j.properties, I am unable to start service.
> The last action logged in the log file is :
> [2012-11-11 20:53:02] DEBUG [org.apache.directory.shared.ldap.model.schema.registries.Registries] - USING :
> I discovered this issue while investigating a problem with SSL communications with postgres which cause another issue in Apache Directory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira