Monday, October 31, 2011

SVN Server

If you need a quick-to-install SVN server,

Visualsvn is not too bad

Sunday, October 30, 2011

High Availability File Adapter in OSB

While running the FileAdapter (eis/FileAdapter) in a cluster with 2 instances, I get this error

BINDING.JCA-11042 File deletion failed

the full error is

onFatalError: Adapter forced endpoint deactivation due to:
BINDING.JCA-11042
File deletion failed.

here https://forums.oracle.com/forums/thread.jspa?threadID=2157695 and here https://kr.forums.oracle.com/forums/thread.jspa?messageID=9757727 and here https://cn.forums.oracle.com/forums/thread.jspa?threadID=2252967 they report the same story.


OK, we need to use eis/HAFileAdapter and give a controlDir. But we are not having a SOAINFRA DB schema because we installed only OSB.

see High Availability in Inbound Operations here http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10231/adptr_file.htm

it is not clear if you have an option to use a file as a coordinator, instead of a DB. What is controlDir for?

http://download.oracle.com/docs/cd/E14571_01/doc.1111/e17059.pdf here the HA FileAdapter documentation


This document is also quite cool, it says:

"Database-based mutex and locks are used to coordinate these operations in a File Adapter clustered topology. Other coordinators are available but Oracle recommends using the Oracle Database."

yet they don't mention the alternatives.... if you use a DB, then it must be a HA DB otherwise a DB failure would mean a File Adapter failure...



see also here for full solution

Stuck Threads when using JCA FileAdapter

you will notice that the Server Health has a Warning, and there are 5 stuck threads

one of this type:


"[STUCK] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'" TIMED_WAITING

java.lang.Thread.sleep(Native Method)

oracle.tip.adapter.file.inbound.PollWork.run(PollWork.java:369)

weblogic.work.ContextWrap.run(ContextWrap.java:41)

weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)

weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

weblogic.work.ExecuteThread.run(ExecuteThread.java:178)



and 4 of this type:


"[STUCK] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock oracle.tip.adapter.file.inbound.FilesToProcess@4bdddc TIMED_WAITING

java.lang.Object.wait(Native Method)

oracle.tip.adapter.file.inbound.FilesToProcess.dequeueToProcess(FilesToProcess.java:101)

oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:269)

weblogic.work.ContextWrap.run(ContextWrap.java:41)

weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)

weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

weblogic.work.ExecuteThread.run(ExecuteThread.java:178)




according to Oracle documentation for the DB adapter this is normal. They don't mention File Adapter....


The solution is to create a WorkManager with the option “ignore stuck threads” and assign it as a dispatch policy to each Proxy Service using the FileAdapter

Saturday, October 29, 2011

Native Format Language at test (nXSD Command Line Interface)

Here is the tool

http://blogs.oracle.com/adapters/entry/command_line_tool_for_testing


internally it uses oracle.tip.pc.services.translation.framework.TranslatorFactory


to get started, all you need to do is to download these 5 files, adjust the classpath in translator.bat, and run the runme.bat:

here the command to run

here the XSD

here the input flat file

here the bat file with the classpath

here the jar file with the Translate utility

Source file for the Translate utility, which is based on oracle.tip.pc.services.translation.framework.TranslatorFactory

Wednesday, October 26, 2011

Native Format Builder generated from Excel formulas

here the reference manual:

http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/nfb.htm

See "7.2.1.3 Defining a Fixed-Length Structure"

xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"

A typical entry consists of:


<element name="to_usd_rate" nxsd:style="fixedLength" nxsd:length="12"
nxsd:padStyle="head" nxsd:paddedBy="0">
<simpleType>
<restriction base="string">
<maxLength value="12" />
</restriction>
</simpleType>
</element>


I am generating all these elements with Excel, because I hate monkey work

I put this text in a file:
ABC Private Limited Street1 Bangalore Karnataka India


I put this in Excel

NAME LENGTH
company 22
address 10
city 10
region 10
country 5


and I use this formula to generate all tags:

="<xsd:element name="""&B11&""" nxsd:style=""fixedLength"" nxsd:length="""&C11&""" nxsd:padStyle=""head"" nxsd:paddedBy=""0""> <xsd:simpleType><xsd:restriction base=""xsd:string""> <xsd:maxLength value="""&C11&""" /> </xsd:restriction> </xsd:simpleType> </xsd:element>"


Here is the Excel file


Here is the generated nXSD:

<?xml version="1.0" encoding="UTF-8" ?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
            xmlns:tns="http://TargetNamespace.com/ServiceName"
            targetNamespace="http://TargetNamespace.com/ServiceName"
            elementFormDefault="qualified"
            attributeFormDefault="unqualified"

            nxsd:version="NXSD"
            nxsd:stream="chars"
            nxsd:encoding="US-ASCII"
>


  <xsd:element name="Root-Element">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="company" nxsd:style="fixedLength" nxsd:length="22" nxsd:padStyle="head" nxsd:paddedBy="0"> <xsd:simpleType><xsd:restriction base="xsd:string"> <xsd:maxLength value="22" /> </xsd:restriction> </xsd:simpleType> </xsd:element>
        <xsd:element name="address" nxsd:style="fixedLength" nxsd:length="10" nxsd:padStyle="head" nxsd:paddedBy="0"> <xsd:simpleType><xsd:restriction base="xsd:string"> <xsd:maxLength value="10" /> </xsd:restriction> </xsd:simpleType> </xsd:element>
        <xsd:element name="city" nxsd:style="fixedLength" nxsd:length="10" nxsd:padStyle="head" nxsd:paddedBy="0"> <xsd:simpleType><xsd:restriction base="xsd:string"> <xsd:maxLength value="10" /> </xsd:restriction> </xsd:simpleType> </xsd:element>
        <xsd:element name="region" nxsd:style="fixedLength" nxsd:length="10" nxsd:padStyle="head" nxsd:paddedBy="0"> <xsd:simpleType><xsd:restriction base="xsd:string"> <xsd:maxLength value="10" /> </xsd:restriction> </xsd:simpleType> </xsd:element>
        <xsd:element name="country" nxsd:style="fixedLength" nxsd:length="5" nxsd:padStyle="head" nxsd:paddedBy="0"> <xsd:simpleType><xsd:restriction base="xsd:string"> <xsd:maxLength value="5" /> </xsd:restriction> </xsd:simpleType> </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

</xsd:schema>
<!--NXSDWIZ:C:\tmp\sample.dat:-->
<!--USE-HEADER:false:-->



The classes related to nXSD are in C:\Oracle\Middleware\Oracle_OSB1\soa\modules\oracle.soa.fabric_11.1.1\bpm-infra.jar

and in C:\Oracle\Middleware\Oracle_SOA1\jlib\oracle.soa.dbutils.jar

JCA File Adapter in OSB

This is a sample JCA file generated by JDeveloper

<adapter-config name="readfile" adapter="File Adapter" wsdlLocation="readfile.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">

<connection-factory location="eis/FileAdapter" UIincludeWildcard="*.*"/>
<endpoint-activation portType="Read_ptt" operation="Read">
<activation-spec className="oracle.tip.adapter.file.inbound.FileActivationSpec">
<property name="DeleteFile" value="true"/>
<property name="MinimumAge" value="0"/>
<property name="PhysicalDirectory" value="c:/tmp/in"/>
<property name="Recursive" value="true"/>
<property name="PollingFrequency" value="60"/>
<property name="PhysicalArchiveDirectory" value="c:/tmp/archive"/>
<property name="IncludeFiles" value=".*\..*"/>
<property name="UseHeaders" value="false"/>
</activation-spec>
</endpoint-activation>

</adapter-config>

and this the associated WSDL

<wsdl:definitions
name="readfile"
targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/PVTests/OSBJCATests/readfile"
xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/file/PVTests/OSBJCATests/readfile"
xmlns:opaque="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
xmlns:pc="http://xmlns.oracle.com/pcbpel/"
xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
>
<plt:partnerLinkType name="Read_plt" >
<plt:role name="Read_role" >
<plt:portType name="tns:Read_ptt" />
</plt:role>
</plt:partnerLinkType>
<wsdl:types>
<schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
xmlns="http://www.w3.org/2001/XMLSchema" >
<element name="opaqueElement" type="base64Binary" />
</schema>
</wsdl:types>
<wsdl:message name="Read_msg">
<wsdl:part name="opaque" element="opaque:opaqueElement"/>
</wsdl:message>
<wsdl:portType name="Read_ptt">
<wsdl:operation name="Read">
<wsdl:input message="tns:Read_msg"/>
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>

import in OSB first the WSDL, then the JCA (the JCA depends on the WSDL)

The file adapter uses a javax.resource.cci.ConnectionFactory

The Adapter can be configured to support XA Transactions, Local Transactions or No transactions.


to be continued...

Sunday, October 23, 2011

Using Raise Error in OSB

If in your Message Flow you Raise Error:

Raise Error using error code [ MY_ERROR_CODE ] with error Message MY_ERROR_MESSAGE



the error handler will show in the
"errorCode" and "reason" respectively the
"error code and "error message"
that you have provided:

<con:fault xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>MY_ERROR_CODE</con:errorCode>
<con:reason>MY_ERROR_MESSAGE</con:reason>
<con:location>
<con:node>PipelinePairNode1</con:node>
<con:pipeline>PipelinePairNode1_request</con:pipeline>
<con:stage>stage1</con:stage>
<con:path>request-pipeline</con:path>
</con:location>
</con:fault>

both Service Error Handler and System Error Handler are invoked with the same fault, because in my Message Flow, the Service Error Handler doesn't handle the error:


If the Service Error Handler does a "reply with success", the same body as the request is returned in the response.
If the Service Error Handler does a "reply with error", the test console returns a message "The invocation resulted in an error: ."

Analyzing with SOAP UI (I create a Rest service and do a POST), if I show the RAW response I get:

HTTP/1.1 500 Internal Server Error
Date: Sun, 23 Oct 2011 21:45:50 GMT
Content-Length: 61
Content-Type: text/xml; charset=utf-8
X-Powered-By: Servlet/2.5 JSP/2.1

<?xml version="1.0" encoding="UTF-8"?>
<hello>pierre</hello>


in fact "Reply with Error" returns a HTTP 500



see also http://www.javamonamour.org/2011/07/throwing-exceptions-in-xquery-fnerror.html on how to raise an error in XQuery

OSB: how a MDB Proxy Service is implemented

today I have created a Proxy Service, reading messages from a Topic, durable subscriber, and I have called it badmdb/consumefromtopic
(badmdb is the project name)

If you look in WL deployments, you find:
C:\bea103b\user_projects\domains\osb_domain\sbgen\ProxyService_badmdb_consumefromto641026.ear

this contains a ejb.jar, which contains only a ejb-jar.xml and a weblogic-ejb-jar.xml
These DD specify:

ejb-class=com.bea.wli.sb.transports.jms.JmsInboundMDB
activation-config-property: subscriptionDurability=Durable

destination-jndi-name=the_topic_jndi
provider-url=t3://localhost:7011
connection-factory-jndi-name=weblogic.jms.XAConnectionFactory
generate-unique-jms-client-id=true
durable-subscription-deletion=true


My guess is that the JmsInboundMDB will internally dispatch the JMSMessage to the OSB Kernel for Message Flow processing

Friday, October 21, 2011

weblogic.utils.Versions

if you wonder which version of the libraries your weblogic installation is running, you can use this command:

java -cp $ORACLE_HOME/wlserver_10.3/server/lib/weblogic.jar weblogic.utils.Versions


The result can be something like this (it's a 10.3 domain):




WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967 ImplVersion: 10.3.0.0


BEA Modules WebLogic Server Dependencies 10.3 Thu Jul 10 07:58:50 MDT 2008 ImplVersion: 10.3.0.0

BEA Modules WebLogic Server L10N Dependencies 10.3 Thu Jul 10 07:58:50 MDT 2008 ImplVersion: 10.3.0.0

ANTLR Java based compiler generator Client 2.7 Mon Jun 11 12:19:48 EDT 2007 ImplVersion: 2.7.7

WebLogic Descriptors for J2EE Client Capable 1.1 Fri May 30 18:17:09 EDT 2008 ImplVersion: 1.1.0.0

WebLogic Descriptors for J2EE 1.1 Binding Bundle ImplVersion: 1.1.0.0

WebLogic Specific Descriptors Client Capable 1.1 Fri May 16 19:59:32 EDT 2008 ImplVersion: 1.1.0.0

WebLogic Specific Descriptors 1.1 Binding Bundle ImplVersion: 1.1.0.0

WebLogic Datasource 1.4 Fri Jul 11 18:43:16 PDT 2008 ImplVersion: 1.4.0.0

WebLogic Datasource 1.4 Binding Bundle ImplVersion: 1.4.0.0

WebLogic Beangen Client Capable 1.4 Tue Apr 15 12:46:21 EDT 2008 ImplVersion: 1.4.0.0

WebLogic Beangen 1.4 Binding Bundle ImplVersion: 1.4.0.0

WLDF Accessor Client Capable 1.1 Mon Jun 30 20:10:14 EDT 2008 ImplVersion: 1.1.0.0

WLDF Accessor 1.1 Binding Bundle ImplVersion: 1.1.0.0

WebLogic Management Core Interfaces Client Capable 2.3 Fri May 16 19:59:32 EDT 2008 ImplVersion: 2.3.0.0

WebLogic Management Core Interfaces 2.3 Binding Bundle ImplVersion: 2.3.0.0

WebLogic EJBGen Client Capable 1.0 Fri Jun 27 19:43:29 PDT 2008 ImplVersion: 1.0.0.0

BEA Patches of apache ant Client Capable 1.1 Tue Nov 13 14:51:46 PST 2007 ImplVersion: 1.1.0.0_1-6-5

Apache Byte Code Engineering Library (BCEL) extracted from 5.2.zip from http://jakarta.apache.org/site/downloads/downloads_bcel.cgi with packages renamed from org.apache.bcel to com.bea.core.repackaged.apache.bcel Client 5.2 Tue May 15 09:52:37 EDT 2007 ImplVersion: 5.2.1.0

Eclipse Java Development Tools (JDT) extracted from ecj.jar from http://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/download.php?dropFile=ecj.jar 3.2.2 Wed Nov 14 18:48:32 PST 2007 ImplVersion: 3.2.2.0

Apache commons collections package 3.2 Tue Mar 20 15:48:25 MDT 2007 ImplVersion: 3.2.0

Apache commons lang package 2.1 Tue Mar 20 15:48:30 MDT 2007 ImplVersion: 2.1.0

Apache commons pool package 1.3 Tue Mar 20 15:48:36 MDT 2007 ImplVersion: 1.3.0

Apache DOM implementation 1.0 Tue Mar 20 15:36:46 MDT 2007 ImplVersion: 1.0.0.0

Apache Logging Support 1.0 Tue Mar 20 15:36:50 MDT 2007 ImplVersion: 1.0.0.0

Apache OpenJPA classes 2.2 Mon Jun 16 13:30:20 EDT 2008 ImplVersion: 2.2.0.0_1-1-0

XML Beans Marshalling SVN 664206 1.0 Mon Jun 23 13:38:10 PDT 2008 ImplVersion: 2.4.0

BEA Logging Runtime Support Client Capable 1.4 Mon Jun 30 20:10:14 EDT 2008 ImplVersion: 1.4.0.0

BEA Common Security Open SAML 1.0 Wed Apr 30 14:36:34 PDT 2008 ImplVersion: 5.0.2.0

BEA OpenSAML 2.0 1.0 Wed Jan 30 11:33:13 PST 2008 ImplVersion: 5.0.2.0

bea-harvester-api2.0 Client Capable 2.1 Tue May 13 18:55:31 PDT 2008 ImplVersion: 2.1.0.0

bea-harvester-jmx2.0 Client Capable 2.1 Mon Jun 30 20:10:14 EDT 2008 ImplVersion: 2.1.0.0

bea-harvester-utils Client Capable 1.2 Fri May 16 19:59:32 EDT 2008 ImplVersion: 1.2.0.0

bea-mbean-typing-util Client Capable 1.2 Tue May 13 18:55:31 PDT 2008 ImplVersion: 1.2.0.0

Javolution 3.7.19 3.7 Tue Aug 28 17:32:21 PDT 2007 ImplVersion: 3.7.19.0

Joda-time 1.2.1 1.2 Tue Aug 28 17:32:27 PDT 2007 ImplVersion: 1.2.1.0

BEA STAX Build Time Support 1.3 Fri May 30 13:55:36 PDT 2008 ImplVersion: 1.3.0.0

BEA STAX Runtime Time Support Client Capable 1.3 Mon Jun 16 16:00:21 EDT 2008 ImplVersion: 1.3.0.0

BEA Generic Annotations Client Capable 1.2 Wed Mar 26 18:39:09 PDT 2008 ImplVersion: 1.2.0.0

BEA Kodo 1.0 Thu Jun 19 12:39:08 PDT 2008 ImplVersion: 1.0.0.0_4-2-0

BEA Kodo Integration Client Capable 1.3 Sun Dec 2 14:56:15 PST 2007 ImplVersion: 1.3.0.0

BEA Kodo Integration 1.3 Binding Bundle ImplVersion: 1.3.0.0

BEA Kodo Integration Tools 1.2 Tue Mar 25 09:40:59 PDT 2008 ImplVersion: 1.2.0.0

BEA Process Manager 5.4 Wed May 14 09:39:18 PDT 2008 ImplVersion: 5.4.0.0

XML Beans Marshalling (package renamed com.bea) SVN 664206 1.0 Mon Jun 23 13:38:10 PDT 2008 ImplVersion: 2.4.0

WebLogic STAX Client Capable 1.4 Sun Jun 22 23:38:06 PDT 2008 ImplVersion: 1.4.0.0

WebLogic Utils Client Capable 1.4 Fri May 16 20:44:14 PDT 2008 ImplVersion: 1.4.0.0

Aspect 5.1 Mon Jun 11 12:47:05 EDT 2007 ImplVersion: 5.1.0

BEA Apache Commons Logging Repackaged 1.2 Mon Jun 11 12:47:12 EDT 2007 ImplVersion: 1.2.0

Spring Framework 2.0 Fri Sep 7 05:23:46 PDT 2007 ImplVersion: 2.0.3

Pitchfork 1.1 Thu Apr 17 18:43:59 PDT 2008 ImplVersion: 1.0

CSS i18n 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

CSS xacml 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

SAML2 Utils 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

BEA Common Security Engine Implementation 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

BEA Common Security Engine Interfaces 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

BEA Common Security API 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

BEA Common Security Implementation 1.0 Thu Jun 12 09:51:27 PDT 2008 ImplVersion: 5.0.2.0

BEA Common Security JDK Utilities 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

Security Utilities 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

Common Security SAML 2.0 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

Common Security SAML 2.0 Management JavaBeans 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

Security Provider Utilities 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

SAML Utils 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

XACML Utils 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

Security Provider Environment 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

RSA certj 1.0 Tue Aug 28 17:32:05 PDT 2007 ImplVersion: 1.0.0.0

Netscape LDAP JDK 1.0 Tue Feb 12 10:00:33 PST 2008 ImplVersion: 1.0.0.0

Commons Networking Utilty classes 1.0 Wed Feb 6 15:01:03 PST 2008 ImplVersion: 1.4.1

WebLogic SAAJ 1.3 Sun Jun 22 23:38:06 PDT 2008 ImplVersion: 1.3.0.0

Expression Language 2.1 for JSP 2.1 Tue Mar 20 15:50:56 MDT 2007 ImplVersion: 2.1.0

jaxb-impl.jar taken from Glassfish JAXB 2.1.6 2.1 Wed Apr 9 06:55:23 PDT 2008 ImplVersion: 2.1.6

jaxb-impl.jar taken from Glassfish JAXB 2.1.6 2.1 Wed Apr 9 15:18:25 PDT 2008 ImplVersion: 2.1.6

resolver.jar taken from Glassfish JAXWS 2.1.3 2.1 Thu Dec 13 10:41:39 PST 2007 ImplVersion: 2.1.3

Fastinfoset.jar taken from Glassfish JAXWS 2.1.3 2.1 Thu Dec 13 10:41:42 PST 2007 ImplVersion: 2.1.3

jaxws-rt.jar taken from Glassfish JAXWS 2.1.3 2.1 Thu Jul 10 20:42:36 MDT 2008 ImplVersion: 2.1.3

Java.net implementation of MimePull.jar taken from Glassfish JAXWS 2.1.3 1.0 Thu Dec 13 10:41:49 PST 2007 ImplVersion: 1.0.144

Woodstox STaX parser 3.2.4 1.0 Fri Feb 8 08:15:07 PST 2008 ImplVersion: 3.2.4

jaxws-tools.jar taken from Glassfish JAXWS 2.1.3 1.0 Thu Jun 19 19:04:40 PDT 2008 ImplVersion: 2.1.3

Java.net Stax Extensions 1.0 Tue Jun 3 07:12:06 PDT 2008 ImplVersion: 1.2

Java.net xml stream buffer 0.5 Thu Dec 13 10:41:06 PST 2007 ImplVersion: 0.5.221

Jakarta ORO 1.0 Wed Feb 6 15:01:03 PST 2008 ImplVersion: 2.0.8

Javax Enterprise Activation 1.1 Tue Apr 8 09:31:17 PDT 2008 ImplVersion: 1.1

Javax Annotation 1.1 Thu Jan 17 14:00:16 PST 2008 ImplVersion: 1.1

Javax Interceptor 1.0 Tue Mar 20 15:37:16 MDT 2007 ImplVersion: 1.0

Javax Enterprise Beans 3.0 Mon Jun 11 12:21:01 EDT 2007 ImplVersion: 3.0.1

Java Data Objects 2.0 Mon Jun 11 12:20:56 EDT 2007 ImplVersion: 2.0.1

Java Enterprise Deployment APIs 1.2 Tue Mar 20 15:37:28 MDT 2007 ImplVersion: 1.2

Java Enterprise Messaging 1.1 Mon Jun 11 12:21:11 EDT 2007 ImplVersion: 1.1.1

Javax Server Pages Client Capable 1.1 Tue Mar 25 09:40:59 PDT 2008 ImplVersion: 2.1

Java Web Services 2.0 Tue Mar 20 15:37:37 MDT 2007 ImplVersion: 2.0

Javax Enterprise Mail 1.1 Fri Apr 18 11:40:57 PDT 2008 ImplVersion: 1.1

Java Enterprise Management APIs 1.0 Tue Mar 20 15:37:49 MDT 2007 ImplVersion: 1.0

Java Persistence Client Capable 1.0 Wed Aug 29 15:09:16 PDT 2007 ImplVersion: 1.0

Java Connector 1.5 Mon Jun 11 12:22:07 EDT 2007 ImplVersion: 1.5.1

Java Authorization Contract for Containers 1.0 Wed Feb 6 15:01:03 PST 2008 ImplVersion: 1.1

Javax Enterprise Servlets Client Capable 1.0 Thu Aug 2 12:41:25 EDT 2007 ImplVersion: 2.5

Javax Transaction APIs Client Capable 1.0 Thu Aug 2 12:42:14 EDT 2007 ImplVersion: 1.1

JAXB 2.1 Mon Jun 11 12:22:53 EDT 2007 ImplVersion: 2.1.1

Java XML Registry 1.0 Wed Feb 6 15:01:03 PST 2008 ImplVersion: 1.0

Java XML Soap Extensions 1.3 Mon Jun 11 12:22:59 EDT 2007 ImplVersion: 1.3.1.0

Java Stream XML Extensions 1.1 Mon Jun 11 12:23:05 EDT 2007 ImplVersion: 1.1.1.0

JAX-WS APIs 2.1 Mon Jun 11 12:23:16 EDT 2007 ImplVersion: 2.1.1

Java API for XML-based RPC 1.2 Mon Jun 11 12:23:10 EDT 2007 ImplVersion: 1.2.1

Monfox Dynamic SNMP Agent 1.0 Wed Dec 19 12:42:31 PST 2007 ImplVersion: 4.6.5

RSA Jsafe 3.5 Tue Mar 20 15:37:08 MDT 2007 ImplVersion: 3.5.0

Serp bytecode manipulation framework 1.14.2 Fri Oct 12 07:42:09 PDT 2007 ImplVersion: 1.14.2.0

WebLogic Apache Classes Client Capable 1.2 Sat May 17 15:12:46 PDT 2008 ImplVersion: 1.2.0.0

WebLogic BeanInfo Caching and Discovery Client Capable 1.4 Thu Dec 6 10:18:16 PST 2007 ImplVersion: 1.4.0.0

WebLogic Descriptor Client Capable 1.4 Tue May 13 18:52:16 PDT 2008 ImplVersion: 1.4.0.0

Repackaged ASM-3.0 3 Mon Jun 11 12:24:52 EDT 2007 ImplVersion: 3.0

Repackaged asm-commons-3.0 3 Tue Nov 6 04:50:08 PST 2007 ImplVersion: 3.0

Repackaged asm-tree-3.0 3 Tue Nov 6 04:50:02 PST 2007 ImplVersion: 3.0

Repackaged asm-util-3.0 3 Thu Nov 29 16:23:28 PST 2007 ImplVersion: 3.0

WebLogic Diagnostics Core Interfaces Client Capable 2.1 Mon Feb 11 07:36:37 PST 2008 ImplVersion: 2.1.0.0

WebLogic Diagnostics Logging Client Capable 1.1 Wed Dec 19 12:42:31 PST 2007 ImplVersion: 1.1.0.0

WebLogic Diagnostics Query Module Client Capable 1.0 Sat Sep 8 05:09:46 PDT 2007 ImplVersion: 1.0.0.0

WebLogic Diagnostics Instrumentor Tool 1.3 Wed Jul 9 08:23:30 PDT 2008 ImplVersion: 1.3.0.0

Diagnostics Notifications Module Client Capable 1.1 Fri May 16 00:07:26 EDT 2008 ImplVersion: 1.1.0.0

BEA Logging Runtime Support Client Capable 1.1 Fri May 16 00:07:26 EDT 2008 ImplVersion: 1.1.0.0

WebLogic i18n Runtime Support Client Capable 1.4 Mon May 5 14:46:07 PDT 2008 ImplVersion: 1.4.0.0

WebLogic i18n Build Support Client Capable 1.3 Wed Dec 19 12:42:31 PST 2007 ImplVersion: 1.3.0.0

WebLogic I18N tools Client Capable 1.1 Fri May 16 00:07:26 EDT 2008 ImplVersion: 1.1.0.0

WebLogic Management JMX Interfaces 1.1 Tue Mar 25 09:40:59 PDT 2008 ImplVersion: 1.1.0.0

WebLogic Security Provider Generation Tool 1.3 Thu Apr 17 14:00:09 PDT 2008 ImplVersion: 1.3.0.0

WebLogic Security Provider Generation Tool Client Capable 1.3 Wed Dec 19 12:42:31 PST 2007 ImplVersion: 1.3.0.0

WebLogic Messaging Kernel Client Capable 1.4 Fri May 16 07:02:44 PDT 2008 ImplVersion: 1.4.0.0

WebLogic Resource Pool Client Capable 1.4 Sat May 10 08:31:40 PDT 2008 ImplVersion: 1.4.0.0

WebLogic Socket Muxer API Client Capable 1.0 Thu Aug 2 12:52:11 EDT 2007 ImplVersion: 1.0.0.0

WebLogic RMI Client Capable 1.4 Wed Jun 25 07:34:46 PDT 2008 ImplVersion: 1.4.0.0

Common Security WebLogic Server Integration Support 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

Server Lifecycle Interfaces Client Capable 1.1 Wed May 28 09:40:24 EDT 2008 ImplVersion: 1.1.0.0

WebLogic Store Client Capable 1.4 Tue May 13 06:53:48 PDT 2008 ImplVersion: 1.4.0.0

WebLogic STORE GXA Client Capable 1.4 Mon Jun 30 20:10:14 EDT 2008 ImplVersion: 1.4.0.0

WebLogic Store Admin Tool Client Capable 1.1 Tue Mar 25 09:40:59 PDT 2008 ImplVersion: 1.1.0.0

WebLogic JDBC Store Client Capable 1.1 Tue May 13 06:53:48 PDT 2008 ImplVersion: 1.1.0.0

WebLogic JTA implementation Client Capable 2.5 Mon Jun 30 20:10:14 EDT 2008 ImplVersion: 2.5.0.0

WebLogic Utils 1.4 Fri May 16 20:44:14 PDT 2008 ImplVersion: 1.4.0.0

Agent Utililities 1.0 Thu Apr 17 14:00:09 PDT 2008 ImplVersion: 1.0.0.0

WebLogic Utility Classloader implementations Client Capable 1.4 Mon Jun 23 00:11:47 MDT 2008 ImplVersion: 1.4.0.0

WebLogic java compiler utils package Client Capable 1.0 Wed Jun 4 18:17:23 PDT 2008 ImplVersion: 1.0.0.0

WebLogic Utils for working with Expressions Client Capable 1.3 Thu Aug 2 12:46:33 EDT 2007 ImplVersion: 1.3.0.0

WebLogic Utils for Dynamically Generated Class Wrappers Client Capable 1.3 Tue Aug 28 12:24:40 PDT 2007 ImplVersion: 1.3.0.0

WebLogic Timers Client Capable 1.4 Tue Mar 25 09:40:59 PDT 2008 ImplVersion: 1.4.0.0

WebLogic Work Manager Client Capable 1.4 Mon Jun 30 20:10:14 EDT 2008 ImplVersion: 1.4.0.0

WebLogic Workarea Client Capable 1.4 Tue Mar 25 09:40:59 PDT 2008 ImplVersion: 1.4.0.0

WebLogic XML XPath Implementation Client Capable 1.1 Tue Mar 25 09:40:59 PDT 2008 ImplVersion: 1.1.0.0

Weblogic Tuxedo Connector Core Client Capable 1.2 Fri Jun 20 07:38:00 PDT 2008 ImplVersion: 1.2.0.3

WebLogic Security 1.0 Wed May 14 11:49:39 PDT 2008 ImplVersion: 5.0.2.0

Weblogic Server Java Authentication Helper Classes Client Capable 1.0 Fri Jun 22 07:09:57 PDT 2007 ImplVersion: 1.0.0.0

Weblogic Server Message Digest Utilities Client Capable 1.0 Thu Aug 2 12:51:30 EDT 2007 ImplVersion: 1.0.0.0

Weblogic Server Authenticated Subject Client Capable 1.1 Tue Mar 25 09:40:59 PDT 2008 ImplVersion: 1.1.0.0

Weblogic Server Authenticated Subject Client Capable 1.1 Wed Jul 9 08:08:58 PDT 2008 ImplVersion: 1.1.0.0

WebLogic Nodemanager Plugin Client Capable 1.2 Thu Aug 2 13:07:55 EDT 2007 ImplVersion: 1.2.0.0

WebLogic JMS Pool Client Capable 1.4 Wed Apr 16 08:06:19 PDT 2008 ImplVersion: 1.4.0.0

Contains compiled schema type from WLS 9.0 for WLP compatibility 1.1 Mon Jun 16 16:00:21 EDT 2008 ImplVersion: 1.1.0.0

WebLogic Http Pub/Sub Module Client Capable 1.2 Wed Jun 4 18:17:46 PDT 2008 ImplVersion: 1.2.0.0

WebLogic WebApp Container Public API Client Capable 1.2 Wed Jun 4 18:17:46 PDT 2008 ImplVersion: 1.2.0.0

Class Redefinition Project 1.1 Fri Jun 13 05:31:17 MDT 2008 ImplVersion: 1.1.0.0

Class Redefinition Project Client Capable 1.1 Thu Feb 14 11:30:26 PST 2008 ImplVersion: 1.1.0.0

Class Redefinition Project 1.1 Binding Bundle ImplVersion: 1.1.0.0

BEA PlugIn Wizard 2.1 Thu Oct 18 16:42:50 EDT 2007 ImplVersion: 2.1.2.0

BEA Plugin SPI 2.1 Mon Feb 19 18:09:33 EST 2007 ImplVersion: 2.1.0.0

BEA Common Development 5.9 Fri Jul 18 15:18:33 EDT 2008 ImplVersion: 5.9.0.0

BEA XML Data Handler 2.2 Thu May 17 11:04:14 EDT 2007 ImplVersion: 2.2.0.0

BEA Global Product Registry 2.8 Wed Jun 18 19:50:20 EDT 2008 ImplVersion: 2.8.0.0

BEA Global Product Registry Impl 2.8 Wed Jun 18 19:50:20 EDT 2008 ImplVersion: 2.8.0.0

BEA Wizard 5.6 Thu May 15 19:27:22 EDT 2008 ImplVersion: 5.6.0.0

BEA Config Wizard 5.2 Tue Jul 1 21:03:54 EDT 2008 ImplVersion: 5.2.0.0

BEA WLW Plaf 5.2 Mon Feb 19 18:09:33 EST 2007 ImplVersion: 5.2.0.0

BEA Upgrade Plugin SPI 2.2 Thu Jun 19 14:29:30 EDT 2008 ImplVersion: 2.2.0.0

Sunday, October 16, 2011

OSB and NodeManager

I have created a OSB 10.3 (doing some archeology work) domain,
when I start ms1 from startManagedWebLogic.sh everything is fine,
when I start with node manager I get a bunch of

"weblogic java.lang.IllegalStateException: zip file closed"

for each deployment, and server fails horribly.

Going up a little in the logs, I find:

weblogic.common.ResourceException: Unknown Data Source cgDataSource

and

weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class: com.pointbase.jdbc.jdbcUniversalDriver

I have made sure I was setting JAVA_VENDOR=Sun and JAVA_HOME to Sun jdk in commEnv.sh

I have cleared the tmp, stage and cache directories

In https://kr.forums.oracle.com/forums/thread.jspa?threadID=906756 it suggests to use the hostname rather than localhost in the JDBC configuration XML

Then of course I notice that the pbclient57.jar is not in the classpath as it should be (see the output of the startManagedWebLogic.sh:

CLASSPATH=:/home/orauser/bea/patch_wlw1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/orauser/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/orauser/bea/patch_cie670/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/orauser/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/orauser/bea/patch_alsb1031/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/orauser/bea/jdk160_05/lib/tools.jar:/home/orauser/bea/wlserver_10.3/server/lib/weblogic_sp.jar:/home/orauser/bea/wlserver_10.3/server/lib/weblogic.jar:/home/orauser/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/home/orauser/bea/wlserver_10.3/server/lib/webservices.jar:/home/orauser/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/home/orauser/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/home/orauser/bea/wlserver_10.3/../modules/features/osb.server.modules_10.3.1.0.jar:/home/orauser/bea/osb_10.3/lib/flow/sb-flow.jar:/home/orauser/bea/wlserver_10.3/../modules/com.bea.core.jaxen_1.0.1.0_1-1-1.jar:/home/orauser/bea/osb_10.3/lib/version.jar:/home/orauser/bea/osb_10.3/lib/alsb.jar:/home/orauser/bea/osb_10.3/3rdparty/lib/j2ssh-ant.jar:/home/orauser/bea/osb_10.3/3rdparty/lib/j2ssh-common.jar:/home/orauser/bea/osb_10.3/3rdparty/lib/j2ssh-core.jar:/home/orauser/bea/osb_10.3/3rdparty/lib/j2ssh-dameon.jar:/home/orauser/bea/osb_10.3/3rdparty/classes:/home/orauser/bea/wlserver_10.3/../modules/com.bea.core.apache.commons.logging_1.1.0.jar:/home/orauser/bea/osb_10.3/lib/transports/jca/jca-binding-api.jar:/home/orauser/bea/osb_10.3/lib/transports/jca/bpm-infra.jar:/home/orauser/bea/osb_10.3/lib/transports/jca/log4j_1.2.8.jar:/home/orauser/bea/osb_10.3/lib/transports/jca/xmlparserv2.jar:%WL_HOME/server/ext/jdbc/oracle/orai18n.jar:/home/orauser/bea/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/home/orauser/bea/wlserver_10.3/server/lib/xqrl.jar::

)


So really the only way to properly start OSB MS is to set the
"startscriptenabled=true" in the nodemanager.properties.

I have done it and it works.


Paolo Uccello, San Giorgio e il Drago

See also here http://blogs.oracle.com/jamesbayer/entry/weblogic_nodemanager_quick_sta


Congratulations, you are visitor number 200,000


there are people who have a life

and there are people who have nothing less narcissistic to do than monitoring the hits on their blog :o)



Saturday, October 15, 2011

Ubuntu 11.10 restore traditional desktop

I have upgraded my Ubuntu 11.04 to 11.10 ... it took one hour to do the upgrade, and once restarted I was freaked.
The traditional, stern and essential Ubuntu look and feel was gone, replaced by a google-iphonish display. Crap! Don't do that to me! I am not a sissy! I like STERN ESSENTIAL interfaces.

So here I find this post:

http://tombuntu.com/index.php/2011/09/11/install-the-classic-desktop-in-ubuntu-11-10/

and I do:

sudo apt-get install gnome-panel

then restart, and before I login I choose the "gnome classic, no effects" interface.



and life is "almost" back to its usual course.

Please notice also that the very important item "System Setting" is hidden somewhere in the top right button.... not a very smart choice IMHO

OSB Cluster

Create a new Domain, using the "OSB Production" template
Create it in "Production" mode
Create MS osb_server1 and osb_server2 and put them into a cluster.

You will notice that this deployment:

"ALSB Cluster Singleton Marker Application" is targeted to osb_server1

wlsbJMSServer_auto_1 and 2 are targeted to osb_server1 and 2

WseeJmsServer_auto_1 and 2 are targeted to osb_server1 and 2

wli.reporting.purge.queue is deployed to wlsbJMSServer_auto_1

all the reporting, email file ftp sftp transport JMS queues are created as Distributed Destinations and targeted to the cluster
(wlsb.internal.transport.task.queue.ftp_auto_1, wlsb.internal.transport.task.queue.sftp_auto_1, wlsb.internal.transport.task.queue.email_auto_1, wlsb.internal.transport.task.queue.file_auto_1, QueueIn_auto_1, wli.reporting.jmsprovider.queue_auto_1, wli.reporting.jmsprovider_error.queue_auto_1)


DefaultCallbackQueue-WseeJmsServer_auto_1/2 and DefaultQueue-WseeJmsServer_auto_1/2 are deployed to either server



see here


for File, FTP, email:
"the poller on only one managed server will poll for a given proxy service"


(more to come...)

Friday, October 14, 2011

The IPhone sucks

I was a happy owner of a Palm-based phone, the Treo 750.
It was simple, its keyboard was very reliable, its Palm Desktop would mirror exactly the structure on the info in the phone.




The only problem: the screen was too small to read PDFs, and frankly as a MP3 player it was not great.

So I have reluctantly decided to buy me a IPhone 4, since everyone was depicting it as the 8th wonder of the world.

Well, I am really disappointed. The ITunes Desktop franly sucks, it's only aimed at making you buy media and applications, but not to synchronize your info. And it's really unstable, when it synchronizes it freezes completely and sometimes crashes.

Importing contacts into IPhone was a loooooong struggle, and necessarily it had to be done via my GMail account.

The keyboard is pretty useless, after 1 month I still make a lot of typing mistakes (I have big fingers...) and you must all the time jump between numeric and alpha views.

When you are abroad, the Data allowance is measly and they charge you a fortune for extra data.

They replaced my old standard SIM with a new, non standard one, so I can't use it any more on any other phone - so if I run out of batteries I am screwed.

The battery life is 1 day if you forget WiFi on (this is simply obscene), otherwise max 2 days.

Alarms are simply cumbersome and useless, if you are used to the simplicity of the Palm alarms.

Ok you have a Safari browser, but I would use it only in case of emergency.

Maps are definitely good.

The PDF reader is good, but it's pretty much the only good side.

So, all in all, I would never again make choose an IPhone as my main PDA. I still carry my old Palm with me and I am planning to reclaim my old SIM so I can avoid using the IPhone to make-receive calls.

Sunday, October 9, 2011

weblogic.transaction.loggingresource.LoggingResourceException: java.sql.SQLException: JDBC LLR, table verify...

this man deserves a monument:

http://blogs.oracle.com/jeffdavies/entry/running_multiple_weblogic_and

either you use a different URL for the DB, or you use a different AdminServer name in each domain...

see also here

Friday, October 7, 2011

It's Friday



Wednesday, October 5, 2011

Beginning XSLT 2.0

http://www.apress.com/9781590593240


Suggested tools:
www.oxygenxml.com
saxon.sourceforge.net
saxonica.com

source code at http://www.apress.com/book/download.html

mailing list at http://www.mulberrytech.com/xsl/xsl-list
XSLT FAQ at http://www.dpawson.co.uk/xsl/
more resources here http://www.jenitennison.com/




What I have learned from this book:

- differences between xml 1.0 and 1.1
- element xml:lang, space, base, id
- unicode é (see www.unicode.org)




Also here a list of resources.


Anyway I am not passionate about this kind of books. Lots of blablabla and little practicality. An example is worth a thousand blablabla.

Just do the w3cschool http://www.w3schools.com/xsl/ and you will enjoy.

GC overhead limit exceeded

http://stackoverflow.com/questions/4371505/gc-overhead-limit-exceeded

parameters which influence this message:

GCTimeLimit
GCHeapFreeLimit

-XX:-UseGCOverheadLimit to switch control off

Anyway rather than trying to hide the problem, I would rather try to fix the bloody code.

Tuesday, October 4, 2011

Multicast for Distributed Topic

When I enter a value in the Multicast address for a Distributed topic,
when I start the server I get:

element not allowed forwarding-policy

it seems that the SystemModule-0-jms.xml generated by the console does not comply with the official schema, for the element uniform-distributed-topic doesn't seem to accept "multicast" after forwarding-policy.

Changing the configuration with WLST doesn't fix the problem.

Schemas are in C:\pierre\bea1035\wlserver_10.3\server\lib\schema\weblogic-domain-binding.jar under META-INF/schema*.xsd
but I could not locate the definition of uniform-distributed-topic

ok 2 hours wasted and no progress...

Anyway they say that multicast doesn't guarantee delivery, so it's not going to be adopted in a Exactly-once QOS scenario...

Sunday, October 2, 2011

Debugging OutOfMemory in Durable Subscribers

(this is just a stub... working on it...)

classes involved:

weblogic.rjvm.MsgAbbrevJVMConnection
weblogic.rjvm.MsgAbbrevJVMConnection.WritingState

weblogic.utils.UnsyncCircularQueue

weblogic.utils.io.Chunk

weblogic.rjvm.t3.MuxableSocketT3


T3MsgAbbrevJVMConnection extends MsgAbbrevJVMConnection


debug flags:

DebugJMSDurableSubscribers
DebugJMSDispatcher
DebugAbbreviation

weblogic.kernel.debug
DebugConnection
DebugMessaging
DebugJMSBackEnd
DebugJMSFrontEnd
DebugJMSCommon

DebugJMSXA


basically this WLST:


cd('/Servers/ms1/ServerDebug/ms1')
cmo.setDebugAbbreviation(true)
cmo.setDebugConnection(true)
cmo.setDebugMessaging(true)
cmo.setDebugJMSBackEnd(true)
cmo.setDebugJMSCommon(true)
cmo.setDebugJMSDurableSubscribers(true)
cmo.setDebugMessagingKernel(true)
cmo.setDebugMessagingKernelBoot(true)
cmo.setDebugJMSDispatcher(true)
cmo.setDebugJMSFrontEnd(true)
cmo.setDebugJMSXA(true)

activate()



parameters:
KernelMBean T3ServerAbbrevTableSize

weblogic.Chunksize
weblogic.utils.io.chunkpoolsize
weblogic.PartitionSize


see http://download.oracle.com/docs/cd/E12840_01/wls/docs103/perform/WLSTuning.html#wp1152088

Interesting: Connection Factory "Subscription Sharing Policy" (sharable or exclusive) http://download.oracle.com/docs/cd/E17904_01/web.1111/e15493/jms_extensions.htm but this leads to the message being delivered to only 1 subscriber

Profiling WebLogic 10.3.5 with YourKit 10.0.0

http://www.yourkit.com/docs/10/help/agent.jsp

see also http://www.torsten-horn.de/techdocs/jee-oracleweblogic.htm#YourKit


In brief, if you are lazy:

in YourKit, Tools/Integrate with standalone Application Server, choose WebLogic 9/10,
provide location of the startup script (not necessarily startWebLogic.cmd, if you are profiling a Managed Server you will provide C:\bea1035\user_projects\domains\osb_domain\startms1.cmd )

(I choose JVM 32bit)

YourKit will generate a C:\bea1035\user_projects\domains\osb_domain\startms1_with_yjp.bat

who simply inserts a

set JAVA_OPTIONS=-agentpath:C:\PROGRA~2\YOURKI~1.0\bin\win32\yjpagent.dll=disablestacktelemetry,disableexceptiontelemetry,builtinprobes=none,delay=10000,sessionname=WebLogic %JAVA_OPTIONS%


before my startManagedWebLogic.cmd

Make sure that in the agentpath parameters you specify also port=11001 if port 10001 is already in use. YourKit says that it dynamically chooses another port but this didn't work for me.

Remove disablestacktelemetry (anyway you can still disable it runtime with a button).

In "Capture Memory Snapshot", enable HPROF format.

Change JVM parameters for Managed Server

If you start the Managed server from a script, invoking startManagedWebLogic.cmd,
be aware that passing the JVM parameters like this:

set JAVA_OPTIONS=-Xms1024m -Xmx1024m

will NOT work, although they DO appear in the command line. They appear, but duplicate and it's only the first occurrence which matters.

This is the way to do it:

set USER_MEM_ARGS=-Xms1024m -Xmx1024m -Xloggc:ms1gc.log

wlfullclient.jar

I was getting from my JMS client:

com.sun.corba.se.impl.encoding.CDRInputStream_1_0 read_value
WARNING: "IOP00810257: (MARSHAL) Could not find class "org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe
at com.sun.corba.se.impl.logging.ORBUtilSystemException.couldNotFindClass(ORBUtilSystemException.java:8260)

googling around I find:

https://kr.forums.oracle.com/forums/thread.jspa?threadID=705919


1. Change directories to the server/lib directory.
cd WL_HOME/server/lib

2. Use the following command to create wlfullclient.jar in the server/lib directory:
java -jar wljarbuilder.jar

in fact the wljarbuilder.jar contains only a MANIFEST.MF with:

Main-Class: com.bea.jarbuilder.JarBuilder
Class-Path: ../../../modules/com.bea.core.jarbuilder_1.6.0.1.jar

It does build the wlfullclient.jar and it does solve the problem.

Tabbed Command prompt in Windows

http://sourceforge.net/projects/console/files/

it's called Console2 and it's pretty cool.
One wonders why Microsoft haven't made their "DOS" CLI a bit prettier in all these years...

java.io.IOException: write not supported at weblogic.corba.client.cluster.DummySocket$2.write(DummySocket.java:35)

javax.naming.NamingException: Couldn't connect to the specified host : write not supported [Root exception is org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 203 completed: Maybe]
at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:83)
at weblogic.corba.j2ee.naming.ORBHelper.getORBReferenceWithRetry(ORBHelper.java:656)
at weblogic.corba.j2ee.naming.ORBHelper.getORBReference(ORBHelper.java:594)
at weblogic.corba.j2ee.naming.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:85)
at weblogic.corba.j2ee.naming.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:31)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:46)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.(InitialContext.java:197)
at durablesubscribers.DurableSubscriberFactory.run(DurableSubscriberFactory.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 203 completed: Maybe
at com.sun.corba.se.impl.logging.ORBUtilSystemException.writeErrorSend(ORBUtilSystemException.java:2259)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.writeErrorSend(ORBUtilSystemException.java:2277)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.sendWithoutLock(SocketOrChannelConnectionImpl.java:1066)
at com.sun.corba.se.impl.encoding.BufferManagerWriteGrow.sendMessage(BufferManagerWriteGrow.java:57)
at com.sun.corba.se.impl.encoding.CDROutputObject.finishSendingMessage(CDROutputObject.java:144)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.finishSendingRequest(CorbaMessageMediatorImpl.java:247)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete1(CorbaClientRequestDispatcherImpl.j
va:355)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.ja
a:336)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.non_existent(CorbaClientDelegateImpl.java:232)
at org.omg.CORBA.portable.ObjectImpl._non_existent(ObjectImpl.java:137)
at weblogic.corba.j2ee.naming.ORBHelper.getORBReferenceWithRetry(ORBHelper.java:633)
... 15 more
Caused by: java.io.IOException: write not supported
at weblogic.corba.client.cluster.DummySocket$2.write(DummySocket.java:35)
at java.io.OutputStream.write(OutputStream.java:99)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.write(SocketOrChannelConnectionImpl.java:724)
at com.sun.corba.se.impl.encoding.CDROutputObject.writeTo(CDROutputObject.java:174)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.sendWithoutLock(SocketOrChannelConnectionImpl.java:1016)
... 24 more



it turns out that I was running classes compiled with a different JDK using different WebLogic libraries. Recompiling everything with the new libraries fixed the problem.

Windows CMD pocket guide

http://ss64.com/nt/syntax.html

priceless!

Saturday, October 1, 2011

sCrawler, dependency analysis for SOA composites

http://www.oracle.com/technetwork/articles/scrawler-sandeep-phukan-085368.html


http://code.google.com/p/scrawler/


What Sandeep achieved is simply amazing.



Whoever has been working in SOA projects maintenance knows how essential is to have an overall map of the system, showing dependencies and message flows.

My understanding is that products like Amberpoint are aimed more or less at the same target.
Yet I would like to praise a man who singlehandedly managed to do the same.