Giter VIP home page Giter VIP logo

feature-demo's Introduction

Immutant Build Status

Immutant is an integrated suite of libraries providing commodity services for Clojure applications. This README covers building Immutant. For usage and more details, see http://immutant.org/.

To file an issue, see https://issues.jboss.org/browse/IMMUTANT

Latest Release

Leiningen:

[org.immutant/immutant "2.1.10"]

Maven:

<dependency>
  <groupId>org.immutant</groupId>
  <artifactId>immutant</artifactId>
  <version>2.1.10</version>
</dependency>

Building

Requires Leiningen 2.3.4+

From the root of the project, run:

lein modules all

The modules higher-order task will run the task passed to it (e.g. the all alias) in all that project's child modules. If you cd inside one of the child modules, you can just run lein as you normally would, but you should run the above at least once so that interdependent modules are installed in your local repo.

To run the integration tests as part of a full build, build with:

lein with-profile +integs modules all

For information on setting up WildFly for the integration tests, or on running them individually, see the README in integration-tests/.

License

Immutant is licensed under the Apache License, v2. See LICENSE for details.

feature-demo's People

Contributors

grammati avatar jcrossley3 avatar jkutner avatar the-alchemist avatar tobias avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

feature-demo's Issues

TLS/SSL web socket feature demo not working

Steps to reproduce:

  1. System setup: macOS X 10.12.6, Leiningen 2.8.1 on Java 1.8.0_152 Java HotSpot(TM) 64-Bit Server VM, the feature demo is checked out from this repository.
  2. Run lein with-profiles http2 run
  3. Connect to wss://localhost:8443/reverser with the client http://demos.kaazing.com/echo/.

Expected behavior: The web socket connection is established.

Actual behavior: The connection fails with the following exception stack trace:

Exception in thread "XNIO-1 task-3" java.lang.NoSuchMethodError: sun.security.ssl.SupportedEllipticCurvesExtension.curveIds()[I
        at sun.security.ssl.ServerHandshaker.setupEphemeralECDHKeys(ServerHandshaker.java:1470)
        at sun.security.ssl.ServerHandshaker.trySetCipherSuite(ServerHandshaker.java:1272)
        at sun.security.ssl.ServerHandshaker.chooseCipherSuite(ServerHandshaker.java:1076)
        at sun.security.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:742)
        at sun.security.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:225)
        at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
        at sun.security.ssl.Handshaker$1.run(Handshaker.java:966)
        at sun.security.ssl.Handshaker$1.run(Handshaker.java:963)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1416)
        at io.undertow.protocols.ssl.SslConduit$5.run(SslConduit.java:1034)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

"Tried to use insecure HTTP repository without TLS"

lein repl
Tried to use insecure HTTP repository without TLS:
 Immutant incremental builds: http://downloads.immutant.org/incremental/
 org/jboss/naming/jnpserver/5.0.3.GA/jnpserver-5.0.3.GA.pom

This is almost certainly a mistake; for details see
https://github.com/technomancy/leiningen/blob/master/doc/FAQ.md

Does anyone know how this can be fixed?

:cause Column "KANYE" not found; SQL statement: INSERT INTO things ( kanye ) VALUES ( ? ) [42122-176]

