Skip to content

Instantly share code, notes, and snippets.

EJLP ejlp12

Block or report user

Report or block ejlp12

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ejlp12
ejlp12 / gist:a85634d78eec3eed55ce
Last active Sep 4, 2015
BPMN LAB Resources (Philippine Workshop 13-14 Apr 2015)
View gist:a85634d78eec3eed55ce
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 Jan 11, 2016
Connection reset
View connection-reset.md

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:

View fuse
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
View EA_ODBC_on_Mac OS.md

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
View JDV_Teiid WS SOAP error too much data.md

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
View EA_Oracle_JDBC_Connection_Error.md

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

View JBoss_EAP_Logging.md

Untuk membuat logging

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

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

View JDV_Teiid PREVIEW Data Source is not available.md

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:

View A-MQ web-demo install (REST interface).md
View JBoss_A-MQ_AMQP_Demo.md

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

You can’t perform that action at this time.