Casting Object using imported class
The problem im having is when trying to de-serialize an obejct. the class that defines the object is stored in a different package and this code works fine when i move the class into the same package.
Im getting a ClassNotFoundException on the line with the >>
Any thoughts on why i cant cast using a class from another package?
private void loadTest(){
try {
FileInputStream fi = new FileInputStream("./Tests/"+plantComboBox.getSelectedItem()+"/"+mode+"/"+testComboBox.getSelectedItem()+"/"+testComboBox.getSelectedItem()+".test");
ObjectInputStream oi = new ObjectInputStream(fi);
>>test = (Test)oi.readObject();
//test.printTest();
oi.close();
} catch (Exception er) {
er.printStackTrace();
}
Yeah i figured it out. The object that was serialized was made in a different project and was contained in a package called "main".
In my other project When i was running that method with the "Test" class in the same package as the method, it was, coincidently in the "main" package and when i moved it to my "test" package and the object was de-serialized it was being re-initialized with its package as "main" and throwing the error.
Similar Messages
-
Tablespace of objects using import utility
Hi,
I have the client dump.i am importing it to my schema.I want to make sure that the objects are cretaed in my tablespace(tablespace used whil ecreating this user).I dont want the objects to be created in anyother tablespace.
I granted unlimited quota on the target tablespace.
I want to know if i need to grant 0 quota on other tablespaces as well.
I am working on oracle 9i.Yes, you need to
- revoke unlimited tablespace privilege (comes with the resource role)
- quota 0 on all other tablespaces except undo and temp
Sybrand Bakker
Senior Oracle DBA -
Casting of forms60all.jar objects fails no class defFound Error
We can get references to the objects and we can get any information from them under the limitations of the java.awt.Container API, meaning the location on screen, number of chidren, type, etc.
The problem is when we try to cast the object to its type so we can call methods in its API(for example call get/set text for a VTextField), we get a NoClassDefFound exception which is very weird because those same objects are used in side the applet., any idea?Mia,
can you provide the stack trace? Do you always get a NoClassDefFound exception, or only with particular types? Do you import the Java classes for the type you cast to?
If you are casting to an awt class, make sure that you only cast to what's available in Java 1.3 (some Java IDE's by default use the JDK 1.4, making code work and compile in the IDE but fail at runtime).
If you select the project's deployment profile (the jar file you created) in JDeveloper then you can run a preview on it. This preview shows all classes that are missing in teh jar file in red.
Frank -
How to cast an object to a class known only at runtime
I have a HashMap with key as a class name and value as the instance of that class. When I do a 'get' on it with the class name as the key, what I get back is a generic java.lang.Object. I want to cast this generic object to the class to which it belongs. But I don't know the class at compile time. It would be available only at runtime. And I need to invoke methods on the instance of this specifc class.
I'm not aware of the ways to do it. Could anybody suggest/guide me how to do it? I would really appreciate.
Thanks a lot in advance.Thanks all for the prompt replies. I am using
reflection and so a generic object is fine, I guess.
But a general question (curiosity) specific to your
comment - extraordinarily generic...
I understand there's definitely some overhead of
reflection. So is it advisable to go for interface
instead of reflection?
Thanks.Arguments for interfaces rather than reflection...
Major benefit at run-time:
Invoking a method using reflection takes more than 20 times as long without using a JIT compiler (using the -Xint option of Java 1.3.0 on WinNT)... Unable to tell with the JIT compiler, since the method used for testing was simple enough to inline - which resulted in an unrealistic 100x speed difference.
The above tests do not include the overhead of exception handling, nor for locating the method to be executed - ie, in both the simple method invocation and reflective method invocations, the exact method was known at compile time and so there is no "locative" logic in these timings.
Major benefit at compile-time:
Compile-time type safety! If you are looking for a method doSomething, and you typo it to doSoemthing, if you are using direct method invocation this will be identified at compile time. If you are using reflection, it will compile successfully and throw a MethodNotFoundException at run time.
Similarly, direct method invocation offers compile-time checking of arguments, result types and expected exceptions, which all need to be dealt with at runtime if using reflection.
Personal and professional recommendation:
If there is any common theme to the objects you're storing in your hashtable, wrap that into an interface that defines a clear way to access expected functionality. This leaves implementations of the interface (The objects you will store in the hashtable) to map the interface methods to the required functionality implementation, in whatever manner they deem appropriate (Hopefully efficiently :-)
If this is feasible, you will find it will produce a result that performs better and is more maintainable. If the interface is designed well, it should also be just as extensible as if you used reflection. -
Casting base class object to derived class object
interface myinterface
void fun1();
class Base implements myinterface
public void fun1()
class Derived extends Base
public class File1
public myinterface fun()
return (myinterface) new Base();
public static void main(String args[])
File1 obj = new File1();
Derived dobj = (Derived)obj.fun();
Giving the exception ClassCastException......
Can't we convert from base class object to derived class.
Can any one help me please...
Thnaks in Advance
Bharath kumar.When posting code, please use tags
The object returned by File1.fun() is of type Base. You cannot cast an object to something it isn't - in this case, Base isn't Dervied. If you added some member variables to Derived, and the compiler allowed your cast from Base to Derived to succeed, where would these member variables come from?
Also, you don't need the cast to myinterface in File1.fun()
Also, normal Java coding conventions recommend naming classes and interfaces (in this case, myinterface) with leading capital letters, and camel-case caps throughout (e.g. MyInterface) -
Importing Class Objects created in IFS Manager into a JSP page
I create a class object using IFS Manager which consisted of extended attributes. I hope this is the right thing to do when I want to manage some extra attributes of a DOCUMENT. But the question is what package do I import to access this newly create Class Object
Thank you. The information was very helpful.
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Joyce Peng:
I believe you created a subclass of Document using iFS manager.
Your new subclass is like any other class object in iFS.
Here is an example of how to access a custom class EXPENSEREPORT with a custom attribute APPROVER.
//Gets the the collection of all the class objects.
//Then gets the specific EXPENSEREPORT class object.
Collection classObjectCollection = session.getClassObjectCollection();
ClassObject expenseReportClassObject =
(ClassObject) classObjectCollection.getItems("EXPENSEREPORT");
//Gets the APPROVER attribute for the class object.
Attribute attribute = expenseReportClassObject.getEffectiveClassAttributes("APPROVER");
<HR></BLOCKQUOTE>
null -
ALV using ABAP Classes and Objects
Hi All,
I am trying to print the values in my internal table using ALV, using ABAP classes and objects. Here the title for columns are picked based on the title specified in the data element. I want to set the title of my columns by my own. how to achieve this ?. Please provide me a sample code if possible.
thanks & regards,
Navneeth.KHello Navneeth
The following sample report shows how to build and modify a fieldcatalog (routine <b>BUILD_FIELDCATALOG_KNB1</b>).
*& Report ZUS_SDN_ALVGRID_EVENTS
REPORT zus_sdn_alvgrid_events.
DATA:
gd_okcode TYPE ui_func,
gt_fcat TYPE lvc_t_fcat,
go_docking TYPE REF TO cl_gui_docking_container,
go_grid1 TYPE REF TO cl_gui_alv_grid.
DATA:
gt_knb1 TYPE STANDARD TABLE OF knb1.
PARAMETERS:
p_bukrs TYPE bukrs DEFAULT '2000' OBLIGATORY.
* CLASS lcl_eventhandler DEFINITION
CLASS lcl_eventhandler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS:
handle_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid
IMPORTING
e_row_id
e_column_id
es_row_no
sender.
ENDCLASS. "lcl_eventhandler DEFINITION
* CLASS lcl_eventhandler IMPLEMENTATION
CLASS lcl_eventhandler IMPLEMENTATION.
METHOD handle_hotspot_click.
* define local data
DATA:
ls_knb1 TYPE knb1,
ls_col_id TYPE lvc_s_col.
READ TABLE gt_knb1 INTO ls_knb1 INDEX e_row_id-index.
CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
CASE e_column_id-fieldname.
WHEN 'KUNNR'.
SET PARAMETER ID 'KUN' FIELD ls_knb1-kunnr.
SET PARAMETER ID 'BUK' FIELD ls_knb1-bukrs.
CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
WHEN 'ERNAM'.
* SET PARAMETER ID 'USR' FIELD ls_knb1-ernam.
* NOTE: no parameter id available, yet simply show the priciple
CALL TRANSACTION 'SU01' AND SKIP FIRST SCREEN.
WHEN OTHERS.
* do nothing
ENDCASE.
* Set active cell to field BUKRS otherwise the focus is still on
* field KUNNR which will always raise event HOTSPOT_CLICK
ls_col_id-fieldname = 'BUKRS'.
CALL METHOD go_grid1->set_current_cell_via_id
EXPORTING
is_row_id = e_row_id
is_column_id = ls_col_id.
ENDMETHOD. "handle_hotspot_click
ENDCLASS. "lcl_eventhandler IMPLEMENTATION
START-OF-SELECTION.
SELECT * FROM knb1 INTO TABLE gt_knb1
WHERE bukrs = p_bukrs.
* Create docking container
CREATE OBJECT go_docking
EXPORTING
parent = cl_gui_container=>screen0
ratio = 90
EXCEPTIONS
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Create ALV grid
CREATE OBJECT go_grid1
EXPORTING
i_parent = go_docking
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Set event handler
SET HANDLER:
lcl_eventhandler=>handle_hotspot_click FOR go_grid1.
* Build fieldcatalog and set hotspot for field KUNNR
PERFORM build_fieldcatalog_knb1.
* Display data
CALL METHOD go_grid1->set_table_for_first_display
CHANGING
it_outtab = gt_knb1
it_fieldcatalog = gt_fcat
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Link the docking container to the target dynpro
CALL METHOD go_docking->link
EXPORTING
repid = syst-repid
dynnr = '0100'
* CONTAINER =
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* ok-code field = GD_OKCODE
CALL SCREEN '0100'.
END-OF-SELECTION.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'.
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE gd_okcode.
WHEN 'BACK' OR
'END' OR
'CANC'.
SET SCREEN 0. LEAVE SCREEN.
WHEN OTHERS.
ENDCASE.
CLEAR: gd_okcode.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form BUILD_FIELDCATALOG_KNB1
* text
* --> p1 text
* <-- p2 text
FORM build_fieldcatalog_knb1 .
* define local data
DATA:
ls_fcat TYPE lvc_s_fcat.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
* I_BUFFER_ACTIVE =
i_structure_name = 'KNB1'
* I_CLIENT_NEVER_DISPLAY = 'X'
* I_BYPASSING_BUFFER =
* I_INTERNAL_TABNAME =
CHANGING
ct_fieldcat = gt_fcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT gt_fcat INTO ls_fcat
WHERE ( fieldname = 'KUNNR' OR
fieldname = 'ERNAM' ).
ls_fcat-hotspot = abap_true.
ls_fcat-scrtext_s = '<short text>'. " short text of column
ls_fcat-scrtext_m = '<medium text>'. " medium text of column
ls_fcat-scrtext_l = '<long text>'. " longtext text of column
ls_fcat-tooltip = '...'. " ALV control: Tool tip for column header
ls_fcat-coltext = '...'. " ALV control: Column heading
MODIFY gt_fcat FROM ls_fcat.
ENDLOOP.
ENDFORM. " BUILD_FIELDCATALOG_KNB1
Regards
Uwe -
Can't import BIP object using BIPCatlogUtil
I am using the BIPCatalogUtil script to upload an object to the RC7 BIP server in our OVM environment.
ade:[ minglin_FAMIGSBL ] [minglin@den65041fwks bin]$ ./BIPCatalogUtil.sh -import source=/home/minglin/view_storage/minglin_FAMIGSBL/BIPCatalogUtil/MyImportExport/bipub/CrmDataMigration/datamodels/DVMValidationDm mode=fusionapp
The script shows the following output on the command line:
[import] Connect to https://crm-siebel-mig.us.oracle.com:10622/xmlpserver/ using ProvAdmin
[import] Import "DVMValidationDm" from "/home/minglin/view_storage/minglin_FAMIGSBL/BIPCatalogUtil/MyImportExport/bipub/CrmDataMigration/datamodels" to "/DataMigration/DomainValueMappings/DVMValidationDm.xdm"
Command Error: import->importObject
oracle.xdo.webservice.exception.OperationFailedException: PublicReportServiceImpl::executeUploadReport Failure: Due to unable to create new Report Object as AbsolutePath [DataMigration/DomainValueMappings/DVMValidationDm.xdm] due to java.io.IOException: Stream closedDone.
The server side trace below shows that the user "ProvAdmin" used to import the object is somehow Impersonate to BIEE as "BISystemUser". Is the failure due to security?
BIP SERVER log for the import:
[2011-04-18T09:48:50.186-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.webservice.PublicReportService] [APP: bipublisher#11.1.1] [SRC_METHOD: uploadReportObject] [URI: /xmlpserver/services/PublicReportService] PublicReportService::uploadReportObject Service BEGIN
[2011-04-18T09:48:50.186-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.webservice.PublicReportServiceImpl] [APP: bipublisher#11.1.1] [SRC_METHOD: initSession] [URI: /xmlpserver/services/PublicReportService] PublicReportService::initSession BEGIN
[2011-04-18T09:48:50.200-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.data.SawDataSourceImpl] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] Impersonate to BIEE as BISystemUser, username: provadmin
[2011-04-18T09:48:50.200-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.data.SawDataSourceImpl] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] getting session id from provided credential: BISystemUser
[2011-04-18T09:48:50.408-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.service.report.saw.SawUtil] [APP: bipublisher#11.1.1] [SRC_METHOD: impersonate] [URI: /xmlpserver/services/PublicReportService] SawUtil.imperonate - saw user: BISystemUser as user: provadmin
[2011-04-18T09:48:50.408-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.service.report.saw.SawUtil] [APP: bipublisher#11.1.1] [SRC_METHOD: setUserHome] [URI: /xmlpserver/services/PublicReportService] SawUtil.setUserHome - user: provadmin
[2011-04-18T09:48:50.689-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.service.report.saw.SawUtil] [APP: bipublisher#11.1.1] [SRC_METHOD: setUserHome] [URI: /xmlpserver/services/PublicReportService] SawUtil.setUserHome - user: provadmin, home: /users/provadmin
[2011-04-18T09:48:50.724-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.security.DirectoryUser] [APP: bipublisher#11.1.1] [SRC_METHOD: init] [URI: /xmlpserver/services/PublicReportService] Inside DirectoryUser.init()....
[2011-04-18T09:48:50.729-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.security.FusionSecurityHandler] [APP: bipublisher#11.1.1] [SRC_METHOD: integrateUserContext] [URI: /xmlpserver/services/PublicReportService] Enters FusionSecurityHandler.integrateUserContext()
[2011-04-18T09:48:50.729-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredResourceProviderUtil] [APP: bipublisher#11.1.1] [SRC_METHOD: toStructuredAbsPath] [URI: /xmlpserver/services/PublicReportService] absPath/~provadmin/user~.profile, is report item type: false, is layout template type: false, matches report item reg expr: false, matches style template reg expr: false
[2011-04-18T09:48:50.729-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredSawMtomResourceProvider] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] real path: /users/provadmin/user\~.profile
[2011-04-18T09:48:50.850-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.security.FusionSecurityHandler] [APP: bipublisher#11.1.1] [SRC_METHOD: integrateUserContext] [URI: /xmlpserver/services/PublicReportService] Leaves FusionSecurityHandler.integrateUserContext()
[2011-04-18T09:48:50.850-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.webservice.PublicReportServiceImpl] [APP: bipublisher#11.1.1] [SRC_METHOD: initSession] [URI: /xmlpserver/services/PublicReportService] PublicReportService::initSession END --- Elapse Time = 664
[2011-04-18T09:48:50.851-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredResourceProviderUtil] [APP: bipublisher#11.1.1] [SRC_METHOD: toStructuredAbsPath] [URI: /xmlpserver/services/PublicReportService] absPath/DataMigration/DomainValueMappings/DVMValidationDm/DVMValidationDm.xdm, is report item type: true, is layout template type: false, matches report item reg expr: true, matches style template reg expr: false
[2011-04-18T09:48:50.851-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredSawMtomResourceProvider] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] real path: /shared/DataMigration/DomainValueMappings/DVMValidationDm.xdm/_datamodel.xdm
[2011-04-18T09:48:50.984-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredResourceProviderUtil] [APP: bipublisher#11.1.1] [SRC_METHOD: toStructuredAbsPath] [URI: /xmlpserver/services/PublicReportService] absPath/~provadmin/_temp/DataMigration/DomainValueMappings/DVMValidationDm/DVMValidationDm.xdm, is report item type: true, is layout template type: false, matches report item reg expr: true, matches style template reg expr: false
[2011-04-18T09:48:50.984-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredSawMtomResourceProvider] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] real path: /users/provadmin/_temp/DataMigration/DomainValueMappings/DVMValidationDm.xdm/_datamodel.xdm
[2011-04-18T09:48:51.002-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.TemporaryStorage] [APP: bipublisher#11.1.1] [SRC_METHOD: getFile] [URI: /xmlpserver/services/PublicReportService] temp file is created: /u01/APPLTOP/instance/domains/bi.oracleoutsourcing.com/BIDomain/servers/bi_server1/tmp/_WL_user/bipublisher_11.1.1/to5gma/public/xdo/tmp/xmlp9220322207228573610tmp
[2011-04-18T09:48:51.006-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.webservice.PublicReportServiceImpl] [APP: bipublisher#11.1.1] [SRC_METHOD: uploadReportObject] [URI: /xmlpserver/services/PublicReportService] Passed-in to CatalogServiceUtil writeZipToCatalog as reportName [DVMValidationDm.xdmz], folderAbsolutePath=[/DataMigration/DomainValueMappings
[2011-04-18T09:48:51.006-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredResourceProviderUtil] [APP: bipublisher#11.1.1] [SRC_METHOD: toStructuredAbsPath] [URI: /xmlpserver/services/PublicReportService] absPath/DataMigration/DomainValueMappings/DVMValidationDm/DVMValidationDm.xdm, is report item type: true, is layout template type: false, matches report item reg expr: true, matches style template reg expr: false
[2011-04-18T09:48:51.006-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredSawMtomResourceProvider] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] real path: /shared/DataMigration/DomainValueMappings/DVMValidationDm.xdm/_datamodel.xdm
[2011-04-18T09:48:51.021-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredResourceProviderUtil] [APP: bipublisher#11.1.1] [SRC_METHOD: toStructuredAbsPath] [URI: /xmlpserver/services/PublicReportService] absPath/~provadmin/_temp/DataMigration/DomainValueMappings/DVMValidationDm/DVMValidationDm.xdm, is report item type: true, is layout template type: false, matches report item reg expr: true, matches style template reg expr: false
[2011-04-18T09:48:51.021-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredSawMtomResourceProvider] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] real path: /users/provadmin/_temp/DataMigration/DomainValueMappings/DVMValidationDm.xdm/_datamodel.xdm
[2011-04-18T09:48:51.031-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.TemporaryStorage] [APP: bipublisher#11.1.1] [SRC_METHOD: getFile] [URI: /xmlpserver/services/PublicReportService] temp file is created: /u01/APPLTOP/instance/domains/bi.oracleoutsourcing.com/BIDomain/servers/bi_server1/tmp/_WL_user/bipublisher_11.1.1/to5gma/public/xdo/tmp/xmlp8058309259715169225tmp
[2011-04-18T09:48:51.036-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.catalog.ResourceCatalogServiceImpl] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] Loading: Basic
[2011-04-18T09:48:51.036-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredSawMtomResourceProvider] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] real path: /shared/DataMigration/DomainValueMappings
[2011-04-18T09:48:51.114-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredSawMtomResourceProvider] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] real path: /users/provadmin/_temp/DataMigration/DomainValueMappings
[2011-04-18T09:48:51.124-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.catalog.ResourceCatalogServiceImpl] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] Loading: Basic
[2011-04-18T09:48:51.124-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredSawMtomResourceProvider] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] real path: /shared/DataMigration
[2011-04-18T09:48:51.159-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredSawMtomResourceProvider] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] real path: /users/provadmin/_temp/DataMigration
[2011-04-18T09:48:51.167-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.catalog.ResourceCatalogServiceImpl] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] Loading: Basic
[2011-04-18T09:48:51.167-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredSawMtomResourceProvider] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] real path: /shared
[2011-04-18T09:48:51.227-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredSawMtomResourceProvider] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] XDOPrincipal: provadmin, saw curr user: ProvAdmin, [permissions: 0 = /shared,[[
0 = 65535,
[2011-04-18T09:48:51.234-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.catalog.ResourceFolder] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] Unknown privilege: SET_OWNER
[2011-04-18T09:48:51.234-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.catalog.ResourceFolder] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] Unknown privilege: CHANGE_PERMISSIONS
[2011-04-18T09:48:51.234-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.catalog.ResourceFolder] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] Unknown privilege: FULL_ACCESS
[2011-04-18T09:48:51.234-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.catalog.CatalogServiceUtil] [APP: bipublisher#11.1.1] [SRC_METHOD: getValidation] [URI: /xmlpserver/services/PublicReportService] CatalogServiceUtil.getValidation: [Resoure type: Folder, Readable: true, traversable: true]
[2011-04-18T09:48:51.234-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.catalog.ResourceFolder] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] Unknown privilege: SET_OWNER
[2011-04-18T09:48:51.234-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.catalog.ResourceFolder] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] Unknown privilege: CHANGE_PERMISSIONS
[2011-04-18T09:48:51.234-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.catalog.ResourceFolder] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] Unknown privilege: FULL_ACCESS
[2011-04-18T09:48:51.234-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.StructuredSawMtomResourceProvider] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] real path: /shared/DataMigration/DomainValueMappings/DVMValidationDm.xdm/_datamodel.xdm
[2011-04-18T09:48:51.245-07:00] [bi_server1] [WARNING] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [APP: bipublisher#11.1.1] [URI: /xmlpserver/services/PublicReportService] Context: 0, code: EUMOQYH6, message: Error outside of Presentation Catalog occurred., details: <sawsoape:Error xmlns:sawsoape="urn://oracle.bi.webservices/error/v1">[[
<sawsoape:Code>EUMOQYH6</sawsoape:Code>
<sawsoape:CatalogCode>42</sawsoape:CatalogCode>
<sawsoape:Message>Error outside of Presentation Catalog occurred.</sawsoape:Message>
</sawsoape:Error>
[2011-04-18T09:48:51.246-07:00] [bi_server1] [WARNING] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [APP: bipublisher#11.1.1] [URI: /xmlpserver/services/PublicReportService] Context: 1, code: EUMOQYH6, message: Error outside of Presentation Catalog occurred., details: <sawsoape:Error xmlns:sawsoape="urn://oracle.bi.webservices/error/v1">[[
<sawsoape:Code>EUMOQYH6</sawsoape:Code>
<sawsoape:CatalogCode>42</sawsoape:CatalogCode>
<sawsoape:Message>Error outside of Presentation Catalog occurred.</sawsoape:Message>
</sawsoape:Error>
[2011-04-18T09:48:51.246-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [SRC_CLASS: oracle.xdo.servlet.resources.catalog.ResourceCatalogServiceImpl] [APP: bipublisher#11.1.1] [SRC_METHOD: ] [URI: /xmlpserver/services/PublicReportService] Granting permission to role: null
[2011-04-18T09:48:51.247-07:00] [bi_server1] [ERROR] [] [oracle.xdo] [tid: 63] [userId: <anonymous>] [ecid: 004cJGeVfETFw00Fzzx0g00000wd00010S,0:1] [APP: bipublisher#11.1.1] [URI: /xmlpserver/services/PublicReportService] PublicReportServiceImpl::executeUploadReport Failure: for creating new report object with AbsolutePath[DataMigration/DomainValueMappings/DVMValidationDm.xdm] due to [Ljava.lang.StackTraceElement;@1a41bb8d
[2011-04-18T09:49:34.150-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 59] [userId: <anonymous>] [ecid: 513ba4b48d285072:581749f3:12f67892892:-8000-0000000000000004,1:32116] [SRC_CLASS: oracle.xdo.servlet.security.BieeKeepAliveTimerTask] [APP: bipublisher#11.1.1] [SRC_METHOD: ] Keep alive for provadmin, provadmin,
[2011-04-18T09:50:34.149-07:00] [bi_server1] [TRACE] [] [oracle.xdo] [tid: 59] [userId: <anonymous>] [ecid: 513ba4b48d285072:581749f3:12f67892892:-8000-0000000000000004,1:32116] [SRC_CLASS: oracle.xdo.servlet.security.BieeKeepAliveTimerTask] [APP: bipublisher#11.1.1] [SRC_METHOD: ] Keep alive for provadmin, provadmin,We can't re-import because the objects were imported first when the BIP server processes were started under root users. After the BIP server processes re-started with a non-root user, we can see all the objects imported previously under root due to file system permission. The re-import failed for the same file system permission issue.
-
How to import .jar files in order to use the classes within this file
hello guys,
I'm just wondering how can i import .jar files in order to uses the classes within this file.
let's take an example:
i have a folder in which I have many .jar files which contain classes to be called. the full path of this folder is set in the Classpath inside the enviroment variables.
so does anyone have any idea how can i import these .jar files so i can use the classes?
thank you.Hi,
My problem is that: I created a Serializable class in a project. And I added this project (first project) to another project (second project). First project is appearing in the second project' s Libraries folder. No problem. I want to create a jar file from second project. i.e. I want to Build second project (I use NetBeans IDE). I am using Build Main Project tab under Run. It is falling out. I am finding it second project' s jar file under its folder. I am clicking on it. But it is NOT WORKING. Do you know WHY. Could you help me please?
Thanks, -
Error 1046 in a class after using import
hmmmmm, I give up. I want to use some component controls
inside a class I have coded. I have used
import fl.controls.RadioButton;
but then I get a compile time error "1046 type was not found
or was not a compile-time constant: RadioButton" on the line
private var button1_rb:RadioButton
What do I do?The component was in the library of a .swf that I was loading
dynamically, but the class that instantiated the variable was
itself instantiated by a .swf that did not have the component in
the library, so I tried adding the component to the library of the
.swf that instantiated the class that had the RadioButton variable
in it and that solved the problem. -
Error when I import classes using directive JSP page
Hi all!
I have installed JDeveloper 11g (11.1.1.3.0)
My applications are located in the C:\dir (JDEV_USER_DIR = C:\dir)
I Created application "Appliation1". In it i created 2 projects (Project1, in it beans session entity and other java classes; Project2, in it JSP).
I want import classes from Project1 to Project2 using next directive:
<%@ page contentType="text/html;charset=windows-1252"
import="project1.*"%>
so in Project properties of Project2 set the way to classes in Project1.
When i run JSP an error occurred:
Error(4,9): The import project1 cannot be resolved
Maybe i'm not set correctly the way to the classes
Thanks in advance.angelr, thanks, it helped me)
In jdeveloper 10g i set address in Project Properties->Libraries and Classpath->Add JAR/Directory;
and set the way to my classes;
and it worked.
in the 11 version seems different -
Sorting a vector of objects using attribute of object class as comparator
i would like to sort a vector of objects using an attribute of object class as comparator. let me explain, i'm not sure to be clear.
class MyObject{
String name;
int value1;
int value2;
int value3;
i've got a Vector made of MyObject objects, and i would sort it, for instance, into ascending numerical order of the value1 attribute. Could someone help me please?
KINSKI.Vector does not implement a sorted collection, so you can't use a Comparator. Why don't you use a TreeSet? Then you couldclass MyObject
String name;
int value1;
int value2;
int value3;
// Override equals() in this class to match what our comparator does
boolean equals (Object cand)
// Verify comparability; this will also allow subclasses.
if (cand !instanceof MyObject)
throw new ClassCastException();
return value1 = cand.value1;
// Provide the comparator for this class. Make it static; instance not required
static Comparator getComparator ()
// Return this class's comparator
return new MyClassComparator();
// Define a comparator for this class
private static class MyClassComparator implements Comparator
compare (Object cand1, Object cand2)
// Verify comparability; this will also allow subclasses.
if ((cand1 !instanceof MyObject) || (cand2 !instanceof MyObject))
throw new ClassCastException();
// Compare. Less-than return -1
if ((MyObject) cand1.value1 < (MyObject) cand2.value1))
return -1;
// Greater-than return 1
else if ((MyObject) cand1.value1 > (MyObject) cand2.value1))
return 1;
// Equal-to return 0.
else
return 0;
}then just pass MyObject.getComparator() (you don't need to create an instance) when you create the TreeSet. -
When should object casting be used?
Hi,
just wondering something. Saw there that returning objects from methods and downcasting the returned object is bad. When should casting be used? I currently have a program that has an object that contains a HashMap as a field. When I try retrieve objects from the HashMap using the relevant key, I have to cast them to what they were originally! Is this bad programming practice or is it the only way to do things?
Thanks.
// example of retrieving object from key
dbDirectory = (String)dbInfo.get("dbDirectory");LeWalrus wrote:
Hi,
just wondering something. Saw there that returning objects from methods and downcasting the returned object is bad. When should casting be used? I currently have a program that has an object that contains a HashMap as a field. When I try retrieve objects from the HashMap using the relevant key, I have to cast them to what they were originally! Is this bad programming practice or is it the only way to do things?
Thanks.
// example of retrieving object from key
dbDirectory = (String)dbInfo.get("dbDirectory");
Before generics, this was a perfectly acceptable practice. Generally speaking, you use type-casting when the compiler is unable to ensure the type validity at compile-time, but you know it is correct, so you supply the extra information to the compiler so it knows everything is correct. Sometimes you need to circumvent the strong type-checking part of the language for flexibility, but this is something that should be used very sparingly.
Now it would be better to use generics so that the compiler will know at compile time that the values in your map are Strings, instead of just Objects. -
Find Universe, classes and objects used in each report
I want to find a list of universes, classes and objects used in each report
or the other way to find list of reports which use a particular universe. please let know, i could not get much information from activity universe in a proper way.Hello Venkataramat,
plese post in more detail what kind of report you are using Crystal report ? webi ? Deski.
Please post in the specific forums.
If you have a Crystal Report I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
Best regards
Falk -
Upgrading CE 10 to Business Objects XIR3 by using Import Wizard
Hi Guys,
We are upgrading Crystal Enterprise 10 to Business Objects XI3, I have installed Business Objects XI3 on a new server, I will be using Import Wizard to import Objects, groups, Users ect... Do I need to copy the contents of the CE10 FRS input and output directories to the BOE XI3 FRS input and output directories?
Please help.
Thanks,
BurhanDo I need to copy the contents of the CE10 FRS input and output directories to the BOE XI3 FRS input and output directories?
No. Do not do this. The import wizard will migrate your objects and copy them to the FRS in 3.x format for you, nothing manual like this is needed.
Regards,
Tim
Maybe you are looking for
-
Having trouble conecting to Wi-Fi! Here's the answer...
THIS WORKS (for most) First, Click/Open your Settings icon, then Click/Open on the Wi-Fi icon, then Click/Open the blue icon dot for the network you want to enter the WEP key for, then Click on the "WEP Password" in the security window, then switch i
-
Autoscroll behavior during DnD in JTree, 1.4 vs 1.6
The following code compiles under both Java 1.4 and Java 1.6. I'm wondering if anyone knows why the following actions cause different behaviors between the two versions: 1. When the frame opens, you should see a fully-expanded tree (which, because of
-
Premiere Pro zeigt After Effects Komposition fehlerhaft an
Hallo, Ich habe ein Problem mit der Dynamic Link Verbindung zwischen After Effects CC, Premiere Pro CC und dem Media Encoder. Wenn ich eine After Effects Komposition in Premiere Pro importiere, zeigt mir der Vorschau Bildschirm eine fehlerhafte Vorsc
-
Open standby database read/write
What's the syntax to open a standby database read/write? Any help will be appreciated. Thanks
-
How to disable HP Universal Printing dialog box
Hi, I am trying to install HP Universal Printing PCl 6 printers on a local machine using a batchfile from an application (C#) which automatically detects if a printer has been installed or not. The batchfile has the following entries: set IP=IP_%1 pu