15:20:56.632 [main] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
15:21:00.853 INFO  [org.projectodd.wunderboss.web.Web] (main) Registered web context /
15:21:01.129 WARN  [org.hornetq.core.server] (main) HQ222018: AIO was not located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
15:21:01.185 INFO  [org.hornetq.core.server] (main) HQ221000: live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=target/hornetq-data/journal,bindingsDirectory=target/hornetq-data/bindings,largeMessagesDirectory=target/hornetq-data/large-messages,pagingDirectory=target/hornetq-data/paging)
15:21:01.186 INFO  [org.hornetq.core.server] (main) HQ221006: Waiting to obtain live lock
15:21:01.218 INFO  [org.hornetq.core.server] (main) HQ221013: Using NIO Journal
15:21:01.283 WARN  [org.hornetq.core.server] (main) HQ222007: Security risk! HornetQ is running with the default cluster admin user and default password. Please see the HornetQ user guide, cluster chapter, for instructions on how to change this.
15:21:01.300 INFO  [org.hornetq.core.server] (main) HQ221043: Adding protocol support CORE
15:21:01.358 INFO  [org.hornetq.core.server] (main) HQ221034: Waiting to obtain live lock
15:21:01.358 INFO  [org.hornetq.core.server] (main) HQ221035: Live Server Obtained live lock
15:21:01.904 INFO  [org.hornetq.core.server] (main) HQ221003: trying to deploy queue jms.queue.DLQ
15:21:01.972 INFO  [org.hornetq.core.server] (main) HQ221003: trying to deploy queue jms.queue.ExpiryQueue
15:21:02.092 INFO  [org.hornetq.core.server] (main) HQ221020: Started Netty Acceptor version 4.0.13.Final localhost:5445
15:21:02.094 INFO  [org.hornetq.core.server] (main) HQ221007: Server is now live
15:21:02.094 INFO  [org.hornetq.core.server] (main) HQ221001: HornetQ Server version 2.4.5.FINAL (Wild Hornet, 124) [48074887-e0b4-11e5-82fc-45ca9fa9e22e]
15:21:02.096 INFO  [org.hornetq.core.server] (main) HQ221003: trying to deploy queue jms.queue.my-queue
15:21:02.229 INFO  [org.projectodd.wunderboss.messaging] (main) Starting listener for 'my-queue' concurrency=8
listener received {:message 0}
listener received {:message 1}
listener received {:message 2}
listener received {:message 3}
listener received {:message 4}
listener received {:message 5}
listener received {:message 6}
listener received {:message 7}
listener received {:message 8}
listener received {:message 9}
15:21:03.148 INFO  [org.hornetq.core.server] (main) HQ221003: trying to deploy queue jms.queue.sync-queue
listener received {:message "hi"}
15:21:03.155 INFO  [org.projectodd.wunderboss.messaging] (main) Starting listener for 'sync-queue' concurrency=8
15:21:03.177 INFO  [org.projectodd.wunderboss.messaging] (main) Starting listener for 'sync-queue' concurrency=1
response is: 1
response is: 2
response is: 3
response is: 4
response is: 5
15:21:03.291 INFO  [org.quartz.core.QuartzScheduler] (main) Quartz Scheduler v.2.2.1 created.
15:21:03.297 INFO  [org.quartz.core.QuartzScheduler] (main) Scheduler meta-data: Quartz Scheduler (v2.2.1) 'SimpleQuartzScheduler:-1011881444' with instanceId 'SIMPLE_NON_CLUSTERED:-1011881444'
  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 5 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

15:21:03.305 INFO  [org.quartz.core.QuartzScheduler] (main) Scheduler SimpleQuartzScheduler:-1011881444_$_SIMPLE_NON_CLUSTERED:-1011881444 started.
15:21:03.305 INFO  [org.projectodd.wunderboss.scheduling.Scheduling] (main) Quartz started
beep
15:21:03.542 INFO  [org.projectodd.wunderboss.caching.Caching] (main) Creating cache: counter
15:21:03.543 INFO  [org.infinispan.factories.GlobalComponentRegistry] (main) ISPN000128: Infinispan version: Infinispan 'Insanely Bad Elf' 7.2.3.Final
Updating count to 1
15:21:04.025 INFO  [com.arjuna.ats.arjuna] (main) ARJUNA012163: Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 52993
15:21:04.028 INFO  [com.arjuna.ats.arjuna] (main) ARJUNA012337: TransactionStatusManagerItem host: 127.0.0.1 port: 52993
15:21:04.031 INFO  [com.arjuna.ats.arjuna] (main) ARJUNA012170: TransactionStatusManager started on port 52993 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
15:21:04.041 INFO  [org.projectodd.wunderboss.caching.Caching] (main) Creating cache: user
15:21:04.050 INFO  [org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup] (main) ISPN000107: Retrieving transaction manager Transaction: unknown
15:21:04.090 INFO  [org.hornetq.core.server] (main) HQ221003: trying to deploy queue jms.queue.user
tx:queue => {:name t-swizzle}
tx:cache => {:attempts 1, :count 1}
tx:db    => ({:name t-swizzle})
#error {
 :cause Column "KANYE" not found; SQL statement:
