Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnsupportedOperationException with play 2.3.7, sbt-np 1.0.0-M5 and jdeb on windows 7 #499

Closed
m-sp opened this issue Feb 18, 2015 · 3 comments

Comments

@m-sp
Copy link

m-sp commented Feb 18, 2015

Hi,

I tried to generate a debian package (debian:packageBin) for my play application on windows 7 with the newest version of the native packager. Unfortunately it fails with and unsupportedoperationexception while creating the conffile and the controlfile.

i could also reproduce the exception with a rather simple project:
https://gist.github.com/m-sp/cfc12f9082cd006ad491

and the stacktrace:

error java.lang.UnsupportedOperationException
error java.lang.UnsupportedOperationException
[error] Total time: 2 s, completed 18.02.2015 15:38:02
[Debian Example] $ debian:packageBinlas deb
{invalid input}
[Debian Example] $ last debian:debianConffilesFile
java.lang.UnsupportedOperationException
at java.nio.file.Files.setPosixFilePermissions(Unknown Source)
at com.typesafe.sbt.packager.chmod$.apply(FileUtil.scala:21)
at com.typesafe.sbt.packager.debian.DebianPlugin$$anonfun$debianSettings$4.apply(DebianPlugin.scala:163)
at com.typesafe.sbt.packager.debian.DebianPlugin$$anonfun$debianSettings$4.apply(DebianPlugin.scala:154)
at scala.Function2$$anonfun$tupled$1.apply(Function2.scala:54)
at scala.Function2$$anonfun$tupled$1.apply(Function2.scala:53)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:235)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
error java.lang.UnsupportedOperationException

@muuki88
Copy link
Contributor

muuki88 commented Feb 18, 2015

Do you use the jdeb extension? Otherwise this is a known issue. Native Debian packaging on windows is not really supported.

@m-sp
Copy link
Author

m-sp commented Feb 18, 2015

Yes i am using the Jdeb extension. The problem seems to be in setting the permissions

@muuki88
Copy link
Contributor

muuki88 commented Feb 19, 2015

Ah, sorry. This is is also a known issue which will be fixed in play 2.4.x. There is already a pr for this. The problem is that the jdeb settings are overridden by play again as the native packager autoplugins aren't used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants