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

I can't run demo server on my windows machine. java.lang.IllegalArgumentException: java.lang.NullPointerException #119

Open
freep0int opened this issue Sep 26, 2022 · 0 comments

Comments

@freep0int
Copy link

C:\Users\test\Downloads\rdap-server-demo-1.4.1\rdap-demo-1.4.1>java -jar demo.jar
Sep 26, 2022 4:24:13 PM org.apache.catalina.core.StandardContext setPath
WARNING: A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to []
Sep 26, 2022 4:24:13 PM org.apache.catalina.core.StandardContext setPath
WARNING: A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [rdap-server] does not meet these criteria and has been changed to [/rdap-server]
Sep 26, 2022 4:24:13 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Sep 26, 2022 4:24:14 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Sep 26, 2022 4:24:14 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Sep 26, 2022 4:24:14 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.36
Sep 26, 2022 4:24:14 PM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
INFO: No global web.xml found
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Sep 26, 2022 4:24:14 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Shiro environment
Sep 26, 2022 4:24:15 PM mx.nic.rdap.db.service.DataAccessService loadImplementationFromProperties
INFO: The 'data-access-implementation' property is absent from the configuration. Falling back to explore the classpath.
Sep 26, 2022 4:24:15 PM mx.nic.rdap.db.service.DataAccessService loadImplementationFromClasspath
INFO: Found a data access implementation in the classpath: mx.nic.rdap.sql.impl.SqlProviderImplementation
Sep 26, 2022 4:24:15 PM mx.nic.rdap.sql.DatabaseSession findRdapDataSource
INFO: Attempting to find data source 'java:/comp/env/jdbc/rdap'...
Sep 26, 2022 4:24:15 PM mx.nic.rdap.sql.DatabaseSession findRdapDataSource
INFO: Data source not found. Attempting something else...
Sep 26, 2022 4:24:15 PM mx.nic.rdap.sql.DatabaseSession findRdapDataSource
INFO: Attempting to find data source 'java:comp/env/jdbc/rdap'...
Sep 26, 2022 4:24:15 PM mx.nic.rdap.sql.DatabaseSession findRdapDataSource
INFO: Data source not found. Attempting something else...
Sep 26, 2022 4:24:15 PM mx.nic.rdap.sql.DatabaseSession initRdapConnection
INFO: I could not find the RDAP data source in the context. This won't be a problem if I can find it in the configuration. Attempting that now...
Sep 26, 2022 4:24:15 PM mx.nic.rdap.sql.DatabaseSession testDatabase
INFO: Executing QUERY: select 1
Sep 26, 2022 4:24:15 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class mx.nic.rdap.server.listener.RdapInitializer
java.lang.IllegalArgumentException: java.lang.NullPointerException
        at mx.nic.rdap.server.listener.RdapInitializer.contextInitialized(RdapInitializer.java:84)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4842)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
        at java.util.Properties$LineReader.readLine(Unknown Source)
        at java.util.Properties.load0(Unknown Source)
        at java.util.Properties.load(Unknown Source)
        at mx.nic.rdap.sql.SQLProviderConfiguration.init(SQLProviderConfiguration.java:127)
        at mx.nic.rdap.sql.SQLProviderConfiguration.initForServer(SQLProviderConfiguration.java:86)
        at mx.nic.rdap.sql.SchemaConfiguration.init(SchemaConfiguration.java:34)
        at mx.nic.rdap.sql.impl.SqlProviderImplementation.init(SqlProviderImplementation.java:27)
        at mx.nic.rdap.db.service.DataAccessService.initialize(DataAccessService.java:43)
        at mx.nic.rdap.server.listener.RdapInitializer.contextInitialized(RdapInitializer.java:62)
        ... 9 more

Sep 26, 2022 4:24:15 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Sep 26, 2022 4:24:15 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors
Sep 26, 2022 4:24:15 PM org.apache.catalina.core.ApplicationContext log
INFO: Cleaning up Shiro Environment
Sep 26, 2022 4:24:15 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
C:\Users\test\Downloads\rdap-server-demo-1.4.1\rdap-demo-1.4.1>java -version
java version "1.8.0_341"
Java(TM) SE Runtime Environment (build 1.8.0_341-b10)
Java HotSpot(TM) Client VM (build 25.341-b10, mixed mode, sharing)
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

1 participant