Ali,

I thought so. I checked the default config.json file, the port is 6633.
However, when I ran FV, I got a lot of Exceptions as shown below. Any idea?

Thanks,
Humphrey

hon@ubuntu:/usr/local/share/db/flowvisor/FlowVisorDB$ sudo
/etc/init.d/flowvisor start
[sudo] password for hon:
Starting flowvisor with the configuration stored in DB
If DB unpopulated, laod config using 'fvconfig load config.json'
hon@ubuntu:/usr/local/share/db/flowvisor/FlowVisorDB$ sudo fvconfig load
/etc/flowvisor/config.json
java.sql.SQLException: Failed to start database
'/usr/local/share/db/flowvisor/FlowVisorDB' with class loader
sun.misc.Launcher$AppClassLoader@16f0472, see the next exception for
details.
        at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown
Source)
        at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown
Source)
        at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
        at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown
Source)
        at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
        at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown
Source)
        at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown
Source)
        at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown
Source)
        at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
        at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
        at java.sql.DriverManager.getConnection(DriverManager.java:620)
        at java.sql.DriverManager.getConnection(DriverManager.java:200)
        at
org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
        at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
        at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
        at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
        at
org.flowvisor.config.ConfDBHandler.getConnection(ConfDBHandler.java:70)
        at
org.flowvisor.config.FlowvisorImpl.deleteAll(FlowvisorImpl.java:771)
        at
org.flowvisor.config.FlowvisorImpl.fromJson(FlowvisorImpl.java:761)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.flowvisor.config.FVConfigProxy.invoke(FVConfigProxy.java:21)
        at $Proxy0.fromJson(Unknown Source)
        at org.flowvisor.config.FVConfig.readFromFile(FVConfig.java:105)
        at org.flowvisor.config.LoadConfig.main(LoadConfig.java:139)
Caused by: java.sql.SQLException: Failed to start database
'/usr/local/share/db/flowvisor/FlowVisorDB' with class loader
sun.misc.Launcher$AppClassLoader@16f0472, see the next exception for
details.
        at
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown
Source)
        at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown
Source)
        ... 27 more
Caused by: java.sql.SQLException: Another instance of Derby may have
already booted the database /usr/local/share/db/flowvisor/FlowVisorDB.
        at
org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown
Source)
        at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown
Source)
        at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown
Source)
        at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown
Source)
        ... 24 more
Caused by: ERROR XSDB6: Another instance of Derby may have already booted
the database /usr/local/share/db/flowvisor/FlowVisorDB.
        at
org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
        at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.privGetJBMSLockOnDB(Unknown
Source)
        at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.getJBMSLockOnDB(Unknown
Source)
        at
org.apache.derby.impl.store.raw.data.BaseDataFileFactory.boot(Unknown
Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown
Source)
        at
org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
        at
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown
Source)
        at
org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown
Source)
        at org.apache.derby.impl.store.raw.RawStore.boot(Unknown Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown
Source)
        at
org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
        at
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown
Source)
        at
org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown
Source)
        at org.apache.derby.impl.store.access.RAMAccessManager.boot(Unknown
Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown
Source)
        at
org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
        at
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown
Source)
        at
org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown
Source)
        at org.apache.derby.impl.db.BasicDatabase.bootStore(Unknown Source)
        at org.apache.derby.impl.db.BasicDatabase.boot(Unknown Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown
Source)
        at
org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
        at
org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown
Source)
        at
org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(Unknown
Source)
        at
org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown
Source)
        at
org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown
Source)
        at
org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown
Source)
        ... 24 more
Exception in thread "main" java.lang.NullPointerException
        at org.flowvisor.config.FlowvisorImpl.reset(FlowvisorImpl.java:871)
        at
org.flowvisor.config.FlowvisorImpl.fromJson(FlowvisorImpl.java:762)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.flowvisor.config.FVConfigProxy.invoke(FVConfigProxy.java:21)
        at $Proxy0.fromJson(Unknown Source)
        at org.flowvisor.config.FVConfig.readFromFile(FVConfig.java:105)
        at org.flowvisor.config.LoadConfig.main(LoadConfig.java:139)
hon@ubuntu:/usr/local/share/db/flowvisor/FlowVisorDB$


Ali Al-Shabibi 於 2012年12月11日星期二寫道:

