Expeted: java.io.ByteArrayInputStream but was: java.io.BufferedInputStream

Hi,
The error I am facing is-
expected:<java.io.ByteArrayInputStream@2a4983> but was:<java.io.BufferedInputStream@406199>
Actully I am writing the Junit test cases. I am using
InputStream im = this.getClass().getResourceAsStream("Mol_File.mol");
and that's return me BufferedInputStream, and I need to convert this to ByteArrayInputStream.
If you guys any idea how can i convert this, then please provide me some sample code.
I am doing a lot of googling but not found the desired result.
Thanks
Devesh

This sounds a bit strange, since a BufferedInputStream is a real stream while the ByteArrayInputStream works on a fixed-size array. Thus, there is no direct way of converting them (and it does point to a problem with your API), but the one thing you can do is:
InputStream im = this.getClass().getResourceAsStream("Mol_File.mol");
final byte[] buffer = new byte[im.available()];
im.read(buffer);
final ByteArrayInputStream inStream = new ByteArrayInputStream(buffer);

Similar Messages

  • Expected: java.io.ByteArrayInputStream@2a4983 but was: java.io.BufferedInp

    Hi,
    The error I am facing is-
    expected:<java.io.ByteArrayInputStream@2a4983> but was:<java.io.BufferedInputStream@406199>
    Actully I am writing the Junit test cases. I am using
    InputStream im = this.getClass().getResourceAsStream("Mol_File.mol");     
    and that's return me BufferedInputStream, and I need to convert this to ByteArrayInputStream.
    If you guys any idea how can i convert this, then please provide me some sample code.
    I am doing a lot of googling but not found the desired result.
    Thanks
    Devesh

    It's quite obvious from the error message.
    You've told JUnit to check whether two objects are equal. The expected object is a ByteArrayInputStream, but what you actually gave it was a BufferedInputStream.
    I suspect you really wanted to open both streams and compare the contents? If so, you'll need to do that by hand.
    Also, opening external resources (such as files) is considered a bad idea in unit tests.

  • While dealing with an external hardware i got a Java update4 request,but was not able to complete that update.After that when i switch on my Mac it shows reinstallation required.i was working with OSX 10.8.5,but after reinstallation now it is 10.7.5 .

    While dealing with an external hardware i got a Java update4 request,but was not able to complete that update.After that when i switch on my Mac it shows reinstallation required.i was working with OSX 10.8.5,but after reinstallation now it is 10.7.5 .And while doing search for update it shows your software is uptodate..

    Hi Hal,
    One possibility, is a strange occurence when applying the big 10.5.8 combo, most people have to Repair Permissions twice in a row, then reboot.

  • JSF webapp works with Java 1.4, but not Java EE 5

    Hello
    I am having a really weird problem with internationalizing my JavaServer Faces web application.
    I am using Netbeans 6.0, Tomcat 6.0.10, JSF 1.2, and JTSL 1.1....
    If I use Java 1.4 to run the webapp, everything works fine!
    If I use Java EE 5 then it fails to execute internationalization of my choosen locale.
    I could just use Java 1.4 and have my site working fine, but I would really like to use Java EE 5 since it can do more. Also I don't see why it can work on one version of Java but not another. My locales are English (en) and Korean (ko).
    This is my index.jsp
    <%--
        Document   : index
        Created on : 2/05/2008, 01:33:01
        Author     : Steve
    --%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
    <html>
        <f:view locale="#{localeBean.language}">
            <f:loadBundle basename="resources.messages" var="msg"/>
            <head>
                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                <title>JSP Page</title>
            </head>
            <body>
                <h2>Hello <h:outputText value="#{localeBean.country}"/>!</h2>
                <br>
                <h4><h:outputText value="#{msg.language}"/>:</h4>
                <h:form id="languageForm">
                    <h:selectOneMenu   onchange="this.form.submit();" valueChangeListener="#{localeBean.dropdown1_processValueChange}">
                        <f:selectItem itemLabel="English" itemValue="en"/>
                        <f:selectItem itemLabel="������" itemValue="ko"/>
                    </h:selectOneMenu>
                </h:form>
                <h:outputText value="#{localeBean.language}"/>
            </body>
        </f:view>
    </html>This is my localeBean which is under the package "resources"
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package resources;
    * @author Steve
    import java.util.Locale;
    import javax.faces.event.ValueChangeEvent;
    public class localeBean {
        private String language = Locale.getDefault().getLanguage();
        private String country = Locale.getDefault().getCountry();
        public String getLanguage() {
            return language;
        public void setLanguage(String newValue) {
            language = newValue;
        public String getCountry() {
            return country;
        public void setCountry(String newValue) {
            country = newValue;
        public void dropdown1_processValueChange(ValueChangeEvent vce) {
            setLanguage((String) vce.getNewValue());
    }This is my faces-config file
    <?xml version='1.0' encoding='UTF-8'?>
    <!-- =========== FULL CONFIGURATION FILE ================================== -->
    <faces-config version="1.2"
        xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
    <application> 
            <locale-config>  
                <default-locale>en</default-locale>  
                <supported-locale>en</supported-locale>
                <supported-locale>ko</supported-locale>
            </locale-config>
            <message-bundle> resources.messages </message-bundle>
        </application>
        <managed-bean>
            <managed-bean-name>localeBean</managed-bean-name>
            <managed-bean-class>resources.localeBean</managed-bean-class>
            <managed-bean-scope>session</managed-bean-scope>
        </managed-bean>
    </faces-config>and lastly I have my message bundle under the "resources" package which is named "messages".
    This has a key word "language" which is "Language" in the 'en' locale file and "����" in the 'ko' locale file.
    Once again when using Java 1.4 this project runs fine, however with Java EE 5 it does not.
    You may notice in my index.jsp that I have <h:outputText value="#{localeBean.language}"/>
    I use this to display the locale that has been chosen by my select box. Even when this shows a different language has been chosen the page does still not display in the correct language. According to <f:view locale="#{localeBean.language}"> then the locale of the page should be changed.
    I have looked over the web quite far for an answer to this problem. But everyone else seems to be using a similar method of loading up a message bundle and using it the same way I am. However my method does not work.
    Any suggestions or clues to what is going wrong would be really appreciated.
    Thanks in advance^^

    it seems that the
    <f:view locale="en">
    only work if a ressource bundle with the locale sufix '_en' is provided.
    Everything works now if I provide 3 ressouce files:
    global_en.properties
    global_de.properties
    global.properties
    global.properties and global_en.properties are identically!
    But if I delete the global_en.properties file always the global_de.properties file wins before the default properties.
    I did not expect such a behavior :-(

  • Tried to launch photoshop CS 5.1 suite, messages said I had to unistall it - and then reinstall it but needed to download Java se 6 I installed java and was given Java for Ox 2014-001 then uninstalled PS  I have been unable to reinstall PS 5.1 I don't kno

    I tried to launch photoshop CS 5.1 design premium suite. It did not launch.( Have not had a problem before this) Received a message which said that I had to uninstall it  and then reinstall....but first had to download Java se6. I installed Java...
    it gave me Java OX 2014-001.Message:   that version supercedes all previous versions of Java.
    Went back to PS suite icon and uninstalled all. I have been unable to figure out how to
    reinstall this program.  The only thing that I could find was a very grey icon with an arrow that said "finder".
    Went to the finder icon, searched with NO SUCCESS. Please help.  I have read several blogs and many people seem to be having
    this problem. Note. I recently upgraded to Yosemite.  jude obscure. Thank you

    Thanks for reply. Will search for the answer on forum .  Just found the forum website about 2 days ago.
    Adobe help contacted me. Offered an $1,800. upgrade to PS 6. Not a good choice. Was very happy
    with PS 5 design suite.  Will try to figure out how to download PS updates and manually apply them.
    Adobe person walked me thru a download process for PS 5....last night.
    After  2:30 am I installed PS 5  design suite.  I now have a PS 5 D.S. icon with a red disc on desktop..
    but am unable to install it.  Will continue to search for way to apply it. thanks again.

  • Compiles in Java 5.0 but not 6.0

    I did my homework on my school computer (in eclipse) and compiled in in 6.0 and everything worked. Then I saved it to a usb drive
    and brought it home. I tried to run it on my computer (in eclipse) in 6.0 and it gave me this error:
    Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)when I tried to run it. The weird thing is, if I change eclipse's preferences to compile in 5.0 everything works fine. I just don't understand
    why it compiled in 6.0 at school but won't work on my home computer in 6.0? I'm worried that my teacher might grade the assignment in
    6.0 because if he does I'll get a 0 even though everything works 100% in 5.0.
    I was just wondering if anyone could shed some light on this for me. Thanks in advance!
    Here is my assignment (just giving this so you know what the program is suppose to do):
    http://www2.ics.hawaii.edu/~esb/2008spring.ics211/hw9.html
    It basically reads from a file and adds items in the file to a PriorityQueue using a heap as the data structure. It keeps track of levels
    traversed to re-establish the heap property. How long add/poll take in realTime. And when add/poll occurs in simulatedTime.
    Here's my program:
    import java.io.*;
    import java.util.*;
    public class KinseyAnthony9<T> {
         private static String name = "";
         private static long deadline;
         private static long duration;
         private static int time;
         private static int simulatedTime = 0;
         private static boolean add;
         public static void ProcessLine(Scanner line){
              if(line.next().equalsIgnoreCase("schedule")){
                   add = true;
                   if(line.hasNext()){
                        name = line.next();
                   if(line.hasNext()){
                        deadline = Long.parseLong(line.next());
                   if(line.hasNext()){
                        duration = Long.parseLong(line.next());
                   else {
                        System.out.print("There is a format error in the supplied file");
                        System.exit(1);
                   return;
              else {
                   add = false;
                   if(line.hasNext()){
                        time = Integer.parseInt(line.next());
                   else {
                        System.out.print("There is a format error in the supplied file");
                        System.exit(1);
         public static void main(String[] param) {
              Comparator<MyProc> procCompare = new ProcComparator();
              MyPQueue<MyProc> myQueue = new MyPQueue<MyProc>(procCompare);
    //          PriorityQueue<MyProc> myQueue = new PriorityQueue<MyProc>(1000, procCompare);
              if(param.length == 1) {
                   try {
                        File readMe = new File(param[0]);
                        Scanner readFile = new Scanner(readMe);
                        String line = "";
                        while(readFile.hasNextLine()) {
                             line = readFile.nextLine();
                             Scanner readLine = new Scanner(line);
                             ProcessLine(readLine);
                             if(add) {
                                  System.out.println(simulatedTime + ": adding " + name + " with deadline " + deadline + " and duration " + duration + ".");
                                  myQueue.add(new MyProc(name, deadline, duration));
                             else if(!add) {
                                  String procName = "";
                                  long procDeadline = 0;
                                  long procDuration = 0;
                                  while(simulatedTime != time) {
                                       Scanner procScan = null;
                                       int queueSize = myQueue.size();
                                       if(queueSize <= 0) {
                                            simulatedTime = time;
                                            break;
                                       if(queueSize > 0) {
                                            procScan = new Scanner(myQueue.peek().toString());
                                            procName = procScan.next();
                                            procDeadline = Long.parseLong(procScan.next());
                                            procDuration = Long.parseLong(procScan.next());
                                            System.out.println(simulatedTime + ": performing " + procName + " with deadline " + procDeadline + " and duration " + procDuration + ".");
                                            myQueue.poll();
                                            simulatedTime += procDuration;
                                            if(simulatedTime > time) {
                                                 System.out.println((simulatedTime-procDuration) + ": adding " + procName + " with deadline " + procDeadline + " and duration " + (simulatedTime-time) + ".");
                                                 myQueue.add(new MyProc(name, deadline, (simulatedTime-time)));
                                                 simulatedTime = time;
                                                 break;
                                            else if(simulatedTime <= time) {
                                                 if(procDeadline < simulatedTime) {
                                                      System.out.println(simulatedTime + ": done performing " + procName + " (late).");
                                                 else {
                                                      System.out.println(simulatedTime + ": done performing " + procName + ".");
                   //catch any exception that might occur
                   catch(Exception e){
                        System.out.println(e); //print out the error
                        System.exit(1); //exit
              //Check if more than one or less than one parameter is entered
              else {
                   //if so give an error
                   System.out.println("Error with parameter.");
                   System.exit(1); //exit
    class ProcComparator implements Comparator<MyProc>{
         public int compare(MyProc x, MyProc y){
              long result = x.getDeadline() - y.getDeadline();
              if(result < 0)
                   return -1;
              else if(result > 0)
                   return 1;
              else
                   return 0;
    class MyPQueue<T>{
         public MyHeap<T> theHeap;
         public MyPQueue(Comparator<T> comp) {
              theHeap = new MyHeap<T>(comp);
         public boolean add(T item){
              if(theHeap.add(item)) return true;
              else return false;
         public T peek(){
              return theHeap.peek();
         public int size(){
              return theHeap.numItems();
         public T poll(){
              T result = null;
              if(theHeap.numItems() == 0) return result;
              try{
                   result = theHeap.remove();
              catch(Exception e){
                   System.out.println(e);
                   System.exit(1);
              return result;
         public String toString(){
              return theHeap.toString();
    @SuppressWarnings("unchecked")
    class MyHeap<T>{
         private Comparator<T> heapComparator = null;
         private final int MAX_SIZE = 1000;
         private T heap[];
         private int rTraverseCount = 0;
         private int aTraverseCount = 0;
         public MyHeap(Comparator<T> comp){
              heapComparator = comp;
              heap = (T[])new Object[MAX_SIZE];
         public int numItems() {
              int numItems = 0;
              for(int i = 0; heap[i] != null; i++) {
                   numItems++;
              return numItems;
         public T peek() {
              if(numItems() == 0) return null;
              return heap[0];
         public boolean add(T item) {
              long start = System.nanoTime();
              long time;
              int numItems = numItems();
              if(numItems == 0) {
                   heap[numItems] = item;
                   System.out.println("--> " + aTraverseCount +" levels were traversed to re-heapify the tree.");
                  time = System.nanoTime() - start;
                   System.out.println("--> It took " + time + "ns to complete the add operation.");
                   return true;
              else if(numItems > 0) {
                   heap[numItems] = item;
                   siftUp(0, numItems);
                   if(aTraverseCount == 1)
                        System.out.println("--> " + aTraverseCount +" level was traversed to re-heapify the tree.");
                   else
                        System.out.println("--> " + aTraverseCount +" levels were traversed to re-heapify the tree.");
                   aTraverseCount = 0;
                   time = System.nanoTime() - start;
                   System.out.println("--> It took " + time + "ns to complete the add operation.");
                   return true;
              return false;
         public T remove() throws Exception{
              long start = System.nanoTime();
              long time;
              int numItems = numItems();
              T result = heap[0];
              if(numItems == 0){
                   throw new Exception("NoSuchElementException");
              if(numItems == 1){
                   heap[0] = null;
                   time = System.nanoTime() - start;
                   System.out.println("--> It took " + time + "ns to complete the remove operation.");
                   System.out.println("--> " + rTraverseCount +" levels were traversed to re-heapify the tree.");
                   return result;
              else {
                   heap[0] = heap[numItems - 1];
                   heap[numItems - 1] = null;
                   removalswap(0);
                   if(rTraverseCount-1 == 1)
                        System.out.println("--> " + (rTraverseCount-1) +" level was traversed to re-heapify the tree.");
                   else
                        System.out.println("--> " + (rTraverseCount-1) +" levels were traversed to re-heapify the tree.");
                   rTraverseCount = 0;
              time = System.nanoTime() - start;
              System.out.println("--> It took " + time + "ns to complete the remove operation.");
              return result;
         public void removalswap(int root) {
              rTraverseCount++;
              T valueHolder = heap[root];
              int left = (2*root) + 1;
              int right = (2*root) + 2;
              if(heap[right] != null && heap[left] != null){ //make sure left and right children aren't null
                   if(heapComparator.compare(heap[root],heap[left]) <= 0 &&  //if root is less than or equal
                      heapComparator.compare(heap[root],heap[right]) <= 0) return; //to its children return
                   if(heapComparator.compare(heap[root],heap[left]) > 0){ //if root is greater than left
                        if(heapComparator.compare(heap[left], heap[right]) > 0){ //compare left and right
                             heap[root] = heap[right]; //and swap with the smaller of the two
                             heap[right] = valueHolder;//in this case right is smaller so swap with right
                             removalswap(right);
                        else { //in this case left is smaller so swap with left
                             heap[root] = heap[left];
                             heap[left] = valueHolder;
                             removalswap(left);
                   else if(heapComparator.compare(heap[root],heap[right]) > 0){ //root can be greater than left
                             heap[root] = heap[right]; //but smaller than right. In this case just swap with the
                             heap[right] = valueHolder; //right child.
                             removalswap(right);               
              else if(heap[right] == null && heap[left] != null){ //the right child can be null while the left child
                   if(heapComparator.compare(heap[root],heap[left]) <= 0) return;//is not, but the left child will never
                   else { //be null if the right child isn't. If this is the case see if the root is greater than the
                        heap[root] = heap[left]; //left child and swap if so.
                        heap[left] = valueHolder;
                        removalswap(left);
         public void siftUp(int root, int end) {
              int child = end;
              int parent = (child-1)/2;
              while(child > root){
                   parent = (child-1)/2;
                   if(heapComparator.compare(heap[parent], heap[child]) > 0) {
                        swap(parent,child);
                        child = parent;
                   else{
                        return;
         public void swap(int parent, int child){
              aTraverseCount++;
              T holdValue = heap[parent];
              heap[parent] = heap[child];
              heap[child] = holdValue;
         public String toString(){
              int i = 0;
              String heapPrint = "";
              while(heap[i] != null){
                   heapPrint += heap;
                   i++;
              return heapPrint;
    class MyProc {
         private String name;
         private long deadline;
         private long duration;
         public MyProc(String n, long dl, long dur) {
              name = n;
              deadline = dl;
              duration = dur;
         //Acessors
         public String getName() {
              return name;
         public long getDeadline() {
              return deadline;
         public long getDuration() {
              return duration;
         //Mutators
         public void setName(String n) {
              name = n;
         public void setDeadline(long dl) {
              deadline = dl;
         public void setDuration(long dur) {
              duration = dur;
         public String toString(){
              return name + " " + deadline + " " + duration;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    But if I run that in terminal I get this:
    anthony-computer:~ anthonyjk$ java -version
    java version "1.5.0_13"Yes - commandline/Terminal, that's what I meant.
    So long as the program doesn't use any 1.6-only features, then will it will compile OK both at school (using1.6) and at home (using 1.5). Eclipse can be told to produce .class files that are compatible with a particular runtime. In your case the school compiler was producing 1.6 class files that are no good when you take them home. Hence the need to recompile, telling Eclipse you want 1.5 compatible .class files.
    Or - as I mentioned - download and install the most recent JDK for use at home. There'll be less confusion that way

  • Problem in  SAP WAS Java 6.40 SP9 and MaxDB 7.5 Preview installation

    I am trying to install SAP WAS Java 6.40 SP9 and MaxDB 7.5 I have received the following error.
    Can somebody help me to resolve this.
    Thanks
    kishor
    SAPinst is getting started.
    Please be patient ...
    guiengine: no GUI connected; waiting for a connection on host DB6D1T61, port 21212 to continue with the installation
    guiengine: login in process.
    INFO       2005-05-29 16:01:09 [syxxcfile.cpp:325]
               CSyFileImpl::copy(const CSyPath & q0w9e9r8t7.1.xml, ISyNode::eCopyMode 3, ISyProgressObserver*) const 
    Copying file C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.xml to: q0w9e9r8t7.1.xml.
    INFO       2005-05-29 16:01:09 [syxxcfile.cpp:446]
               CSyFileImpl::copy(const CSyPath & q0w9e9r8t7.1.xml, ISyNode::eCopyMode 3, ISyProgressObserver*) const 
    Copying file C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.xml to: q0w9e9r8t7.1.xml.
    INFO       2005-05-29 16:01:09 [synxcpath.cpp:834]
               CSyPath::createFile()
    Creating file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\q0w9e9r8t7.1.xml.
    INFO       2005-05-29 16:01:10 [syxxcfile.cpp:325]
               CSyFileImpl::copy(const CSyPath & C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.1.xml, ISyNode::eCopyMode 3, ISyProgressObserver*) const 
    Copying file C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.xml to: C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.1.xml.
    INFO       2005-05-29 16:01:10 [syxxcfile.cpp:446]
               CSyFileImpl::copy(const CSyPath & C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.1.xml, ISyNode::eCopyMode 3, ISyProgressObserver*) const 
    Copying file C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.xml to: C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.1.xml.
    INFO       2005-05-29 16:01:10 [synxcpath.cpp:834]
               CSyPath::createFile()
    Creating file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\keydb.1.xml.
    INFO       2005-05-29 16:01:11 [ianxbusprv.cpp:337]
               CIaNtUserPrivileges::add_impl(., DB6D1T61\Kishor Kolhe, SeTcbPrivilege SeAssignPrimaryTokenPrivilege SeIncreaseQuotaPrivilege)
    Successfully added privileges 'SeTcbPrivilege SeAssignPrimaryTokenPrivilege SeIncreaseQuotaPrivilege' to account 'DB6D1T61\Kishor Kolhe' on host '.'.
    INFO       2005-05-29 16:01:15 [synxcpath.cpp:834]
               CSyPath::createFile()
    Creating file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\summary.html.
    PHASE      2005-05-29 16:01:15 [iaxxcwalker.cpp:416]
               CDomWalker::printPhaseInfo()
    Prepare the installation program.
    INFO       2005-05-29 16:01:20 [iaxxcwalker.cpp:59]
               CDomWalker::walk()
    Installation start: Sunday, 29 May 2005, 16:01:07; installation directory: C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST; product to be installed: SAP NetWeaver '04 Support Release 1> Java System> MaxDB> Central System> Custom Installation - Java System
    INFO[E]    2005-05-29 16:01:22 [synxcfsmgt.cpp:132]
               CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    INFO       2005-05-29 16:01:22
               CJSlibModule::writeInfo_impl()
    Looking for SAP system instances installed on this host...
    INFO       2005-05-29 16:01:22
               CJSlibModule::writeInfo_impl()
    No installed instances found!
    INFO       2005-05-29 16:01:22
               CJSlibModule::writeInfo_impl()
    DNS is configured correctly.
    INFO[E]    2005-05-29 16:01:23 [synxcfsmgt.cpp:132]
               CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    INFO       2005-05-29 16:01:45 [syxxcfile.cpp:325]
               CSyFileImpl::copy(const CSyPath & ., ISyNode::eCopyMode 3, ISyProgressObserver*) const 
    Copying file C:/WAS6.4J2EE_NEW/WebAS/J2EE_OSINDEP/JDKVersion.xml to: ..
    INFO       2005-05-29 16:01:45 [syxxcfile.cpp:446]
               CSyFileImpl::copy(const CSyPath & ., ISyNode::eCopyMode 3, ISyProgressObserver*) const 
    Copying file C:/WAS6.4J2EE_NEW/WebAS/J2EE_OSINDEP/JDKVersion.xml to: ..
    INFO       2005-05-29 16:01:45 [synxcpath.cpp:834]
               CSyPath::createFile()
    Creating file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\JDKVersion.xml.
    INFO[E]    2005-05-29 16:01:45 [syxxccuren.hpp:189]
               CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)
    Unable to get value for environment variable JAVA_HOME.
    INFO       2005-05-29 16:01:46
               CJSlibModule::writeInfo_impl()
    Execution of the command "C:/j2sdk1.4.2_08/bin/java.exe '-version'" finished with return code 0. Output:
    java version "1.4.2_08"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
    INFO       2005-05-29 16:01:47
               CJSlibModule::writeInfo_impl()
    Execution of the command "C:/j2sdk1.4.2_08/bin/java.exe '-classpath' 'C:/DOCUME1/KISHOR1/LOCALS1/Temp/sapinst_exe.3360.1117396809/JAR/ins-j2ee.jar;C:/DOCUME1/KISHOR1/LOCALS1/Temp/sapinst_exe.3360.1117396809/JAR/sapxmltoolkit.jar' 'com.sap.ins.j2ee.TestClassLoader'" finished with return code 0. Output:
    CORRECT
    INFO       2005-05-29 16:01:47
               CJSlibModule::writeInfo_impl()
    Directory C:/WINDOWS is not a valid JDK directory: the java executable is missing.
    INFO       2005-05-29 16:01:47
               CJSlibModule::writeInfo_impl()
    Found a valid JAVA_HOME directory C:\j2sdk1.4.2_08 with JDK version 1.4.2_08.
    INFO       2005-05-29 16:01:48
               CJSlibModule::writeInfo_impl()
    Execution of the command "C:\j2sdk1.4.2_08/bin/java.exe '-version'" finished with return code 0. Output:
    java version "1.4.2_08"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
    INFO       2005-05-29 16:01:50
               CJSlibModule::writeInfo_impl()
    Execution of the command "C:\j2sdk1.4.2_08/bin/java.exe '-version'" finished with return code 0. Output:
    java version "1.4.2_08"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
    INFO       2005-05-29 16:01:50
               CJSlibModule::writeInfo_impl()
    Execution of the command "C:\j2sdk1.4.2_08/bin/java.exe '-classpath' 'C:/DOCUME1/KISHOR1/LOCALS1/Temp/sapinst_exe.3360.1117396809/JAR/ins-j2ee.jar;C:/DOCUME1/KISHOR1/LOCALS1/Temp/sapinst_exe.3360.1117396809/JAR/sapxmltoolkit.jar' 'com.sap.ins.j2ee.TestClassLoader'" finished with return code 0. Output:
    CORRECT
    INFO       2005-05-29 16:01:50 [synxcpath.cpp:865]
               CSyPath::createDirectory()
    Creating directory C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\jdkPolicyCheck.
    INFO[E]    2005-05-29 16:01:50 [syxxccuren.hpp:189]
               CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)
    Unable to get value for environment variable JAVA_HOME.
    INFO       2005-05-29 16:01:50 [syxxccuren.hpp:347]
               CSyCurrentProcessEnvironmentImpl::setWorkingDirectory(iastring)
    Working directory changed to C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/jdkPolicyCheck.
    INFO       2005-05-29 16:01:50 [syxxccuren.hpp:347]
               CSyCurrentProcessEnvironmentImpl::setWorkingDirectory(iastring)
    Working directory changed to C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST.
    INFO       2005-05-29 16:01:50 [synxcpath.cpp:834]
               CSyPath::createFile()
    Creating file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\local_policy.log.
    INFO       2005-05-29 16:01:50
               CJSlibModule::writeInfo_impl()
    Output of C:\j2sdk1.4.2_08/bin/jar.exe is written to the logfile local_policy.log.
    INFO       2005-05-29 16:01:50
               CJSlibModule::writeInfo_impl()
    Output of C:\j2sdk1.4.2_08/bin/jar.exe 'xvf' 'C:/j2sdk1.4.2_08/jre/lib/security/local_policy.jar':
    INFO[E]    2005-05-29 16:01:50 [syxxccuren.hpp:189]
               CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)
    Unable to get value for environment variable JAVA_HOME.
    INFO       2005-05-29 16:01:50 [syxxccuren.hpp:347]
               CSyCurrentProcessEnvironmentImpl::setWorkingDirectory(iastring)
    Working directory changed to C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/jdkPolicyCheck.
    INFO       2005-05-29 16:01:50 [syxxccuren.hpp:347]
               CSyCurrentProcessEnvironmentImpl::setWorkingDirectory(iastring)
    Working directory changed to C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST.
    INFO       2005-05-29 16:01:51 [synxcpath.cpp:834]
               CSyPath::createFile()
    Creating file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\US_export_policy.log.
    INFO       2005-05-29 16:01:51
               CJSlibModule::writeInfo_impl()
    Output of C:\j2sdk1.4.2_08/bin/jar.exe is written to the logfile US_export_policy.log.
    INFO       2005-05-29 16:01:51
               CJSlibModule::writeInfo_impl()
    Output of C:\j2sdk1.4.2_08/bin/jar.exe 'xvf' 'C:/j2sdk1.4.2_08/jre/lib/security/US_export_policy.jar':
    INFO       2005-05-29 16:01:51 [synxcfile.cpp:152]
               CSyFileImpl::remove()
    Removing file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\jdkPolicyCheck\default_local.policy.
    INFO       2005-05-29 16:01:51 [synxcfile.cpp:152]
               CSyFileImpl::remove()
    Removing file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\jdkPolicyCheck\default_US_export.policy.
    INFO       2005-05-29 16:01:51 [synxcfile.cpp:152]
               CSyFileImpl::remove()
    Removing file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\jdkPolicyCheck\exempt_local.policy.
    INFO       2005-05-29 16:01:51 [synxcfile.cpp:152]
               CSyFileImpl::remove()
    Removing file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\jdkPolicyCheck\META-INF\JCE_RSA.RSA.
    INFO       2005-05-29 16:01:51 [synxcfile.cpp:152]
               CSyFileImpl::remove()
    Removing file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\jdkPolicyCheck\META-INF\JCE_RSA.SF.
    INFO       2005-05-29 16:01:51 [synxcfile.cpp:152]
               CSyFileImpl::remove()
    Removing file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\jdkPolicyCheck\META-INF\MANIFEST.MF.
    INFO       2005-05-29 16:01:51 [synxcdir.cpp:144]
               CSyDirectoryImpl::remove()
    Removing directory C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/jdkPolicyCheck/META-INF.
    INFO       2005-05-29 16:01:51 [synxcdir.cpp:144]
               CSyDirectoryImpl::remove()
    Removing directory C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/jdkPolicyCheck.
    INFO[E]    2005-05-29 16:01:58 [synxcuser.cpp:102]
               CSyUserImpl::CSyUserImpl(const CUserData&, bool)
    Account user="j2eadm" does not exist.
    INFO[E]    2005-05-29 16:02:05 [synxcfsmgt.cpp:132]
               CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    INFO[E]    2005-05-29 16:02:09 [synxcuser.cpp:102]
               CSyUserImpl::CSyUserImpl(const CUserData&, bool)
    Account user="DB6D1T61\j2eadm" does not exist.
    INFO[E]    2005-05-29 16:02:14 [synxcuser.cpp:102]
               CSyUserImpl::CSyUserImpl(const CUserData&, bool)
    Account user="DB6D1T61\SAPServiceJ2E" does not exist.
    INFO[E]    2005-05-29 16:02:26 [synxcfsmgt.cpp:132]
               CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    INFO[E]    2005-05-29 16:02:37 [synxcuser.cpp:102]
               CSyUserImpl::CSyUserImpl(const CUserData&, bool)
    Account user="DB6D1T61\j2eadm" does not exist.
    INFO[E]    2005-05-29 16:02:42 [synxcuser.cpp:102]
               CSyUserImpl::CSyUserImpl(const CUserData&, bool)
    Account user="DB6D1T61\SAPServiceJ2E" does not exist.
    INFO[E]    2005-05-29 16:02:42 [synxcfsmgt.cpp:132]
               CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    INFO[E]    2005-05-29 16:02:42 [synxcfsmgt.cpp:132]
               CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    INFO[E]    2005-05-29 16:02:47 [synxcuser.cpp:102]
               CSyUserImpl::CSyUserImpl(const CUserData&, bool)
    Account user="DB6D1T61\j2eadm" does not exist.
    INFO[E]    2005-05-29 16:02:51 [synxcuser.cpp:102]
               CSyUserImpl::CSyUserImpl(const CUserData&, bool)
    Account user="DB6D1T61\j2eadm" does not exist.
    INFO[E]    2005-05-29 16:02:58 [synxcuser.cpp:102]
               CSyUserImpl::CSyUserImpl(const CUserData&, bool)
    Account user="DB6D1T61\SAPServiceJ2E" does not exist.
    INFO[E]    2005-05-29 16:03:03 [synxcuser.cpp:102]
               CSyUserImpl::CSyUserImpl(const CUserData&, bool)
    Account user="DB6D1T61\SAPServiceJ2E" does not exist.
    INFO[E]    2005-05-29 16:03:05 [synxcfsmgt.cpp:132]
               CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    INFO       2005-05-29 16:03:05
               CJSlibModule::writeInfo_impl()
    Looking for SAP system instances installed on this host...
    INFO       2005-05-29 16:03:05
               CJSlibModule::writeInfo_impl()
    No installed instances found!
    INFO[E]    2005-05-29 16:03:06 [synxcfsmgt.cpp:132]
               CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    WARNING[E] 2005-05-29 16:03:06 [syxxcnamrs.cpp:128]
               PSyServicesEntry CSyIPNameResolverImpl::getServiceByName(const iastring& serviceName, const iastring& protocol) const
    Error converting from service name=sapmsJ2E/protocol=tcp to port number. SAPRETURN=12
    INFO[E]    2005-05-29 16:03:08 [synxcfsmgt.cpp:132]
               CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    WARNING[E] 2005-05-29 16:03:08 [syxxcnamrs.cpp:337]
               PSyServicesEntry CSyIPNameResolverImpl::getServiceByPort(const unsigned int portNumber, const iastring& protocol) const
    Error converting from port number=3601/protocol=tcp to service names. SAPRETURN=12
    WARNING[E] 2005-05-29 16:03:09 [syxxcnamrs.cpp:128]
               PSyServicesEntry CSyIPNameResolverImpl::getServiceByName(const iastring& serviceName, const iastring& protocol) const
    Error converting from service name=sapmsJ2E/protocol=tcp to port number. SAPRETURN=12
    INFO[E]    2005-05-29 16:03:09 [synxcfsmgt.cpp:132]
               CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    INFO[E]    2005-05-29 16:03:11 [synxcfsmgt.cpp:132]
               CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    INFO[E]    2005-05-29 16:03:41 [synxcfsmgt.cpp:132]
               CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    INFO[E]    2005-05-29 16:03:45 [synxcfsmgt.cpp:132]
               CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    INFO       2005-05-29 16:03:46
               CJSlibModule::writeInfo_impl()
    Execution of the command "C:\j2sdk1.4.2_08/bin/java.exe '-version'" finished with return code 0. Output:
    java version "1.4.2_08"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
    INFO       2005-05-29 16:03:46
               CJSlibModule::writeInfo_impl()
    Execution of the command "C:\j2sdk1.4.2_08/bin/java.exe '-classpath' 'C:/DOCUME1/KISHOR1/LOCALS1/Temp/sapinst_exe.3360.1117396809/JAR/ins-j2ee.jar;C:/DOCUME1/KISHOR1/LOCALS1/Temp/sapinst_exe.3360.1117396809/JAR/sapxmltoolkit.jar' 'com.sap.ins.j2ee.TestClassLoader'" finished with return code 0. Output:
    CORRECT
    INFO[E]    2005-05-29 16:03:47 [synxcfsmgt.cpp:132]
               CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    INFO[E]    2005-05-29 16:03:51 [synxcuser.cpp:102]
               CSyUserImpl::CSyUserImpl(const CUserData&, bool)
    Account user="DB6D1T61\j2eadm" does not exist.
    INFO[E]    2005-05-29 16:03:56 [synxcuser.cpp:102]
               CSyUserImpl::CSyUserImpl(const CUserData&, bool)
    Account user="DB6D1T61\j2eadm" does not exist.
    INFO[E]    2005-05-29 16:04:03 [synxcuser.cpp:102]
               CSyUserImpl::CSyUserImpl(const CUserData&, bool)
    Account user="DB6D1T61\SAPServiceJ2E" does not exist.
    INFO[E]    2005-05-29 16:04:07 [synxcuser.cpp:102]
               CSyUserImpl::CSyUserImpl(const CUserData&, bool)
    Account user="DB6D1T61\SAPServiceJ2E" does not exist.
    INFO       2005-05-29 16:04:10
               CJSlibModule::writeInfo_impl()
    Looking for SAP system instances installed on this host...
    INFO       2005-05-29 16:04:11
               CJSlibModule::writeInfo_impl()
    Found these instances:
    sid: J2E, number: 01, name: SCS01, host: DB6D1T61
    INFO[E]    2005-05-29 16:04:13 [synxcfsmgt.cpp:132]
               CSyFileSystemMgtImpl::getFSExport(iastring)
    File system export (share) saploc does not exist.
    ERROR      2005-05-29 16:04:42 [iaxxinscbk.cpp:289]
               abortInstallation
    MDB-070021 Registry information for database software found in system but the software check failed. The software was not properly removed or installed incorrectly.
    WARNING    2005-05-29 16:04:42 [iaxxccntrl.cpp:477]
               CController::stepExecuted()
    The step Validate_Sapdb_System with step key J2EE_EngineEnterprise_OneHost|ind|ind|ind|WebAS|630|0|J2EE_EngineEnterpriseDialogs|ind|ind|ind|WebAS|630|0|J2EE_Engine|ind|ind|ind|J2EE_Engine|630|0|J2EE_Engine_SAPDB_Client|ind|ind|ind|ind|ind|0|SAPDB_DB_SOFTWARE|ind|ind|ind|ind|ind|0|Validate_Sapdb_System was executed with status ERROR.
    SAPinst component stack:
    ========================
      Preinstall|ind|ind|ind|ind|ind|0
    Current script:
    ===============
    sapdb_validate_system();
    WARNING    2005-05-29 16:04:45 [iaxxcsihlp.hpp:250]
               main()
    An error occurred during the installation.
    Exit status of child: 1

    Have you found a fix for your problem? I am having the same with a JAVA install on ORACLE:
    WARNING[E] 2005-11-02 18:46:34 [syxxcnamrs.cpp:128]
    PSyServicesEntry CSyIPNameResolverImpl::getServiceByName(const iastring& serviceName, const iastring& protocol) const
    Error converting from service name=sapmsQP2/protocol=tcp to port number. SAPRETURN=12

  • Incompatible types - found java.lang.String but expected int

    This is an extremely small simple program but i keep getting an "incompatible types - found java.lang.String but expected int" error and dont understand why. Im still pretty new to Java so it might just be something stupid im over looking...
    import java.io.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class Lab
    public static void main(String []args)
    int input = JOptionPane.showInputDialog("Input Decimal ");
    String bin = Integer.toBinaryString(input);
    String hex = Integer.toHexString(input);
    System.out.println("Decimal= " + input + '\n' + "Binary= " + bin + '\n' + "Hexadecimal " + hex);
    }

    You should always post the full, exact error message.
    Your error message probably says that the error occurred on something like line #10, the JOptionPane line. The error is telling you that the compiler found a String value, but an int value was expected.
    If you go to the API docs for JOptionPane, it will tell you what value type is returned for showInputDialog(). The value type is String. But you are trying to assign that value to an int. You can't do that.
    You will need to assign the showInputDialog() value to a String variable. Then use Integer.parseInt(the_string) to convert to an int value.

  • Multiple WAS Java on AIX/Oracle

    Hi,
    We tried several WAS ABAP on AIX/Oracle but recently tried to implement several WAS Java on AIX/oracle.
    Has anyone did something like this?
    What are the constraints?

    We have done this on  HPUX/Oracle environments and our sandbox runs with EM (NW04S), WAS (NW04S), R3, SRM (WAS640); no problems reported;
    please make sure you size these systems and have enough resources on the box;
    thanks,
    Hari Peruri

  • WAS JAVA add-in for ABAP install error on AIX Oracle

    Hi All
    I am currently trying to install a 640 WAS JAVA add-in for ABAP on AIX 5.2 running oracle 9.2.0.6 for SAP 4.7 SR1.
    I have successfully installed the ABAP stack, however, when I try to install the JAVA add-in, I get an error on step "Start SAP J2EE engine". The error is
    INFO       2006-07-07 04:29:04
               CJSlibModule::writeInfo_impl()
    Output of /usr/sap/BWP/DVEBMGS00/j2ee/os_libs/jcmon 'pf=/sapmnt/BWP/profile/BWP_DVEBMGS00_rhubwp01' is written to the logfile jcmon.log.
    INFO       2006-07-07 04:29:04
               CJSlibModule::writeInfo_impl()
    Execution of the command "/usr/sap/BWP/DVEBMGS00/j2ee/os_libs/jcmon 'pf=/sapmnt/BWP/profile/BWP_DVEBMGS00_rhubwp01'" finished with return code 0. Output: snipped
    INFO       2006-07-07 04:29:04
               CJSlibModule::writeInfo_impl()
    J2EE Engine DVEBMGS00 of SAP system BWP did not come up after 827 seconds: waiting for another 20 seconds.
    ERROR      2006-07-07 04:29:04
               CJSlibModule::writeError_impl()
    CJS-20058  J2EE Engine DVEBMGS00 of SAP system BWP did not reach state "Starting Applications" after 827 seconds: giving up.
    I am new to JAVA, and I found some OSS notes (668606, 545422, and 943498) that might help, but they may as well be written in German for all I can make out what the notes are trying to say.
    Any help would be appreciated.
    Thanks
    Sam

    Oooops, I forgot to paste the error messages
    dev_jcmon
    [Thr  1] *** ERROR => Can't attach to administration shared memory (rc=3) [jcmonxx_mt.c 219]
    dev_jcontrol
    [Thr  1] *** ERROR => invalid return code of process [bootstrap] (exitcode=-1) [jstartxx_mt. 1433]
    [Thr  1] JControlExecuteBootstrap: error executing bootstrap node [bootstrap] (rc=-1)
    [Thr  1] JControlCloseProgram: started (exitcode = -1)
    [Thr  1] JControlCloseProgram: good bye... (exitcode=-1)
    dev_bootstrap
    Signal 6 encountered.
    => 64 bit R/3 Kernel
    => 64 bit AIX Kernel
    => Heap limit      = unlimited
    => Stack limit     = 4294967296
    => Core limit      = 1073741312
    => File size limit = 4294965248
    => Heap address  = 0x0x1111d9fe0
    => Stack address = 0x1111b7a80
    => Stack low     =  0x1111b5180
    => Stack high    =  0xffffffffffff2b0
    => Stack Trace:
            pthread_kill() at 0x900000000382c08
            praise() at 0x90000000038261c
            raise() at 0x900000000045890
            abort() at 0x900000000052dc8
            GetPropertiesMD() at 0x900000010639774
            ciCreateJVM() at 0x9000000106d19f4
            JNI_CreateJavaVM() at 0x90000001066529c
            Unknown at 0x90000001062a810
            JHVM_LoadJavaVM() at 0x1000918d4
            JLaunchIStartFunc() at 0x10008bb14
            pthreadbody() at 0x9000000003734ec
    !!! Invalid stack address encountered: 0x0
    !!! Stack corrupted.
    dev_disp
    J2EE server info
      start = TRUE
      state = STARTED
      pid = 5926962
      argv[0] = /usr/sap/BWD/DVEBMGS84/j2ee/os_libs/jcontrol
      argv[1] = jcontrol
      argv[2] = pf=/usr/sap/BWD/SYS/profile/BWD_DVEBMGS84_mantas
      argv[3] = -DSAPSTART=1
      argv[4] = -DCONNECT_PORT=60977
      argv[5] = -DLISTEN_PORT=60978
      argv[6] = -DSAPSYSTEM=84
      argv[7] = -DSAPSYSTEMNAME=BWD
      argv[8] = -DSAPMYNAME=mantas_BWD_84
      argv[9] = -DSAPPROFILE=/usr/sap/BWD/SYS/profile/BWD_DVEBMGS84_mantas
      argv[10] = -DFRFC_FALLBACK=ON
      argv[11] = -DFRFC_FALLBACK_HOST=localhost
      start_lazy = 0
      start_control = SAP J2EE startup framework
    DpJ2eeStart: j2ee state = STARTED
    DpJ2eeLogin: j2ee state = CONNECTED
    DpJ2eeMsgProcess: j2ee state = CONNECTED (NIECONN_BROKEN)
    DpIJ2eeShutdown: send SIGINT to SAP J2EE startup framework (pid=5926962)
    DpIJ2eeShutdown: j2ee state = SHUTDOWN
    DpEnvCheckJ2ee: switch off j2ee start flag
    DpHdlDeadWp: restart wp (pid=5791744) automatically
    std_bootstrap.out
    JVMCI200 - ERROR: User register saving is not enabled, Garbage Collection could be incorrect.
    JVMCI200 - ERROR: because of this the JVM library is explicitly aborting the process
    JVMCI200 - ERROR: You must either rebuild the executable using "-bM:UR"
    JVMCI200 - ERROR: or run with "export LDR_CNTRL=U
    Thanks
    Sam

  • Publishing XI exposed webservices in the UDDI Server of SAP WAS JAVA 640

    Hi Friends,
        I have a question regarding publishing a WSDL created via XI (Integration Directory) to a UDDI Server of SAP WAS JAVA 640. Can I publish the WSDL generated from XI in the UDDI Server provided as a part of SAP WAS 640 ?  I know that the WSDL will be specific  for a client( sender) but I feel that its better than emailing the WSDL to the client after generating it in the integration directory. Any relevant documents, links explaining how to do that will be appreciated.
        The above question was asked by Siva Maranani before. His question was as below .
    "I know that whenever a webservice is developed using NDS it can be deployed in WebAs and the same can be registered in UDDI ( webAs acting as UDDI registry).
    Now my requirement is to register a WSDL file (which describes) for an external webservice. Can WebAs be used as a UDDI registry..?
    I like to know if this is possible or not..? if yes.. how..?"
    Waiting for the reply...
    Thanks & Regards,
    Mathew

    Hi Naveen,
               Thanks for the quick response. I tried the steps mentioned in the link.
    1. Successfully created a new local UDDI registry in SAP WAS..
    2. Assigned users etc.
      The place I am getting stuck is..
    "Make sure that the Web Service Definition has already been created and configured".
    I have a WSDL document created via Define webservice in the XI integration directory.(We are successfully able to call the webservice using this WSDL via .net & xmlspy)
    Where should I upload this WSDL ? so that the users will able to download/reference it w/out myself emailing to them.We dont/won't have NDS installed in our landscape.
    I understand that whenever a webservice is developed using NDS it can be deployed in WebAs and the same can be registered in UDDI ( webAs acting as UDDI registry).
    The requirement is to register a WSDL file generated via XI w/out using NDS.
    Did you able to  publish a WSDL file generated via XI in the local UDDI w/out using NDS ?
    waiting for your reply
    Thanks a lot,
    Mathew

  • Java.lang.NoSuchMethodError but method is found in both java and class file

    Hi All,
      I am working on adding a new component to Trips and Expense but I'm getting an exception and I have no idea why.  Its claiming a java.lang.NoSuchMethodError in class IPrivateVcTraAllMyTrips yet the method is there.
      When I step through the code I can get to the point where it tries to attach the component then before it actually crashes, I hold ctrl and click on the method that it claims does not exist.  The code brings me to the IPrivateVcTraAllMyTrips java code and to the method ... so it is there in my sources.  I then went to my bin directory and decompiled the IPrivateVcTraAllMyTrips class and found the method there as well.  It seems as tho its not actually being deployed.
      Does anyone have any suggestions?
    Exception Stack ##
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.NoSuchMethodError: com.sap.xss.tra.vc.allmytrips.wdp.IPrivateVcTraAllMyTrips.wdGetFcObjectSelectionComponentUsage()Lcom/sap/tc/webdynpro/progmodel/api/IWDComponentUsage;
        at com.sap.xss.tra.vc.allmytrips.VcTraAllMyTrips.onInit(VcTraAllMyTrips.java:262)
        at com.sap.xss.tra.vc.allmytrips.wdp.InternalVcTraAllMyTrips.onInit(InternalVcTraAllMyTrips.java:408)
        at com.sap.xss.tra.vc.allmytrips.VcTraAllMyTripsInterface.onInit(VcTraAllMyTripsInterface.java:175)
        at com.sap.xss.tra.vc.allmytrips.wdp.InternalVcTraAllMyTripsInterface.onInit(InternalVcTraAllMyTripsInterface.java:205)
        at com.sap.xss.tra.vc.allmytrips.wdp.InternalVcTraAllMyTripsInterface$External.onInit(InternalVcTraAllMyTripsInterface.java:399)

    I wish it were that simple.  I have restarted but it still threw the same exception.
    I ended up reimporting everything again and starting from scratch (a 4 hour process to get back to where I was).  The issue is no more.
    thx for your reply

  • How to upgrade Forms 11gR2 to use JAVA 7 after it was installed with JAVA 6

    I recently installed Forms 11gR2 on a development server.  We are trying to have the latest versions of everything to migrate from Forms 10g and assure we have support for the next few years.
    Our platform has the following software configuration:
    Solaris 10 (Update 19) SPARC 64 bits
    Weblogic 11g (10.3.6) that was installed with Java JDK 1.6.0_38
    Forms 11g R2 (11.1.2.1) that was also installed with
    Java JDK 1.6.0_38
    I tried to install Weblogic and Forms using the latest Java 7 JDK (1.7.0_25) but I got an error in the final steps of Forms setup, when I was configuring the domain.  I searched online and found a couple of tips but nothing worked.  The installation was stuck at the
    Creating Weblogic Domain step.  So I decided to try the installation process with the Java 6 JDK that we are using right now for Forms 10g, and it worked perfectly.  I have now two options but I don't know which one might be the better path:
    Uninstall Weblogic and Forms 11g completely, and try to re-install them again with Java 7, trying to fix the error that I got at the end of the configuration process.
    Try to upgrade the current Forms 11g installation from Java 6 to Java 7.  I found a blog that might suggest it is possible, but I don't know if it may cause additional issues along the road. http://pitss.com/us/2013/02/20/how-to-use-java-7-with-oracle-forms-11g-in-an-oracle-supported-environment/
    Thanks in advance for any suggestions you might have, or if any of you has experience installing Forms 11gR2 with Java 7 it might be great to know how to fix this error.  It might be worth mentioning that when I installed Forms and Weblogic with Java 6 I used exactly the same values, ports, options and paths.  The error appears like this in the installation logs and the process hangs there:
    XXX: adding task: oracle.as.install.classic.ca.standard.DomainProvisioningTask
      AdminServer port is 7001
      trying to connect to admuxas09.adminsrvad.sa.gov.au 7001
      Creating Weblogic Domain.
    oracle.as.provisioning.exception.ASProvWorkflowException
            at oracle.as.provisioning.weblogic.ASDomain._createDomain(ASDomain.java:2958)
            at oracle.as.provisioning.weblogic.ASDomain.createDomain(ASDomain.java:2476)
            at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:633)
            at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:391)
            at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
            at oracle.as.install.classic.ca.standard.StandardWorkFlowExecutor.execute(StandardWorkFlowExecutor.java:65)
            at oracle.as.install.classic.ca.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:26)
            at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
            at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:124)
            at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:371)
            at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
            at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)
            at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
            at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:64)
            at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:160)
            at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
            at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)
            at java.lang.Thread.run(Thread.java:662)
    oracle.as.provisioning.exception.ASProvisioningException
            at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:872)
            at oracle.as.install.classic.ca.standard.StandardWorkFlowExecutor.execute(StandardWorkFlowExecutor.java:65)
            at oracle.as.install.classic.ca.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:26)
            at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
            at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:124)
            at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:371)
            at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
            at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)
            at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
            at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:64)
            at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:160)
            at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
            at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)
            at java.lang.Thread.run(Thread.java:662)
    Caused by: oracle.as.provisioning.exception.ASProvWorkflowException: Error Executing workflow.
            at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:686)
            at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:391)
            at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
            ... 13 more
    Cheers,
    Ivan Neva
    Oracle DBA

    Well if I got it to work with java 6 I'd leave it alone, to say the least. The elephant in the room is the certification matrix.
    http://www.oracle.com/technetwork/developer-tools/forms/overview/index.html
    there's 2 issues, what jdk does forms on the server want? Bigger question, what JRE is acceptable on the client?
    You would surely want the jre to be 7 on the client. Regarding the jdk on the server, you could leave it as is IMHO.
    Note that there was a patch to 11gr2. In conclusion, be sure to check the cert matrix regarding what is certified for the jdk for the server.
    I think the matrices are saying that if you have forms 11.1.2.1.0 that you can use the jdk 7. but like I said the big issue is what can the client use?
    As I read the matrix I think it is saying you have to have 11.1.2.1.0 to use the jre 7 on the client.
    So I would say if you have 11.1.2.1.0 on the server you are good because it's not a problem to have the jdk 6 on the server, if not you have to apply the patch in order to enable the jre 7 on the client.

  • SID remains in SLD as WAS Java entry even when Java Stack is deleted

    Hi there,
    Can somebody help me with next strange behaviour in the SLD.
    Some SID's in our Landscape Components (tc SMSY) on Solution Manager has as Data Source 'SLD'.
    These SID's comes from the SLD and are feeded by RZ70 for the ABAP part and by the SLD Data Supplier for the JAVA stack.
    The SLD Data Supplier service is set up by the Virtual Administrator.
    Now, we have systems in the SMSY with an sidname like <SID>_NABP.
    These kind of entries has then SLD as datasource.
    The problem is that I don't want these entries in the SMSY beacuse ther is no JAVA stack anymore.
    The Java stack is removed completely.
    I removed the WAS Java entry in SLD.
    But, this enty in SLD is reset after a while.
    So, when I remove the entry in SMSY on SolMan and in the SLD WAS JAVA, still the component is recreated in SMSY with datasourrce coming from SLD.
    The data in SMSY is empty (no instance, no database). Only the SID and hostename is available.
    What i believe  is that something  triggers the SLD Data Supplier  but I can not reach it because JAVA and so Visual Administrator included is removed from the system.
    Maybe, if somebody can tell me how SLD is feeded for the JAVA stack, I could find the solution.
    I really hope that somebody can help me out.
    Thanks
    Paul Van Daele
    Edited by: Paul Van Daele on Sep 9, 2009 11:06 AM

    Those <SID>_NABP ("non-ABAP", i.e., Java) can certainly be hard to get rid of. It's like a zombie: you think it's gone, but it keeps coming back! What's happening is that it can't recognize that the system is loading from SLD matches one that already appears in SMSY.
    Note 1301106 can help sometimes: tcode SOLMAN_WORKCENTER > Root Cause Analysis > System Conflict Resolution.
    Failing that, the only thing that I have found to work is to carefully compare the SID and _NABP entries, and then copy the key value that makes _NABP look like it's a different system into the SID entry: most often that is the message server name. Then, next time it reloads, it sees that it has a system with that message server (for example), and won't create a new one. You may need to right-click on the SID entry and set its data source to manual to be able to edit the message server field.
    Another possible key field is the database (under the Header Data tab): assign it the value of <SID>.
    A more complicated problem is where the erroneous entries are instead for ABAP stacks, and look like <SID>000001. Those have System and Type defined (under the Selection of Main Instances tab) but for a product I never installed (e.g., Mobile Infrastructure). By assigning System and Type on my existing instances, those _00001 systems were no longer created.

  • After downloading Yosemite, my Ps CS4 doesn't work. It says install legacy Java SE 6, but when i go ok, or, more info can not reach any point to have it!!!

    After downloading Yosemite, my Ps CS4 doesn't work. It says install legacy Java SE 6, but when i go ok, or, more info can not reach any point to have it!!! What will I do?

    I have similar issues and was referred to a knowledge base article support.apple.com/kb/DL1572  This seems to corrected the issue.

Maybe you are looking for

  • HT1338 What software do i need to download for my new HP Photosmart 5510 ePrinter to work on my new iMac

    I have just bought a new HP Photosmart ePrint printer. I could not download the software on to my new iMac. What software do i need to down load from HP to make my printer compatible with iMac.

  • Loading a remote SWF via SWFLoader Issue

    I have a simple flex app which loads an external XML into an arrayCollection using HTTPService send method. This works fine as both a stand-alone, or when loaded into it's parent as a LOCAL file via the SWFLoader tag. However, when I place this child

  • Print top window in Safari?

    I frequently am on websites wherein links open as a top window over the original window but when I go to print - Safari wants to printthe original page that is in the background of the top "mini" window...how can I print this top window?

  • Cannot install Elements 12 from reatil CD get shared technology error!

    I tried to install elements 12 from the retail CD. It installs almost to end then stops with an error about shared technologies. I tried all of the diagnostics that I found here ASA found no errors. I could not locate any log file to inspect. Program

  • CRM table Relationship

    Hi All, I m working on CRM... i have to get BP data from BUT000 , ADRC, AUSP, ADR6 tables..... but i dont knw the relationship bw them... can anyone giveme the solution form this.... Every answer will be awarded... plz Help... Thnx Rohit