[jitsi-dev] video bridge compile errors


#1

Hi, All:

I used svn to download the latest video bridge source and compiled (or tried to, really) like this:

mocet:jitsi-videobridge marca56$ ant run -Drun.arg.line"--secret=pyrrhic2389 --min-port=10000 --max-port=20000 --host=localhost --port=5275" -Drun-jvmarg.line="-Djava.library.path=/Users/marca56/jitsi-videobridge/lib"
Buildfile: /Users/marca56/jitsi-videobridge/build.xml

run:
     [java] Error: Could not find or load main class org.jitsi.videobridge.Main

BUILD FAILED
/Users/marca56/jitsi-videobridge/build.xml:50: Java returned: 1

Total time: 1 second
mocet:jitsi-videobridge marca56$

Not sure why ant complains because I'm in the video bridge directory :frowning:

By the way, I'm on Mountain Lion OS X on a Mac mini. This is the same machine hosting the OpenFire server.

Thanks.

marc.

···

__________________
+1-949-270-0935


#2

The command "ant run" that you've used runs the jitsi-videobridge application.

To compile the jitsi-videobridge project so that the application can
be run afterwards, invoke the command "ant compile".


#3

Hi, Lyubomir:

Thanks… when I changed to "compile", I got these errors:

mocet:jitsi-videobridge marca56$ ant compile -Drun.arg.line"--secret=pyrrhic2389 --min-port=10000 --max-port=20000 --host=localhost --port=5275" -Drun-jvmarg.line="-Djava.library.path=/Users/marca56/jitsi-videobridge/lib"
Buildfile: /Users/marca56/jitsi-videobridge/build.xml

