Import java.lang.?
I just noticed that, without writing "import java.lang.***;" all the classes in the java.lang.*** namespace are reachable, such as:
java.lang.Exception;
java.lang.Thread;
java.lang.StringBuilder;
So, is it correct to say that " import java.lang.***; " has no tangible effect and I should never have it in my source code? thanks.
Yes.
Similar Messages
-
Why do we need to import 'java.lang.annotation' ?
Hi All,
Since java.lang.* is the default package for all java file, Why do we need to import 'java.lang.annotation' separately?
Thanks in advance..
Regards
Karthikeya VKarthikeya wrote:
Hi All,
Since java.lang.* is the default package for all java file, Why do we need to import 'java.lang.annotation' separately?
Thanks in advance..
Regards
Karthikeya VLet me explain that differently: packages on disc usually form a directory structure (but it is not a rule, elements of the same package structure can come from different jars). BUT, this does not automatically mean that packages to Java form some kind of hierarchy as well - they don't. java.lang and java.lang.annotation are simply two completely different, unrelated packages. -
One disadvantage of automatic import of Java lang package.
When ever a new java class is added in java.lang package jdk people has to think one think in their mind. I have written one java class named com.myPack.Test if suppose the same class name is included in java.lang then that greatly affects all my programs.since java.lang is by default imported. i have to do lot of changes in my code.
Can this be avoided. Can i avoid the default import of java.lang package by any means.
Am i making sense.?thanks jsalonen and pbrockway2
I understand but, Isn't it a Genuine requirement..?
I have written a class say com.myPack.Test
i am using this in some other package.
i am importing this by the below statement
import com.myPack.*;
this package is extensivly used in many a packages.
suppose in new JDK if the java.lang.TEST is written.
In this case, it is a gereat overhead for me. i have to do lot of code changes right?.
one solution can be replace all import com.myPack.* by
import com.myPack.Test; but isn't it a great rework. which afects widely in all the applications right?..
one other simple solution can be avoiding default import java.lang.* in certain packages alone, Isn't it? -
Java Importer: import of java.lang.Boolean does not compile?
I have created a webservicestub for the Reports webservice with JDeveloper.
Now I want to use it in Forms. All methods work correctly, except the runJob method, which uses a boolean argument. I think I need to import java.lang.Boolean for it, but the created package body does not compile ("wrong number or type of arguments" in jni calls).
Does anybody have suggestions how to get it compiling, or how to call the runJob method without the import of java.lang.Boolean?Downloading 1.4 sdk does not have the javac, it just has the JRENo, you apparently downloaded the JRE runtime. Do this to get the compiler, etc:
Go here: http://java.sun.com/j2se/1.4/download.html
and in the section titled:
Download J2SETM v 1.4.0_01 JRE SDK
look in this row:
Windows (all languages, including English)
and click download in the column headed SDK at the far right -
Import java "java.lang.Exception" compile error
I have alreay imported "java.lang.Exception".
There are "Exception_" spec & body in program unit
--- problem is in this part
=================================================
WHEN ORA_JAVA.EXCEPTION_THROWN THEN
javaexc := ORA_JAVA.LAST_EXCEPTION;
Message('Java Exception: java/jarfile '||Exception_.toString(javaexc));
ORA_JAVA.CLEAR_EXCEPTION;
=================================================
I can't find toString() method in Exception_Hy,
Give to forum user other information.
Where does it happen?
Product? etc..
Regards -
Exception in thread "main" java.lang.NumberFormatException:For input String
this is a code about arrylist. but when I debug it.it metion:Exception in thread "main" java.lang.NumberFormatException:For input String at java.lang.NumberFormatException.forInputString(numberFomatExceptionio java:48)
at java.lang.Integer.parseInt(integer.java:468)
at java.lang.Integer.parseInt(integer.java:497)
at Get.getInt(manerger.java:208)
at LinkList.insertFirst(manager.java:94)
at manager.main(manager.java;20)
this is my code:
import java.io.*;
import java.lang.*;
public class manager
public static void main(String args[]) throws IOException
LinkList list=new LinkList();
System.out.println("input S can scan the grade\ninput D can delete one entry\ninput U can update the entry\ninput A can add one entry\ninput E can end");
int cr=System.in.read();
switch(cr)
case 'A':
list.insertFirst();break;//this is 20 row
case 'S':
System.out.println("input the s");break;
case 'D':
System.out.println("input the d");break;
case 'U':
System.out.println("input the u");break;
class Link
public int number;
public String name=new String();
public int chs;
public int eng;
public int math;
public Link next;
public Link(int number,String name, int chs,int eng,int math)
this.number=number;
this.name=name;
this.chs=chs;
this.eng=eng;
this.math=math;
public Link()
this(0,"",0,0,0);
public void displayLink()
System.out.println(number + " "+name+ " "+chs+ " "+eng+ " "+math+ " ");
class LinkList
public Link first;
public LinkList()
first = null;
public boolean isEmpty()
return first==null;
public void displayList()
System.out.println("");
Link current=first;
while(current!=null)
current.displayLink();
current=current.next;
System.out.println("");
public Link insertFirst() throws IOException
Get getdata=new Get();
int number=getdata.getInt();//this is 94 row
String name=getdata.getString();
int chs=getdata.getInt();
int eng=getdata.getInt();
int math=getdata.getInt();
Link newLink = new Link(number,name,chs,eng,math);
first=newLink;
return first;
public Link find(int key)
Link current=first;
while(current.number!=key)
if(current.next==null)
return null;
else
current=current.next;
return current;
public Link update(int key) throws IOException
Link current=first;
while(current.number!=key)
if(current.next==null)
return null;
else
System.out.println("Input the first letter of the subject:");
int c=System.in.read();
Get get=new Get();
switch(c)
case 'c':
current.chs=get.getInt();break;
case 'e':
current.eng=get.getInt();break;
case 'm':
current.math=get.getInt();break;
return current;
public float average(char key)
Link current=first;
float total=0;
float average=0;
float counter=0;
if(current==null)
return 0;
while(current!=null)
switch(key)
case 'c':
total=current.chs+current.next.chs;break;
case 'e':
total=current.eng+current.next.eng;break;
case 'm':
total=current.math+current.next.math;break;
current=current.next.next;
counter++;
average=total/counter;
return average;
public Link delete(int key)
Link current=first;
Link previous=first;
while(current.number!=key)
if(current.next==null)
return null;
else
previous=current;
current=current.next;
if(current==first)
first=first.next;
else
previous.next=current.next;
return current;
class Get
public static String getString() throws IOException
System.out.println("Input your name:");
InputStreamReader str = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(str);
String s = br.readLine();
return s;
public static int getInt() throws IOException
System.out.println("Input your data:");
String st = getString();
return Integer.parseInt(st);//this is 208 row
}It may be that the code in getString() returns a
String that ends with a newline. If that is the
problem, you can use
return (Integer.parseInt(st)).trim();1. getString will never return a String ending in newline. BufferedReader.readLine strips off the newline.
2. Even if you had a newline, String.trim doesn't trim newlines.
3. You would need to trim the String, not the int:
return (Integer.parseInt(st.trim()));As JimDinosaur said, you are passing bad data (the value of "st").
In getInt, add this before trying to parse "st":
System.out.println("###"+st+"###");What does it print? -
How to solve this problem"exception in thread "main" java.lang.noclassdeff"
I am a tyro of java programming .
i downloaded the j2sdk-1_4_2_09-windows-i586-p.exe from www.java.sun.com and installed it at the defaulted path C:\j2sdk1.4.2_09,
then i wrote down my first java program as follow:
public class hello
public static void main (String args[])
System.out.println("hello,����!");
}and stored it at C:\Javasmp\ch01\hello.java.
after that i opened dos commind window and compiled it :
c:\javac C:\Javasmp\ch01\hello.java. and obtained file hello.class (C:\Javasmp\ch01\hello.class)
but when running it (c:\java C:\Javasmp\ch01\hello) there was a mistake:
exception in thread "main"java.lang.noclassdeffounderror:C:\Javasmp\ch01\hello
i searched on the internet and found out the solution is set enviroment viriable ,so i set the "CLASSPATH" as".;C:\j2sdk1.4.2_09\lib;C:\j2sdk1.4.2_09\lib\tools.jar" ,"PATH" as"C:\j2sdk1.4.2_09\bin;C:\Windows\system32;c:\windows\system32\Wbem" and "JAVA_HOME" as "C:\j2sdk1.4.2_09\bin;C:\j2sdk1.4.2_09\jre\bin"
afer that, i opened a new dos command window and run it again ,but the problem was still unsolved.
in addition,my os is "windows xp"
anyone can help me ,thank you!
i am a student in China,it's a hard time for me to write down my question in english ,i doubt whether i express my question clearly.
thank you for you reading.I have created a simple applet.
import java.lang.*;
import java.awt.*;
public class jawtex3 extends java.applet.Applet
public void init()
add(new Button("One"));
add(new Button("Two"));
public Dimension preferredSize()
return new Dimension(200, 100);
public static void main(String [] args)
Frame f = new Frame(" jawtex3");
jawtex3 ex = new jawtex3();
ex.init();
f.add("Center", ex);
f.pack();
f.show();
In this no compilation errors.
I am getting runtime exception.as Exception in thread "main"java.lang.NoClassDefFound Error: jawtex
reply me soon.
thankyou. -
Java.lang.NullPointerException in a servlet
I'm having a problem, and need help as quick as I can get it.
I'm coding a program that takes input from an HTML file, gives it to a servlet, which processes the information and spits it back out to the web browser in HTML.
I'm using NetBeans 3.6 with Java 1.5.0.
The error that TomCat is giving me is:
java.lang.NullPointerException
java.util.Hashtable.get(Hashtable.java:333)
org.apache.tomcat.util.http.Parameters.getParameterValues(Parameters.java:231)
org.apache.tomcat.util.http.Parameters.getParameter(Parameters.java:276)
org.apache.coyote.tomcat5.CoyoteRequest.getParameter(CoyoteRequest.java:1094)
org.apache.coyote.tomcat5.CoyoteRequestFacade.getParameter(CoyoteRequestFacade.java:312)
org.netbeans.modules.web.monitor.server.MonitorRequestWrapper.getParameter(MonitorRequestWrapper.java:177)
edu.usf.CCC.doPost(CCC.java:57)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)I don't understand why it's giving me the NullPointerException at the first "request.getParamter(name)" line, but it is.
Any Suggestions?
My servlet code:
package edu.usf;
import java.net.*;
import java.lang.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
public class CCC extends HttpServlet {
float drive_cost = 0.00f;
float engine_cost = 0.00f;
float sunroof_cost = 0.00f;
float brakes_cost = 0.00f;
float interior_cost = 0.00f;
float style_cost = 0.00f;
float roofrack_cost = 0.00f;
String name,style,engine,drive,brakes,interior,sunroof,roofrack,basecost,totalcost;
String namevar,stylevar,enginevar,drivevar,brakesvar,interiorvar,sunroofvar,roofrackvar,basecostvar,totalcostvar;
String namastr,stylestr,enginestr,drivestr,brakesstr,interiorstr,sunroofstr,roofrackstr,basecoststr,totalcoststr;
String name_field,style_option,engine_option,brakes_option,drive_option,interior_option;
float base_cost = 15000.00f;
float total_cost = base_cost;
//static final String CONTENT_TYPE = "text/html";
public void init() throws ServletException {
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType( "text/html" );
PrintWriter out = response.getWriter();
namevar = request.getParameter(name);
stylevar = request.getParameter(style);
enginevar = request.getParameter(engine);
drivevar = request.getParameter(drive);
brakesvar = request.getParameter(brakes);
interiorvar = request.getParameter(interior);
sunroofvar = request.getParameter(sunroof);
roofrackvar = request.getParameter(roofrack);
//Time to do some work
//Check to see what style of car was selected.
{ if ( stylevar.equals("hatch") )
{style_option = "Hatchback";
style_cost = 0.00f;}
if ( stylevar.equals("sedan") )
{style_option = "Sedan";
style_cost = 800.00f;}
if ( stylevar.equals("wagon") )
{style_option = "Wagon";
style_cost = 1400.00f;}
//Drivetrain calculation time
{ if ( drivevar.equals("2") )
{drive_option = "2-Wheel Drive";
drive_cost = 0.00f;}
else if (drivevar.equals("4") )
drive_option = "4-Wheel Drive";
drive_cost = 7000.00f;}
//Engine calculation time
{ if ( enginevar.equals("4"))
{engine_option = "4-Cylinder";
engine_cost = 0.00f;}
else if ( enginevar.equals("6"))
{engine_option = "6-Cylinder";
engine_cost = 2200.00f;}
//Brake calculation time
{ if ( brakesvar.equals("s") )
{brakes_option = "Standard";
brakes_cost = 0.00f;}
else if ( brakesvar.equals("a") )
{brakes_option = "Anti-Lock";
brakes_cost = 900.00f;}
//Sunroof calculation time
{ if ( sunroofvar.equals("1") )
sunroof_cost = 800.00f;
//Interior calculation time
{ if ( interiorvar.equals("deluxe"))
{interior_option = "Deluxe";
interior_cost = 0.00f;}
{ if ( interiorvar.equals("luxury") )
{interior_option = "Luxury";
interior_cost = 800.00f;}
{ if ( interiorvar.equals("executive") )
{interior_option = "Executive";
interior_cost = 1400.00f;}
//Roofrack calculation time
{ if ( roofrackvar.equals("1") )
roofrack_cost = 200.00f;
//Total cost calculation time
total_cost = style_cost + drive_cost + engine_cost + brakes_cost +
sunroof_cost + interior_cost + roofrack_cost;
//OUTPUT HTML SECTION
//Print up HTML Header section
out.println("<html>");
out.println("<head><title>Tri-C: Results</title></head>");
out.println("<body bgcolor=\"#FFFFFF\">");
out.println("<center>");
out.println("<p>Tri-C: ResultsCar Calculation</p>");
out.println("<table border=1>");
out.println("<tr><td> </td><td>Option</td><td>Cost</td></tr>");
//Print up name
namastr = ("<tr><td>Name:</td><td>" + name + "</td></tr>");
out.println(namastr);
out.println("<tr><td> </td><td> </td><td> </td></tr>");
//Print up Base Cost
basecoststr = ("<tr><td>Base Cost:</td><td> </td><td>$" + base_cost + "</td></tr>");
out.println(basecoststr);
//Print up Style selection
stylestr = ("<tr><td>Style:</td><td>" + style_option + "</td><td>$" + style_cost + "</td></tr>");
out.println(stylestr);
//Print up Engine selection
enginestr = ("<tr><td>Engine:</td><td>" + engine_option + "</td><td>$" + engine_cost + "</td></tr>");
out.println(enginestr);
//Print up Drivetrain selection
drivestr = ("<tr><td>Drivetrain:</td><td>" + drive_option + "</td><td>$" + drive_cost + "</td></tr>");
out.println(drivestr);
//Print up Brakes selection
brakesstr = ("<tr><td>Brakes:</td><td>" + brakes_option + "</td><td>$" + brakes_cost + "</td></tr>");
out.println(brakesstr);
//Print up Sunroof Selection
sunroofstr = ("<tr><td>Sunroof:</td><td> </td><td>$" + sunroof_cost + "</td></tr>");
out.println(sunroofstr);
//Print up Interior Selection
interiorstr = ("<tr><td>Interior:</td><td>" + interior_option + "</td><td>$" + interior_cost + "</td></tr>");
out.println(interiorstr);
//Print up Roofrack Selection
roofrackstr = ("<tr><td>Roofrack:</td><td> </td><td>$" + roofrack_cost + "</td></tr>");
out.println(roofrackstr);
//Print up Total Cost section
out.println("<tr><td> </td></tr>");
totalcoststr = ("<tr><td>Total Cost:</td><td> </td><td>$" + total_cost + "</td></tr>");
out.println(totalcoststr);
//Print up HTML Footer section
out.println("</table>");
out.println("</body>");
out.println("</html>");
And here is the HTML file that calls it:
<html>
<head>
<title>Tri-C: Car Cost Calculator</title>
</head>
<body background="#000000">
<form action="CCC" method="post">
<center>
<table border=1>
<tr><td>Enter your name:</td><td><input type="text" name="name" /></td></tr>
<tr><td> </td><td> </td></tr>
<tr><td>Style:</td><td><SELECT name="style">
<OPTION SELECTED value="hatch">Hatchback</OPTION>
<OPTION value="sedan">Sedan (+$800.00)</OPTION>
<OPTION value="wagon">Wagon (+$1400.00)</OPTION>
</SELECT></td></tr>
<tr><td>Drivetrain:</td><td>
<input type="radio" name="drive" value="2">2-Wheel Drive</input><br>
<input type="radio" name="drive" value="4">4-Wheel Drive (+$7000.00)</input>
</td></tr>
<tr><td>Engine:</td><td>
<input type="radio" name="engine" value="4">4-Cylinder</input><br>
<input type="radio" name="engine" value="6">6-Cylinder (+$2200.00)</input>
</td></tr>
<tr><td>Brakes:</td><td>
<input type="radio" name="brakes" value="0">Standard</input><br>
<input type="radio" name="brakes" value="1">Anti-Lock (+$900.00)</input>
</td></tr>
<tr><td>Sunroof:</td><td>
<input type="checkbox" name="sunroof" value="1">Add Option (+$800.00)</input>
</td></tr>
<tr><td>Interior:</td><td><SELECT name="interior">
<OPTION SELECTED value="deluxe">Deluxe</OPTION>
<OPTION value="luxury">Luxury (+$800.00)</OPTION>
<OPTION value="executive">Executive (+$1400.00)</OPTION>
</SELECT></td></tr>
<tr><td>RoofRack:</td><td>
<input type="checkbox" name="roofrack" value="1">Add Option (+$200.00)</input>
</td></tr>
<tr><td></td><td><input type="SUBMIT" value="Process"> <input type="reset" name="Clear Form"></td></tr>
</form>
</body>
</html>It's because name is null. You declared it but didn't initialize it, so it's null. What did you expect to happen there?
By the way, declaring instance variables in a servlet class is a bad practice. If you get two requests at the same time, they both share the same instance of the servlet so they are both accessing and updating the same variables. Make them local variables in your doPost() method and you should not have that problem. -
Importing java class in form 10g
hi
I have successfully imported a java class in my form but when i am trying to import java.lang.float, it is throwing me the following error:
Importing Class java.lang.float...
Exception occurred: java.lang.ClassNotFoundException: java.lang.float
Could anybody let me know what jar file i am missing and in what path should i add the jar file.
Thanks in advance,Hello,
float is not an object. Try : java.lang.Float
Francois -
Connection error using import java.sql.*;
I have a very strange error. See the code below:
import java.sql.*;
import java.lang.*;
class a7 {
public static void main(String args[]) {
String kolom,ko = new String();
String db = "devarbn1";
String url = "jdbc:odbc:"+db;
String login = "arbor";
String password = "arbor123";
String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
String BasisQuery = "select COLUMN_NAME " +
" from all_tab_columns " +
" where table_name = ? ";
System.out.println("Database: " + db);
Connection con;
try {
Class.forName(driver);
} catch (java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
try {
con = DriverManager.getConnection(url,login,password); //this line gives an error!!!
and so on.....
This is a fragment of the whole program. All of a sudden I cannot compile it anymore using jdk1.3 or jdk 1.4 (I never had compiling problems before with this program)
It gives the following error message: incompatible types, found Connection.
I haven't got a clue what went wrong. I have a lot of other java files in which a connection is involved. I cannot compile any of them anymore. Even reinstalling jdk1.4 or 1.3 doesn't help. Can anyone please help me?
Thanx, debeumersYes, the whole message is:
incompatible types found : java.sql.Connection required : Connection.
The whole code is (it is from a different java file then the code I used before)
import javax.sql.*;
import java.sql.*;
import java.lang.*;
public class Connection {
static final String arb_nl = "arbornl";
static final String arb_fr = "arborfr";
static final String clar_nl = "clarnl";
static final String clar_fr = "clarfr";
static final String po = "pcnlpp";
static final String user_clar_nl = "report";
static final String pass_clar_nl = " r3p0rt";
static final String user_clar_fr = "report";
static final String pass_clar_fr = " r3p0rt";
static final String user_arb_fr = "report";
static final String pass_arb_fr = " r3p0rt";
static final String user_arb_nl = "report";
static final String pass_arb_nl = " r3p0rt";
static final String user_po_nl = "report";
static final String pass_po_nl = "r3p0rt";
static boolean a = true;
static boolean b = true;
static boolean c = true;
static Connection conarb,conclar,conpo;
static String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
String loginarb = user_arb_nl;
String passwordarb = pass_arb_nl;
String loginclar = user_clar_nl;
String loginpo = user_po_nl;
String passwordpo = pass_po_nl;
String passwordclar = pass_clar_nl;
public Connection() {
public void makeConnection(String database,String user,String password,String type) {
String url = "jdbc:odbc:" + database;
try {
Class.forName(driver);
} catch (java.lang.ClassNotFoundException ex) {
System.err.print("ClassNotFoundException: ");
System.err.println(ex.getMessage());
a = false;
try { if (type=="ARB") { conarb = DriverManager.getConnection(url,user,password);} //giving the problem!!
if (type=="CLAR") { conclar = DriverManager.getConnection(url,user,password);} //giving the problem!!
} catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
b = false;
/* try { if (type=="PO") {conpo = DriverManager.getConnection(url,user,password);}
} catch(SQLException ex) {System.err.println("SQLException: " + ex.getMessage()); c = false;}*/
I hope you can help..
Thanks...debeumers -
How to use Java.lang.Math to calculate; Advice programming
Hi, all!
I am trying to teach myself Java, and am using the MindQ CDs to do it. I'm dreadfully stuck on this one exercise, and I could use some help figuring out how to properly call a Math method, store the variables, and print the results. I've programmed other methods successfully before; for some reason I just can't figure this one out. I've tried about fifty different configurations; maybe I can get some good advice here? Thanks!
import java.io.*;
import java.util.Random;
import java.lang.Math;
public class JavaCalcs {
public static void main(String args[]) {
System.out.println("Starting JavaComputations...");
//main method variable declarations
int z, y, x, w;
int A = -12;
int B = 2;
z = A & B;
y = A | B;
x = A >> B;
w = A >>> B;
System.out.println(z + ";" + y + ";" + x + ";" + w + ";");
Random kickassRNG = new Random();
double rDOne = kickassRNG.nextDouble() * 90.0;
double rDTwo = kickassRNG.nextDouble() * 90.0;
System.out.println("rDOne= " + rDOne);
System.out.println("rDTwo= " + rDTwo);
//NOTE-EVERYTHING WORKS FINE UNTIL THIS POINT...
if (rDOne > rDTwo)
System.out.println("The larger of the 2 degs. is rDOne");
//compute ceiling.
double a=rDOne; //Store the value of rDOne.
public static double ceil(double a);
return a;
System.out.println( "the ceiling of rDOne is " + a );
//convert degree measurement to radians.
public static double toRadians(double b);
double b = a;
System.out.println("rDOne in radians is " + b );
//compute tangent of that result.
public static double tan(double c);
double c = b;
System.out.println("The tangent of rDOne is " + c );
else
System.out.println("The larger of the 2 degs. is rDTwo");
//compute ceiling.
double a=rDTwo; //Store the value of rDOne.
public static double ceil(double a);
return a;
System.out.println( "the ceiling of rDTwo is " + a );
//convert degree measurement to radians.
public static double toRadians(double b);
double b = a;
System.out.println("rDTwo in radians is " + b );
//compute tangent of that result.
public static double tan(double c);
double c = b;
System.out.println("The tangent of rDTwo is " + c );
} //end main method.
}VERY useful link..thxYou're welcome. Here are some more:
Sun's basic Java tutorial
Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
Bruce Eckel's Thinking in Java (Available online.)
Joshua Bloch's Effective Java
Bert Bates and Kathy Sierra's Head First Java.
James Gosling's The Java Programming Language. Gosling is
the creator of Java. It doesn't get much more authoratative than this. -
Problem with java.lang.reflect in Eclipse
I'm just reading java tutorial about that library, but when i'm trying to execute those example program's e.g
import java.lang.reflect.Constructor;
import java.lang.reflect.Type;
import static java.lang.System.out;
public class ConstructorSift {
public static void main(String... args) {
try {
Class<?> cArg = Class.forName(args[1]);
Class<?> c = Class.forName(args[0]);
Constructor[] allConstructors = c.getDeclaredConstructors();
for (Constructor ctor : allConstructors) {
Class<?>[] pType = ctor.getParameterTypes();
for (int i = 0; i < pType.length; i++) {
if (pType.equals(cArg)) {
out.format("%s%n", ctor.toGenericString());
Type[] gpType = ctor.getGenericParameterTypes();
for (int j = 0; j < gpType.length; j++) {
char ch = (pType[j].equals(cArg) ? '*' : ' ');
out.format("%7c%s[%d]: %s%n", ch,
"GenericParameterType", j, gpType[j]);
break;
// production code should handle this exception more gracefully
} catch (ClassNotFoundException x) {
x.printStackTrace();
in Eclipse i've got nothing in my output console :/
no errors, no warnings, no text ..... (it was terminated correctly)
Can somebody tell me what should I do to make it work properly ?Hi,
In program arguments, you should not have ConstructorSift but only java.util.Formatter and java.util.Locale.
(Eclipse : run dialog | arguments tab | program arguments)
This is the output you should get:
$ java ConstructorSift java.util.Formatter java.util.Locale
public java.util.Formatter(java.util.Locale)
*GenericParameterType[0]: class java.util.Locale
public java.util.Formatter(java.lang.Appendable,java.util.Locale)
GenericParameterType[0]: interface java.lang.Appendable
*GenericParameterType[1]: class java.util.Locale
public java.util.Formatter(java.lang.String,java.lang.String,java.util.Locale) throws java.io.FileNotFoundException,java.io.UnsupportedEncodingException
GenericParameterType[0]: class java.lang.String
GenericParameterType[1]: class java.lang.String
*GenericParameterType[2]: class java.util.Locale
public java.util.Formatter(java.io.File,java.lang.String,java.util.Locale) throws java.io.FileNotFoundException,java.io.UnsupportedEncodingException
GenericParameterType[0]: class java.io.File
GenericParameterType[1]: class java.lang.String
*GenericParameterType[2]: class java.util.Locale
public java.util.Formatter(java.io.OutputStream,java.lang.String,java.util.Locale) throws java.io.UnsupportedEncodingException
GenericParameterType[0]: class java.io.OutputStream
GenericParameterType[1]: class java.lang.String
*GenericParameterType[2]: class java.util.Locale
Hope that help,
Jack -
Reg:- Exception in thread "main" java.lang.NoClassDefFoundError
Hi Friends,
I am trying to connect to Central Management Server using Java.I have created a sample program.I set class path as
D:\j2sdk1.4.2_14\lib;D:\Program Files\Business Objects\common\3.5\java\lib\rebean.wi.jar;D:\Program Files\Business Objects\common\3.5\java\lib\rebean.jar;D:\Program Files\Business Objects\common\3.5\java\lib\ceplugins.jar;D:\Program Files\Business Objects\common\3.5\java\lib\cesession.jar;D:\Program Files\Business Objects\common\3.5\java\lib\cecore.jar;D:\Program Files\Business Objects\common\3.5\java\lib\celib.jar;D:\Program Files\Business Objects\common\3.5\java\lib\.;.
Source Code Sample.java
import com.crystaldecisions.enterprise.ocaframework.ServiceNames;
import com.crystaldecisions.sdk.exception.SDKException;
import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
import com.crystaldecisions.sdk.occa.pluginmgr.*;
import com.crystaldecisions.sdk.plugin.*;
import com.crystaldecisions.sdk.plugin.desktop.report.*;
import com.crystaldecisions.sdk.plugin.desktop.user.*;
import com.crystaldecisions.sdk.framework.*;
import com.businessobjects.rebean.wi.LogicalOperator;
import com.crystaldecisions.sdk.occa.infostore.*;
import com.businessobjects.rebean.wi.*;
import java.util.*;
import java.lang.StringBuffer;
import java.io.*;
public class Sample1
public static void main(String[] args)
System.out.println("After Method Call");
String Juname = "Administrator";
String Jpwd = "";
String Jcms = "hst-pcs4892:6400";
String Jauth = "secEnterprise";
SDKException Jfailure = null;
boolean JloggedIn = true;
IEnterpriseSession JenterpriseSession=null;
// If no session already exists, logon using the specified parameters.
if (JenterpriseSession == null)
try
/* Attempt logon. Create an Enterprise session
* manager object.
ISessionMgr JsessionMgr = CrystalEnterprise.getSessionMgr();
// Log on to BusinessObjects Enterprise.
JenterpriseSession = JsessionMgr.logon(Juname, Jpwd, Jcms, Jauth);
String JlogonToken = JenterpriseSession.getLogonTokenMgr().getDefaultToken();
catch (SDKException error)
System.out.println("Exception Occured");
JloggedIn = false;
Jfailure = error;
//System.out.println(JloggedIn);
I am getting the following error
Exception in thread "main" java.lang.NoClassDefFoundError: com/crystaldecisions/thirdparty/org/omg/CORBA/TRANSIENT
at com.crystaldecisions.enterprise.ocaframework.ServiceMgrFactory.getServiceMgr(Unknown Source)
at com.crystaldecisions.sdk.occa.security.internal.m.<init>(Unknown Source)
at com.crystaldecisions.sdk.occa.security.internal.SecurityFactory.makeSecurityMgr(Unknown Source)
at com.crystaldecisions.sdk.framework.internal.d.<init>(Unknown Source)
at com.crystaldecisions.sdk.framework.internal.CEFactory.makeSessionMgr(Unknown Source)
at com.crystaldecisions.sdk.framework.CrystalEnterprise.getSessionMgr(Unknown Source)
at Sample1.main(Sample1.java:46)
Please help me resolve this.
Regards,
Sriram.
[email protected]Hi Cotton,
First let me thank you for responding to this
thread.I gave the class path where all these are
availableJava disagrees with you.
Do you know which jar com.crystaldecisions.thirdparty.org.omg.CORBA/TRANSIENT is supposed to be in? -
I am calling a Web Service that returns an XML-file. The XML-file should be passed to a method that puts the xml into a table in my database.
I will upload the 3 files that are being used for this.
When I rebuild my files I get the following error in CustomerCO.java:
Error(78,38): method invokeMethod(java.lang.String, org.w3c.dom.Element) not found in interface oracle.apps.fnd.framework.OAApplicationModule
Line 78 reads as follows:
String Status = (String)am.invokeMethod("initSaveXml", wsXml);
Any suggestions?
PS: I am a newbie to java and framework :-(
Here are my files:
CustomerCO.java:
/*===========================================================================+
| Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
| All rights reserved. |
+===========================================================================+
| HISTORY |
+===========================================================================*/
package xxcu.oracle.apps.ar.customer.server.webui;
import java.io.Serializable;
import java.lang.Exception;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import org.w3c.dom.Element;
import xxcu.oracle.apps.ar.customer.ws.LindorffWS;
* Controller for ...
public class CustomerCO extends OAControllerImpl implements Serializable
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
* 2009.07.09, Roy Feirud, lagt til for å utføre spørring
if (pageContext.getParameter("Search") != null)
OAApplicationModule am = pageContext.getApplicationModule(webBean);
//Setter søkekriteriene til LindorffWS
String Name = pageContext.getParameter("SearchName");
String Address = pageContext.getParameter("SearchAddress");
String Zip = pageContext.getParameter("SearchZipCode");
String City = pageContext.getParameter("SearchCity");
String Born = pageContext.getParameter("SearchBorn");
String Phone = pageContext.getParameter("SearchPhoneNo");
Serializable[] param = { Name, Address, Zip, City, Born, Phone };
//Bygger søkestrengen
String SearchString = (String)am.invokeMethod("initBuildString", param );
//Initialiserer LindorffWS
LindorffWS WsConnection = new LindorffWS();
try
//Kaller Web Sevice fra Lindorff
Element wsXml = (Element)WsConnection.XmlFulltextOperator(SearchString);
String Status = (String)am.invokeMethod("initSaveXml", wsXml);
catch(Exception WsExp)
// WsConnection = new LindorffWS();
System.out.println("Kall til LindorffWS feilet!");
am.invokeMethod("initQueryCustomer");
CustomerAMImpl.java:
package xxcu.oracle.apps.ar.customer.server;
import java.io.Serializable;
import java.sql.CallableStatement;
import java.sql.SQLException;
import java.sql.Types;
import oracle.apps.fnd.common.MessageToken;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
import oracle.apps.fnd.framework.server.OADBTransaction;
import oracle.apps.fnd.framework.server.OAExceptionUtils;
import org.w3c.dom.Element;
// --- File generated by Oracle Business Components for Java.
public class CustomerAMImpl extends OAApplicationModuleImpl implements Serializable
* This is the default constructor (do not remove)
public CustomerAMImpl()
* Sample main for debugging Business Components code using the tester.
public static void main(String[] args)
launchTester("xxcu.oracle.apps.ar.customer.server", "CustomerAMLocal");
* Container's getter for CustomerVO1
public CustomerVOImpl getCustomerVO1()
return (CustomerVOImpl)findViewObject("CustomerVO1");
* 2009.07.09, Roy Feirud, Lagt til for å utføre spørring.
public void initQueryCustomer()
CustomerVOImpl vo = getCustomerVO1();
if (vo!=null)
vo.initQuery();
* 2009.08.31, Roy Feirud, Lagt til for å bygge opp input til WebService hos Lindorff.
public String initBuildString(String Name
,String Address
,String Zip
,String City
,String Born
,String Phone)
String ws_string = null;
CallableStatement cs = null;
try
String sql= "BEGIN ISS_WS_LINDORFF_PKG.BUILD_STRING (?,?,?,?,?,?,?); END;";
OADBTransaction txn = getOADBTransaction();
cs = txn.createCallableStatement(sql,1);
cs.setString(1,Name);
cs.setString(2,Address);
cs.setString(3,Zip);
cs.setString(4,City);
cs.setString(5,Born);
cs.setString(6,Phone);
cs.registerOutParameter(7,Types.VARCHAR);
cs.execute();
OAExceptionUtils.checkErrors (txn);
ws_string = cs.getString(7);
cs.close();
catch (SQLException sqle)
String Prosedyre = "ISS_WS_LINDORFF_PKG.BUILD_STRING";
String Errmsg = sqle.toString();
MessageToken[] tokens = {new MessageToken("PROSEDYRE", Prosedyre), new MessageToken("ERRMSG", Errmsg)};
throw new OAException("ISS", "ISS_PLSQL_ERROR",tokens,OAException.ERROR, null);
return ws_string;
public String initSaveXml(Element WsXml)
String Status = "Error";
CallableStatement cs = null;
try
String sql= "BEGIN ISS_XML2TABLE_PKG.ISS_AR_CUSTOMERS_TMP (?,?); END;";
OADBTransaction txn = getOADBTransaction();
cs = txn.createCallableStatement(sql,1);
cs.setObject(1,WsXml);
cs.registerOutParameter(2,Types.VARCHAR);
cs.execute();
OAExceptionUtils.checkErrors (txn);
Status = cs.getString(2);
cs.close();
catch (SQLException sqle)
String Prosedyre = "ISS_XML2TABLE_PKG.ISS_AR_CUSTOMERS_TMP";
String Errmsg = sqle.toString();
MessageToken[] tokens = {new MessageToken("PROSEDYRE", Prosedyre), new MessageToken("ERRMSG", Errmsg)};
throw new OAException("ISS", "ISS_PLSQL_ERROR",tokens,OAException.ERROR, null);
return Status;
LindorffWS.java:
package xxcu.oracle.apps.ar.customer.ws;
import oracle.soap.transport.http.OracleSOAPHTTPConnection;
//import org.apache.soap.encoding.soapenc.BeanSerializer;
import org.apache.soap.encoding.SOAPMappingRegistry;
//import org.apache.soap.util.xml.QName;
import java.util.Vector;
import org.w3c.dom.Element;
import java.net.URL;
import org.apache.soap.Body;
import org.apache.soap.Envelope;
import org.apache.soap.messaging.Message;
import oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub;
* Generated by the Oracle9i JDeveloper Web Services Stub/Skeleton Generator.
* Date Created: Fri Jul 10 10:37:21 CEST 2009
* WSDL URL: http://services.lindorffmatch.com/Search/Search.asmx?WSDL
public class LindorffWS extends WrappedDocLiteralStub
public LindorffWS()
m_httpConnection = new OracleSOAPHTTPConnection();
public String endpoint = "http://services.lindorffmatch.com/Search/Search.asmx";
private OracleSOAPHTTPConnection m_httpConnection = null;
private SOAPMappingRegistry m_smr = null;
public Element XmlFulltextOperator(String xmlString) throws Exception
URL endpointURL = new URL(endpoint);
Envelope requestEnv = new Envelope();
Body requestBody = new Body();
Vector requestBodyEntries = new Vector();
String wrappingName = "XmlFulltextOperator";
String targetNamespace = "http://services.lindorffmatch.com/search";
Vector requestData = new Vector();
requestData.add(new Object[] {"xmlString", xmlString});
requestBodyEntries.addElement(toElement(wrappingName, targetNamespace, requestData));
requestBody.setBodyEntries(requestBodyEntries);
requestEnv.setBody(requestBody);
Message msg = new Message();
msg.setSOAPTransport(m_httpConnection);
msg.send(endpointURL, "http://services.lindorffmatch.com/search/XmlFulltextOperator", requestEnv);
Envelope responseEnv = msg.receiveEnvelope();
Body responseBody = responseEnv.getBody();
Vector responseData = responseBody.getBodyEntries();
return (Element)fromElement((Element)responseData.elementAt(0), org.w3c.dom.Element.class);
_______________________________________________________________________________________________________________________________Hi,
Create an Interface to your application Module then from interface call your method,
refer http://www.oraclearea51.com/oracle-technical-articles/oa-framework/oa-framework-beginners-guide/213-how-to-call-am-methods-from-controller-without-using-invokemethod.html for creating Interface for AM and calling it in controller.
Regards,
Reetesh Sharma -
I am calling a Web Service that returns an XML-file. The XML-file should be passed to a method that puts the xml into a table in my database.
I will upload the 3 files that are being used for this.
When I rebuild my files I get the following error in CustomerCO.java:
Error(78,38): method invokeMethod(java.lang.String, org.w3c.dom.Element) not found in interface oracle.apps.fnd.framework.OAApplicationModule
Line 78 reads as follows:
String Status = (String)am.invokeMethod("initSaveXml", wsXml);
Any suggestions?
PS: I am a newbie to java and framework
Here are my files:
CustomerCO.java:
/*===========================================================================+
Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA
All rights reserved.
===========================================================================
HISTORY
+===========================================================================*/
package xxcu.oracle.apps.ar.customer.server.webui;
import java.io.Serializable;
import java.lang.Exception;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import org.w3c.dom.Element;
import xxcu.oracle.apps.ar.customer.ws.LindorffWS;
* Controller for ...
public class CustomerCO extends OAControllerImpl implements Serializable
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
* 2009.07.09, Roy Feirud, lagt til for å utføre spørring
if (pageContext.getParameter("Search") != null)
OAApplicationModule am = pageContext.getApplicationModule(webBean);
//Setter søkekriteriene til LindorffWS
String Name = pageContext.getParameter("SearchName");
String Address = pageContext.getParameter("SearchAddress");
String Zip = pageContext.getParameter("SearchZipCode");
String City = pageContext.getParameter("SearchCity");
String Born = pageContext.getParameter("SearchBorn");
String Phone = pageContext.getParameter("SearchPhoneNo");
Serializable[] param = { Name, Address, Zip, City, Born, Phone };
//Bygger søkestrengen
String SearchString = (String)am.invokeMethod("initBuildString", param );
//Initialiserer LindorffWS
LindorffWS WsConnection = new LindorffWS();
try
//Kaller Web Sevice fra Lindorff
Element wsXml = (Element)WsConnection.XmlFulltextOperator(SearchString);
String Status = (String)am.invokeMethod("initSaveXml", wsXml);
catch(Exception WsExp)
// WsConnection = new LindorffWS();
System.out.println("Kall til LindorffWS feilet!");
am.invokeMethod("initQueryCustomer");
CustomerAMImpl.java:
package xxcu.oracle.apps.ar.customer.server;
import java.io.Serializable;
import java.sql.CallableStatement;
import java.sql.SQLException;
import java.sql.Types;
import oracle.apps.fnd.common.MessageToken;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
import oracle.apps.fnd.framework.server.OADBTransaction;
import oracle.apps.fnd.framework.server.OAExceptionUtils;
import org.w3c.dom.Element;
// --- File generated by Oracle Business Components for Java.
public class CustomerAMImpl extends OAApplicationModuleImpl implements Serializable
* This is the default constructor (do not remove)
public CustomerAMImpl()
* Sample main for debugging Business Components code using the tester.
public static void main(String[] args)
launchTester("xxcu.oracle.apps.ar.customer.server", "CustomerAMLocal");
* Container's getter for CustomerVO1
public CustomerVOImpl getCustomerVO1()
return (CustomerVOImpl)findViewObject("CustomerVO1");
* 2009.07.09, Roy Feirud, Lagt til for å utføre spørring.
public void initQueryCustomer()
CustomerVOImpl vo = getCustomerVO1();
if (vo!=null)
vo.initQuery();
* 2009.08.31, Roy Feirud, Lagt til for å bygge opp input til WebService hos Lindorff.
public String initBuildString(String Name
,String Address
,String Zip
,String City
,String Born
,String Phone)
String ws_string = null;
CallableStatement cs = null;
try
String sql= "BEGIN ISS_WS_LINDORFF_PKG.BUILD_STRING (?,?,?,?,?,?,?); END;";
OADBTransaction txn = getOADBTransaction();
cs = txn.createCallableStatement(sql,1);
cs.setString(1,Name);
cs.setString(2,Address);
cs.setString(3,Zip);
cs.setString(4,City);
cs.setString(5,Born);
cs.setString(6,Phone);
cs.registerOutParameter(7,Types.VARCHAR);
cs.execute();
OAExceptionUtils.checkErrors (txn);
ws_string = cs.getString(7);
cs.close();
catch (SQLException sqle)
String Prosedyre = "ISS_WS_LINDORFF_PKG.BUILD_STRING";
String Errmsg = sqle.toString();
MessageToken[] tokens = {new MessageToken("PROSEDYRE", Prosedyre), new MessageToken("ERRMSG", Errmsg)};
throw new OAException("ISS", "ISS_PLSQL_ERROR",tokens,OAException.ERROR, null);
return ws_string;
public String initSaveXml(Element WsXml)
String Status = "Error";
CallableStatement cs = null;
try
String sql= "BEGIN ISS_XML2TABLE_PKG.ISS_AR_CUSTOMERS_TMP (?,?); END;";
OADBTransaction txn = getOADBTransaction();
cs = txn.createCallableStatement(sql,1);
cs.setObject(1,WsXml);
cs.registerOutParameter(2,Types.VARCHAR);
cs.execute();
OAExceptionUtils.checkErrors (txn);
Status = cs.getString(2);
cs.close();
catch (SQLException sqle)
String Prosedyre = "ISS_XML2TABLE_PKG.ISS_AR_CUSTOMERS_TMP";
String Errmsg = sqle.toString();
MessageToken[] tokens = {new MessageToken("PROSEDYRE", Prosedyre), new MessageToken("ERRMSG", Errmsg)};
throw new OAException("ISS", "ISS_PLSQL_ERROR",tokens,OAException.ERROR, null);
return Status;
LindorffWS.java:
package xxcu.oracle.apps.ar.customer.ws;
import oracle.soap.transport.http.OracleSOAPHTTPConnection;
//import org.apache.soap.encoding.soapenc.BeanSerializer;
import org.apache.soap.encoding.SOAPMappingRegistry;
//import org.apache.soap.util.xml.QName;
import java.util.Vector;
import org.w3c.dom.Element;
import java.net.URL;
import org.apache.soap.Body;
import org.apache.soap.Envelope;
import org.apache.soap.messaging.Message;
import oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub;
* Generated by the Oracle9i JDeveloper Web Services Stub/Skeleton Generator.
* Date Created: Fri Jul 10 10:37:21 CEST 2009
* WSDL URL: http://services.lindorffmatch.com/Search/Search.asmx?WSDL
public class LindorffWS extends WrappedDocLiteralStub
public LindorffWS()
m_httpConnection = new OracleSOAPHTTPConnection();
public String endpoint = "http://services.lindorffmatch.com/Search/Search.asmx";
private OracleSOAPHTTPConnection m_httpConnection = null;
private SOAPMappingRegistry m_smr = null;
public Element XmlFulltextOperator(String xmlString) throws Exception
URL endpointURL = new URL(endpoint);
Envelope requestEnv = new Envelope();
Body requestBody = new Body();
Vector requestBodyEntries = new Vector();
String wrappingName = "XmlFulltextOperator";
String targetNamespace = "http://services.lindorffmatch.com/search";
Vector requestData = new Vector();
requestData.add(new Object[] {"xmlString", xmlString});
requestBodyEntries.addElement(toElement(wrappingName, targetNamespace, requestData));
requestBody.setBodyEntries(requestBodyEntries);
requestEnv.setBody(requestBody);
Message msg = new Message();
msg.setSOAPTransport(m_httpConnection);
msg.send(endpointURL, "http://services.lindorffmatch.com/search/XmlFulltextOperator", requestEnv);
Envelope responseEnv = msg.receiveEnvelope();
Body responseBody = responseEnv.getBody();
Vector responseData = responseBody.getBodyEntries();
return (Element)fromElement((Element)responseData.elementAt(0), org.w3c.dom.Element.class);
_______________________________________________________________________________________________________________________________Hi,
wrong forum. If this is a problem related to the use of OA framework, please use the OA framework forum here on OTN
Frank
Maybe you are looking for
-
IAS 10.1.2-how to configure different oc4j listen to different virtualhost?
Hi I have requirement, we have oracle portal based web site that can be used by outside users over the internet. And then we have are deploying few new apps/webservices/ear files on a oc4j called core_ws. These web services should not be accessed out
-
SOLUTION: iCal calendar duplicates created by iCloud
Two weeks after I migrated to Lion, I stopped syncing my iPad and iPhone through iTunes and turned on iCloud. I had 15 years of calendar data, and after the iCloud syncing, most of the entries were duplicated or even triplicated. It took me 5 days
-
I just upgraded to Firefox 9.0.1 Suddenly, my Google toolbar search does not work. Any work around or fix for this?
-
Store large volume of Image files, what is better ? File System or Oracle
I am working on a IM (Image Management) software that need to store and manage over 8.000.000 images. I am not sure if I have to use File System to store images or database (blob or clob). Until now I only used File System. Could someone that already
-
I have an Intel MacBook Pro. I have been told I can install AppleWorks 6.2.9 on this machine. Is this correct? I read somewhere I would also need Rosetta but do not know if this is correct. If so how can i get Rosetta? I can presently open my old App