Visual Studio Code internet error - visual-studio-code

So yesterday I was installing extensions and then when opening my laptop today I wanted to explore some more and got a message saying that I had an error and check my logs and this is what [2018-06-07 10:51:07.049] [main] [info] update#setState idle
[2018-06-07 10:51:37.053] [main] [info] update#setState checking for updates
[2018-06-07 10:51:37.080] [main] [error] Error: net::ERR_INTERNET_DISCONNECTED
[2018-06-07 10:51:37.080] [main] [info] update#setState idle
How can I fix this ?

Okay I managed to fix it by doing the following command in my terminal (I'm using parrot security Os)
dpkg-reconfigure code

Related

sbt server fails to start throwing error 231

When I am trying to start sbt, it fails throwing an IO exception.
Version of SBT - 1.1.2
Version of Scala - 2.12.6
Error:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[info] Loading project definition from C:\Users\username\IdeaProjects\projectname\project
[info] Loading settings from build.sbt ...
[info] Set current project to example (in build file:/C:/Users/username/IdeaProjects/projectname/)
[error] server failed to start on local:sbt-server-ad238fc8ee352b69065c. java.io.IOException: Could not create lock for
\\.\pipe\sbt-server-ad238fc8ee352b69065c_lock, error 231
Analysing the source of the throw it seems error code 231 refers to Windows error:
ERROR_PIPE_BUSY
231 (0xE7)
All pipe instances are busy.
The pipe cannot be accessed because another process is using it, so try closing down IntelliJ and any other SBT server running, and try again later. Perhaps even reboot the machine, and then start a single system SBT server (not IntelliJ), and see if the issue persists.

SAP WEB IDE Error when building application

In SAP WEB IDE I'm building my project (Right-Clck + Build).
This was working correctly but now it's erroring with:
4​:43:07 PM (Build) Build started. 4:43:10 PM (DIBuild) Build of /rsa-complete-survey in progress 4:43:11 PM (DIBuild) [INFO] Retrieving source code
[INFO] Preparing node environment
[INFO] package.json not modified, skipping npm installation
[INFO] Using recently cached node_modules
[INFO] Node environment ready
4:43:15 PM (DIBuild) grunt-cli: The grunt command line interface (v1.2.0)
Fatal error: Unable to find local grunt.
If you're seeing this message, grunt hasn't been installed locally to
your project. For more information about installing and configuring grunt,
please see the Getting Started guide:
http://gruntjs.com/getting-started
[INFO] Build finished in 4 seconds
Any ideas?
Should to be a temporary problem. Others are reporting similar issues as well. To join the discussion, click here to get invited and visit the channel #sapwebide.

Can't load hawtio plugin

I have hawtio standalone application (hawtio-app-1.4.52.jar).
I wanted to deploy the simple plugin, but I wasn't successful at building it alone, so I downloaded the hawtio application from github and built the "simple plugin" without changing it. (I opened the whole project and used build artifact in IntelliJ idea.) - Building was without warning or errors and I got the .WAR file of this plugin.
I created "plugins" directory next to the hawtio.jar and put the war inside.
There is no new tab in hawtio or no other sign of this plugin running.
I can access plugin's folder on http://0.0.0.0:8090/simple-plugin-1.5-SNAPSHOT/ but it only shows folder structures and plain text of source files.
In this question is mentioned PluginServlet, but I have no idea, how to import it to the simple plugin.
Does anyone know, how to make plugin visible and usable?
Thanks.
When I run the hawtio jar in terminal, this shows up:
[main] INFO jetty - using temp directory for jetty: /Users/mcejka/.hawtio/tmp
[main] INFO jetty - Scanning for 3rd party plugins in directory: plugins
[main] INFO org.eclipse.jetty.webapp.StandardDescriptorProcessor - NO JSP Support for /simple-plugin-1.5-SNAPSHOT, did not find org.apache.jasper.servlet.JspServlet
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/mcejka/.hawtio/tmp/simple-plugin-1.5-SNAPSHOT.war/webapp/WEB-INF/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/mcejka/Downloads/hawtio-app-1.4.52.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
log4j:WARN No appenders could be found for logger (io.hawt.web.plugin.HawtioPlugin).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[main] INFO org.eclipse.jetty.webapp.WebAppContext - hawt.io simple plugin at http://0.0.0.0:8090/simple-plugin-1.5-SNAPSHOT
[main] INFO jetty - Added 3rd party plugin with context-path: /simple-plugin-1.5-SNAPSHOT
Added 3rd party plugin with context-path: /simple-plugin-1.5-SNAPSHOT
Embedded hawtio: You can use --help to show usage
Using options [
war=/private/var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T/hawtio-1582436603468747864.war
contextPath=/hawtio
port=8090
extraClassPath=file:/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/lib/tools.jar
plugins=plugins
jointServerThread=false
help=false]
About to start hawtio /private/var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T/hawtio-1582436603468747864.war
[main] INFO org.eclipse.jetty.server.Server - jetty-8.y.z-SNAPSHOT
[main] INFO org.eclipse.jetty.webapp.WebInfConfiguration - Extract jar:file:/private/var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T/hawtio-1582436603468747864.war!/ to /Users/mcejka/.hawtio/tmp/webapp
[main] INFO org.eclipse.jetty.webapp.StandardDescriptorProcessor - NO JSP Support for /hawtio, did not find org.apache.jasper.servlet.JspServlet
[main] INFO io.hawt.system.ConfigManager - Configuration will be discovered via system properties
[main] INFO io.hawt.jmx.JmxTreeWatcher - Welcome to hawtio 1.4.52 : http://hawt.io/ : Don't cha wish your console was hawt like me? ;-)
[main] INFO io.hawt.jmx.UploadManager - Using file upload directory: /var/folders/bm/gscmy_6d5f52xz038twpwymjfjz5kl/T//uploads
[main] INFO /hawtio - Loading Blueprint contexts [file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/classes/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-aether-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-core-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-git-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-ide-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-json-schema-mbean-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-kubernetes-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml, jar:file:/Users/mcejka/.hawtio/tmp/webapp/WEB-INF/lib/hawtio-local-jvm-mbean-1.4.52.jar!/OSGI-INF/blueprint/blueprint.xml]
[main] INFO io.hawt.git.GitFacade - hawtio using config directory: /Users/mcejka/.hawtio/config
[main] INFO io.hawt.git.GitFacade - Performing a pull in git repository /Users/mcejka/.hawtio/config on remote URL: https://github.com/hawtio/hawtio-config.git. Subsequent pull attempts will use debug logging
[main] INFO io.hawt.web.AuthenticationFilter - Starting hawtio authentication filter, JAAS authentication disabled
[main] INFO /hawtio - jolokia-agent: Using access restrictor classpath:/jolokia-access.xml
[main] INFO org.eclipse.jetty.webapp.WebAppContext - hawtio at http://0.0.0.0:8090/hawtio
[main] INFO org.eclipse.jetty.server.AbstractConnector - Started SelectChannelConnector#0.0.0.0:8090
hawtio: Don't cha wish your console was hawt like me!
=====================================================
http://localhost:8090/hawtio
[qtp1501587365-23] INFO io.hawt.web.keycloak.KeycloakServlet - Keycloak integration is disabled
Solved by properly renaming the plugin. It has to be "simple-plugin" instead of "simple-plugin-1.42" or anything else.

WSO2 ESB - Configuration to Develop Services with Developer Studio and Deploy and Debug them on Remote Server

I want to set up a development environment to develop, build and deploy WSO2 ESB Services. I would like to develop services using WSO2 Developer Studio and debug/deploy them on a remote server.
Here is my configuration:
WSO2 Developer Studio 3.7.1 on Windows 7
WSO2 ESB 3.8.1 on Centos 7
Debugging:
I configured the WSO2 Carbone remote server using Developer Studio Server Tab (OK) and then I tried to create a new remote launch configuration, but developer studio returned with the following exception:
Deploying:
I configured Maven to execute remote deploy, and it runs succesfully, but when I open ESB Console I cannot find any service deployed, I can only find in the wso2carbon.log server log the successful connection with login and password. The following is the maven execution:
[INFO] --- maven-car-deploy-plugin:1.0.10:deploy-car (default-deploy-car) # CappSample ---
[INFO] Deploying to Server...
[INFO] TSPath=c:/bin/wso2/wso2carbon.jks
[INFO] TSPWD=wso2carbon
[INFO] TSType=JKS
[INFO] Server URL=https://wso2-orchestrator.sem:9443
[INFO] UserName=admin
[INFO] Password=admin
[INFO] Operation=deploy
log4j:WARN No appenders could be found for logger (org.apache.axis2.description.AxisOperation).
log4j:WARN Please initialize the log4j system properly.
[INFO] Authentication to https://wso2-orchestrator.sem:9443 successful.
[INFO] Uploading target to https://wso2-orchestrator.sem:9443...
[INFO] Uploading target to https://wso2-orchestrator.sem:9443 completed successfully.
[INFO]
[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) # CappSample ---
[INFO] Skipping artifact deployment
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.856 s
[INFO] Finished at: 2015-02-24T17:21:36+01:00
[INFO] Final Memory: 24M/347M
[INFO] ------------------------------------------------------------------------
Any help or suggestion is appreciated.
Thank you.
The solution to remotely debug is to run the server in debug mode and from eclipse create a debug configuration to attach to a Remote Java process.
Deploy from Maven is still not working and waiting for a solution.

Why is UnknownHostException: downloads.typesafe.com when running activator ui?

I am getting the following exception after starting activator ui from command line.
Checking for a newer version of Activator (current version 1.2.2)...
... our current version 1.2.2 looks like the latest.
Found previous process id: 2988
FOUND REPO = activator-local # file:////C:/shakti/scala/typesafe-activator-1.2.2
/activator-1.2.2/repository
Play server process ID is 5712
[info] play - Application started (Prod)
[info] play - Listening for HTTP on /127.0.0.1:8888
[ERROR] [06/15/2014 05:46:13.851] [default-akka.actor.default-dispatcher-3] [ActorSystem(default)] Failed to download http://downloads.typesafe.com/typesafe-activator/index/v2/index-07064250cfd1cc2444f19c731541332ccf93bc13.zip: sbt.TranslatedIOException: Error opening http://downloads.typesafe.com/typesafe-activator/index/v2/index-07064250cfd1cc2444f19c731541332ccf93bc13.zip: java.net.UnknownHostException: downloads.typesafe.com
[INFO] [06/15/2014 05:46:13.860] [default-akka.actor.default-dispatcher-3] [akka://default/user/template-cache] Unable to check remote server for template updates.
[INFO] [06/15/2014 05:46:19.155] [default-akka.actor.default-dispatcher-2] [akka://default/user/home-socket-1] Firing up web socket
What could be the reason and how to fix it?
Seems it was an intermittent issue due to some network problem. It is working fine now.
I resolve this prolem using ./activator ui instead using activator ui on linux