Timeout resolving sbt-plugin - scala

I'm trying to run a simple play-scala example, but I've some problem launching activator because I have a lot of connection timeout. I've only created the application with activator and tried to launch it. No development or custom configuration. I'm using play 2.4.2.
It seems that many of the dependencies that it tries to resolve do not exist: if I try to open the url in browser I obtain only "The request path was not found".
Examples are the following:
https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.webjars/rjs/2.1.15/ivys/ivy.xml
https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-rjs/scala_2.10/sbt_0.13/1.0.7/ivys/ivy.xml
This behaviour wastes a lot of time without any value. Is it possible to avoid non-existing path or minimize connection timeout time?
Thanks,
Michele.

As suggested in the comment, please try the latest version of Play.
As of 2018, it's 2.6.16.

Related

Errors when trying to load addressables in WebGL

Using addressables and building for WEBGL in Unity 2019.2.18f, but getting errors no matter what I do when I try run a build.
I'm storing my build and the addressable files in the same bucket on Google Cloud. Remote path is set to the gs:// path for the files. I've also tried replacing GS with https://storage.googleapis.com/mybucketname.
When I open the index.html in its path on google cloud, it gives me a CORS error. I've tried adding a json file and setting it up using gsutil but gsutil gives me an error - the file does not exist. I don't really want to go down a rabbit hole with gsutil as I'm not even sure if CORS is the only issue
I have also opened the build in firefox and I don't have a CORS error but I do have another error,
Asset Bundle download is complete, but no data have been received
Exception encountered in operation Resource<IAssetBundleResource>(packedassets_assets_all_73fe17b324c832211bd83ddaec912952.bundle), status=Failed, result= : RemoteAssetBundleProvider unable to load from url gs://theURLofthebucket/WebGL/bundlename_73fe17b324c832211bd83ddaec912952.bundle, result='Unknown Error'.
I have even tried switching the build target to standalone, re-building the addressables for this target, uploading them for the new target, and building. I thought this might give me a hint, if it just WORKED for standalone, but it doesn't, I get this error:
Curl error 1: Protocol "gs" not supported or disabled in libcurl
(Filename: C:\buildslave\unity\build\Modules/UnityWebRequest/Implementations/TransportCurl.cpp Line: 799)
Exception encountered in operation Resource<IAssetBundleResource>(packedAssets_7b4d2d2ed91df92408ade3f19317f33f.bundle), status=Failed, result= : RemoteAssetBundleProvider unable to load from url gs://mybucketname/StandaloneWindows64/packedassetsassets_7b4d2d2ed91df92408ade3f19317f33f.bundle, result='Unknown Error'.
To load the addressables (which have ranged from a basic cube, a model from my project, and a scene), I've used both instantiate, which is obsolete, instantiateAsync, which I think may not work in Webgl although it was given as the example to use in a tutorial, and I've also tried loading a scene that was marked addressable, using
Addressables.LoadSceneAsync(address, LoadSceneMode.Additive).Completed += OnSceneLoaded
Is what I'm trying to do possible? Use webgl and hosted addressable assets?
What's not obsolete? I keep finding tutorials and questions but the fixes / code used just don't work. I think I've wasted a good bit of time trying different things that I'm not sure if they are even possible to get working.
I've tried version 1.10, 1.15.1, 1.16.1. I've scoured the forums. I tried asking on discord for one of the tutorials (badgerdox) but got no response.
Please any pointers would be great!
I'm really stuck, and willing to try anything (could asset bundles work instead?) but afraid of wasting any more time if it's a dead end as this is for work. Thanks for any help!
At the moment Addressables doesn't support "gs" protocol.
Here is the official answer from Unity
The short answer from Unity:
UnityWebRequest doesn't support "gs://", which means for now we do not. Long term we are going to write a new downloading & caching layer, but for now we have what we have.
A workaround could be to change "gs://" to "https://storage.googleapis.com/"
More detail you can read in this thread.

playframework 2.5.0 Template fail to compile (fresh one)

