ADF · OBIEE · Weblogic

oracle.security.jps.service.idstore.IdentityStoreException: JPS-01520: Cannot initialize identity store at starting OBIEE

[bi_server1] [WARNING] [JPS-01520] [oracle.jps.idmgmt] [tid: [ACTIVE].ExecuteThread: ‘0’ for queue: ‘weblogic.kernel.Default (self-tuning)’] [userId: <WLS Kernel>] [ecid: 0000KdVfAivApIWFLzNM8A1K^prs000002,0] [APP: bicomposer#11.1.1] Cannot initialize identity store, cause: javax.naming.CommunicationException: 2001:0:9d38:90d7:280c:3b5:3f57:ebcd:9704 [Root exception is java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine]. [2014-12-19T01:32:16.695+02:00] [bi_server1] [ERROR] [] [oracle.adf.mbean.share.connection.ConnectionsHelper] [tid: [ACTIVE].ExecuteThread: ‘0’ for queue: ‘weblogic.kernel.Default… Continue reading oracle.security.jps.service.idstore.IdentityStoreException: JPS-01520: Cannot initialize identity store at starting OBIEE

java · mysql

run linux command from java and reading result?

import java.*; class Test { public static void main(String[] args) { int ch; try { Process myProcess = Runtime.getRuntime().exec(“ls -al”); InputStreamReader myIStreamReader = new InputStreamReader(myProcess.getInputStream()); while ((ch = myIStreamReader.read()) != -1) { System.out.print((char) ch); } } catch (IOException anIOException) { System.out.println(anIOException); } } }

Web Services

Introduction to Web Services

Web services are distributed application components that are externally available. You can use them to integrate computer applications that are written in different languages and run on different platforms. Web services are language and platform independent because vendors have agreed on common web service standards. Several programing models are available to web service developers. These… Continue reading Introduction to Web Services

java · Strings

String in java

Java Programming String is Special A Brief Summary of String Class A String contains a sequence of Unicode characters. Unlike C/C++, where string is simply an array of char, Java’s String is an object class in the core package java.lang. Unlike an ordinary class: String is associated with string literal in the form of double-quoted… Continue reading String in java

java

How to use ContextLoaderListener,how to make application Listener

publicclass Main extends org.springframework.web.context.ContextLoaderListener {  /** *@param args */ DatabaseListner listener = new DatabaseListner(); publicvoid contextDestroyed(ServletContextEvent event) { super.contextDestroyed(event); listener.end(); listener = null; System.out.println(“web app undeployed”); } publicvoid contextInitialized(ServletContextEvent event) { super.contextInitialized(event); new Thread(){ publicvoid run() { listener.listen(); } }.start(); System.out.println(“Web app is ready.”); } } and add those lines to servlet at web.xml <listener>… Continue reading How to use ContextLoaderListener,how to make application Listener

java

move directory in Java ,convert file to linux,remove CRLF

privatevoid moveFilesFromSourceToDestination(String sourceFolder,String destinationFolder) throws IOException{log.info( “trying move “+sourceFolder+” to “+destinationFolder ); File sFolder = new File(sourceFolder); File dFolder = new File(destinationFolder); for (File file : sFolder.listFiles()){ if (file.isFile()){ File newFile = new File(dFolder.getAbsolutePath() + “/”+file.getName()); moveFile(file,newFile); }elseif (file.isDirectory()){ File newFile = new File(dFolder.getAbsolutePath() + “/”+file.getName()); newFile.mkdir(); moveFilesFromSourceToDestination(file.getAbsolutePath(),newFile.getAbsolutePath()); File oldFile = new File(sFolder.getAbsolutePath() + “/”+file.getName());… Continue reading move directory in Java ,convert file to linux,remove CRLF

collections

how To sort a hashmap using its keys and/or values

To sort a hashmap using its keys :- Dump the HashMap into a TreeMap: Map yourMap= new HashMap(); // put some tuples in yourMap … Map sortedMap = new TreeMap(yourMap); To sort a hashmap using its values :- public HashMap getSortedMap(HashMap hmap) { HashMap map = new LinkedHashMap(); List mapKeys = new ArrayList(hmap.keySet()); List mapValues = new… Continue reading how To sort a hashmap using its keys and/or values