> Humphrey,
>
> FlowVisor by default listens on port 6633 for incoming switch connections.
> If you wish to change it you can do so either by editing the config file
> and changing the listen port or using the -p parameter to flowvisor, ie.
> flowvisor -p <port_number>
>
>
> Cheers.
>
> --
> Ali
>
> On Dec 11, 2012, at 4:21 AM, Humphrey Lee <iramani...@gmail.com> wrote:
>
> > Rob,
> >
> > I have experienced some problems to run FlowVisor. I'm not familiar with
> its configuration file - config.json. I needs some help to configure it in
> order to run flowvisor with my hardware of switch and nox controller. I
> have a NetGear of-enabled switch, and configured with controller's IP
> address and port 6633.
> >
> > Nox controller runs fine with the switch by itself. Now, I want to
> insert FV in between them. So I changed the Nox controller's port number to
> an arbitrary number, e.g. 9933, so the switch won't talk to nox directly.
> Now, I need to configure FlowVisor, so that my switch can find it, and it
> can find the Nox controller.
> >
> > I appreciate any help.
> >
> > Cheers,
> > Humphrey
> >
> > Humphrey Lee 於 2012年12月10日星期一寫道:
> > You are awesome, Rob. I followed your instructions, and I was able to
> run make successfully. Thank you.
> >
> > By the way, I'm curious why in this version 01.0, I don't need to run
> "git checkout ...", "./boot.sh", and "./configure" as in v0.4 from "git://
> openflowswitch.org/openflow.git. What is the difference? it's a little
> bit confusing to me!
> >
> > Regards,
> > Humphrey
> >
> >
> >
> > On Mon, Dec 10, 2012 at 3:40 PM, Rob Sherwood <
> rob.sherw...@bigswitch.com> wrote:
> > Humphrey,
> >
> > It seems that your problems are much more about your environment and
> > your java install than the flowvisor, so perhaps this isn't the best
> > place to try to resolve this.
> >
> > That said, from the errors you're seeing, the problematic command is
> > not 'java' which seems to run fine, but the java compiler 'javac'.
> >
> > Specifically you seem to have installed the java *runtime* environment
> > (jre==java runtime environment) but my guess is that you have not
> > installed the java *developers* kit (jdk).  Try `sudo apt-get install
> > openjdk-6-jdk` and then `make clean ; make` again.
> >
> > If that doesn't work, then my guess is you have larger problems with
> > your system.
> >
> > - Rob
> > .
> >
> > On Sun, Dec 9, 2012 at 11:34 PM, Humphrey Lee <iramani...@gmail.com>
> wrote:
> > > Here is my Java version info:
> > > hon@ubuntu:/home/project/flowvisor$ java -version
> > > java version "1.6.0_24"
> > > OpenJDK Runtime Environment (IcedTea6 1.11.5)
> (6b24-1.11.5-0ubuntu1~12.04.1)
> > > OpenJDK Server VM (build 20.0-b12, mixed mode)
> > > hon@ubuntu:/home/project/flowvisor$
> > >
> > >
> > > On Mon, Dec 10, 2012 at 3:27 PM, Humphrey Lee <iramani...@gmail.com>
> wrote:
> > >>
> > >> Hi Ali,
> > >>
> > >> Here is the log:
> > >> hon@ubuntu:/home/project/flowvisor$ make
> > >> ant
> > >> Unable to locate tools.jar. Expected to find it in
> > >> /usr/lib/jvm/java-6-openjdk-i386/lib/tools.jar
> > >> Buildfile: /home/project/flowvisor/build.xml
> > >>
> > >> init:
> > >>
> > >> compile:
> > >>     [javac] /home/project/flowvisor/build.xml:60: warning:
> > >> 'includeantruntime' was not set, defaulting to
> build.sysclasspath=last; set
> > >> to false for repeatable builds
> > >>
> > >> BUILD FAILED
> > >> /home/project/flowvisor/build.xml:60: Unable to find a javac compiler;
> > >> com.sun.tools.javac.Main is not on the classpath.
> > >> Perhaps JAVA_HOME does not point to the JDK.
> > >> It is currently set to "/usr/lib/jvm/java-6-openjdk-i386/jre"
> > >>
> > >> Total time: 0 seconds
> > >> make: *** [all] Error 1
> > >> hon@ubuntu:/home/project/flowvisor$
> > >>
> > >> I also run "apt-get install openjdk-6-jre" to update my jre and jdk,
> but I
> > >> still got the above errors.
> > >>
> > >> Thanks.
> > >> Humphrey
> > >>
> > >> On Mon, Dec 10, 2012 at 3:16 PM, Ali Al-Shabibi
> > >> <
_______________________________________________
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to