This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.barchart.osgi.nettosphere; | |
import java.io.IOException; | |
import org.atmosphere.cpr.AtmosphereHandler; | |
import org.atmosphere.cpr.AtmosphereResource; | |
import org.atmosphere.cpr.AtmosphereResourceEvent; | |
import org.atmosphere.cpr.AtmosphereResourceEventListenerAdapter; | |
import org.atmosphere.cpr.AtmosphereResponse; | |
import org.atmosphere.nettosphere.Config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.barchart.osgi.nettosphere; | |
import java.io.IOException; | |
import java.util.concurrent.ConcurrentHashMap; | |
import java.util.concurrent.ConcurrentMap; | |
import java.util.concurrent.atomic.AtomicInteger; | |
import org.atmosphere.cpr.AtmosphereHandler; | |
import org.atmosphere.cpr.AtmosphereResource; | |
import org.atmosphere.cpr.AtmosphereResourceEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Run WebSocketServer.java, and leave it running for the duration of this test. | |
2) Run WebSocketClient.java in a separate JVM. The first time pretty much always works as expected. | |
3) Run WebSocketClient.java again. 90% of the time the exception will appear during the second run. | |
4) Repeat #3 until you see the logged exception in STDOUT, which triggers a disconnect. | |
This appears to be a network queue/timing issue. When the request succeeds, the websocket upgrade | |
response and first frame arrive at the client as separate messages: | |
+-------------------------------------------------+ | |
| 0 1 2 3 4 5 6 7 8 9 a b c d e f | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-02-10 08:47:24,120 | INFO | FelixStartLevel | fileinstall | 16 - org.apache.felix.fileinstall - 3.2.6 | Installed /home/jeremy/dev/barchart/java/barchart-service/karaf/service/target/int-work/basic-tester/target/service/app_2014-02-07_14-14-00/etc/org.ops4j.pax.url.mvn.cfg | |
2014-02-10 08:47:24,124 | INFO | FelixStartLevel | fileinstall | 16 - org.apache.felix.fileinstall - 3.2.6 | Installed /home/jeremy/dev/barchart/java/barchart-service/karaf/service/target/int-work/basic-tester/target/service/app_2014-02-07_14-14-00/etc/org.apache.karaf.management.cfg | |
2014-02-10 08:47:24,127 | INFO | FelixStartLevel | fileinstall | 16 - org.apache.felix.fileinstall - 3.2.6 | Installed /home/jeremy/dev/barchart/java/barchart-service/karaf/service/target/int-work/basic-tester/target/service/app_2014-02-07_14-14-00/etc/org.apache.karaf.log.cfg | |
2014-02-10 08:47:24,130 | INFO | FelixStartLevel | fileinstall | 16 - org.apache.felix.fil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# "packer build" wrapper that sets up a consistent build environment for image building. | |
# | |
# - Use common .packer_cache directory in this root directory | |
# - Generate JSON templates from YAML (if exists) to allow comments and includes | |
import sys | |
import os | |
import subprocess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# Usage: packer-config my-template.yaml | packer build - | |
# | |
# Constructs a Packer JSON configuration file from the specified YAML | |
# template file and writes it to STDOUT. | |
# | |
# The YAML template format adds some flexibility and readability by | |
# adding comments and an !include directive, allowing for the | |
# following template syntax: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Component Details | |
Name : barchart.gateway.store.service | |
State : UNSATISFIED | |
Properties : | |
component.name=barchart.gateway.store.service | |
component.id=20 | |
References | |
Reference : com.barchart.feed.api.consumer.MarketService/* | |
State : unsatisfied | |
Multiple : single |