I would like to get started with play running play 2.5...
but even installing the template with activator "play-java" has an error.
Using unsupported version of Play: 2.5.0
I have downloaded the full activator package and the minimal.
Both fail on 2 machines(JDK 73).
NO clue how to catch up on this, perhaps some could help me out. I would appreciate it very much.
Bets regards
Using 'activator ui', causes the activator to cycle. The error message is "Getting 'Using unsupported version of Play: 2.5.0'". The issue tracking the problem is https://github.com/typesafehub/activator/issues/1102.
Using 'activator' without the ui argument is a work-around.
Change directories to the play-java directory and running ./activator without the ui argument. This brings up the sbt command line. Sbt commands help, about, tasks, update, compile, test, and run work. A web browser pointed at localhost:9000 will contain a text field with "You're using Play 2.5.0" as content.
The "run" command starts a Netty server. Application interaction is possible using localhost:9000 in a web browser.
As a workaround you can create a project without the UI by using something like
activator new my-app play-scala
Play framework requires java 8 since 2.4 version
https://www.playframework.com/documentation/2.4.x/Migration24#Java-8-support

Getting error "Timeouts can be caused by AngularJS services $http and $timeout which fail to complete quick enough."

I have wrote a function which technically and logically is correct and while running it runs perfectly locally. But on server I am getting the above error which I could not figure out. I am on protractor version 1.6.0 as same as server but still not able to figure out what causes this.
Scenario is like, I have created many it functions inside my spec.js. But when I ran my spec starting two it functions execute precisely, but on third it scripts fails with above error on server. But when I ran the same spec on my local system with similar settings and configuration, it runs smoothly. Please give me any suggestion if you have encounter the same issue earlier. You can also share the link of a blog if you have any. I am a newbie. Thanks in advance.
Actually , I did a mistake, when we use non angular locators we have to use findElementDriver instead of findElement. Locally, its runs whithout any issues but on server it gives the above error.

maven was6:installApp TransferFailed

I'm trying to deploy my ear to a remote Websphere 8.5 with maven plugin was6 via SOAP.
I set up the correct ear with correct host, node,cell,server, port etc.
But when I try to install app I got WASX7017E: ConnectException - Connection refused with a TransferFailedException
In logs, there is nothing in local and remote neither. As I see with netstat when I run the mvn installApp there are many connection trying on serverside whiches have status TIME_WAIT.
The plugin seems to be working with v8.5 cause other functions for example wsListApp work.
I tried to google it but with no results.
Does anyone get this error before me? Or has anyone idea what should I do?
Thank you.
was6-maven-plugin generates a temporal ant file under "target\was6-maven-plugin\" folder and then calls $WAS_HOME\bin\ws_ant.sh/bat utility using -f option with the previously generated ant file.
If you don't use the clean target, the files should continue there so you can use ws_ant to find the real error and find if there is an error on your configuration or in the plugin.
If you find an error in the plugin, please open an issue here: http://jira.codehaus.org/browse/MWAS
In this link you'll find all the options available in the wsInstallApp target:
http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/index.jsp?topic=%2Fcom.ibm.websphere.javadoc.doc%2Fweb%2Fapidocs%2Fcom%2Fibm%2Fwebsphere%2Fant%2Ftasks%2FInstallApplication.html
Regards,
Javier Murciego

How can I fix this Android SDK build problem in Eclipse?

I am using Eclipse for Android dev and everything was going fine until I tried to incorporate the facebook SDK. Now when I tried to back it out, there appears to be an artifact left behind that Eclipse tries to link the FB library?!?
[2010-11-17 18:50:22 - Library Project] Unable to set linked path var '_android_com.facebook.android' for library /Users/mobibob/Projects/workspace/facebook-android-sdk/facebook: Path variable name cannot contain character: ..
Any clue where this command / reference is in the build configuration? I have scoured it as best that I can, but I still get the same error.
Problem solved ... as it turns out, it was not so much the Facebook SDK but something that I did in the process of configuring the library reference. I am not entirely certain of how I misconfigured, but I was tweaking the various "path" settings such that, once when the automatic build tried to build my project, an import for android.R was added to my source module. This superseded com.myproject.R and would not resolve the values for resource references.
There were other problems with path order and setting that I modified during the troubleshooting that made it worse. Recreating the project without Facebook was the first step to discovery and fixing.
Either way, the lesson I learned is that the build error messages can misdirect one to the configuration when the problem is in the source code.