Skip to content

Instantly share code, notes, and snippets.

View ejlp12's full-sized avatar

EJLP ejlp12

  • Indonesia
View GitHub Profile
@ejlp12
ejlp12 / gist:a85634d78eec3eed55ce
Last active September 4, 2015 23:10
BPMN LAB Resources (Philippine Workshop 13-14 Apr 2015)
LAB X1 - BPMN2 Simulation http://goo.gl/MnxaOv
Simple exercise to run simulation. You just need to import the BPMN2 files and follow the LAB instruction.
@ejlp12
ejlp12 / connection-reset.md
Last active January 11, 2016 12:31
Connection reset

Edit file /etc/sysconfig/rngd dan isi dengan text berikut

EXTRAOPTIONS="-r /dev/urandom"

Pastikan rngd dijalankan setiap kali operating sistem start (booting) dengan perintah berikut:

@ejlp12
ejlp12 / fuse
Last active October 16, 2015 07:49
container-create-child --profile ejlp12-fuse-full --jvm-opts '-Xms1024m -Xmx1024m -XX:MaxPermSize=256M -Xloggc:gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/jboss/fuse/support/dump/fusechild01_root1' root1 fusechild01_root1
## MQ
container-create-child --jvm-opts '-Xms1024m -Xmx1024m -XX:MaxPermSize=256M -Xloggc:gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/jboss/fuse/support/dump/amqchild01_root3' root3 amqchild01_root3
fabric:mq-create --group brokergroup1 --data /jboss/fuse/amqshared/amqchild01_root3 --assign-container amqchild01_root3 broker1

unixODBC is a ODBC implementation for non MS Windows platforms

unixODBC Installation

________________________________________________________________________________
| ejlp12 @ ejlp-macbook:~
| => brew install unixodbc
==> Downloading https://homebrew.bintray.com/bottles/unixodbc-2.3.2_1.yosemite.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring unixodbc-2.3.2_1.yosemite.bottle.1.tar.gz

Virtual table is set to materialized (cached) - both internal or external will result the same error

19:09:38,264 INFO  [org.teiid.PROCESSOR.MATVIEWS] (Worker7_QueryProcessorQueue115) TEIID30013 Loading materialized view table #MAT_POC_XYZ_WS_TABLE.V_WS_WIL
19:09:38,289 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (Worker11_QueryProcessorQueue116) Creating Service {http://teiid.org}teiid from class org.apache.cxf.jaxws.support.DummyImpl
19:09:48,402 ERROR [org.teiid.PROCESSOR.MATVIEWS] (Worker7_QueryProcessorQueue117) TEIID30015 Failed to load materialized view table #MAT_POC_XYZ_WS_TABLE.V_WS_WIL.: org.teiid.core.TeiidProcessingException: TEIID30151 Error building Source for context item.
	at org.teiid.query.xquery.saxon.XQueryEvaluator.evaluateXQuery(XQueryEvaluator.java:140) [teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
	at org.teiid.query.processor.relational.XMLTableNode$1.run(XMLTableNode.java:242) [teiid-engine-8.7.1.6_2-redhat-6.jar:8.7.1.6_2-redhat-6]
	at org.te

Got error like this when trying to connect to Oracle DB using ojdbc14.jar

java.lang.ArrayIndexOutOfBoundsException: -1 at oracle.jdbc.driver.T4CTTIoauthenticate.setSessionFields(T4CTTIoauthenticate.java:972)

It is because of security policy of JRE, I have to change the policy by editing java.policy file

Untuk membuat logging

-Dorg.jboss.as.logging.per-deployment=false

/system-property=org.jboss.as.logging.per-deployment:add(value=false)

When trying to preview a source/view model, the data source is not created with error:

org.teiid.runtime.client.TeiidClientException: java.lang.RuntimeException: 
Remote org.teiid.api.exception.query.QueryPlannerException: TEIID30498 Capabilities for SOURCE_MODEL_NAME were not avaialable.  
The command could not be planned properly.

and found in the Teiid log something like:

Demo AMQP dengan menggunakan JBoss A-MQ 6.2

Tambahakan baris berikut di file etc/activemq.xml

<transportConnector name="amqp" uri="amqp://0.0.0.0:5672"/>

atau