API for utility classes
Can anyone please tell me where i can find a detailed description (constructor and methods summary) for the utility classes in Java 3d. The sun's API specification doesn't give all the details. Just says what the class is for! Thanks
L.G
http://java.sun.com/products/java-media/3D/download.htm
and go to
Download Java 3D 1.3 Implementation Documentation
download everything
in this doc you have everything
cyrilat last!!!!!!! was searching this for some time. Thank you very much cyril.
L.G
Similar Messages
-
API for Course, Class, Enrollment and Attendance
Dear Guru
My client has custom learning management (OAF Page) and Oracle Learning management as well.
Enrollment process and marking attendance are currently done in custom developed pages. At the same time they update the enrollment and attendance in OLM as well.
Now they want to integrate the custom pages to OLM, means they like to update the class, enrollments & attendance through API in OLM.
Please tel me, does OLM has API for creating Course, Class, Enrollment and Attendance.
Thanks in advance.Please see these docs/links.
Publicly Callable Business Process APIs in OTA [ID 216766.1]
OTA.J: Is There an API in OTA / OLM That Can be Used to Create a Resource? [ID 376286.1]
Oracle Integration Repository
http://irep.oracle.com/index.html
eTRM
http://etrm.oracle.com/pls/etrm/
Thanks,
Hussein -
Javadocs / APIs for Jdeveloper classes - Where?
Probably a dumb question. Where can we find the API definitions for JDeveloper class (ie JUNavigationBar, EntityObject, EntityRow, EntityView, etc)
Hi,
You can access them either from within the JDeveloper help system (reference topic near the end), or by expanding the following zip file:
{JDEV_HOME}/jdev/doc/ohj/bc4jjavadoc.zip
Thanks,
Brian
JDev Team -
Bug in childrenNames() api for Preference class?
Hi,
The following code trhrows an Illegal Argument Exception.
import java.uitl.prefs.*;
try{
String xyz[] = (Preferences.userRoot()).childrenNames();
} catch (Exception e) {
e.printStackTrace();
The exception caught is :
java.lang.IllegalArgumentException: String length must be a multiple of four.
at java.util.prefs.Base64.base64ToByteArray(Base64.java:134) at java.util.prefs.Base64.altBase64ToByteArray(Base64.java:126) at java.util.prefs.FileSystemPreferences.nodeName(FileSystemPreferences.java:859) at java.util.prefs.FileSystemPreferences.access$1900(FileSystemPreferences.java:33) at java.util.prefs.FileSystemPreferences$10.run(FileSystemPreferences.java:640) at java.security.AccessController.doPrivileged(Native Method) at java.util.prefs.FileSystemPreferences.childrenNamesSpi(FileSystemPreferences.java:632) at java.util.prefs.AbstractPreferences.childrenNames(AbstractPreferences.java:699) at test.main(test.java:9)
Is this a BUG in java?
My requirement is that I have many NODES under the root node of user preferences(userRoot).I want the list of nodes, for futher processing.How do i retrieve them?
Please help.
(Also send a cc to my email:[email protected])
Thanks,
Prakash.The preferences module uses base64 for keys which have special character in them. This includes '.'
You have a preference key it thinks is in base64 but is not. Have a look at the files in your user prefences to see if they are all okay. -
Where can I find the javadoc api for JavaConcurrentProgram related classes
Hello,
I am new to Oracle EBS. I want to use Java Concurrent Program. I found a few links how to write the program. But I could not find the java doc for the classes that are used, for example, JavaConcurrentProgram, CpContext etc. Would someone please tell me where I can find the javadoc api for those classes? And also where do the corresponding jar file/files reside on the server?
thanks.Hello, Ajay,
I read both of metalinks before. One is example and the other is FAQ. None of them have link to the javadoc api for the JavaConcurrentProgram related classes. I am looking for the javadoc api for the classes related to the java concurrent program. I did find some javadoc api for class like oracle.apps.fnd.common.Context from jdeveloper. But I could not find any javadoc api for oracle.apps.fnd.cp.request.* and oracle.app.fnd.util.* etc. -
Where should I keep my utility classes...
Hi All,
I have WAR application and few ejb JARs which are sharing common utility classes. I have created a separate folder for my WAR application. ejb jars also are in the serverclasses folder.
Now the question what's the recommended destination for utility classes. Can I keep them in the WAR application.
regards,
Aravind.If you are totally unsure, you can create a folder somewhere, put the files in it and then add the folder to your $PATH.
-
Understanding method implementation for LinkedList class
Hello
I'm new to java and just trying to get my head around data structures, particularly ArrayList and LinkedList implementations. I've looked at the Sun API for both classes, but would like to see how the methods are implmented so I can venture into writing my own versions of these classes..
Does anyone know if there is a resource showing the full method implementation so I can view how they work?
thanks,a really strange licence: look but don't touch, and it's still under copyrightThis license seems to make sense: you can look at it and learn from it but you are not supposed to make an own, incomptabile version.
-
Where can I see API for ADF Internal Class for a Specific JDev Version
Hi,
I wanted to check the API for certain ADF internal classes. Is this possible and where can I see it?
I know also for a fact that its not good practice to make use of the internal class but my case is a little different
so I would like to extend how the internal class is working.
I use JDev 11G PS3 (11.1.1.4)
ThanksHi,
Hope following will useful
http://download.oracle.com/docs/cd/B14099_19/web.1012/b14022/overview-summary.html
http://download.oracle.com/docs/cd/B14099_19/web.1012/b14022/allclasses-noframe.html -
Where are the JavaDocs for the Thor.API.Operations.XXClient classes?
I am not seeing any of the JavaDocs for the actual Client classes that should be available for use in OIM. The Interfaces are nice but without documentation of the Client classes we are left to guess how to use the Interfaces.
Has anyone developed some guidelines on how to use the ReportOperationsClient class? I did the following:
Defined all of the inputs for the ReportInput class constructor.
Created the ReportInput instance with these inputs.
Set the stored procedure name.
Created an instance of ReportOperationsClient
Called getPagedReportData with my ReportInput instance.
No luck.Martin,
I am aware of the documentation location and am looking at the Thor.API.Operations JavaDocs right now.
The Intf Interfaces are all there but there are no JavaDocs for the Clients.
Here is the listing from the JavaDocs:
Interface Hierarchy
Thor.API.Operations.AttestationDefinitionOperationsIntf
Thor.API.Operations.AttestationOperationsIntf
Thor.API.Operations.ConnectorInstallationOperationsIntf
Thor.API.Operations.ErrorOperationsIntf
Thor.API.Operations.GCOperationsIntf
Thor.API.Operations.RemoteManagerOperationsIntf
Thor.API.Operations.ReportOperationsIntf
Thor.API.Operations.TaskDefinitionOperationsIntf
Thor.API.Operations.tcAccessPolicyOperationsIntf
Thor.API.Operations.tcAdapterOperationsIntf
Thor.API.Operations.tcAuditOperationsIntf
Thor.API.Operations.tcDeploymentUtilityOperationsIntf
Thor.API.Operations.tcEmailOperationsIntf
Thor.API.Operations.tcEntitlementsOperationsIntf
Thor.API.Operations.tcExportOperationsIntf
Thor.API.Operations.tcFormDefinitionOperationsIntf
Thor.API.Operations.tcFormInstanceOperationsIntf
Thor.API.Operations.tcGroupOperationsIntf
Thor.API.Operations.tcHelpOperationsIntf
Thor.API.Operations.tcImportOperationsIntf
Thor.API.Operations.tcITResourceDefinitionOperationsIntf
Thor.API.Operations.tcITResourceInstanceOperationsIntf
Thor.API.Operations.tcLocationOperationsIntf
Thor.API.Operations.tcLookupOperationsIntf
Thor.API.Operations.tcObjectOperationsIntf
Thor.API.Operations.tcOrganizationOperationsIntf
Thor.API.Operations.tcPasswordOperationsIntf
Thor.API.Operations.tcPermissionOperationsIntf
Thor.API.Operations.tcPropertyOperationsIntf
Thor.API.Operations.tcProvisioningOperationsIntf
Thor.API.Operations.tcQueueOperationsIntf
Thor.API.Operations.tcReconciliationOperationsIntf
Thor.API.Operations.tcRequestOperationsIntf
Thor.API.Operations.tcRulesOperationsIntf
Thor.API.Operations.tcSchedulerOperationsIntf
Thor.API.Operations.tcUserOperationsIntf
Thor.API.Operations.tcWorkflowDefinitionOperationsIntf
Here is a listing from the Jar file:
[bea@xxxxxxxxx lib]$ jar tf xlAPI.jar | grep Thor | grep API | grep Operations
Thor/API/Operations/
Thor/API/Base/tcUtilityOperationsIntf.class
Thor/API/Operations/AttestationDefinitionOperationsClient.class
Thor/API/Operations/AttestationDefinitionOperationsIntf.class
Thor/API/Operations/AttestationOperationsClient.class
Thor/API/Operations/AttestationOperationsIntf.class
Thor/API/Operations/ConnectorInstallationOperationsClient.class
Thor/API/Operations/ConnectorInstallationOperationsIntf.class
Thor/API/Operations/ErrorOperationsClient.class
Thor/API/Operations/ErrorOperationsIntf.class
Thor/API/Operations/GCOperationsClient.class
Thor/API/Operations/GCOperationsIntf.class
Thor/API/Operations/RemoteManagerOperationsClient.class
Thor/API/Operations/RemoteManagerOperationsIntf.class
Thor/API/Operations/ReportOperationsClient.class
Thor/API/Operations/ReportOperationsIntf.class
Thor/API/Operations/TaskDefinitionOperationsClient.class
Thor/API/Operations/TaskDefinitionOperationsIntf.class
Thor/API/Operations/tcAccessPolicyOperationsClient.class
Thor/API/Operations/tcAccessPolicyOperationsIntf.class
Thor/API/Operations/tcAdapterOperationsClient.class
Thor/API/Operations/tcAdapterOperationsIntf.class
Thor/API/Operations/tcAuditOperationsClient.class
Thor/API/Operations/tcAuditOperationsIntf.class
Thor/API/Operations/tcDeploymentUtilityOperationsClient.class
Thor/API/Operations/tcDeploymentUtilityOperationsIntf.class
Thor/API/Operations/tcEmailOperationsClient.class
Thor/API/Operations/tcEmailOperationsIntf.class
Thor/API/Operations/tcEntitlementsOperationsClient.class
Thor/API/Operations/tcEntitlementsOperationsIntf.class
Thor/API/Operations/tcExportOperationsClient.class
Thor/API/Operations/tcExportOperationsIntf.class
Thor/API/Operations/tcFormDefinitionOperationsClient.class
Thor/API/Operations/tcFormDefinitionOperationsIntf.class
Thor/API/Operations/tcFormInstanceOperationsClient.class
Thor/API/Operations/tcFormInstanceOperationsIntf.class
Thor/API/Operations/tcGroupOperationsClient.class
Thor/API/Operations/tcGroupOperationsIntf.class
Thor/API/Operations/tcHelpOperationsClient.class
Thor/API/Operations/tcHelpOperationsIntf.class
Thor/API/Operations/tcITResourceDefinitionOperationsClient.class
Thor/API/Operations/tcITResourceDefinitionOperationsIntf.class
Thor/API/Operations/tcITResourceInstanceOperationsClient.class
Thor/API/Operations/tcITResourceInstanceOperationsIntf.class
Thor/API/Operations/tcImportOperationsClient.class
Thor/API/Operations/tcImportOperationsIntf.class
Thor/API/Operations/tcLocationOperationsClient.class
Thor/API/Operations/tcLocationOperationsIntf.class
Thor/API/Operations/tcLookupOperationsClient.class
Thor/API/Operations/tcLookupOperationsIntf.class
Thor/API/Operations/tcObjectOperationsClient.class
Thor/API/Operations/tcObjectOperationsIntf.class
Thor/API/Operations/tcOrganizationOperationsClient.class
Thor/API/Operations/tcOrganizationOperationsIntf.class
Thor/API/Operations/tcPasswordOperationsClient.class
Thor/API/Operations/tcPasswordOperationsIntf.class
Thor/API/Operations/tcPermissionOperationsClient.class
Thor/API/Operations/tcPermissionOperationsIntf.class
Thor/API/Operations/tcPropertyOperationsClient.class
Thor/API/Operations/tcPropertyOperationsIntf.class
Thor/API/Operations/tcProvisioningOperationsClient.class
Thor/API/Operations/tcProvisioningOperationsIntf.class
Thor/API/Operations/tcQueueOperationsClient.class
Thor/API/Operations/tcQueueOperationsIntf.class
Thor/API/Operations/tcReconciliationOperationsClient.class
Thor/API/Operations/tcReconciliationOperationsIntf.class
Thor/API/Operations/tcRequestOperationsClient.class
Thor/API/Operations/tcRequestOperationsIntf.class
Thor/API/Operations/tcRulesOperationsClient.class
Thor/API/Operations/tcRulesOperationsIntf.class
Thor/API/Operations/tcScheduleTaskOperationsClient.class
Thor/API/Operations/tcScheduleTaskOperationsIntf.class
Thor/API/Operations/tcSchedulerOperationsClient.class
Thor/API/Operations/tcSchedulerOperationsIntf.class
Thor/API/Operations/tcUserOperationsClient.class
Thor/API/Operations/tcUserOperationsIntf.class
Thor/API/Operations/tcWorkflowDefinitionOperationsClient.class
Thor/API/Operations/tcWorkflowDefinitionOperationsIntf.class
As I described in my original post, and as you can plainly see, there is a Client class that is the "worker" class for each of the Interfaces. Without these worker classes, we would be at our own devices to determine how to implement these Interfaces, so I am thankful they are being provided, but the issue is that I am needing documentation for them, since specifically the ReportOperationsClient does not seem to work based on my interpretation of the Interface.
Thanks for your interest. If the source code for the Operations Clients does not have embedded JavaDocs, that would explain the issue. In that case I would need to have the source code so I can troubleshoot the issues I am having with this class. I opened an SR Friday but have not had any response yet. -
Revision: 3672
Author: [email protected]
Date: 2008-10-15 16:54:51 -0700 (Wed, 15 Oct 2008)
Log Message:
Removing the commonly used getUnqualifiedClassName out of the less commonly used utility class to reduce SWF size for the general case.
Reviewer: Gordon
QE: No
Modified Paths:
flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicEleme nt.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/Effect.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/EffectInstance.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/NameUtil.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/ObjectUtil.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/utils/OrderedObject.asIn general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
Hunt -
Revision: 10477
Author: [email protected]
Date: 2009-09-21 17:04:28 -0700 (Mon, 21 Sep 2009)
Log Message:
Add ListenerProxyElement, utility class for listening to trait-level changes on a wrapped element. Refactor proxy unit tests to make them more extensible.
Modified Paths:
osmf/trunk/framework/MediaFramework/.flexLibProperties
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/MediaFrameworkTests.as
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/proxies/TestProxyElement. as
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/proxies/TestTemporalProxy Element.as
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/utils/DynamicProxyElement .as
Added Paths:
osmf/trunk/framework/MediaFramework/org/openvideoplayer/proxies/ListenerProxyElement.as
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/proxies/TestListenerProxy Element.as
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/proxies/TestListenerProxy ElementAsSubclass.as
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/proxies/TestProxyElementA sDynamicProxy.as
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/utils/DynamicListenerProx yElement.asRevision: 10477
Author: [email protected]
Date: 2009-09-21 17:04:28 -0700 (Mon, 21 Sep 2009)
Log Message:
Add ListenerProxyElement, utility class for listening to trait-level changes on a wrapped element. Refactor proxy unit tests to make them more extensible.
Modified Paths:
osmf/trunk/framework/MediaFramework/.flexLibProperties
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/MediaFrameworkTests.as
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/proxies/TestProxyElement. as
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/proxies/TestTemporalProxy Element.as
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/utils/DynamicProxyElement .as
Added Paths:
osmf/trunk/framework/MediaFramework/org/openvideoplayer/proxies/ListenerProxyElement.as
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/proxies/TestListenerProxy Element.as
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/proxies/TestListenerProxy ElementAsSubclass.as
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/proxies/TestProxyElementA sDynamicProxy.as
osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/utils/DynamicListenerProx yElement.as -
Where to download API for com.sun.j3d.utils ?
hi,
where can i download the api for com.sun.j3d.utils. i dont want to see it online, i need an offline version (in order to use it with a textpad-plug-in.
thanx,
Usulyes, the documentation.
well, of couse i have downloaded java3d. but i cant find the documentation in there. java3d has two subfolders "demo" and "jre". in "jre" are the two subfolders "bin" and "lib". and the documentation nowhere to be found. -
Java API for running entire ".sql" files on a remote DB ( mySQL or Oracle)?
Hi,
Would anyone happen to know if there's a java API for executing entire ".sql" files (containing several different SQL commands), on a remote database server ?
It's enough if the API works with MySQL and/or Oracle.
Just to demonstrate what i'm looking for:
Suppose you've created sql file "c:/test.sql" with several script lines:
-- test.sql:
insert into TABLE1 values(3,3);
insert into TABLE1 values(5,5);
create table TABLE2 (name VARCHER) ENGINE innoDB; -- MYSQL specific
Then the java API should look something like:
// Dummy java code:
String driver="com.mysql.jdbc.Driver";
String url= "jdbc:mysql://localhost:3306/myDb";
SomeAPI.executeScriptFile( "c:/test.sql", driver, url);
Thanks.No such a API, but it's easy to parse all sqls in a file, then run those command:
For instance:
import java.sql.*;
import java.util.Properties;
/* A demo show how to load some sql statements. */
public class testSQL {
private final static Object[] getSQLStatements(java.util.Vector v) {
Object[] statements = new Object[v.size()];
Object temp;
for (int i = 0; i < v.size(); i++) {
temp = v.elementAt(i);
if (temp instanceof java.util.Vector)
statements[i] = getSQLStatements( (java.util.Vector) temp);
else
statements[i] = temp;
return statements;
public final static Object[] getSQLStatements(String sqlFile) throws java.
io.IOException {
java.util.Vector v = new java.util.Vector(1000);
try {
java.io.BufferedReader br = new java.io.BufferedReader(new java.io.
FileReader(sqlFile));
java.util.Vector batchs = new java.util.Vector(10);
String temp;
while ( (temp = br.readLine()) != null) {
temp = temp.trim();
if (temp.length() == 0)
continue;
switch (temp.charAt(0)) {
case '*':
case '"':
case '\'':
// System.out.println(temp);
break; //Ignore any line which begin with the above character
case '#': //Used to begin a new sql statement
if (batchs.size() > 0) {
v.addElement(getSQLStatements(batchs));
batchs.removeAllElements();
break;
case 'S':
case 's':
case '?':
if (batchs.size() > 0) {
v.addElement(getSQLStatements(batchs));
batchs.removeAllElements();
v.addElement(temp);
break;
case '!': //Use it to get a large number of simple update statements
if (batchs.size() > 0) {
v.addElement(getSQLStatements(batchs));
batchs.removeAllElements();
String part1 = temp.substring(1);
String part2 = br.readLine();
for (int i = -2890; i < 1388; i += 39)
batchs.addElement(part1 + i + part2);
for (int i = 1890; i < 2388; i += 53) {
batchs.addElement(part1 + i + part2);
batchs.addElement(part1 + i + part2);
for (int i = 4320; i > 4268; i--) {
batchs.addElement(part1 + i + part2);
batchs.addElement(part1 + i + part2);
for (int i = 9389; i > 7388; i -= 83)
batchs.addElement(part1 + i + part2);
v.addElement(getSQLStatements(batchs));
batchs.removeAllElements();
break;
default:
batchs.addElement(temp);
break;
if (batchs.size() > 0) {
v.addElement(getSQLStatements(batchs));
batchs.removeAllElements();
br.close();
br = null;
catch (java.io.FileNotFoundException fnfe) {
v.addElement(sqlFile); //sqlFile is a sql command, not a file Name
Object[] statements = new Object[v.size()];
for (int i = 0; i < v.size(); i++)
statements[i] = v.elementAt(i);
return statements;
public static void main(String argv[]) {
try {
String url;
Object[] statements;
switch (argv.length) {
case 0: //Use it for the simplest test
case 1:
url = "jdbc:dbf:/.";
if (argv.length == 0) {
statements = new String[1];
statements[0] = "select * from test";
else
statements = argv;
break;
case 2:
url = argv[0];
statements = getSQLStatements(argv[1]);
break;
default:
throw new Exception(
"Syntax Error: java testSQL url sqlfile");
Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();
//Please see Connecting to the Database section of Chapter 2. Installation in Development Document
Properties properties = new Properties();
Connection con = DriverManager.getConnection(url, properties);
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
//Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
// stmt.setMaxRows(0);
stmt.setFetchSize(10);
final boolean serializeFlag = false;//A test switch to serialize/deserialize the resultSet
ResultSet rs;
for (int i = 0; i < statements.length; i++) {
if (statements[i] instanceof java.lang.String) {
String temp = (java.lang.String) statements;
switch (temp.charAt(0)) {
case 'S':
case 's':
case '?':
System.out.println(temp);
rs = stmt.executeQuery(temp);
if (serializeFlag) {
// serialize the resultSet
try {
java.io.FileOutputStream fileOutputStream = new
java.io.FileOutputStream("testrs.tmp");
java.io.ObjectOutputStream
objectOutputStream = new java.io.
ObjectOutputStream(fileOutputStream);
objectOutputStream.writeObject(rs);
objectOutputStream.flush();
objectOutputStream.close();
fileOutputStream.close();
catch (Exception e) {
System.out.println(e);
e.printStackTrace();
System.exit(1);
rs.close(); //Let the CONCUR_UPDATABLE resultSet release its open files at once.
rs = null;
// deserialize the resultSet
try {
java.io.FileInputStream fileInputStream = new
java.io.FileInputStream("testrs.tmp");
java.io.ObjectInputStream objectInputStream = new
java.io.ObjectInputStream(
fileInputStream);
rs = (ResultSet) objectInputStream.
readObject();
objectInputStream.close();
fileInputStream.close();
catch (Exception e) {
System.out.println(e);
e.printStackTrace();
System.exit(1);
ResultSetMetaData resultSetMetaData = rs.
getMetaData();
int iNumCols = resultSetMetaData.getColumnCount();
for (int j = 1; j <= iNumCols; j++) {
// System.out.println(resultSetMetaData.getColumnName(j));
/* System.out.println(resultSetMetaData.getColumnType(j));
System.out.println(resultSetMetaData.getColumnDisplaySize(j));
System.out.println(resultSetMetaData.getPrecision(j));
System.out.println(resultSetMetaData.getScale(j));
System.out.println(resultSetMetaData.
getColumnLabel(j)
+ " " +
resultSetMetaData.getColumnTypeName(j));
Object colval;
rs.beforeFirst();
long ncount = 0;
while (rs.next()) {
// System.out.print(rs.rowDeleted()+" ");
ncount++;
for (int j = 1; j <= iNumCols; j++) {
colval = rs.getObject(j);
System.out.print(colval + " ");
System.out.println();
rs.close(); //Let the resultSet release its open tables at once.
rs = null;
System.out.println(
"The total row number of resultset: " + ncount);
System.out.println();
break;
default:
int updateCount = stmt.executeUpdate(temp);
System.out.println(temp + " : " + updateCount);
System.out.println();
else if (statements[i] instanceof java.lang.Object[]) {
int[] updateCounts;
Object[] temp = (java.lang.Object[]) statements[i];
try {
for (int j = 0; j < temp.length; j++){
System.out.println( temp[j]);
stmt.addBatch( (java.lang.String) temp[j]);
updateCounts = stmt.executeBatch();
for (int j = 0; j < temp.length; j++)
System.out.println((j+1)+":"+temp[j]);
for (int j = 0; j < updateCounts.length; j++)
System.out.println((j+1)+":" +updateCounts[j]);
catch (java.sql.BatchUpdateException e) {
updateCounts = e.getUpdateCounts();
for (int j = 0; j < updateCounts.length; j++)
System.out.println((j+1)+":"+updateCounts[j]);
java.sql.SQLException sqle = e;
do {
System.out.println(sqle.getMessage());
System.out.println("Error Code:" +
sqle.getErrorCode());
System.out.println("SQL State:" + sqle.getSQLState());
sqle.printStackTrace();
while ( (sqle = sqle.getNextException()) != null);
catch (java.sql.SQLException sqle) {
do {
System.out.println(sqle.getMessage());
System.out.println("Error Code:" +
sqle.getErrorCode());
System.out.println("SQL State:" + sqle.getSQLState());
sqle.printStackTrace();
while ( (sqle = sqle.getNextException()) != null);
stmt.clearBatch();
System.out.println();
stmt.close();
con.close();
catch (SQLException sqle) {
do {
System.out.println(sqle.getMessage());
System.out.println("Error Code:" + sqle.getErrorCode());
System.out.println("SQL State:" + sqle.getSQLState());
sqle.printStackTrace();
while ( (sqle = sqle.getNextException()) != null);
catch (Exception e) {
System.out.println(e.getMessage());
e.printStackTrace(); -
Issue: Using utility class instance
Hi,
I need to use OIM APIs.
I am using Eclipse IDE and have made the settings accordingly.
I am able to connect successfully and also able to get the instance of factory class.
Also then I am able to fetch the instance of utility class, tcUserOperationsIntf.
But next when I am trying to call any method of this utility class using the instance, I am getting null pointer exception.
Kindly help.public class oimtest {
public tcUtilityFactory getUtilFacObject()throws Exception
try
ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
final Hashtable env = config.getAllSettings();
tcUtilityFactory ioUtilityFactory;
System.out.println("1");
tcSignatureMessage mysign = tcCryptoUtil.sign("xelsysadm", "PrivateKey");
System.out.println("2");
ioUtilityFactory = new tcUtilityFactory(env,mysign);
System.out.println("3");
return ioUtilityFactory;
catch(Exception e)
System.out.println("Exception in establishing connection is: "+e);
return null;
public void mymethod()throws IOException, ServletException
String orgid = "Xellerate Users";
HashMap uidmap = new HashMap();
uidmap.put("Organizations.Organization Name",orgid);
int a=4;
Long userkey=new Long(a);
try
tcUtilityFactory ioUtilityFactory = this.getUtilFacObject();
System.out.println("4");
tcUserOperationsIntf userIntf=(tcUserOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
System.out.println("6");
String s=userIntf.toString();
System.out.println("It is"+s);
userIntf.disableUser(userkey);
tcResultSet urset=userIntf.findUsers(uidmap);
System.out.println("7");
if(!urset.isEmpty())
int len =urset.getTotalRowCount();
System.out.println("length:"+ len);
catch(Exception ex){
System.out.println("Exception is: "+ex.getMessage());
System.out.println("Exception is: "+ex);
I am getting the following output when calling mymethod() from the main class-
1
2
3
4
log4j:WARN No appenders could be found for logger (XELLERATE.ACCOUNTMANAGEMENT).
log4j:WARN Please initialize the log4j system properly.
6
It isThor.API.Operations.tcUserOperationsClient@2f4b20
Exception is: null
Exception is: java.lang.NullPointerException -
JavaCard - methods in Util Class
Hi,
I found that all of array functions in Util class arrayCopyNonAtomic(...), arrayFillNonAtomic(...), arrayCompare(...)
.. invoke equivalent native method. There is no other computation at Java Layer. (if you see from decompile of API code)
So why array function should do this way? I can have an example, for the arrayCompare, we can iterate over all elements and do normal comparison. The same with arrayFillNonAtomic(...). The only function that requires native is related to atomic transaction.
Do you have any reasons for using native beside the speed?
thanks,
Hoang LongNative code can access the CPU instructions for this directly. Java byte code would be interpreted by the JCVM to eventually call the native instructions. The native code is more efficient and faster. You could do this in Java but it is also trivial in C/assembly.
Cheers,
Shane
Maybe you are looking for
-
My iMac froze and I could not turn off or force quit any programs, so I turned the power off. It will not not boot up; It's just a white screen with the little "wheel" spinning aroung. Any ideas? Guy
-
Restore a collection from a backup
Hi, One thing that has been keeping me busy for a while and that one of you may be able to provide a solution for is the following: - I recently discovered that I deleted a collection set in the past (just the collection set, the photo's are still ph
-
From N97 to HTC hero - Move contacts
I'm returning my N97 today to get a HTC hero. My mails, calendar, pictures, is no problem. But how do I transfer ALL my contacts? I can not use phone to phone Bluetooth, as I won't have both phones and the same time. I need to move the contacts to my
-
Hi, I have a column value 0008-1913 in text file. When i dump this into a database in SQL server, the value becomes Aug-13. I am dumping from a text file to SQL using a query transformation. No script or function involved, just mapping the output sch
-
Patches for help pages on Arabic language on R12.1.1
Hi Friends, I just installed Oracle Apps R12.1.1 and enabled Arabic language also. I am able to access the Application in Arabic but could see any help pages on Arabic. i got confused betwwen the patches (Patch 6746000 - Includes base Release 12.0 an