WebStorm 6.0 on MacOS 10.8.4 installation - webstorm
I'm trying to upgrade WebStorm from 5.0.4 to 6.0.2.
First I deleted WebStorm 5 and deleted all related folders from users/user/Library.
After that I installed 6.0.2 (http://www.jetbrains.com/webstorm/download/index.html) an ran it as trial. It runs, I can see the sign "WebStorm" in the top left corner next to the Apple logo but that's it. No panels, no windows... nothing.
log:
2013-06-05 19:56:14,283 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2013-06-05 19:56:14,292 [ 9] INFO - #com.intellij.idea.Main - IDE: JetBrains WebStorm (build #WS-129.660, 04 Jun 2013 00:00)
2013-06-05 19:56:14,292 [ 9] INFO - #com.intellij.idea.Main - OS: Mac OS X (10.8.4)
2013-06-05 19:56:14,292 [ 9] INFO - #com.intellij.idea.Main - JRE: 1.6.0_45-b06-451-11M4406 (Apple Inc.)
2013-06-05 19:56:14,292 [ 9] INFO - #com.intellij.idea.Main - JVM: 20.45-b01-451 (Apple Inc.)
2013-06-05 19:56:14,298 [ 15] INFO - #com.intellij.idea.Main - JVM Args: -Dfile.encoding=UTF-8 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Xverify:none -Xbootclasspath/a:../lib/boot.jar -Xms128m -Xmx750m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=96m -XX:+UseCodeCacheFlushing -XX:+UseCompressedOops -Didea.platform.prefix=WebStorm -Didea.paths.selector=WebStorm6 -Dsun.java2d.noddraw=true -Didea.max.intellisense.filesize=2500 -Didea.no.jre.check=true -Didea.dynamic.classpath=false -Dnative.mac.file.chooser.enabled=true -Didea.jars.nocopy=true -Dsun.java2d.d3d=false -Dapple.awt.fullscreencapturealldisplays=false -Dapple.laf.useScreenMenuBar=true -Djava.endorsed.dirs= -Dswing.bufferPerWindow=false -Didea.fatal.error.notification=disabled -Didea.cycle.buffer.size=1024 -Dide.mac.show.native.help=false -Didea.popup.weight=heavy -Dapple.awt.graphics.UseQuartz=true -Dsun.java2d.pmoffscreen=false -Didea.no.launcher=false -DCVS_PASSFILE=~/.cvspass -Didea.use.default.antialiasing.in.editor=false -Dcom.apple.mrj.application.live-resize=false -Didea.smooth.progress=false
2013-06-05 19:56:14,311 [ 28] INFO - #com.intellij.idea.Main - JNA library loaded (64-bit) in 13 ms
2013-06-05 19:56:14,364 [ 81] INFO - #com.intellij.idea.Main - Snappy library loaded (1.0.4) in 53 ms
2013-06-05 19:56:17,503 [ 3220] ERROR - llij.ide.plugins.PluginManager - null
java.lang.NullPointerException
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:699)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:398)
at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1460)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1435)
at com.intellij.ide.a.i.l$0.run(l$0.java:103)
at com.intellij.ide.a.i.l.a(l.java:109)
at com.intellij.ide.a.e.y.a(y.java:282)
at com.intellij.ide.a.e.y$3.a(y$3.java:401)
at com.intellij.ide.a.i.n.b(n.java:112)
at com.intellij.ide.a.i.n.access$200(n.java:16)
at com.intellij.ide.a.i.n$3.actionPerformed(n$3.java:67)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6382)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6147)
at java.awt.Container.processEvent(Container.java:2083)
at java.awt.Component.dispatchEventImpl(Component.java:4744)
at java.awt.Container.dispatchEventImpl(Container.java:2141)
at java.awt.Component.dispatchEvent(Component.java:4572)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
at java.awt.Container.dispatchEventImpl(Container.java:2127)
at java.awt.Window.dispatchEventImpl(Window.java:2489)
at java.awt.Component.dispatchEvent(Component.java:4572)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:710)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:669)
at java.awt.EventQueue$2.run(EventQueue.java:667)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:683)
at java.awt.EventQueue$3.run(EventQueue.java:681)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:680)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2013-06-05 19:56:17,506 [ 3223] ERROR - llij.ide.plugins.PluginManager - JetBrains WebStorm 6.0.2 Build #WS-129.660
2013-06-05 19:56:17,506 [ 3223] ERROR - llij.ide.plugins.PluginManager - JDK: 1.6.0_45
2013-06-05 19:56:17,506 [ 3223] ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) 64-Bit Server VM
2013-06-05 19:56:17,506 [ 3223] ERROR - llij.ide.plugins.PluginManager - Vendor: Apple Inc.
2013-06-05 19:56:17,506 [ 3223] ERROR - llij.ide.plugins.PluginManager - OS: Mac OS X
This problem is fixed in WebStorm 6.0.2a (build 129.664), which is now available for download at http://www.jetbrains.com/webstorm/download/
Sorry for the problems.
Related
Installing dependencies with requirements.txt by using Pip fails when deploying django app to elastic beanstalk
The app will not deploy because it fails to install Django after successfully installing other packages. Anyone know why this could be? requirements.txt: asgiref==3.5.2 attr==0.3.1 backports.zoneinfo==0.2.1 certifi==2022.6.15 charset-normalizer==2.0.12 Django==4.0.5 django-cors-headers==3.13.0 djangorestframework==3.13.1 idna==3.3 mysqlclient==2.1.0 numpy==1.22.4 python-dotenv==0.20.0 pytz==2022.1 requests==2.28.0 sqlparse==0.4.2 tzdata==2022.1 urllib3==1.26.9 Logs: 2022/06/17 02:47:39.485957 [INFO] Installing dependencies with requirements.txt by using Pip 2022/06/17 02:47:39.485969 [INFO] Running command /bin/sh -c /var/app/venv/staging-LQM1lest/bin/pip install -r requirements.txt 2022/06/17 02:47:41.833832 [INFO] Collecting asgiref==3.5.2 Using cached asgiref-3.5.2-py3-none-any.whl (22 kB) Collecting attr==0.3.1 Using cached attr-0.3.1.tar.gz (1.7 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting backports.zoneinfo==0.2.1 Using cached backports.zoneinfo-0.2.1-cp37-cp37m-manylinux1_x86_64.whl (70 kB) Collecting certifi==2022.6.15 Using cached certifi-2022.6.15-py3-none-any.whl (160 kB) Collecting charset-normalizer==2.0.12 Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB) 2022/06/17 02:47:41.833879 [INFO] ERROR: Could not find a version that satisfies the requirement Django==4.0.5 (from versions: 1.1.3, 1.1.4, 1.2, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.3, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.4, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.4.8, 1.4.9, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 1.4.14, 1.4.15, 1.4.16, 1.4.17, 1.4.18, 1.4.19, 1.4.20, 1.4.21, 1.4.22, 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9, 1.5.10, 1.5.11, 1.5.12, 1.6, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.8, 1.6.9, 1.6.10, 1.6.11, 1.7, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.7, 1.7.8, 1.7.9, 1.7.10, 1.7.11, 1.8a1, 1.8b1, 1.8b2, 1.8rc1, 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.8.9, 1.8.10, 1.8.11, 1.8.12, 1.8.13, 1.8.14, 1.8.15, 1.8.16, 1.8.17, 1.8.18, 1.8.19, 1.9a1, 1.9b1, 1.9rc1, 1.9rc2, 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.9.5, 1.9.6, 1.9.7, 1.9.8, 1.9.9, 1.9.10, 1.9.11, 1.9.12, 1.9.13, 1.10a1, 1.10b1, 1.10rc1, 1.10, 1.10.1, 1.10.2, 1.10.3, 1.10.4, 1.10.5, 1.10.6, 1.10.7, 1.10.8, 1.11a1, 1.11b1, 1.11rc1, 1.11, 1.11.1, 1.11.2, 1.11.3, 1.11.4, 1.11.5, 1.11.6, 1.11.7, 1.11.8, 1.11.9, 1.11.10, 1.11.11, 1.11.12, 1.11.13, 1.11.14, 1.11.15, 1.11.16, 1.11.17, 1.11.18, 1.11.20, 1.11.21, 1.11.22, 1.11.23, 1.11.24, 1.11.25, 1.11.26, 1.11.27, 1.11.28, 1.11.29, 2.0a1, 2.0b1, 2.0rc1, 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.0.10, 2.0.12, 2.0.13, 2.1a1, 2.1b1, 2.1rc1, 2.1, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.7, 2.1.8, 2.1.9, 2.1.10, 2.1.11, 2.1.12, 2.1.13, 2.1.14, 2.1.15, 2.2a1, 2.2b1, 2.2rc1, 2.2, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.2.6, 2.2.7, 2.2.8, 2.2.9, 2.2.10, 2.2.11, 2.2.12, 2.2.13, 2.2.14, 2.2.15, 2.2.16, 2.2.17, 2.2.18, 2.2.19, 2.2.20, 2.2.21, 2.2.22, 2.2.23, 2.2.24, 2.2.25, 2.2.26, 2.2.27, 2.2.28, 3.0a1, 3.0b1, 3.0rc1, 3.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.10, 3.0.11, 3.0.12, 3.0.13, 3.0.14, 3.1a1, 3.1b1, 3.1rc1, 3.1, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.14, 3.2a1, 3.2b1, 3.2rc1, 3.2, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9, 3.2.10, 3.2.11, 3.2.12, 3.2.13) ERROR: No matching distribution found for Django==4.0.5 WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available.
Looks like I can't read. Django 4.0.5 requires python version >= 3.8
Salt states. If variables have some word in stdout
There is a web page with a large piece of text on it. I want to configure the state to perform a certain action if curl returns an error. If the variable doesn't contain 'StatusDescription : OK' How can I set up a check for a piece of text that is inside a variable {% set seqstat = salt['cmd.run']('powershell.exe curl http://127.0.0.1:5001 -UseBasicParsing') %} {% if seqstat is sameas '*StatusDescription : OK*' %} module_run: cmd.run: - name: 'powershell.exe WRITE-HOST have no Error' {% else %} module_run1: cmd.run: - name: 'powershell.exe WRITE-HOST have Error' {%- endif -%} Salt Version: Salt: 3002.1 Dependency Versions: cffi: 1.12.2 cherrypy: unknown dateutil: 2.7.3 docker-py: 3.4.1 gitdb: 2.0.5 gitpython: 2.1.11 Jinja2: 2.10 libgit2: 0.27.7 M2Crypto: Not Installed Mako: 1.0.7 msgpack-pure: Not Installed msgpack-python: 0.5.6 mysql-python: 1.3.10 pycparser: 2.19 pycrypto: 2.6.1 pycryptodome: 3.6.1 pygit2: 0.27.4 Python: 3.7.3 (default, Jul 25 2020, 13:03:44) python-gnupg: 0.4.4 PyYAML: 3.13 PyZMQ: 17.1.2 smmap: 2.0.5 timelib: Not Installed Tornado: 4.5.3 ZMQ: 4.3.1 System Versions: dist: debian 10 buster locale: UTF-8 machine: x86_64 release: 4.19.0-6-amd64 system: Linux version: Debian GNU/Linux 10 buster
I want to configure the state to perform a certain action if curl returns an error. There is a Salt state called http which can query a URL and return the status. Using this (instead of curl) we can check for the status code(s) (200, 201, etc.), as well as matching text. Then we can use requisites to run subsequent states depending on the success/failure of the http.query. Example: I have added a check for status code of 200, you can omit - status: 200 if you don't care about the status code. check-application: http.query: - name: http://127.0.0.1:5001 - status: 200 - match: 'StatusDescription : OK' app-running: cmd.run: - name: 'powershell.exe WRITE-HOST have no Error' - require: - http: check-application app-not-running: cmd.run: - name: 'powershell.exe WRITE-HOST have Error' - onfail: - http: check-application
Citrus rest client-server test fail with mvn clean verify
[enter image description here][1]I have created the following citrus test cases to test a basic connection between Rest client and server: #Test #CitrusTest fun httpActionTest() { variable("username", "user") variable("password","password") http().client("httpClient") .send() .post("/api/authenticate") .messageType(MessageType.JSON) .contentType("application/json") .payload("{ \"username\": \"\${username}\", \"password\": \"\${password}\"}"); http().client("httpClient") .receive() .response(HttpStatus.OK) .validate("$.token","asasasasas") } #CitrusTest fun httpServerActionTest() { http().server("httpServer") .receive() .post("/api/authenticate") .payload("{ \"username\": \"\${username}\", \"password\": \"\${password}\"}") .contentType("application/json") .accept("application/json") .extractFromPayload("username", "username") .extractFromPayload("password", "password") .validate("$.username", "user") .validate("$.password","pass") http().server("httpServer") .send() .response(HttpStatus.OK) .payload("{\"token\": \"lsdkfjkh8sdfg98zsd\"}") .version("HTTP/1.1") .contentType("application/json") } I have defined the server and client endpoints in citrux-context.xml as follows: <citrus-http:client id="httpClient" request-url="http://localhost:8080" request-method="GET" content-type="application/json" charset="UTF-8" timeout="60000"/> <citrus-http:server id="httpServer" port="8080" auto-start="true" resource-base="src/test/resources"/> While executing via IntelliJ, following logs are observed: INFO: Loading XML bean definitions from URL [file:/home/jass/intersales/jk-magento/magento2-auth-service/target/test-classes/citrus-context.xml] [main] INFO org.eclipse.jetty.util.log - Logging initialized #9851ms to org.eclipse.jetty.util.log.Slf4jLog [main] INFO org.eclipse.jetty.server.Server - jetty-9.4.6.v20170531 [main] INFO org.eclipse.jetty.server.handler.ContextHandler.ROOT - Initializing Spring FrameworkServlet 'httpServer-servlet' Oct 23, 2017 8:49:45 AM com.consol.citrus.http.servlet.CitrusDispatcherServlet initServletBean INFO: FrameworkServlet 'httpServer-servlet': initialization started Oct 23, 2017 8:49:45 AM org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh INFO: Refreshing WebApplicationContext for namespace 'httpServer-servlet-servlet': startup date [Mon Oct 23 08:49:45 CEST 2017]; root of context hierarchy Oct 23, 2017 8:49:45 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [com/consol/citrus/http/citrus-servlet-context.xml] Oct 23, 2017 8:49:46 AM org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping register ... INFO: Looking for #ControllerAdvice: WebApplicationContext for namespace 'httpServer-servlet-servlet': startup date [Mon Oct 23 08:49:45 CEST 2017]; root of context hierarchy Oct 23, 2017 8:49:47 AM com.consol.citrus.http.servlet.CitrusDispatcherServlet initServletBean INFO: FrameworkServlet 'httpServer-servlet': initialization completed in 1570 ms [main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler#1bb1fde8{/,file:///home/jass/intersales/jk-magento/magento2-auth-service/src/test/resources/,AVAILABLE} [main] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector#1286528d{HTTP/1.1,[http/1.1]}{0.0.0.0:8080} [main] INFO org.eclipse.jetty.server.Server - Started #12166ms [main] INFO com.consol.citrus.http.server.HttpServer - Started server: httpServer [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - ------------------------------------------------------------------------ [main] INFO com.consol.citrus.Citrus - .__ __ [main] INFO com.consol.citrus.Citrus - ____ |__|/ |________ __ __ ______ [main] INFO com.consol.citrus.Citrus - _/ ___\| \ __\_ __ \ | \/ ___/ [main] INFO com.consol.citrus.Citrus - \ \___| || | | | \/ | /\___ \ [main] INFO com.consol.citrus.Citrus - \___ >__||__| |__| |____//____ > [main] INFO com.consol.citrus.Citrus - \/ \/ [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - C I T R U S T E S T S 2.7.2 [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - ------------------------------------------------------------------------ [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - BEFORE TEST SUITE: SUCCESS [main] INFO com.consol.citrus.Citrus - ------------------------------------------------------------------------ [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.actions.EchoAction - Today is: 23.10.2017 [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - TEST SUCCESS VerticleCitrusTest.echoToday (de.intersales.qbus2) [main] INFO com.consol.citrus.Citrus - ------------------------------------------------------------------------ [main] INFO com.consol.citrus.Citrus - [qtp191568263-12] INFO com.consol.citrus.channel.ChannelSyncProducer - Message was sent to channel: 'httpServer.inbound' [qtp191568263-12] WARN com.consol.citrus.channel.ChannelEndpointAdapter - Reply timed out after 1000ms. Did not receive reply message on reply channel [main] INFO com.consol.citrus.http.client.HttpClient - HTTP message was sent to endpoint: 'http://localhost:8080/magento2/authenticate' [main] INFO com.consol.citrus.validation.xml.DomXmlMessageValidator - XML message validation successful: All values OK [main] INFO com.consol.citrus.validation.DefaultMessageHeaderValidator - Message header validation successful: All values OK [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - TEST SUCCESS VerticleCitrusTest.httpActionTest (de.intersales.qbus2) [main] INFO com.consol.citrus.Citrus - ------------------------------------------------------------------------ [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - ------------------------------------------------------------------------ [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - AFTER TEST SUITE: SUCCESS [main] INFO com.consol.citrus.Citrus - ------------------------------------------------------------------------ [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - ------------------------------------------------------------------------ [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - CITRUS TEST RESULTS [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - VerticleCitrusTest.echoToday ................................... SUCCESS [main] INFO com.consol.citrus.Citrus - VerticleCitrusTest.httpActionTest .............................. SUCCESS [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - TOTAL: 2 [main] INFO com.consol.citrus.Citrus - FAILED: 0 (0.0%) [main] INFO com.consol.citrus.Citrus - SUCCESS: 2 (100.0%) [main] INFO com.consol.citrus.Citrus - [main] INFO com.consol.citrus.Citrus - ------------------------------------------------------------------------ [main] INFO com.consol.citrus.report.HtmlReporter - Generated HTML test report But getting an error when executing via mvn clean verify with the following error: [main] ERROR com.consol.citrus.Citrus - TEST FAILED VerticleCitrusTest.httpActionTest <de.intersales.qbus2> Nested exception is: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'httpClient' available at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687) ... ` Any suggestions or help is greatly appreciated. EDITED The following is my project structure [Placement of resources] [1]: https://i.stack.imgur.com/aVabX.png
I see multiple issues in your code and setup. First of all the httpServerActionTest() is missing the #Test annotation. If not put on class level this annotation needs to be repeated on each method in your test class. Secondly the complete test structure does not make much sense to me. In httpActionTest() test you send a client request to the server while in httpServerActionTest() you receive that very same request as a server and validate its contents with Citrus. Your test is both client and server at the same time. Feels wrong to me! In particular this test setup will never work as Http is a synchronous protocol by nature and httpActionTest() is not able to succeed without httpServerActionTest() performing. You will get timeout exceptions on client side then. This will only work in case both methods are executed in parallel to each other. Regarding the Maven failure: citrux-context.xml is misspelled (citrux vs. citrus). Also it seems to me that the file is not properly added to the Maven project as a resource. Did you keep the default Maven directory layout? Once again the complete test setup does not clarify its purpose to me.
Stack trace: ExitCodeException exitCode=1 when starting MapReduce job on Bigtable
We are using Google Cloud Bigtable for our Big Data. When I'm running MapReduce job I assembly a jar and run it and now I'm getting this error: Application application_1451577928704_0050 failed 2 times due to AM Container for appattempt_1451577928704_0050_000002 exited with exitCode: 1 For more detailed output, check application tracking page:http://censored:8088/cluster/app/application_1451577928704_0050Then, click on links to logs of each attempt. Diagnostics: Exception from container-launch. Container id: container_e02_1451577928704_0050_02_000001 Exit code: 1 Stack trace: ExitCodeException exitCode=1: at org.apache.hadoop.util.Shell.runCommand(Shell.java:545) at org.apache.hadoop.util.Shell.run(Shell.java:456) at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:722) at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:211) at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302) at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Container exited with a non-zero exit code 1 Failing this attempt. Failing the application. When I logged to see the logging of the workers node I saw this error: 2016-02-15 02:59:54,106 INFO [main] org.apache.hadoop.mapreduce.v2.app.MRAppMaster: Created MRAppMaster for application appattempt_1451577928704_0050_000001 2016-02-15 02:59:54,294 WARN [main] org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 2016-02-15 02:59:54,319 INFO [main] org.apache.hadoop.mapreduce.v2.app.MRAppMaster: Executing with tokens: 2016-02-15 02:59:54,319 INFO [main] org.apache.hadoop.mapreduce.v2.app.MRAppMaster: Kind: YARN_AM_RM_TOKEN, Service: , Ident: (appAttemptId { application_id { id: 50 cluster_timestamp: 1451577928704 } attemptId: 1 } keyId: -******) 2016-02-15 02:59:54,424 INFO [main] org.apache.hadoop.mapreduce.v2.app.MRAppMaster: Using mapred newApiCommitter. 2016-02-15 02:59:54,755 WARN [main] org.apache.hadoop.hdfs.shortcircuit.DomainSocketFactory: The short-circuit local reads feature cannot be used because libhadoop cannot be loaded. 2016-02-15 02:59:54,855 INFO [main] org.apache.hadoop.mapreduce.v2.app.MRAppMaster: OutputCommitter set in config null 2016-02-15 02:59:54,911 INFO [main] org.apache.hadoop.service.AbstractService: Service org.apache.hadoop.mapreduce.v2.app.MRAppMaster failed in state INITED; cause: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.lang.ClassCastException: org.apache.xerces.dom.DeferredElementNSImpl cannot be cast to org.w3c.dom.Text org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.lang.ClassCastException: org.apache.xerces.dom.DeferredElementNSImpl cannot be cast to org.w3c.dom.Text at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$1.call(MRAppMaster.java:478) at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$1.call(MRAppMaster.java:458) at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.callWithJobClassLoader(MRAppMaster.java:1560) at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.createOutputCommitter(MRAppMaster.java:458) at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.serviceInit(MRAppMaster.java:377) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$4.run(MRAppMaster.java:1518) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657) at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.initAndStartAppMaster(MRAppMaster.java:1515) at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.main(MRAppMaster.java:1448) Caused by: java.lang.ClassCastException: org.apache.xerces.dom.DeferredElementNSImpl cannot be cast to org.w3c.dom.Text at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2603) at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2502) at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2405) at org.apache.hadoop.conf.Configuration.get(Configuration.java:981) at org.apache.hadoop.conf.Configuration.getTrimmed(Configuration.java:1031) at org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1432) at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:67) at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:81) at org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:96) at org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:105) at org.apache.hadoop.hbase.mapreduce.TableOutputFormat.setConf(TableOutputFormat.java:184) at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:76) at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:136) at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$1.call(MRAppMaster.java:474) ... 11 more I tried an older jar and it's running perfectly fine and I'm not sure why the new jar won't work - Didn't change anything. Please advise? Thanks! Update 1: Here is some more details: I setup the cluster with the dataproc. We are using the newest versions, here is the library dependencies: val BigtableHbase = "com.google.cloud.bigtable" % "bigtable-hbase-1.1" % "0.2.2" val BigtableHbaseMapreduce = "com.google.cloud.bigtable" % "bigtable-hbase-mapreduce" % "0.2.2" val CommonsCli = "commons-cli" % "commons-cli" % "1.2" val HadoopCommon = "org.apache.hadoop" % "hadoop-common" % "2.7.1" val HadoopMapreduceClientApp = "org.apache.hadoop" % "hadoop-mapreduce-client-app" % "2.7.1" val HbaseCommon = "org.apache.hbase" % "hbase-common" % "1.1.2" val HbaseProtocol = "org.apache.hbase" % "hbase-protocol" % "1.1.2" val HbaseClient = "org.apache.hbase" % "hbase-client" % "1.1.2" val HbaseServer = "org.apache.hbase" % "hbase-server" % "1.1.2" val HbaseAnnotations = "org.apache.hbase" % "hbase-annotations" % "1.1.2" libraryDependencies += BigtableHbase libraryDependencies += BigtableHbaseMapreduce libraryDependencies += CommonsCli libraryDependencies += HadoopCommon libraryDependencies += HadoopMapreduceClientApp libraryDependencies += HbaseCommon libraryDependencies += HbaseProtocol libraryDependencies += HbaseClient libraryDependencies += HbaseServer libraryDependencies += HbaseAnnotations Java version: openjdk version "1.8.0_66-internal" OpenJDK Runtime Environment (build 1.8.0_66-internal-b17) OpenJDK 64-Bit Server VM (build 25.66-b17, mixed mode) Alpn version: alpn-boot-8.1.3.v20150130 hbase verison: 2016-02-15 20:45:42,050 INFO [main] util.VersionInfo: HBase 1.1.2 2016-02-15 20:45:42,051 INFO [main] util.VersionInfo: Source code repository file:///mnt/ram/bigtop/bigtop/output/ hbase/hbase-1.1.2 revision=Unknown 2016-02-15 20:45:42,051 INFO [main] util.VersionInfo: Compiled by bigtop on Tue Nov 10 19:09:17 UTC 2015 2016-02-15 20:45:42,051 INFO [main] util.VersionInfo: From source with checksum 42e8a1890c700d37485c69a44a3 hadoop version: Hadoop 2.7.1 Subversion https://bigdataoss-internal.googlesource.com/third_party/apache/bigtop -r 2a194d4d838b79460c3ceb892f3c94 44218ba970 Compiled by bigtop on 2015-11-10T18:38Z Compiled with protoc 2.5.0 From source with checksum fc0a1a23fc1868e4d5ee7fa2b28a58a This command was run using /usr/lib/hadoop/hadoop-common-2.7.1.jar
I found the problem in my case! The hbase-site.xml was slightly different in the hbase.client.connection.impl property. <property> <name>hbase.client.connection.impl</name> <value>com.google.cloud.bigtable.hbase1_1.BigtableConnection</value> </property> I got to this after extracting and comparing the two jars.
The newer versions of the bigtable client jar include newer versions of the gRPC jar. Newer versions of the gRPC jar depend on newer versions of alpn-boot or OpenSSL. In addition to a new version of the bigtable jar, you may need a new version of the alpn-boot jar. Unfortunately, the Jetty team isn't making new alpn-boot jars for Java7, which bdutil depends on. We are actively working on moving away from bdutil to dataproc, which is the newer version of Google Cloud Hadoop management. Dataproc uses Java 8, and doesn't have the same problems as bdutil. There are still kinks we need to work out. More information can be found at: https://cloud.google.com/dataproc/examples/cloud-bigtable-example and https://github.com/grpc/grpc-java/blob/master/SECURITY.md
Wt: fatal error: call to empty boost::function
I am trying to build the "Wt" library (in version 3.3.5) on my own, but failing when I try to run the Example. My environment is a Debian with Boost 1.53.0 for which I want to build the library. Compiling and linking (gcc 4.7.2) works well, but when I try to run the Wt-Example (http://www.webtoolkit.eu/wt/doc/tutorial/wt.html), the Server fails with: Wt: fatal error: call to empty boost::function Complete Log is: foo#rtm:/tmp/$ wt_test --docroot . --http-address 0.0.0.0 --http-port 9090 Option no-compression is implied because wthttp was built without zlib support. [2016-Feb-11 10:35:29.326974] 6436 - [info] "config: reading Wt config file: /etc/wt/wt_config.xml (location = 'wt_test')" Option no-compression is implied because wthttp was built without zlib support. [2016-Feb-11 10:35:29.327938] 6436 - [info] "WServer/wthttp: initializing built-in wthttpd" [2016-Feb-11 10:35:29.328281] 6436 - [info] "wthttp: started server: http://0.0.0.0:9090" [2016-Feb-11 10:35:33.971973] 6436 - [info] "Wt: session created (#sessions = 1)" [2016-Feb-11 10:35:33.972423] 6436 [/ mZ4BIN0ZPoVnqQTG] [info] "WEnvironment: UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0" 10.12.5.50 - - [2016-Feb-11 10:35:33.974561] "GET / HTTP/1.1" 200 4691 [2016-Feb-11 10:35:33.974722] 6436 - [info] "WebRequest: took 3.044ms" [2016-Feb-11 10:35:34.026134] 6436 [/ mZ4BIN0ZPoVnqQTG] [error] "Wt: fatal error: call to empty boost::function" [2016-Feb-11 10:35:34.026242] 6436 - [info] "WebController: Removing session mZ4BIN0ZPoVnqQTG" [2016-Feb-11 10:35:34.026293] 6436 [/ mZ4BIN0ZPoVnqQTG] [info] "Wt: session destroyed (#sessions = 0)" 10.12.5.50 - - [2016-Feb-11 10:35:34.026374] "GET /?wtd=mZ4BIN0ZPoVnqQTG&sid=2063522618&webGL=true&scrW=1680&scrH=1050&tz=60&htmlHistory=true&deployPath=%2F&request=script&rand=4063601615 HTTP/1.1" 500 84 10.12.5.50 - - [2016-Feb-11 10:35:34.026375] "GET /?wtd=mZ4BIN0ZPoVnqQTG&request=style&page=1 HTTP/1.1" 200 0 [2016-Feb-11 10:35:34.026414] 6436 - [info] "WebRequest: took 0.5ms" [2016-Feb-11 10:35:34.026430] 6436 - [info] "WebRequest: took 30.593ms" Does anybody have an idea how to find out what is going wrong here? I know the Boost Version isn't up-to-date, but I guess this shouldn't be a problem? Regads, VanDahlen
I get this warning: boost_1_60_0/boost/signal.hpp|17 col 4| warning: #warning "Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING." [-Wcpp] This look like it could have a lot to do with things. That said, it just works and runs cleanly under valgrind on my Ubuntu box using g++-5. (It does fail to link when using libc++)