compile:
    [mkdir] Created dir: /Users/marca56/jitsi-videobridge/classes
    [javac] /Users/marca56/jitsi-videobridge/build.xml:42: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 11 source files to /Users/marca56/jitsi-videobridge/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] /Users/marca56/jitsi-videobridge/src/org/jitsi/videobridge/ComponentImpl.java:646: error: incompatible types
    [javac] = bundle.adapt(BundleStartLevel.class);
    [javac] ^
    [javac] required: BundleStartLevel
    [javac] found: Object
    [javac] /Users/marca56/jitsi-videobridge/src/org/jitsi/videobridge/ComponentImplBundleActivator.java:39: error: type ServiceReference does not take parameters
    [javac] Collection<ServiceReference<Component>> serviceReferences
    [javac] ^
    [javac] /Users/marca56/jitsi-videobridge/src/org/jitsi/videobridge/ComponentImplBundleActivator.java:44: error: type ServiceReference does not take parameters
    [javac] for (ServiceReference<Component> serviceReference
    [javac] ^
    [javac] /Users/marca56/jitsi-videobridge/src/org/jitsi/videobridge/ComponentImplBundleActivator.java:70: error: type ServiceReference does not take parameters
    [javac] Collection<ServiceReference<Component>> serviceReferences
    [javac] ^
    [javac] /Users/marca56/jitsi-videobridge/src/org/jitsi/videobridge/ComponentImplBundleActivator.java:75: error: type ServiceReference does not take parameters
    [javac] for (ServiceReference<Component> serviceReference
    [javac] ^
    [javac] Note: /Users/marca56/jitsi-videobridge/src/org/jitsi/videobridge/ComponentImplBundleActivator.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 5 errors
    [javac] 1 warning

BUILD FAILED
/Users/marca56/jitsi-videobridge/build.xml:42: Compile failed; see the compiler error output for details.

Total time: 7 seconds
mocet:jitsi-videobridge marca56$

Thanks.

marc.

···

__________________
+1-949-270-0935

On Mar 19, 2013, at 11:15 AM, Lyubomir Marinov <lyubomir.marinov@jitsi.org> wrote:

The command "ant run" that you've used runs the jitsi-videobridge application.

To compile the jitsi-videobridge project so that the application can
be run afterwards, invoke the command "ant compile".


#4

Generally, the command line should be simply:

mocet:jitsi-videobridge marca56$ ant compile

Anyway, the compile errors that you've reported aren't because of the
command line. We'll have to look into why the compile Ant target has
started failing. We'll keep you posted.

In the meantime, the jitsi-videobridge project seems to compile fine
in Eclipse IDE by merely opening it so this is an alternative way to
get the jitsi-videobridge compiled without involving the compile Ant
task.
.

···

2013/3/19 Marc Abrams <marca56@gmail.com>:

mocet:jitsi-videobridge marca56$ ant compile
-Drun.arg.line"--secret=pyrrhic2389 --min-port=10000 --max-port=20000
--host=localhost --port=5275"
-Drun-jvmarg.line="-Djava.library.path=/Users/marca56/jitsi-videobridge/lib"
Buildfile: /Users/marca56/jitsi-videobridge/build.xml


#5

Hi, Lyubomir:

I did try just the ant compile command too and it ended with the same errors. I will try the Eclipse IDE method now and report back.

Thanks.

marc.

···

__________________
+1-949-270-0935

On Mar 19, 2013, at 12:17 PM, Lyubomir Marinov <lyubomir.marinov@jitsi.org> wrote:

2013/3/19 Marc Abrams <marca56@gmail.com>:

mocet:jitsi-videobridge marca56$ ant compile
-Drun.arg.line"--secret=pyrrhic2389 --min-port=10000 --max-port=20000
--host=localhost --port=5275"
-Drun-jvmarg.line="-Djava.library.path=/Users/marca56/jitsi-videobridge/lib"
Buildfile: /Users/marca56/jitsi-videobridge/build.xml

Generally, the command line should be simply:

mocet:jitsi-videobridge marca56$ ant compile

Anyway, the compile errors that you've reported aren't because of the
command line. We'll have to look into why the compile Ant target has
started failing. We'll keep you posted.

In the meantime, the jitsi-videobridge project seems to compile fine
in Eclipse IDE by merely opening it so this is an alternative way to
get the jitsi-videobridge compiled without involving the compile Ant
task.


#6

Hi,

I've encountered these build issues while working on Jitsi-Android. It was
because of JDK 7 and old osgi.core.jar. I don't know what OSGi lib is used
there, but probably it needs to be updated. That fixed the problem for me.
Google will probably lead you to the same answer (I found it there :slight_smile: ).

Hi, Lyubomir:

I did try just the ant compile command too and it ended with the same

errors. I will try the Eclipse IDE method now and report back.

Thanks.

marc.
__________________
+1-949-270-0935

mocet:jitsi-videobridge marca56$ ant compile
-Drun.arg.line"--secret=pyrrhic2389 --min-port=10000 --max-port=20000
--host=localhost --port=5275"

-Drun-jvmarg.line="-Djava.library.path=/Users/marca56/jitsi-videobridge/lib"

···

2013/3/19 Marc Abrams <marca56@gmail.com>

On Mar 19, 2013, at 12:17 PM, Lyubomir Marinov <lyubomir.marinov@jitsi.org> wrote:
2013/3/19 Marc Abrams <marca56@gmail.com>:
Buildfile: /Users/marca56/jitsi-videobridge/build.xml

Generally, the command line should be simply:

mocet:jitsi-videobridge marca56$ ant compile

Anyway, the compile errors that you've reported aren't because of the
command line. We'll have to look into why the compile Ant target has
started failing. We'll keep you posted.

In the meantime, the jitsi-videobridge project seems to compile fine
in Eclipse IDE by merely opening it so this is an alternative way to
get the jitsi-videobridge compiled without involving the compile Ant
task.

--
Regards,
Pawel


#7

Well, I did download Eclipse and ran into some different errors. But then I tried from the command line again and using the ant run command, I see this:

mocet:jitsi-videobridge marca56$ ant run -Drun.arg.line"--secret=pyrrhic2389 --min-port=10000 --max-port=20000 --host=localhost --port=5275" -Drun-jvmarg.line="-Djava.library.path=/Users/marca56/jitsi-videobridge/lib"
Buildfile: /Users/marca56/jitsi-videobridge/build.xml

run:
     [java] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
     [java] SLF4J: Defaulting to no-operation (NOP) logger implementation
     [java] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
     [java] Exception in thread "main" java.lang.NullPointerException
     [java] at java.util.Hashtable.put(Hashtable.java:542)
     [java] at org.jivesoftware.whack.ExternalComponentManager.setSecretKey(ExternalComponentManager.java:143)
     [java] at org.jitsi.videobridge.Main.main(Main.java:111)

BUILD FAILED
/Users/marca56/jitsi-videobridge/build.xml:50: Java returned: 1

Total time: 1 second

But using the ant compile command I see this:

mocet:jitsi-videobridge marca56$ ant compile -Drun.arg.line"--secret=pyrrhic2389 --min-port=10000 --max-port=20000 --host=localhost --port=5275" -Drun-jvmarg.line="-Djava.library.path=/Users/marca56/jitsi-videobridge/lib"
Buildfile: /Users/marca56/jitsi-videobridge/build.xml

compile:
    [javac] /Users/marca56/jitsi-videobridge/build.xml:42: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

BUILD SUCCESSFUL
Total time: 0 seconds
mocet:jitsi-videobridge marca56$

There is now an openfire directory but no plugin.

Any ideas?

marc.

···

__________________
+1-949-270-0935

On Mar 19, 2013, at 1:34 PM, Paweł Domas <paweldomas@gmail.com> wrote:

Hi,

I've encountered these build issues while working on Jitsi-Android. It was because of JDK 7 and old osgi.core.jar. I don't know what OSGi lib is used there, but probably it needs to be updated. That fixed the problem for me. Google will probably lead you to the same answer (I found it there :slight_smile: ).

2013/3/19 Marc Abrams <marca56@gmail.com>
>
> Hi, Lyubomir:
>
> I did try just the ant compile command too and it ended with the same errors. I will try the Eclipse IDE method now and report back.
>
> Thanks.
>
> marc.
> __________________
> +1-949-270-0935
>
>
>
> On Mar 19, 2013, at 12:17 PM, Lyubomir Marinov <lyubomir.marinov@jitsi.org> wrote:
>
> 2013/3/19 Marc Abrams <marca56@gmail.com>:
>
> mocet:jitsi-videobridge marca56$ ant compile
> -Drun.arg.line"--secret=pyrrhic2389 --min-port=10000 --max-port=20000
> --host=localhost --port=5275"
> -Drun-jvmarg.line="-Djava.library.path=/Users/marca56/jitsi-videobridge/lib"
> Buildfile: /Users/marca56/jitsi-videobridge/build.xml
>
>
> Generally, the command line should be simply:
>
> mocet:jitsi-videobridge marca56$ ant compile
>
> Anyway, the compile errors that you've reported aren't because of the
> command line. We'll have to look into why the compile Ant target has
> started failing. We'll keep you posted.
>
> In the meantime, the jitsi-videobridge project seems to compile fine
> in Eclipse IDE by merely opening it so this is an alternative way to
> get the jitsi-videobridge compiled without involving the compile Ant
> task.
>
>

--
Regards,
Pawel


#8

I should have posted the output of the Eclipse run command errors too:

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.
Exception in thread "main" java.lang.NullPointerException
  at java.util.Hashtable.put(Hashtable.java:542)
  at org.jivesoftware.whack.ExternalComponentManager.setSecretKey(ExternalComponentManager.java:143)
  at org.jitsi.videobridge.Main.main(Main.java:111)

Thanks

···

__________________
+1-949-270-0935

On Mar 19, 2013, at 1:46 PM, Marc Abrams <marca56@gmail.com> wrote:

Well, I did download Eclipse and ran into some different errors. But then I tried from the command line again and using the ant run command, I see this:

mocet:jitsi-videobridge marca56$ ant run -Drun.arg.line"--secret=pyrrhic2389 --min-port=10000 --max-port=20000 --host=localhost --port=5275" -Drun-jvmarg.line="-Djava.library.path=/Users/marca56/jitsi-videobridge/lib"
Buildfile: /Users/marca56/jitsi-videobridge/build.xml

run:
     [java] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
     [java] SLF4J: Defaulting to no-operation (NOP) logger implementation
     [java] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
     [java] Exception in thread "main" java.lang.NullPointerException
     [java] at java.util.Hashtable.put(Hashtable.java:542)
     [java] at org.jivesoftware.whack.ExternalComponentManager.setSecretKey(ExternalComponentManager.java:143)
     [java] at org.jitsi.videobridge.Main.main(Main.java:111)

BUILD FAILED
/Users/marca56/jitsi-videobridge/build.xml:50: Java returned: 1

Total time: 1 second

But using the ant compile command I see this:

mocet:jitsi-videobridge marca56$ ant compile -Drun.arg.line"--secret=pyrrhic2389 --min-port=10000 --max-port=20000 --host=localhost --port=5275" -Drun-jvmarg.line="-Djava.library.path=/Users/marca56/jitsi-videobridge/lib"
Buildfile: /Users/marca56/jitsi-videobridge/build.xml

compile:
    [javac] /Users/marca56/jitsi-videobridge/build.xml:42: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

BUILD SUCCESSFUL
Total time: 0 seconds
mocet:jitsi-videobridge marca56$

There is now an openfire directory but no plugin.

Any ideas?

marc.
__________________
+1-949-270-0935

On Mar 19, 2013, at 1:34 PM, Paweł Domas <paweldomas@gmail.com> wrote:

Hi,

I've encountered these build issues while working on Jitsi-Android. It was because of JDK 7 and old osgi.core.jar. I don't know what OSGi lib is used there, but probably it needs to be updated. That fixed the problem for me. Google will probably lead you to the same answer (I found it there :slight_smile: ).

2013/3/19 Marc Abrams <marca56@gmail.com>
>
> Hi, Lyubomir:
>
> I did try just the ant compile command too and it ended with the same errors. I will try the Eclipse IDE method now and report back.
>
> Thanks.
>
> marc.
> __________________
> +1-949-270-0935
>
>
>
> On Mar 19, 2013, at 12:17 PM, Lyubomir Marinov <lyubomir.marinov@jitsi.org> wrote:
>
> 2013/3/19 Marc Abrams <marca56@gmail.com>:
>
> mocet:jitsi-videobridge marca56$ ant compile
> -Drun.arg.line"--secret=pyrrhic2389 --min-port=10000 --max-port=20000
> --host=localhost --port=5275"
> -Drun-jvmarg.line="-Djava.library.path=/Users/marca56/jitsi-videobridge/lib"
> Buildfile: /Users/marca56/jitsi-videobridge/build.xml
>
>
> Generally, the command line should be simply:
>
> mocet:jitsi-videobridge marca56$ ant compile
>
> Anyway, the compile errors that you've reported aren't because of the
> command line. We'll have to look into why the compile Ant target has
> started failing. We'll keep you posted.
>
> In the meantime, the jitsi-videobridge project seems to compile fine
> in Eclipse IDE by merely opening it so this is an alternative way to
> get the jitsi-videobridge compiled without involving the compile Ant
> task.
>
>

--
Regards,
Pawel


#9

Well, there were multiple missing and/or incorrect characters in your
command line and java.library.path was not pointer to the right
location. You may want to try the following once you have checked out
the libjitsi project into /Users/marca56/libjitsi:

ant run -Drun.arg.line="--secret=pyrrhic2389 --min-port=10000
--max-port=20000 --host=localhost --port=5275"
-Drun.jvmarg.line="-Djava.library.path=/Users/marca56/libjitsi/lib/native/mac"

The command line will run the jitsi-videobridge project as an
application, not as an OpenFire plugin.

I strongly suggest that you wait for us to provide documentation on
the subject which we promised to do as soon as possible and in accord
with our priorities.
.

···

2013/3/19 Marc Abrams <marca56@gmail.com>:

ant run -Drun.arg.line"--secret=pyrrhic2389 --min-port=10000
--max-port=20000 --host=localhost --port=5275"
-Drun-jvmarg.line="-Djava.library.path=/Users/marca56/jitsi-videobridge/lib"


#10

Hi, Lyubomir:

I'm going to wait! This fun, but I don't want to distract you too much from finishing the implementation and debugging.

Thanks.

marc.

···

__________________
+1-949-270-0935

On Mar 19, 2013, at 2:12 PM, Lyubomir Marinov <lyubomir.marinov@jitsi.org> wrote:

2013/3/19 Marc Abrams <marca56@gmail.com>:

ant run -Drun.arg.line"--secret=pyrrhic2389 --min-port=10000
--max-port=20000 --host=localhost --port=5275"
-Drun-jvmarg.line="-Djava.library.path=/Users/marca56/jitsi-videobridge/lib"

Well, there were multiple missing and/or incorrect characters in your
command line and java.library.path was not pointer to the right
location. You may want to try the following once you have checked out
the libjitsi project into /Users/marca56/libjitsi:

ant run -Drun.arg.line="--secret=pyrrhic2389 --min-port=10000
--max-port=20000 --host=localhost --port=5275"
-Drun.jvmarg.line="-Djava.library.path=/Users/marca56/libjitsi/lib/native/mac"

The command line will run the jitsi-videobridge project as an
application, not as an OpenFire plugin.

I strongly suggest that you wait for us to provide documentation on
the subject which we promised to do as soon as possible and in accord
with our priorities.