In search of java class dependency utility
Folks,
We have developed a J2EE application where the "client" is a java
application. In other words, we have created a JAR file that a user
uses to launch our application. The manifest for this JAR file has a
"Main-Class" attribute, so the following command is used to launch the
(client side of) the application:
java -jar our.jarOur entire application (both client-side and server-side) consists of
several hundred classes. Our problem is that we don't have an accurate
list of which classes are client-side only, which classes are
server-side only, and which classes are required by both (client-side
and server-side). I want our client-side JAR to only contain classes
required by the client. Currently, we are simply bundling all the
classes into "our.jar".
I have found (and tried) several utilities, including:
http://depfind.sourceforge.net/
http://www.clarkware.com/software/JDepend.html
http://www.horstmann.com/articles/BetterCleaner.html
However, I don't think these are suitable. You need to supply a class
name, and they only tell you the classes that either depend on the
given class, or that the given class depends on. What I want is a
"recursive" dependency finder.
For example, let's say I have class "A". Class "A" depends on class "B"
(in other words, class "A" needs to import class "B"). Now class "B"
depends on class "C" and class "C" depends on class "D". Also, we have
class "E" that depends on class "A" (in other words, class "E" needs to
import class "A").
The tools I mentioned above will only return (at most), classes "B" and
"E" (when I supply them with class "A"), but what I really need them to
return is classes "B","C" and "D" (and not necessarily class "E").
Does anyone know how I can achieve this?
Thanks (in advance),
Avi.
ClassDep from jini provides the same functionality as GenJar but I have found it better to work with. You do not need ant to run it although it does come with an ant task. ClassDep.java has a public static void main (String[] args ).
http://java.sun.com/products/jini/2.0/doc/api/com/sun/jini/tool/ClassDep.html provides the documentation on how to use it.
Similar Messages
-
hi,
a general question.
does the size of the running java class depend upon the number of jar files in its classpath?
for exampl, i have three jar files, only one of which is used by my java class. when i run the java class does the memory size gets bigger if i include all three jar files in my classpath?
thanks a loti think not. it matter only which of these files you load.
but if you have lotsa classes in your path, then it might be little harder for your JVM to locate these classes that are needed and therefore your app might run little slower.
but when you have initialiced your classes, then loding them again will not need classloader to look for your class from classpath... so that cost you'll be paying is onetime cost for very JVM execution. -
Java Class not apearing in Java Algorithm Class Search
Hi,
I installed oracle CC&B 2.3.1, with SDK 2.2.0.12. I am trying to create new java class by copying an exiting one and modifying it to be used with algorithm (Adhoc Char Value Validation).
Steps are as follows:
1-Created file by copying the exiting file AdhocNumericValidationAlgComp_Impl.java and only changing the name of the class:
public class AK_AdhocNumericValidationAlgComp_Impl
extends AK_AdhocNumericValidationAlgComp_Gen
File location :
C:\spl\CCB23DEV\java\source\cm\com\splwg\base\domain\common\characteristicType\AK_AdhocNumericValidationAlgComp_Impl.java
2-Run Artificat generator successfully , which generated the files:
C:\spl\CCB23DEV\java\sourcegen\cm\com\splwg\base\domain\common\characteristicType\AK_AdhocNumericValidationAlgComp.java
C:\spl\CCB23DEV\java\sourcegen\cm\com\splwg\base\domain\common\characteristicType\AK_AdhocNumericValidationAlgComp_Gen.java
C:\spl\CCB23DEV\java\target\cm\com\splwg\base\domain\common\characteristicType\AK_AdhocNumericValidationAlgComp.class
C:\spl\CCB23DEV\java\target\cm\com\splwg\base\domain\common\characteristicType\AK_AdhocNumericValidationAlgComp_Gen.class
C:\spl\CCB23DEV\java\target\cm\com\splwg\base\domain\common\characteristicType\AK_AdhocNumericValidationAlgComp_Impl.class
Still the class is not appearing in "Java Algorithm Class Search" when trying to add a new algorithm type referencing this java class.
I tried restarting the Tomcat application server, still not appearing.
Where did I go wrong about it?
ThanksTomcat was down when I deployed the changes. It seems tomcat cannot find implemented interface AdhocCharacteristicValueValidationAlgorithmSpot
The full error shows how tomcat is looking for the interface:
Full error:
- 2011-07-07 12:34:28,681 [main] ERROR (support.context.ContextFactory) Cannot find algorithm spot: 'com.splwg.base.domain.common.characteristicType.AdhocCharacteristicValueValidationAlgorithmSpot' for Cobol extension
com.splwg.shared.common.LoggedException: Cannot find algorithm spot: 'com.splwg.base.domain.common.characteristicType.AdhocCharacteristicValueValidationAlgorithmSpot' for Cobol extension
at com.splwg.shared.common.LoggedException.raised(LoggedException.java:65)
at com.splwg.base.support.context.ContextFactory.extendAlgorithmSpots(ContextFactory.java:291)
at com.splwg.base.support.context.ContextFactory.loadManagedObjectForApplication(ContextFactory.java:203)
at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:106)
at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:90)
at com.splwg.base.support.context.ContextFactory.createDefaultContext(ContextFactory.java:498)
at com.splwg.base.web.startup.SPLWebStartup.initializeApplicationContext(SPLWebStartup.java:178)
at com.splwg.base.web.startup.SPLWebStartup.contextInitialized(SPLWebStartup.java:63)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
- 2011-07-07 12:34:28,713 [main] INFO (web.startup.SPLWebStartup) Shutting Down the JMX Connectors...
- 2011-07-07 12:34:28,713 [main] INFO (web.startup.SPLWebStartup) JMX Connectors shutdown successfully
- 2011-07-07 12:34:28,713 [main] INFO (web.startup.SPLWebStartup) Shutting Down the Application Context...
- 2011-07-07 12:34:28,728 [main] INFO (web.startup.SPLWebStartup) Application Context shutdown successfully
Any advise ?
Thanks -
How do java classes handle searches?
how do java classes store information? and how do I get it out again?
I am a relational programmer who has decided 2 take a detour in object oriented lands.
In a relational table you store info and u get the information out through a (my)SQL query
now how does a class Project with instance project 1,2,3,.........
get the information from a project with a certain name?
eg:
projectid: 1
responsible: 1234 (<--userid)
projectname: testproject
projectid: 2
responsible: 1256
projectname: leukproject
projectid: 3
responsible: 1483
projectname: testproject
projectid: 4
responsible: 3245
projectname: darnedproject
and so on....
so lets say our class Project has a thousend instances. I want to search by name, how do i write the onces to the screen who have name "testproject"?
So how do i do this without sqlquerys, totally oop?
any help would be very much appreciated! :?Hi NiQuil,
Let me tell you a few basic things. First, RDBMS and OOP are quite different things.
In RDBMS, you ask ur database, "hey, I want this piece of info. Get me that". But you
don't tell it how to go and search for it, right. Well, things are not as simple as that in
OOP. Here you have to specify how to get your data also. But Java will surely help you
to make it easier.
First of all, you should not map between tables (of RDBMS) and classes (of OOP),
although certainly you can do this in some crude ways. What you have to do is, put all
your projects in a single instance, and then using a method, query that instance. There
are numerous ways for querying. Several classes like Hashtable, Vector, Collection
etc etc helps you to store, search and retrieve data. But I dont think it is necessary or
helpful to describe these in detail here.
However, I would like to tell you one important point. OOP is not just about data storage
and retrieval. OOP is a way of thinking. It allows you to combine your data and operations
on it. An object is just a combination of data and operations on that data. Other objects
access this data only through an interface defined by these operations. Once you
understand this concept, life will be easier. But it takes some time, especially because
you come from RDBMS, a world which talks just about data. -
The java class is not found: oracle/aurora/util/Wrapper
When I try and load my Java class file using 'loadjava' into Oracle I'm getting the error:
The java class is not found: oracle/aurora/util/Wrapper
What is causing this?On which machine should ORACLE_SID be set to solve this problem, server or client. I run into this error when run loadjava
-
Search for a wod in java classes in windows 7
Hello,
How to search for a specific word in a list of java classes in my windows directory? I know we can search in .java files but not sure how to do the search in .class files. Any help is really appreciated.
Thank You
-KKHi,
For searching in .class files, you need to decompile those using some decompiler.
1) You can use JAD (Java Decompiler) and decomplie using these commmands:
jad *.class
rename *.jad *.java
2) There is another decomplier, CAVAJ which is very user friendly. You just need to drag the class file onto this and it will show the java code for that class file.
--Sushant -
Running a Java class which depends on a Jar
Hi,
I try to run a class using the command java packagename.classname.
This class depends on a jar for functioning.
So, when I run this class, exception related to the absence of this Jar is shown.
How can I overcome this? Where should I place this jar or running any other commands for loading this jar will do?
Please help.
Any help in this regard will be well appreciated with dukes.
Regards,
RonyHi Rony,
Place the that jar file in your class path.
or
Place that "jar file path" in Enivronment Variables of your computer under "Class path" variable
or
set the class path using command prompt.
Thanks,
Sekhar -
How to convert java class to dll file for using in Microsoft Technology(.n)
hey hemmj !!!!!!
nice replying , first of all i d like to say thanks for response me so frequently..... i like such type of guy... i d never forget ur online support.
hey buddy, i ve a problem with applet application...
i m working on java chat server build on swing applet. As it is chat server, it is divided into two parts, one is server application and other is client application. I want to run this server app on the client server and the basic thing with this site is that it is running on .net platform(Microsoft). and the other app ll running on the client machine or end user. Now the problem is that this site would run only if the server app ll be run on server. This server app ll open the socket of server, which ll listen the request of the user...... So, the requirement is to convert this java sever class file into dll file and register this dll file with the IIS server.So, It run and stop with the IIS server.
I ve already search the way to convert the java class file into dll file. This is possible in such way........... below code is for the java class file...
import java.net.*;
import java.io.*;
import java.util.*;
public class chatServer
public static void main(String args[]) throws Exception
ServerSocket sersoc=new ServerSocket(1234);// Any port number above 1000 should do
// as most ports below 1000 are used by system
Vector socvec=new Vector();
String data="";int i,j=0;
BufferedReader in;
//System.out.println("Listening of port " + sersoc.getLocalPort());
//System.out.println("Waiting for connections...");
while(true)
Socket soc=sersoc.accept();
socvec.addElement(soc);
chatServerReadThread csrt=new chatServerReadThread(socvec, soc);
in=new BufferedReader(new InputStreamReader(soc.getInputStream()));
PrintStream out=new PrintStream(soc.getOutputStream());
out.println("Connected to chat server");
out.flush();
data= in.readLine();
for(i=0;i<socvec.size();i++)
soc=(Socket)socvec.elementAt(i);
out=new PrintStream(soc.getOutputStream());
out.println(data + " connected");
out.flush();
//System.out.println(data + " connected");
csrt.start(); // error is comming from here..... plz help me.
class chatServerReadThread extends Thread
Vector socvec;
PrintStream out;
chatServerReadThread(Vector socvec, Socket soc)
this.socvec=socvec;
try
out=new PrintStream(soc.getOutputStream());
}catch(Exception e){}
public void run()
try
String data;
Socket soc;
BufferedReader in;
while(true)
for(int i=0;i<socvec.size();i++)
soc=(Socket)socvec.elementAt(i);
in=new BufferedReader(new InputStreamReader(soc.getInputStream()));
if(in.ready())
try
data=in.readLine();
if(data.charAt(0) == ']')
data = in.readLine() + " exited";
//System.out.println(data);
socvec.removeElement(soc);
for(int e=0;e<socvec.size();e++)
soc=(Socket)socvec.elementAt(e);
out=new PrintStream(soc.getOutputStream());
out.println(data);
out.flush();
else
for(int e=0;e<socvec.size();e++)
soc=(Socket)socvec.elementAt(e);
out=new PrintStream(soc.getOutputStream());
out.println(data);
out.flush();
}catch(Exception e){socvec.removeElement(soc);}
}catch(Exception e){e.printStackTrace();}
first i ve made the jar file of this class
jar cvf chatServer.jar chatServer.classafter getting the jar chatServer.jar. I ve opened the .net dos prompt and
type this command which ll make dll file automatically....
> jbimp /t:library chatServer.jar
And you'll see the following output:
Microsoft (R) Java-language bytecode to MSIL converter version 1.1.4322.0
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corp 2000-2002. All rights reserved.
Created chatServer.dll
I cant get the problem origin from where it is comming, when i tried to convert it into .dll file it shown an error that, it did not recongnized the method in first class
public static void chatServerReadThread.start() method
is not recognized by .net dos prompt commnad. But when i omit this method it gets created the .dll file. This start method is basically the default method of thread class that run the thread from the same class..
By vewing the code u can visulize the thing,, i ve marked the code from where the error is comming.
Plz do it as soon as possible, i ll waiting for ur reply......
I ll be really thanking u for that....
Thanx and regards
Niraj Kumar SinghI wonder if this will work:
jbimp /t:exe chatServer.jar
Your chatServer is an application that can be started from the commandline.
A dll is a library to be used in com, com+, other executables or .... -
How can I either move or view the source of a JAVA CLASS user object?
I am using Oracle 8i and I have the following JAVA CLASS objects in my database. I need to move some of these objects to a different database.
1) How can I do this?
2) How can I view the JAVA source code since these are classes?
My knowledge of Oracle is limited. I have searched and searched and I can't find the answer. Any help would be greatly appreciated
SELECT object_name, object_type
FROM user_objects
WHERE object_type IN ('JAVA SOURCE', 'JAVA CLASS', 'JAVA RESOURCE')
ORDER BY object_type, object_name;
OBJECT_NAME OBJECT_TYPE
/d082321a_DpsJarStaticFilename JAVA CLASS
DirHelperStatic JAVA CLASS
DirHelperStatic$1 JAVA CLASS
DpsJar JAVA CLASS
DpsJarException JAVA CLASS
DpsJarStatic JAVA CLASS
FilenameFilterImpl JAVA CLASS
FtpClient JAVA CLASS
FtpClient$InputStreamProxy JAVA CLASS
FtpClient$OutputStreamProxy JAVA CLASS
FtpClientStatic JAVA CLASS
FtpException JAVA CLASS
FtpReply JAVA CLASS
FtpTest JAVA CLASS
LoadXml JAVA CLASS
LoadXmlStatic JAVA CLASS
UrlFileUtils JAVA CLASS
Utils JAVA CLASS
dir JAVA CLASS
Thanks,
BrianThe source far java class objects that are not derived from java source objects
(which is the case here, and is typically the case, such as when one loads
classes into the database using loadjava on a jar that contains only .class
files) does not exist in the database (just as it does not exist in a jar which
contains only .class files). So there is essentially no way to view the source, short of extracting the bytecodes and using some decompiling tool. I don't recall what methodologies exist for extracting bytecodes in 8i. As for transferring
the classes to another database, the standard Oracle import/export tool can do this. -
Problem with return a ColdFusion query object from a Java class
Hi!
I need to return a ColdFusion query object from a Java class
using a JDBC result set ( java.sql.ResultSet);
I have tried to pass my JDBC result set in to the constructor
of the coldfusion.sql.QueryTable class with this code:
ColdFusion code
<cfset pra = createObject("java","QueryUtil").init()>
<cfset newQuery = CreateObject("java",
"coldfusion.sql.QueryTable")>
<cfset newQuery.init( pra.getColdFusionQuery () ) >
My java class execute a query to db and return QueryTable
Java code (QueryUtil.java)
import coldfusion.sql.QueryTable; // (CFusion.jar for class
QueryTable)
import com.allaire.cfx //(cfx.jar for class Query used from
QueryTable)
public class QueryUtil
public static coldfusion.sql.QueryTable
getColdFusionQuery(java.sql.ResultSet rs)
return new coldfusion.sql.QueryTable(rs);
but when i run cfm page and coldfusion server tries to
execute : "<cfset pra =
createObject("java","QueryUtil").init()>" this error appears:
Object Instantiation Exception.
An exception occurred when instantiating a java object. The
cause of this exception was that: coldfusion/sql/QueryTable.
If i try to execute QueryUtil.java with Eclipse all it works.
Also I have tried to return java.sql.ResultSet directly to
coldfusion.sql.QueryTable.init () with failure.
Do you know some other solution?ok
i print all my code
pratica.java execute a query to db and return a querytable
java class
import java.util.*;
import java.sql.*;
import coldfusion.sql.*;
public class Pratica {
private HashMap my;
private String URI,LOGIN,PWD,DRIVER;
private Connection conn=null;
//funzione init
//riceve due strutture converite in hashmap
// globals
// dbprop
public Pratica(HashMap globals,HashMap dbprop) {
my = new HashMap();
my.put("GLOBALS",globals);
my.put("DBPROP",dbprop);
URI = "jdbc:sqlserver://it-bra-s0016;databaseName=nmobl";
LOGIN = "usr_dev";
PWD = "developer";
DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
try{
// Carico il driver JDBC per la connessione con il database
MySQL
Class.forName(DRIVER);
/* Connessione alla base di dati */
conn=DriverManager.getConnection(URI,LOGIN,PWD);
if(conn!=null) System.out.println("Connection Successful!");
} catch (ClassNotFoundException e) {
// Could not find the database driver
System.out.print("\ndriver non trovato "+e.getMessage());
System.out.flush();
catch (SQLException e) {
// Could not connect to the database
System.out.print("\nConnessione fallita "+e.getMessage());
System.out.flush();
//funzione search
//riceve un hash map con i filtri di ricerca
public QueryTable search(/*HashMap arg*/) {
ResultSet rs=null;
Statement stmt=null;
QueryTable ret=null;
String query="SELECT * FROM TAN100pratiche";
try{
stmt = conn.createStatement();// Creo lo Statement per
l'esecuzione della query
rs=stmt.executeQuery(query);
// while (rs.next()) {
// System.out.println(rs.getString("descrizione"));
catch (Exception e) {
e.printStackTrace();
try {
ret = Pratica.RsToQueryTable(rs);
} catch (SQLException e) {
e.printStackTrace();
this.close();
return(ret);
// ret=this.RsToQuery(rs);
// this.close(); //chiude le connessioni,recordset e
statament
//retstruct CF vede HashMap come struct
//METODO DI TEST
public HashMap retstruct(){
return(my);
//conversione resultset to querytable
private static QueryTable RsToQueryTable(ResultSet rs)
throws SQLException{
return new QueryTable(rs);
//chiura resultset statament e connessione
private void close(){
try{
conn.close();
conn=null;
catch (Exception e) {
e.printStackTrace();
coldfusion code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<title>Test JDBC CFML Using CFScript</title>
</head>
<body>
<cftry>
<cfset glb_map =
createObject("java","java.util.HashMap")>
<cfset dbprop_map =
createObject("java","java.util.HashMap")>
<cfset glb_map.init(glb)> <!---are passed from
another page--->
<cfset dbprop_map.init(glb["DBPROP"])>
<cfset pra =
createObject("java","Pratica").init(glb_map,dbprop_map)>
<cfset ourQuery
=createObject("java","coldfusion.sql.QueryTable").init(pra.search())>
<cfcatch>
<h2>Error - info below</h2>
<cfdump var="#cfcatch#"><cfabort>
</cfcatch>
</cftry>
<h2>Success - statement dumped below</h2>
<cfdump var="#ourQuery#">
</body>
</html>
error at line <cfset pra =
createObject("java","Pratica").init(glb_map,dbprop_map)>
An exception occurred when instantiating a java object. The
cause of this exception was that: coldfusion/sql/QueryTable.
----------------------------------------------------------------------- -
Trying to invoke a Java class from BPEL Proces using Java Embedding
Hi All,
I have a requirement to invoke a Java class from the BPEL process;
I am trying to import the class by "* <bpelx:exec import="+package_name.classname+"/>*.
But, while compiling, I get the following error:
"Error(19,57): Failed to compile bpel generated classes. failure to compile the generated BPEL classes for BPEL process "BPEL_PROCESS_NAME" of composite "default/COMPOSITE_NAME!1.0"
The class path setting is incorrect. Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version."
Referred the scac.log:
SAXParseException in file +project_path+\composite.xml
org.xml.sax.SAXParseException: <Line 29, Column 32>: XML-24535: (Error) Attribute 'http://www.w3.org/XML/1998/namespace:id' not expected.
at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:422)
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:287)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:335)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:318)
at oracle.soa.scac.ValidationFaultUtil.validateStreamWithSchema(ValidationFaultUtil.java:146)
at oracle.soa.scac.ValidationFaultUtil.validateCompositeWithSchema(ValidationFaultUtil.java:120)
at oracle.soa.scac.ValidateComposite.validateWithSchema(ValidateComposite.java:1480)
at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:519)
at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:223)
May 19, 2010 6:46:29 PM com.collaxa.cube.CubeLogger info
INFO: LibClasspath=E:\Softwares\OracleFMW\jdeveloper\..\oracle_common\modules\commonj.sdo_2.1.0.jar;E:\Softwares\OracleFMW\jdeveloper\..\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;E:\Softwares\OracleFMW\jdeveloper\..\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-common.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-exts.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-thirdparty.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-validator.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-client.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-ext.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\oracle.soa.fabric.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-infra-tools.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.ext_11.1.1\./classes
May 19, 2010 6:46:37 PM com.collaxa.cube.CubeLogger info
INFO: validating "RHMEDIInboundProcess.bpel" ...
May 19, 2010 6:46:37 PM com.collaxa.cube.CubeLogger warn
WARNING: CubeProcessor.compileGeneratedClasses() classpath is: E:\Softwares\OracleFMW\jdeveloper\jdev\extensions\oracle.sca.modeler.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;E:\Softwares\OracleFMW\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.mediator_11.1.1\mediator_client.jar;E:\Softwares\OracleFMW\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;C:\JDeveloper\mywork\InboundEDI_RnD\parseInboundEDIXML\classes\com\onerheem\integration\EDIInboundProcess\parseInboundEDIXML.jar;;C:\JDeveloper\mywork\InboundEDI_RnD\RHMEDIInboundProcess\SCA-INF\classes;C:\JDeveloper\mywork\InboundEDI_RnD\RHMEDIInboundProcess\SCA-INF\classes;C:\JDeveloper\mywork\InboundEDI_RnD\RHMEDIInboundProcess\SCA-INF\gen-classes;E:\Softwares\OracleFMW\jdeveloper\..\oracle_common\modules\commonj.sdo_2.1.0.jar;E:\Softwares\OracleFMW\jdeveloper\..\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;E:\Softwares\OracleFMW\jdeveloper\..\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-common.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-exts.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-thirdparty.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-validator.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-client.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-ext.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\oracle.soa.fabric.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-infra-tools.jar;E:\Softwares\OracleFMW\jdeveloper\soa\modules\oracle.soa.ext_11.1.1\./classes
Any suggestions to rectify the same?Hi,
I wud suggest you to make a jar of ur java class and include it in the project libraries of BPEL and make use of java embedded activity this way it works.
have a luk at below link:
http://niallcblogs.blogspot.com/search/label/embedded%20Java -
Binding a JavaFX variable to a Java class instance variable
Hi,
I am pretty new to JavaFX but have been developing in Java for many years. I am trying to develop a JavaFX webservice client. What I am doing is creating a basic scene that displays the data values that I am polling with a Java class that extends Thread. The Java class is reading temperature and voltage from a remote server and storing the response in an instance variable. I would like to bind a JavaFx variable to the Java class instance variable so that I can display the values whenever they change.
var conn: WebserviceConnection; // Java class that extends Thread
var response: WebserviceResponse;
try {
conn = new WebserviceConnection("some_url");
conn.start();
Thread.sleep(10000);
} catch (e:Exception) {
e.printStackTrace();
def bindTemp = bind conn.getResponse().getTemperature();
def bindVolt = bind conn.getResponse().getVoltage();
The WebserviceConnection class is opening a socket connection and reading some data in a separate thread. A regular socket connection is used because the server is not using HTTP.
When I run the application, the bindTemp and bindVolt are not updated whenever new data values are received.
Am I missing something with how bind works? Can I do what I want to do with 'bind'. I basically want to run a separate thread to retrieve data and want my UI to be updated when the data changes.
Is there a better way to do this than the way I am trying to do it?
Thanks for any help in advance.
-RichardHi,
If you don't want to constantly poll for value change, you can use the observer design pattern, but you need to modify the classes that serve the values to javafx.
Heres a simple example:
The Thread which updates a value in every second:
// TimeServer.java
public class TimeServer extends Thread {
private boolean interrupted = false;
public ValueObject valueObject = new ValueObject();
@Override
public void run() {
while (!interrupted) {
try {
valueObject.setValue(Long.toString(System.currentTimeMillis()));
sleep(1000);
} catch (InterruptedException ex) {
interrupted = true;
}The ValueObject class which contains the values we want to bind in javafx:
// ValueObject.java
import java.util.Observable;
public class ValueObject extends Observable {
private String value;
public String getValue() {
return this.value;
public void setValue(String value) {
this.value = value;
fireNotify();
private void fireNotify() {
setChanged();
notifyObservers();
}We also need an adapter class in JFX so we can use bind:
// ValueObjectAdapter.fx
import java.util.Observer;
import java.util.Observable;
public class ValueObjectAdapter extends Observer {
public-read var value : String;
public var valueObject : ValueObject
on replace { valueObject.addObserver(this)}
override function update(observable: Observable, arg: Object) {
// We need to run every code in the JFX EDT
// do not change if the update method can be called outside the Event Dispatch Thread!
FX.deferAction(
function(): Void {
value = valueObject.getValue();
}And finally the main JFX code which displays the canging value:
// Main.fx
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import threadbindfx.TimeServer;
var timeServer : TimeServer;
var valueObjectAdapter : ValueObjectAdapter = new ValueObjectAdapter();
timeServer = new TimeServer();
valueObjectAdapter.valueObject = timeServer.valueObject;
timeServer.start();
Stage {
title: "Time Application"
width: 250
height: 80
scene: Scene {
content: Text {
font : Font {
size : 24
x : 10, y : 30
content: bind valueObjectAdapter.value;
}This approach uses less cpu time than constant polling, and changes aren't dependent on the polling interval.
However this cannot be applied to code which you cannot change obviously.
I hope this helps. -
Compling java class from another currently running java class.!
Hi,
Im using Netbeans 6.1 for my project.im creating FORMS which create code for a search page i.e. jsp file and java file at run time.i also compile the search page java code at run time.
The ONLY problem that i face while compiling is that, it does not recognizes the getter and setter for request bean, session bean and and application bean.
When i do not create these getter and setter at run time,the compilation is just perfect at run time and produces the reqiured output that i want.
BUT for further enhancement of the same code i require the request and session beans.
Can anyone tell me the solution to the problem.!
Thankx in advanceWrapper your class in the following pair <? ?>
If you look at the LKM File to Oracle External table it defines java in a class that is then subsequently utilized. You can do this too.
Cheers
David -
Unable to call Java class method within Embedding Java Activity in BPEL
Hi ,
I have written Java Class named 'Class3' .
When I am creating and trying to call these classes whithin Embedding Java Activity , compile time error is coming. Compiler is not finding class . Error message is like this one.
uildfile: C:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml
scac:
[scac] Validating composite : 'C:\JDeveloper\mywork\Application7\Embedded15\composite.xml'
[scac] C:\JDeveloper\mywork\Application7\Embedded15\SCA-INF\bpel\BPELEmbedded15\src\orabpel\bpelembedded15\ExecLetBxExe0.java:73: cannot find symbol
[scac] symbol : class Class3
[scac] location: class orabpel.bpelembedded15.ExecLetBxExe0
[scac] C:\JDeveloper\mywork\Application7\Embedded15\SCA-INF\bpel\BPELEmbedded15\src\orabpel\bpelembedded15\ExecLetBxExe0.java:73: cannot find symbol
[scac] symbol : class Class3
[scac] location: class orabpel.bpelembedded15.ExecLetBxExe0
[scac] Note: C:\JDeveloper\mywork\Application7\Embedded15\SCA-INF\bpel\BPELEmbedded15\src\orabpel\bpelembedded15\BPEL_BIN.java uses unchecked or unsafe operations.
[scac] Note: Recompile with -Xlint:unchecked for details.
[scac] FATAL_ERROR: location {ns:composite/ns:component[@name='BPELEmbedded15']}(20,36): Failed to compile bpel generated classes.
[scac] failure to compile the generated BPEL classes for BPEL process "BPELEmbedded15" of composite "default/Embedded15!1.0"
[scac] The class path setting is incorrect.
[scac] Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
[scac]
BUILD FAILED
C:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml:264: Java returned: 1 Check log file : C:\JDeveloper\mywork\Application7\Embedded15\SCA-INF\classes\scac.log for errors
Total time: 8 seconds
I am creating Class3 directly in Application Resources folder indide Project Folder in Jdeveloper without creating any package. Code of the class is .......
public class Class3 {
public Class3() {
super();
public String getValue(){
return "BBBBBBB";
Can any one help?
Regards
Yogendra Rishishwar
9867927087Hi ,
In your java project frm jdev..right click and choose general and then choose deployment profiles and then choose Jar ..and then give some appropriate name(abc) and then click ok.
Then under resources file u get a abc.deploy file right click and say deploy to jar ..u will find the jar in that director.Now include this jar in your prjct libraries.
have a look at the link http://niallcblogs.blogspot.com/search/label/embedded%20Java -
Windows classpath vs java.class.path error in QuickTime based applet
Hello
I've spent days reading and searching the internet, and I'm still stumped why some Windows installations are not able to run my QuickTime for Java based applet even though QuickTime is installed (the specific error is: java.lang.NoClassDefFoundError: quicktime/QTException). I have some additional details and a question that might spur someone to an insightful nudge.
On a Windows system that fails:
echo %classpath%
.;C:\Program Files\QuickTime\QTSystem\QTJava.zipWhich is where QTJava.zip is found on the (faulty?) system, but java.class.path is just:
java.class.path = C:\PROGRA~1\Java\jre6\classes
Of the dumped system properties, only java.library.path makes any mention of the QTSystem folder (or any other QT or QuickTime related items).
java.library.path = C:\Program Files\Safari;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\PROGRA~1\Java\jre6\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\QuickTime\QTSystem\
I ran across one thread (elsewhere) where the user was having problems with loading some classes from a complex JAR environment, and a solution was to write a custom class loader. After doing so, the user got the same error "java.lang.NoClassDefFoundError: quicktime/QTException" that was resolved by extending the custom class loader to include .zip files. I'm not sure if the solution is relevant, or if he simply broke something in his custom class loader that would have worked otherwise. I've not written a custom class loader and not sure where to begin, so before I ventured down that path I was hoping someone might shed some light as to if this is a dead end or potential solution. This is a signed applet (QuickTime now requires it, even if you are only playing files of the same server) and it does work on several Windows machines and all tested Macs.
Thank you,
Deron
output to Java Console with level 5 tracing enabled
basic: Joining applet thread ...
basic: Joined applet thread ...
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@750159, refcount=2
basic: Finding information ...
basic: Releasing classloader: sun.plugin.ClassLoaderInfo@750159, refcount=1
basic: Done ...
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@3a9bba
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
basic: completed perf rollup
network: Cache entry not found [url: http://www.equushd.com/quicktime/QTException.class, version: null]
network: Connecting http://www.equushd.com/quicktime/QTException.class with proxy=DIRECT
network: Connecting socket://www.equushd.com:80 with proxy=DIRECT
java.lang.NoClassDefFoundError: quicktime/QTException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: quicktime.QTException
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 10 more
basic: Exception: java.lang.NoClassDefFoundError: quicktime/QTException
Ignored exception: java.lang.NoClassDefFoundError: quicktime/QTExceptionSomething is wrong with the library.
Staring at java code will not help you figure that out.
Maybe it isn't intended to be loaded in java but instead it loads java itself?
If not then write a C/C++ basic app that links that dll in and see if you can at least get it to start.
Maybe you are looking for
-
Lenovo G450 - Want to connect VGA to Plasma TV with HDMI inputs
Hello Community I was hoping to get some verification on this from someone that owns a Lenovo G450 Model 2949. I want to understand if I can connect this notebook to my older plasma TV through the VGA output connector. My TV supports S-video, HDMI an
-
PLEASE I NEED HELP QWICK !!! my ipod was really slow so i restart the settings usually it returns normal with all my songs and apps and picture but now it return to the beggining setting like the first day when i got it, i do the language country eve
-
How do I use search/find to search for a folder name
I can successfully use Spotlight and Search in Finder and Mail to find files and emails based on their titles and contents, but how to I use the search functions to find a FOLDER by its name, that I have somehere in my nests of folders - so I can the
-
Mail will not send, forward, reply, etc.
Hello world, I've researched and read many support threads but nothing comes close to describing (or solving) this problem a friend has got with her MBP - I hope someone can help. Basically revealed as a 'sudden change' in expected results when usin
-
Column name changed in reports
I have to do some changes on my existing report, its really a complex report with more number of columns and tables. now its really hard to fix the alias name changed by report builder automatically. any one could help me to fix this problem, means w