Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1224

LookupStarter has broken reference to lookup.config

    Details

      Description

      I need to check the HA test suite, but I can no longer run the LookupStarter class.

      java ... com.bigdata.service.jini.util.LookupStarter
      
      -Dapp.home=${project_loc}
      
      -Djini.lib=${project_loc}/bigdata-jini/lib/jini/lib
      
      -Djini.lib.dl=${project_loc}/bigdata-jini/lib/jini/lib-dl
      
      -Djava.security.policy=${project_loc}/policy.all 
      
      -Djava.security.debug=off 
      
      -Djava.protocol.handler.pkgs=net.jini.url 
      
      -Dlog4j.configuration=file:bigdata/src/resources/logging/log4j-dev.properties 
      
      -Dcodebase.port=23333 
      
      -Djava.net.preferIPv4Stack=true 
      
      -Dbigdata.fedname=benchmark
      
      -Ddefault.nic=
      

      The exception is:

      SEVERE: Reggie initialization failed
      
      net.jini.config.ConfigurationNotFoundException: /Users/bryan/git/bigdata/bigdata-jini/src/java/com/bigdata/service/jini/util/config/lookup.config:configuration file not found; caused by:
      
      java.io.FileNotFoundException: /Users/bryan/git/bigdata/bigdata-jini/src/java/com/bigdata/service/jini/util/config/lookup.config (No such file or directory)
      
      at net.jini.config.ConfigurationFile.<init>(ConfigurationFile.java:1815)
      
      at net.jini.config.ConfigurationProvider.getInstance(ConfigurationProvider.java:240)
      
      at com.sun.jini.reggie.RegistrarImpl.<init>(RegistrarImpl.java:393)
      
      at com.sun.jini.reggie.TransientRegistrarImpl.<init>(TransientRegistrarImpl.java:39)
      
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      
      at com.sun.jini.start.NonActivatableServiceDescriptor.create(NonActivatableServiceDescriptor.java:674)
      
      at com.bigdata.service.jini.util.LookupStarter.startLookupService(LookupStarter.java:225)
      
      at com.bigdata.service.jini.util.LookupStarter.access$1(LookupStarter.java:205)
      
      at com.bigdata.service.jini.util.LookupStarter$LookupStartThread.run(LookupStarter.java:149)
      
      Caused by: java.io.FileNotFoundException: /Users/bryan/git/bigdata/bigdata-jini/src/java/com/bigdata/service/jini/util/config/lookup.config (No such file or directory)
      
      at java.io.FileInputStream.open(Native Method)
      
      at java.io.FileInputStream.<init>(FileInputStream.java:146)
      
      at java.io.FileInputStream.<init>(FileInputStream.java:101)
      
      at net.jini.config.ConfigurationFile.<init>(ConfigurationFile.java:1809)
      
      ... 11 more
      
      
      
      java.lang.reflect.InvocationTargetException
      
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      
      at com.sun.jini.start.NonActivatableServiceDescriptor.create(NonActivatableServiceDescriptor.java:674)
      
      at com.bigdata.service.jini.util.LookupStarter.startLookupService(LookupStarter.java:225)
      
      at com.bigdata.service.jini.util.LookupStarter.access$1(LookupStarter.java:205)
      
      at com.bigdata.service.jini.util.LookupStarter$LookupStartThread.run(LookupStarter.java:149)
      
      Caused by: net.jini.config.ConfigurationNotFoundException: /Users/bryan/git/bigdata/bigdata-jini/src/java/com/bigdata/service/jini/util/config/lookup.config:configuration file not found; caused by:
      
      java.io.FileNotFoundException: /Users/bryan/git/bigdata/bigdata-jini/src/java/com/bigdata/service/jini/util/config/lookup.config (No such file or directory)
      
      at net.jini.config.ConfigurationFile.<init>(ConfigurationFile.java:1815)
      
      at net.jini.config.ConfigurationProvider.getInstance(ConfigurationProvider.java:240)
      
      at com.sun.jini.reggie.RegistrarImpl.<init>(RegistrarImpl.java:393)
      
      at com.sun.jini.reggie.TransientRegistrarImpl.<init>(TransientRegistrarImpl.java:39)
      
      ... 8 more
      
      Caused by: java.io.FileNotFoundException: /Users/bryan/git/bigdata/bigdata-jini/src/java/com/bigdata/service/jini/util/config/lookup.config (No such file or directory)
      
      at java.io.FileInputStream.open(Native Method)
      
      at java.io.FileInputStream.<init>(FileInputStream.java:146)
      
      at java.io.FileInputStream.<init>(FileInputStream.java:101)
      
      at net.jini.config.ConfigurationFile.<init>(ConfigurationFile.java:1809)
      
      ... 11 more
      

        Activity

        Hide
        bryanthompson bryanthompson added a comment -

        This problem was introduced by the maven refactor. It does not exist in any released version of the code.

        The problem is the following at LookupStarterBLZG-298

            private String lookupConfig = appHome
                                          +fSep+"bigdata-jini"+fSep+"src"+fSep+"java"
                                          +fSep+"com"+fSep+"bigdata"+fSep+"service"
                                          +fSep+"jini"+fSep+"util"+fSep+"config"
                                          +fSep+"lookup.config";
        

        The fix is:

            private String lookupConfig = appHome
                                          +fSep+"bigdata-jini"+fSep+"src"+fSep+"main"+fSep+"java"
                                          +fSep+"com"+fSep+"bigdata"+fSep+"service"
                                          +fSep+"jini"+fSep+"util"+fSep+"config"
                                          +fSep+"lookup.config";
        

        I have verified this fix locally.

        Show
        bryanthompson bryanthompson added a comment - This problem was introduced by the maven refactor. It does not exist in any released version of the code. The problem is the following at LookupStarterBLZG-298 private String lookupConfig = appHome +fSep+"bigdata-jini"+fSep+"src"+fSep+"java" +fSep+"com"+fSep+"bigdata"+fSep+"service" +fSep+"jini"+fSep+"util"+fSep+"config" +fSep+"lookup.config"; The fix is: private String lookupConfig = appHome +fSep+"bigdata-jini"+fSep+"src"+fSep+"main"+fSep+"java" +fSep+"com"+fSep+"bigdata"+fSep+"service" +fSep+"jini"+fSep+"util"+fSep+"config" +fSep+"lookup.config"; I have verified this fix locally.
        Hide
        bryanthompson bryanthompson added a comment -

        Commit 3abe71f6471d84f24738d6c2f29c88654e851652 to master.

        Show
        bryanthompson bryanthompson added a comment - Commit 3abe71f6471d84f24738d6c2f29c88654e851652 to master.

          People

          • Assignee:
            bryanthompson bryanthompson
            Reporter:
            bryanthompson bryanthompson
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: