Posts

How to resolve java.net.UnknownHostException when connecting to localhost by hostname

Many a times while working with Java applications, in my case scala (spark), which use your hostname (not localhost) but the actual name you gave to your system, like I use rohit.tuplejump.com , will fail to connect throwing an UnknownHostException. If you do a hostname -f, it will say "Name or service not known" Many people use the solution of adding the this entry to /etc/hosts but that needs to be changed every time your public IP changes. The better solution is to use the nss-myhostname package. The package is generally installed on any linux distribution, in case it isn't you can search and install it using your package manager. On Fedora you can do, $ sudo yum install nss-myhostname Then edit your /etc/nsswitch.conf to add myhostname in the line which begins with "hosts:". This will tell the system to use bind your system hostname to your public IP address. On my system this line looked like, hosts:      files mdns4...

Received bad status 302 on server request to update managed asset

Image
After installing BPM 8.5 release 6, following error occurs when trying to upload a server file on Process Designer: The ProcessDesignerInstallationDirectory\workspace.metadata.log shows: ! ENTRY teamworks . appserver . websphere 4 0 2015 - 06 - 10 12 : 33 : 53.028 ! MESSAGE [ com . lombardisoftware . server . ejb . repositoryservices . ManagedAssetsClientAPI createManagedAssetAE ] CWLLG2212E : Received bad status 302 on server request to update managed asset cd <BPM Dir>/bin ./wsadmin.sh - connType NONE - lang jython  wsadmin>bpdServer=AdminConfig.list("BPMProcessCenter").split()  wsadmin>bpdServer  ['(cells/PCCell1/nodes/Node1/servers/server1|server-bpm.xml#BPMProcessCenter_1385413578191)']  wsadmin>print AdminConfig.showAttribute(bpdServer[0],'useHTTPSURLPrefixes')   false  wsadmin>  wsadmin>AdminConfig.modify(bpdServer[0], [['useHTTPSURLPrefixes', 'true']])  ''  wsadmin>print AdminConfig.showAttrib...

Vertical and Horizontal Cluster

In horizontally clustered environment, cluster-enabled application is deployed on multiple physical machines. Each machine is available for requests. Horizontal clusters offers protection over hardware failure, increases efficiency, provides load balancing and process failover. However, since there are many number of physical machines involved the installation and maintenance cost increases proportionally. In Vertical clustering, multiple application server instances are hosted on the same physical machine. This type of clustering provides increased efficiency, load balancing and process failover. However, if hardware fails then there may not be ready alternative.

Create MS SQL Data Source in OBIEE 11g

Introduction In this post I explain how to connect to MS SQL data sources from OBIEE 11g using the bundled DataDirect SQL Server Wired Protocol ODBC driver. Environment OBIEE Plus 11.1.1.6 running on Solaris 10, Sun Sparc 64 architecture and install under the /oracle/Obiee11 directory. OBIEE Database repository on MS SQL 2008 running on Windows 2008 (64b). MS SQL 2008 SR2 running on Windows Server 2008 SP2 , 64 architecture. DataDirect 5.3 MS SQL Wired Protocol ODBC driver that is bundled with Oracle Business Intelligence. Configuration Process Add the path to the ODBC driver's library directory to the LD_LIBRARY_PATH variable in the /oracle/Obiee11/instances/instance1/bifoundation/OracleBIApplication/coreapplication/setup/ user.sh file. ################################ # DataDirect Wired Protocol ODBC drivers ################################# LD_LIBRARY_PATH=/oracle/Obiee11/Oracle_BI1/bifoundation/odbc/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH ...

WSVR0605W - "Thread may be hung" message in the logs

Problem(Abstract) A WSVR0605W message in the SystemOut.log might be misleading because this message normally indicates a "hung thread" situation. However, when a JCA adapter is set up for polling, the same message might occur in the log because, at the interval between polling, the adapter changes its state from polling to "sleep" and does not wake up until the next polling cycle starts. This adapter behavior is working as designed. Symptom The SystemOut.log file shows: ThreadMonitor W   WSVR0605W: Thread "Default : 0" (<ThreadID>) has been active for xxx milliseconds and may be hung.  There is/are 1 thread(s) in total in the server that may be hung. at java.lang.Thread.sleep(Native Method) at java.lang.Thread.sleep(Thread.java:939) at com.ibm.j2ca.base.internal.PollEventManagerWorker.run(PollEventManagerWorker.java:96) at com.ibm.ejs.j2c.work.WorkProxy.run(WorkProxy.java:419) at com.ibm.ejs.j2c.wo...

Websphere DSN connection test : SQLSTATE=08004 ERRORCODE=-1060, SQLSTATE=08004 DSRA0010E: SQL State = 08004, Error Code = -1,060.

Websphere DSN connection test : SQLSTATE=08004 ERRORCODE=-1060, SQLSTATE=08004 DSRA0010E: SQL State = 08004, Error Code = -1,060. User  does not have the CONNECT privilege Solution: Grand connect privilege and validate the connection. -- Thank You. Regards, Guru

BPM Received bad status 302 on server request to make new managed asset

Image
​ set the "useHTTPSURLPrefixes" parameter to 'true' in your cluster-bpm.xml file. The entry would usually look like this:     <bpdServer xmi:type="BPMConfiguration:BPMProcessCenter" xmi:id="BPMProcessCenter_1404198504697" useHTTPSURLPrefixes="true" httpProtocolOnly="true">​ -- Thank You. Regards, Guru