Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Reporting server not starting

Reporting server not starting

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 34.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V
    V
    Vladimir Iosifo
    wrote on last edited by
    #1

    Hello all,
    could you kindly help me with understanding on why Reporting Server is not starting on my server ...

    Configuration:

    Linux server:  cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 7.1 (Maipo)

    NetXMS version 2.0.4 compiled with next configuration:

    CPPFLAGS=-I/usr/include/oracle/11.2/client64/ LDFLAGS=-L/usr/lib/oracle/11.2/client64/lib ./configure --with-agent --with-oracle --with-mysql --with-client --with-server --enable-unicode -prefix=/usr/local/netxms --exec-prefix=/usr/local/netxms --disable-ldap --disable-ipv6

    /etc/netxmsd.conf

    LogFile = /usr/local/netxms/log/netxms.log
    #DBDriver = sqlite.ddr
    #DBName = /usr/local/netxms/database/netxms_db
    DBDriver = mysql.ddr
    DBServer = localhost
    DBName = <DBNAME_HIDDEN>
    DBUser = netxms
    DBPassword = <PWD_HIDDEN>
    LogFailedSQLQueries = yes
    EnableReportingServer = 1
    ReportingServerPort = 4710
    ReportingServerHostname = localhost

    I have 2 issues:

    1. When I'm enabling Reporting Server and restarting netxms server, port is still not listened:

    /usr/local/netxms/bin/nxdbmgr set EnableReportingServer 1
    /etc/init.d/netxmsd stop
    /etc/init.d/netxmsd start
    netstat -an | grep 4710
    NOTHING

    1. When I'm trying to start netxms-reporting-server, some errors thrown on the screen which I'm not able to overcome:
      conf/nxreporting.xml

    <config>
      <workspace>/usr/local/netxms/reporting/workspace</workspace>
        <netxmsdConfig>/etc/netxmsd.conf</netxmsdConfig>
    </config>

    Starting server:
    java -jar ./reporting-server-2.0.4.jar

    ...........
    Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.NullPointerException
            at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
            at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
            ... 40 more
    Caused by: java.lang.NullPointerException
            at com.radensolutions.reporting.dao.DaoContextConfig.dataSource(DaoContextConfig.java:42)
            at com.radensolutions.reporting.dao.DaoContextConfig$$EnhancerBySpringCGLIB$$28d50b10.CGLIB$dataSource$1(<generated>)
    ........

    I also tried with another command:
    java -cp /usr/local/netxms/reporting/lib/\*.jar:/usr/local/netxms/reporting/conf:/usr/local/netxms/reporting/reporting-server-2.0.4.jar com.radensolutions.reporting.Launcher

    But results are still the same. I tried to read all the articles posted on this forum but was not able to find such issue.

    1 Reply Last reply
    0
    • R
      R
      radw
      wrote on last edited by
      #2

      Hello, you need to start the Reporting Server as "sudo", otherwise, the reporting server not answer.

      Regards.

      1 Reply Last reply
      0
      • V
        V
        Vladimir Iosifo
        wrote on last edited by
        #3

        Hi radw,
        thanks for ideas. But of course I executed it as root with proper environment variables and rights.

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups