Compiling errors MadSonic 5.0-Current

Need help? Post your questions here.
e1z0
Contributor
Contributor
Posts: 11
Joined: 05 Feb 2014, 23:33
Has thanked: 1 time
Been thanked: 4 times

Compiling errors MadSonic 5.0-Current

Unread post by e1z0 »

Hello, I'm trying to compile madsonic under Windows 7-x64 using JDK 1.7 with maven2 and getting these errors. I also tried the same under debian GNU/Linux 6 using java 1.6 but got the same results as shown below.
How can i find a solution for such problems ?

Code: Select all

e:\projects\madsonic>java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)

e:\projects\madsonic>mvn compiler:compile
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Madsonic
[INFO] Madsonic Main
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea
ded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Madsonic 5.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-cli) @ madsonic ---
[INFO] No sources to compile
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Madsonic Main 5.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-cli) @ madsonic-main ---

[INFO] Compiling 302 source files to E:\projects\madsonic\madsonic-main\target\c
lasses
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[48,23] cannot find symbol
symbol  : class StandardCharsets
location: package java.nio.charset
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[49,20] package java.nio.file does not exist
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[50,20] package java.nio.file does not exist
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[51,20] package java.nio.file does not exist
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\UPnPService.java:[24,44] cannot find symbol
symbol  : class FolderBasedContentDirectory
location: package net.sourceforge.subsonic.service.upnp
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\UPnPService.java:[57,12] cannot find symbol
symbol  : class FolderBasedContentDirectory
location: class net.sourceforge.subsonic.service.UPnPService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\UPnPService.java:[177,47] cannot find symbol
symbol  : class FolderBasedContentDirectory
location: class net.sourceforge.subsonic.service.UPnPService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[1080,9] cannot find symbol
symbol  : class Path
location: class net.sourceforge.subsonic.service.MediaFileService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[1080,21] cannot find symbol
symbol  : variable Paths
location: class net.sourceforge.subsonic.service.MediaFileService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[1085,38] cannot find symbol
symbol  : variable StandardCharsets
location: class net.sourceforge.subsonic.service.MediaFileService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[1085,13] cannot find symbol
symbol  : variable Files
location: class net.sourceforge.subsonic.service.MediaFileService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[1093,39] cannot find symbol
symbol  : variable StandardCharsets
location: class net.sourceforge.subsonic.service.MediaFileService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[1093,14] cannot find symbol
symbol  : variable Files
location: class net.sourceforge.subsonic.service.MediaFileService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\UPnPService.java:[128,21] cannot find symbol
symbol  : class FolderBasedContentDirectory
location: class net.sourceforge.subsonic.service.UPnPService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\UPnPService.java:[128,116] cannot find symbol
symbol  : class FolderBasedContentDirectory
location: class net.sourceforge.subsonic.service.UPnPService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\UPnPService.java:[129,69] cannot find symbol
symbol  : class FolderBasedContentDirectory
location: class net.sourceforge.subsonic.service.UPnPService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\UPnPService.java:[132,22] cannot find symbol
symbol: class FolderBasedContentDirectory
            protected FolderBasedContentDirectory createServiceInstance() throws
 Exception {
[INFO] 17 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Madsonic .......................................... SUCCESS [  0.476 s]
[INFO] Madsonic Main ..................................... FAILURE [  4.130 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.795 s
[INFO] Finished at: 2014-03-11T17:51:05+02:00
[INFO] Final Memory: 13M/151M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
5.1:compile (default-cli) on project madsonic-main: Compilation failure: Compila
tion failure:
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[48,23] cannot find symbol
[ERROR] symbol  : class StandardCharsets
[ERROR] location: package java.nio.charset
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[49,20] package java.nio.file does not exist
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[50,20] package java.nio.file does not exist
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[51,20] package java.nio.file does not exist
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\UPnPService.java:[24,44] cannot find symbol
[ERROR] symbol  : class FolderBasedContentDirectory
[ERROR] location: package net.sourceforge.subsonic.service.upnp
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\UPnPService.java:[57,12] cannot find symbol
[ERROR] symbol  : class FolderBasedContentDirectory
[ERROR] location: class net.sourceforge.subsonic.service.UPnPService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\UPnPService.java:[177,47] cannot find symbol
[ERROR] symbol  : class FolderBasedContentDirectory
[ERROR] location: class net.sourceforge.subsonic.service.UPnPService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[1080,9] cannot find symbol
[ERROR] symbol  : class Path
[ERROR] location: class net.sourceforge.subsonic.service.MediaFileService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[1080,21] cannot find symbol
[ERROR] symbol  : variable Paths
[ERROR] location: class net.sourceforge.subsonic.service.MediaFileService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[1085,38] cannot find symbol
[ERROR] symbol  : variable StandardCharsets
[ERROR] location: class net.sourceforge.subsonic.service.MediaFileService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[1085,13] cannot find symbol
[ERROR] symbol  : variable Files
[ERROR] location: class net.sourceforge.subsonic.service.MediaFileService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[1093,39] cannot find symbol
[ERROR] symbol  : variable StandardCharsets
[ERROR] location: class net.sourceforge.subsonic.service.MediaFileService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\MediaFileService.java:[1093,14] cannot find symbol
[ERROR] symbol  : variable Files
[ERROR] location: class net.sourceforge.subsonic.service.MediaFileService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\UPnPService.java:[128,21] cannot find symbol
[ERROR] symbol  : class FolderBasedContentDirectory
[ERROR] location: class net.sourceforge.subsonic.service.UPnPService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\UPnPService.java:[128,116] cannot find symbol
[ERROR] symbol  : class FolderBasedContentDirectory
[ERROR] location: class net.sourceforge.subsonic.service.UPnPService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\UPnPService.java:[129,69] cannot find symbol
[ERROR] symbol  : class FolderBasedContentDirectory
[ERROR] location: class net.sourceforge.subsonic.service.UPnPService
[ERROR] E:\projects\madsonic\madsonic-main\src\main\java\net\sourceforge\subsoni
c\service\UPnPService.java:[132,22] cannot find symbol
[ERROR] symbol: class FolderBasedContentDirectory
[ERROR] protected FolderBasedContentDirectory createServiceInstance() throws Exc
eption {
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :madsonic-main

User avatar
Madsonic
Administrator
Administrator
Posts: 974
Joined: 07 Dec 2012, 03:58
Answers: 4
Has thanked: 1176 times
Been thanked: 460 times

Re: Compiling errors MadSonic 5.0-Current

Unread post by Madsonic »

hi there,

try this instead:

Code: Select all

mvn clean install -P full

e1z0
Contributor
Contributor
Posts: 11
Joined: 05 Feb 2014, 23:33
Has thanked: 1 time
Been thanked: 4 times

Re: Compiling errors MadSonic 5.0-Current

Unread post by e1z0 »

Problem have been solved by downloading FolderBasedContentDirectory.java and SubsonicContentDirectory.java from original subsonic. and putting them in upnp directory. Now everything seems to be fine! :-)
These users thanked the author e1z0 for the post:
Madsonic
Rating: 7.69%

User avatar
Madsonic
Administrator
Administrator
Posts: 974
Joined: 07 Dec 2012, 03:58
Answers: 4
Has thanked: 1176 times
Been thanked: 460 times

Re: Compiling errors MadSonic 5.0-Current

Unread post by Madsonic »

e1z0 wrote:Problem have been solved by downloading FolderBasedContentDirectory.java and SubsonicContentDirectory.java from original subsonic. and putting them in upnp directory. Now everything seems to be fine! :-)
thanks for the note!
checked repository and checked-in the missing classes.

https://github.com/MadMarty/madsonic-se ... fe6528ecdf

best regards

e1z0
Contributor
Contributor
Posts: 11
Joined: 05 Feb 2014, 23:33
Has thanked: 1 time
Been thanked: 4 times

Re: Compiling errors MadSonic 5.0-Current

Unread post by e1z0 »

After successfull recompilation, the following errors accours then parsing media tags

Code: Select all

[2014-03-11 22:41:05,775] WARN JaudiotaggerParser - Error when parsing tags in /home/******/music-partition/artist - title.mp3 null
java.lang.NullPointerException
        at net.sourceforge.subsonic.service.metadata.JaudiotaggerParser.getRawMetaData(JaudiotaggerParser.java:107)
        at net.sourceforge.subsonic.service.metadata.MetaDataParser.getMetaData(MetaDataParser.java:48)
        at net.sourceforge.subsonic.ajax.NowPlayingService.convert(NowPlayingService.java:125)
        at net.sourceforge.subsonic.ajax.NowPlayingService.getNowPlayingForCurrentPlayer(NowPlayingService.java:72)
        at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.directwebremoting.impl.CreatorModule$1.doFilter(CreatorModule.java:230)
        at org.directwebremoting.impl.CreatorModule.executeMethod(CreatorModule.java:242)
        at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:358)
        at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:311)
        at org.directwebremoting.dwrp.BaseCallHandler.handle(BaseCallHandler.java:105)
        at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:126)
        at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:144)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
        at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
        at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
        at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
        at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
        at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1484)
        at net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:43)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1484)
        at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1484)
        at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:54)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
        at org.eclipse.jetty.server.Server.handle(Server.java:370)
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
        at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
        at java.lang.Thread.run(Thread.java:662)
But i see the tags as usual... Is this critical or i did something wrong with the source code ? The log file becomes very huge, in a few minutes i got around 13MB of file size. Can i avoid it somehow or set debug level to ERROR ?

e1z0
Contributor
Contributor
Posts: 11
Joined: 05 Feb 2014, 23:33
Has thanked: 1 time
Been thanked: 4 times

Re: Compiling errors MadSonic 5.0-Current

Unread post by e1z0 »

Situation have been solved by implementing Integer checking in file:

madsonic-main\src\main\java\net\sourceforge\subsonic\service\metadata\JaudiotaggerParser.java:106

Code: Select all

				if  (StringUtils.isNumeric(getTagField(tag, FieldKey.YEAR))) {
                int getYear = parseYear(getTagField(tag, FieldKey.YEAR));
                if (getYear > 1911) {
	                metaData.setYear(getYear);
                }
				}
and 396 line and after it should look like that:

Code: Select all

            if (metaData.getYear() == null) {
                tag.deleteField(FieldKey.YEAR);
            } else {
                tag.setField(FieldKey.YEAR, String.valueOf(metaData.getYear()));
            }
These users thanked the author e1z0 for the post:
Madsonic
Rating: 7.69%

Post Reply