INSERT INTO things ( kanye ) VALUES ( ? ) [42122-176]
 :via
 [{:type org.h2.jdbc.JdbcSQLException
   :message Column "KANYE" not found; SQL statement:
INSERT INTO things ( kanye ) VALUES ( ? ) [42122-176]
   :at [org.h2.message.DbException getJdbcSQLException DbException.java 344]}]
 :trace
 [[org.h2.message.DbException getJdbcSQLException DbException.java 344]
  [org.h2.message.DbException get DbException.java 178]
  [org.h2.message.DbException get DbException.java 154]
  [org.h2.table.Table getColumn Table.java 637]
  [org.h2.command.Parser parseColumn Parser.java 849]
  [org.h2.command.Parser parseColumnList Parser.java 833]
  [org.h2.command.Parser parseInsert Parser.java 1033]
  [org.h2.command.Parser parsePrepared Parser.java 402]
  [org.h2.command.Parser parse Parser.java 306]
  [org.h2.command.Parser parse Parser.java 278]
  [org.h2.command.Parser prepareCommand Parser.java 243]
  [org.h2.engine.Session prepareLocal Session.java 442]
  [org.h2.engine.Session prepareCommand Session.java 384]
  [org.h2.jdbc.JdbcConnection prepareCommand JdbcConnection.java 1188]
  [org.h2.jdbc.JdbcPreparedStatement <init> JdbcPreparedStatement.java 73]
  [org.h2.jdbc.JdbcConnection prepareStatement JdbcConnection.java 276]
  [clojure.java.jdbc$prepare_statement$fn__7660 invoke jdbc.clj 444]
  [clojure.java.jdbc$prepare_statement doInvoke jdbc.clj 440]
  [clojure.lang.RestFn invoke RestFn.java 464]
  [clojure.java.jdbc$db_do_prepared_return_keys invoke jdbc.clj 692]
  [clojure.java.jdbc$multi_insert_helper$fn__7772 invoke jdbc.clj 901]
  [clojure.core$map$fn__4553 invoke core.clj 2624]
  [clojure.lang.LazySeq sval LazySeq.java 40]
  [clojure.lang.LazySeq seq LazySeq.java 49]
  [clojure.lang.RT seq RT.java 507]
  [clojure.core$seq__4128 invoke core.clj 137]
  [clojure.core$dorun invoke core.clj 3009]
  [clojure.core$doall invoke core.clj 3025]
  [clojure.java.jdbc$multi_insert_helper invoke jdbc.clj 900]
  [clojure.java.jdbc$insert_helper$fn__7775 invoke jdbc.clj 911]
  [clojure.java.jdbc$db_transaction_STAR_ doInvoke jdbc.clj 584]
  [clojure.lang.RestFn invoke RestFn.java 425]
  [clojure.java.jdbc$insert_helper invoke jdbc.clj 911]
  [clojure.java.jdbc$insert_BANG_ doInvoke jdbc.clj 1003]
  [clojure.lang.RestFn invoke RestFn.java 442]
  [demo.transactions$unit_of_work invoke transactions.clj 16]
  [demo.transactions$_main$fn__7836$fn__7837 invoke transactions.clj 31]
  [clojure.lang.AFn call AFn.java 18]
  [org.projectodd.wunderboss.transactions.NarayanaTransaction begin NarayanaTransaction.java 121]
  [org.projectodd.wunderboss.transactions.NarayanaTransaction required NarayanaTransaction.java 33]
  [demo.transactions$_main$fn__7836 invoke transactions.clj 31]
  [demo.transactions$_main doInvoke transactions.clj 30]
  [clojure.lang.RestFn invoke RestFn.java 397]
  [clojure.lang.AFn applyToHelper AFn.java 152]
  [clojure.lang.RestFn applyTo RestFn.java 132]
  [clojure.core$apply invoke core.clj 630]
  [demo.core$_main doInvoke core.clj 14]
  [clojure.lang.RestFn invoke RestFn.java 397]
  [clojure.lang.Var invoke Var.java 375]
  [user$eval5 invoke form-init2242480948034536466.clj 1]
  [clojure.lang.Compiler eval Compiler.java 6782]
  [clojure.lang.Compiler eval Compiler.java 6772]
  [clojure.lang.Compiler load Compiler.java 7227]
  [clojure.lang.Compiler loadFile Compiler.java 7165]
  [clojure.main$load_script invoke main.clj 275]
  [clojure.main$init_opt invoke main.clj 280]
  [clojure.main$initialize invoke main.clj 308]
  [clojure.main$null_opt invoke main.clj 343]
  [clojure.main$main doInvoke main.clj 421]
  [clojure.lang.RestFn invoke RestFn.java 421]
  [clojure.lang.Var invoke Var.java 383]
  [clojure.lang.AFn applyToHelper AFn.java 156]
  [clojure.lang.Var applyTo Var.java 700]
  [clojure.main main main.java 37]]}
tx:queue => nil
tx:cache => {:attempts 2, :count 1}
tx:db    => ({:name t-swizzle})
boop
boop
beep
boop
beep
boop
Updating count to 2
boop
beep
boop
boop
beep
unscheduling beep & boop
Updating count to 3
Updating count to 4
Updating count to 5
Updating count to 6
Updating count to 7
> lein --version
Leiningen 2.6.1 on Java 1.8.0_73 Java HotSpot(TM) 64-Bit Server VM
> java -version
java version "1.8.0_73"
Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.