Uploaded image for project: 'AdMax'
  1. AdMax
  2. ADMAX-2758

Maven: Budget_hierarchy and budget_reportdata - WARN [SessionFactoryObjectFactory]: Could not bind factory to JNDI

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: BM Maven
    • Fix Version/s: BM Maven
    • Component/s: Yell Budgeting Tool
    • Labels:
      None
    • Environment:

      staging xml1

      Description

      When running Budget_hierarchy and budget_reportdata I get the following error on the Maven branch, and not on Trunk p476-r29853

      budget hierarchy: ./budget_hierarchy.sh -d3 2> /tmp/budget_hierarchy11

      2011-07-24 13:08:27.581 INFO [NamingHelper]: JNDI InitialContext properties:{}

      2011-07-24 13:08:27.614 WARN [SessionFactoryObjectFactory]: Could not bind factory to JNDI

      javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)

      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)

      at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)

      at javax.naming.InitialContext.getNameParser(InitialContext.java:439)

      at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52)

      at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)

      at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:306)

      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)

      at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:859)

      at com.thesearchagency.yell.dao.util.YellServiceHibernateUtil.<init>(YellServiceHibernateUtil.java:32)

      at com.thesearchagency.yell.dao.util.YellServiceHibernateUtil.getInstance(YellServiceHibernateUtil.java:49)

      at com.thesearchagency.yell.dao.util.YellServiceHibernateUtil.getSessionFactory(YellServiceHibernateUtil.java:62)

      at com.thesearchagency.yell.dao.YellDAO.beginPublicTransaction(YellDAO.java:722)

      at com.thesearchagency.searchengines.budget.hierarchy.HierarchyMapUpdater.createHierarchy(HierarchyMapUpdater.java:58)

      at com.thesearchagency.searchengines.budget.hierarchy.HierarchyRunner.main(HierarchyRunner.java:26)

      budget report data: ./budget_reportdata.sh -a 17 -d3 2> /tmp/budget_reportdata_trunk

      2011-07-24 13:28:36.901 WARN [SessionFactoryObjectFactory]: Could not bind factory to JNDI

      javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)

      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)

      at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)

      at javax.naming.InitialContext.getNameParser(InitialContext.java:439)

      at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52)

      at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)

      at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:306)

      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)

      at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:859)

      at com.thesearchagency.yell.dao.util.YellServiceHibernateUtil.<init>(YellServiceHibernateUtil.java:32)

      at com.thesearchagency.yell.dao.util.YellServiceHibernateUtil.getInstance(YellServiceHibernateUtil.java:49)

      at com.thesearchagency.yell.dao.util.YellServiceHibernateUtil.getSessionFactory(YellServiceHibernateUtil.java:62)

      at com.thesearchagency.yell.dao.YellDAO.beginPrivateTransaction(YellDAO.java:681)

      at com.thesearchagency.yell.dao.YellDAO.getDataBySECriteria(YellDAO.java:158)

      at com.thesearchagency.searchengines.budget.reporting.PerformanceCalculator.getDataByCriteria(PerformanceCalculator.java:86)

      at com.thesearchagency.searchengines.budget.reporting.PerformanceCalculator.getDataRow(PerformanceCalculator.java:66)

      at com.thesearchagency.searchengines.budget.reporting.PerformanceCalculator.updatePerformanceData(PerformanceCalculator.java:45)

      at com.thesearchagency.searchengines.budget.reporting.reports.BudgettingReport.executePerformanceOperations(BudgettingReport.java:311)

      at com.thesearchagency.searchengines.budget.reporting.ReportRunner.executePerformanceOperations(ReportRunner.java:90)

      at com.thesearchagency.searchengines.budget.reporting.ReportRunner.executeReportOperations(ReportRunner.java:69)

      at com.thesearchagency.searchengines.budget.reporting.ReportRunner.main(ReportRunner.java:60)

        Attachments

          Activity

            People

            • Assignee:
              jason.stedman Jason Stedman (Inactive)
              Reporter:
              jelliott Jen Clarke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: