Error with Data package execution from BPF or running package from custom b
custom button.
1. When run package from BPF or custom button an error apear (for all users): "Subscript out of range".
Package dynamic script
PROMPT(SELECTINPUT,,,,"BUDGETHOLDER,CONTRACTOR,ENTITY,RPTCURRENCY,SCENARIO,VERSION")
TASK(ZMF_BPC_LOGIC_RUN,EQU,%EQU%)
TASK(ZMF_BPC_LOGIC_RUN,SUSER,%USER%)
TASK(ZMF_BPC_LOGIC_RUN,SAPPSET,%APPSET%)
TASK(ZMF_BPC_LOGIC_RUN,SELECTION,%SELECTION%)
TASK(ZMF_BPC_LOGIC_RUN,SAPP,%APP%)
TASK(ZMF_BPC_LOGIC_RUN,LOGICFILENAME,PAY_DEPT.LGF)
2. After click OK such selection screen appear.
3. When run package from eData menu u2013 Run package everything OK. And after running package from BPF or custom button everything become OK. (Only for user who run package from EData menu)
4. When Close BPC Excel and launch new BPC Excel error appear again.
The partners have posted a Message 247960 / 2010
created 23.03.2010 - 14:15:03 CET
Could you please comment on the issue?
Hi Usman,
The solution is :
1. Edit the files updateConfigProperties.properties and
prependConfigProperties.properties in the installation directory:
Replace the hostname with the value present during the initial installation.
Note that the installation directory is the directory where SAPinst creates its log files.
The original hostname should be reflected in the names of the profiles created by the installation
(/usr/sap/<SID>/SYS/profile/<SID>_<Instance>_<hostname>).
If the log files of the initial installation are still available the original hostname can also be found in the file jengine.properties in the value of the property box.number. This file is located in the installation directory the initial installation
2. Restart the installation.
This has to work,it worked for me.
P.S: Give points,ok.
Rgs
vikas
Similar Messages
-
Error with date field when inserting records into sql server from webdynpro
Dear SDN's,
I am trying to insert the records into sql server through my webDynpro program.
I have created a date field in a dictionary with the datatype date.
In my webdynpro program to insert the date i am following the below format.
String dateString = "2006/12/10";
java.util.Date d=new java.util.Date(dateString);
java.sql.Date <b>date</b> = new java.sql.Date(d.getTime());
int i=stmt.executeUpdate("INSERT INTO TRAVEL_HEADER(TRQID,PROJECTID,<b>REQDT</b>,ADVCE,ETADV,PURTR) values(21, '555-1212', '" + <b>date</b> + "', 5000, '20060501','hi')");
when i try to execute it, it gives the following error.
<b>com.sap.sql.log.OpenSQLException: The SQL statement "INSERT INTO "TRAVEL_HEADER" ("TRQID","PROJECTID","REQDT","ADVCE","ETADV","PURTR") VALUES (21,'555-1212','2006-12-10',5000,'20060501','hi')" contains the semantics error[s]: - type check error: new value (element number 3 (CHAR)) is not assignable to column >>REQDT<< (DATE)</b>
Please correct me.
Your help will be appreciated.
Regards,
Sireesha.BHi,
int i=stmt.executeUpdate("INSERT INTO TRAVEL_HEADER(TRQID,PROJECTID,REQDT,ADVCE,ETADV,PURTR) values(21, '555-1212', 'date', 5000, '20060501','hi')");
try like this.
I Think in SQL the general format to take date as input like this.
INSERT INTO X VALUES ('10/30/56')
thaks,
Lohi. -
I am trying to create a process to import to import data using a date variable but when I use the date to get the data from SQL server I am getting a error.
I have tried setting the variable as both a string and date - Select
CONVERT(varchar(10), DATEADD(day, -1, GETDATE()), 101) and map it to the Variable. The date variable is working. It’s correct in the Watch and I am able to use the variable to get data from an Open Link database (row_date = ?)
in the OLE DB Source query. I get a "Invalid character value for cast specification"
error when doing the same thing to get data from an SQL Server OLE DB Source
where the date field is DateTime (row_date = ?). I have tried making the variable as a date and string but get the same error regardless. To make it work, I have to duplicate the date
calculation in the query - HAVING (row_date = CONVERT(varchar(10), DATEADD(day, -1, GETDATE()), 101) ) which works fine.
HAVING (row_date = ?) gives the error with the Parameter mapped to the variable.
Any suggestions as to how to make this work correctly?May I suggest to use style 111 instead of 101?
From experience, yyyy/mm/dd date format will work most of the time for date conversion and
It's due to different date format from mm/dd/yyyy to the system date format that SQL Server is using.
Hope this helps.
~ J. -
Error with data transfer in functional module
Hi all,
I need to upload file to the employee through BDS. (oaor transcation). i am using functional module
function zin_bds_dms_upload.
""Local Interface:
*" IMPORTING
*" VALUE(P_CLASS) TYPE BDN_CON-CLASSNAME
*" VALUE(P_OBJCT) TYPE BDN_CON-OBJKEY
*" VALUE(P_DESCR) TYPE BDN_CON-DESCRIPT
*" REFERENCE(P_PATH) TYPE SAPB-SAPFILES
data: begin of i_bds_conn occurs 10, " ITAB for the actual
bdn_tab_i type num08,
client type mandt,
classname type seoclsname,
classtype type bds_clstyp,
objkey type bds_typeid,
log_system type swo_typeid,
loio_id type char42,
doc_ver_no type num08,
doc_var_id type num08,
doc_var_tg type bds_var_tg,
descript type sdok_descr,
langu type spras,
comp_id type bds_compid,
mimetype type bds_mimetp,
crea_user type sdok_crusr,
crea_time type sdok_crtst,
chng_user type sdok_chusr,
chng_time type sdok_chtst,
contrep type bds_conrep,
docuclass type sdok_prv_m,
doc_type type sdok_prv_s,
expirytime type sdok_prv_m,
bds_docid type sdok_prv_l,
loio_id_to type sdok_loid,
rela_id type bds_relaid,
state type sdok_phsta,
bds_status type bds_state,
stor_tab type saearstat,
bdn_tab_d type bar_keep,
note_type type bds_state,
objecttext type toasp-objecttext,
objecttext2 type toasd-objecttext,
objecttext3 type toasr-objecttext,
ntext type tojtt-ntext,
end of i_bds_conn.
data: begin of bds_doctype_list occurs 10,
mandt type mandt,
classname type bapibds01-classname,
contrep type bapibds01-contrep,
docuclass type bapibds01-doc_class,
docuclass_text type toasd-objecttext,
doc_type type bapibds01-doc_type,
doc_type_text type toasp-objecttext,
appl_type type toadd-appl_type,
appl_type_text(50) type c,
standard type toadv-standard,
check_box type toadv-standard,
end of bds_doctype_list.
data: file_extension type toadd-doc_type, " file-extension
i_files type bapifiles occurs 1 with header line,
i_signature type bapisignat occurs 1 with header line,
logical_system type bds_conn00-log_system.
data: classname_select type bdn_con-classname,
classtype_select type bdn_con-classtype,
objkey_select type bdn_con-objkey,
mask(20) type c,
answer type c,
mimetype type toadd-mimetype,
i_toadd type toadd,
file_path type sapb-sapfiles,
filename_all type sapb-sapfiles,
file_path_memory(250) type c, " path für SAP memory
file_path_length type i, " length of the file_path
file_name type sapb-sapfiles.
classname_select = p_class.
classtype_select = 'BO'.
objkey_select = p_objct.
filename_all = p_path.
get parameter id 'OAP' field file_path.
if sy-subrc <> 0. " no file_path found.
file_path = space.
endif.
concatenate ',.' '' ',.' '' '.' into mask.
-- split filename -- *
perform split_path(oaall) using filename_all file_path file_name.
-- set new file_path to SAP memory -- *
file_path_length = strlen( file_path ).
if file_path <> space and file_path_length < 250.
file_path_memory = file_path.
set parameter id 'OAP' field file_path_memory.
else.
file_path_memory = space.
set parameter id 'OAP' field file_path_memory.
endif.
-- check documentclass -- *
perform get_file_extension using file_name
file_extension.
-- check file extension -- *
if file_extension = space.
-> if no docuclass is found from the document
-> default docuclass from the doctype!
file_extension = bds_doctype_list-docuclass.
endif.
-- get the mimetype of the docuclass -- *
perform mimetype_get(oaall) using file_extension
changing i_toadd.
move i_toadd-mimetype to mimetype.
-- fill file and signature structure -- *
clear: i_files, i_signature.
refresh : i_files, i_signature.
i_files-doc_count = 1.
i_files-directory = file_path.
i_files-filename = file_name.
i_files-mimetype = mimetype.
append i_files.
i_signature-doc_count = 1.
i_signature-prop_name = 'BDS_DOCUMENTCLASS'.
i_signature-prop_value = file_extension.
append i_signature.
i_signature-prop_name = 'BDS_CONTREP'.
if bds_doctype_list-contrep = space.
i_signature-prop_value = ' '. "#EC NOTEXT
else.
i_signature-prop_value = bds_doctype_list-contrep.
endif.
append i_signature.
i_signature-prop_name = 'BDS_DOCUMENTTYPE'.
i_signature-prop_value = bds_doctype_list-doc_type.
append i_signature.
i_signature-prop_name = 'DESCRIPTION'.
i_signature-prop_value = p_descr.
append i_signature.
i_signature-prop_name = 'LANGUAGE'.
i_signature-prop_value = sy-langu.
append i_signature.
-- create new document via KPro -- *
call function 'BDS_BUSINESSDOCUMENT_CREATEF'
exporting
logical_system = logical_system
classname = classname_select
classtype = classtype_select
client = sy-mandt
object_key = objkey_select
tables
files = i_files
signature = i_signature
exceptions
internal_error = 1
others = 2.
endfunction.
*& Form GET_FILE_EXTENSION
try to get the extension of the uploaded file
form get_file_extension using file_name file_extension.
-- data declaration ------------------------------------------------ *
data: length type i,
single_c type c.
data: begin of bds_doctype_list occurs 10,
mandt type mandt,
classname type bapibds01-classname,
contrep type bapibds01-contrep,
docuclass type bapibds01-doc_class,
docuclass_text type toasd-objecttext,
doc_type type bapibds01-doc_type,
doc_type_text type toasp-objecttext,
appl_type type toadd-appl_type,
appl_type_text(50) type c,
standard type toadv-standard,
check_box type toadv-standard,
end of bds_doctype_list.
clear: single_c.
length = strlen( file_name ).
if length > 0.
while length > 0.
single_c = file_name+length(1).
if single_c co '.'.
length = length + 1.
exit.
else.
length = length - 1.
endif.
endwhile.
if length > 0.
file_extension = file_name+length.
else.
file_extension = space.
endif.
else.
file_extension = space.
endif.
if file_extension <> space.
set locale language sy-langu.
translate file_extension to upper case. "#EC TRANSLANG
set locale language space.
endif.
endform. "get_file_extension
example : class = PREL
object = pernr_no
desc = 'leav application'
p_path = file_path
I used this in abap program then it is uploading fine but when used in the web dynpro file is not uploading. On debugging it is showing error in function module SDOK_PHIOS_CHECKIN
error key 5 ie error in transfer.
So please suggest how to upload in web dynpro abap.
Edited by: Bhavya belagal on Dec 22, 2010 11:55 AM
Edited by: Bhavya belagal on Dec 22, 2010 12:09 PMHallo Bhavya,
Please do not post like this as it is not readable . Mostly when you describe it in a simple manner you would get more response.
See this thread for answers from Thomas Jung [Re: Approach content repository other way then URL approach|Re: Approach content repository other way then URL approach]
Wiki [http://wiki.sdn.sap.com/wiki/display/WDABAP/File%2bUpload%2busing%2bcl_fitv_gos%2bclass|http://wiki.sdn.sap.com/wiki/display/WDABAP/File%2bUpload%2busing%2bcl_fitv_gos%2bclass]
Edited by: Baskaran Senthivel on Dec 22, 2010 2:42 PM -
Error with data source creation
Error during Data Source creation: weblogic.common.ResourceException: DataSource
(jdbc.GangsterDB) can't be created with non-existent Pool (connection or multi)
(oraclePool)
I have already created oraclePool with the following properties:
Name : oraclePool
URL : jdbc:weblogic:oracle
Driver: weblogic.jdbc.oci.Driver
Properties:
user=system
server=myserver
In weblogic-ejb-jar.xml file:
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/GangsterDataSource</res-ref-name>
<jndi-name>jdbc.GangsterDB</jndi-name>
</resource-description>
</reference-descriptor>
In ejb-jar.xml file:
<resource-ref>
<res-ref-name>jdbc/GangsterDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Do I need to make changes in my Entity Bean files? I have made a datasource called
GangsterDB. I do not know the reason for this error. Please do let me know.
Error during Data Source creation: weblogic.common.ResourceException: DataSource
(jdbc.GangsterDB) can't be created with non-existent Pool (connection or multi)
(oraclePool)
Thank you
Ronak ParekhI am still getting the same error:
Unable to deploy EJB: OrganizationEJB from sempire_bc.jar
The DataSource with the JNDI name: OrganizationDB can not be located. Please ensure
that the DataSource has been deployed
successfully and that the JNDI name in your EJB Deployment descriptor is correct.
In my console, I have created a connection pool 'oraclePool' and 3 datasource
'jdbc.GangsterDB', 'jdbc.OrganizationDB' and
'jdbc.JobDB'. I have also specified the target server and there seems to be no
error. I have checked 'Monitor All Connection
Pools' and oraclePool is running. I still do not understand the problem that I
am getting and have no clue how to solve it.
Thank you
Ronak Parekh
My weblogic-ejb-jar.xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>GangsterEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<jndi-name>jdbc.GangsterDB</jndi-name>
</resource-description>
</reference-descriptor>
<local-jndi-name>jdbc.GangsterDB</local-jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>OrganizationEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<jndi-name>jdbc.OrganizationDB</jndi-name>
</resource-description>
</reference-descriptor>
<local-jndi-name>jdbc.OrganizationDB</local-jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>JobEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<jndi-name>jdbc.JobDB</jndi-name>
</resource-description>
</reference-descriptor>
<local-jndi-name>jdbc.JobDB</local-jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
My ejb-jar.xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<display-name>Business Component CMP 2.0</display-name>
<enterprise-beans>
<entity>
<display-name>Gangster Entity Bean</display-name>
<ejb-name>GangsterEJB</ejb-name>
<local-home>com.sempire.builder.business_component.GangsterHome</local-home>
<local>com.sempire.builder.business_component.Gangster</local>
<ejb-class>com.sempire.builder.business_component.GangsterBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>GangsterEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>nickname</field-name></cmp-field>
<cmp-field><field-name>badness</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<resource-ref>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM GangsterEJB AS a]]>
</ejb-ql>
</query>
</entity>
<entity>
<display-name>Organization Entity Bean</display-name>
<ejb-name>OrganizationEJB</ejb-name>
<local-home>com.sempire.builder.business_component.OrganizationHome</local-home>
<local>com.sempire.builder.business_component.Organization</local>
<ejb-class>com.sempire.builder.business_component.OrganizationBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>OrganizationEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>description</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<resource-ref>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM OrganizationEJB AS a]]>
</ejb-ql>
</query>
</entity>
<entity>
<display-name>Job Entity Bean</display-name>
<ejb-name>JobEJB</ejb-name>
<local-home>com.sempire.builder.business_component.JobHome</local-home>
<local>com.sempire.builder.business_component.Job</local>
<ejb-class>com.sempire.builder.business_component.JobBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>JobEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>score</field-name></cmp-field>
<cmp-field><field-name>setupCost</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<resource-ref>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM JobEJB AS a]]>
</ejb-ql>
</query>
</entity>
</enterprise-beans>
<relationships>
<ejb-relation>
<ejb-relation-name>organization-memberGangsters</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>organization---memberGangsters</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>OrganizationEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>memberGangsters</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>memberGangsters---organization</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<cascade-delete/>
<relationship-role-source>
<ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>organization</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>gangsters-jobs</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>gangsters---jobs</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>jobs</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>jobs---gangsters</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>JobEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>gangsters</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>organization-theBoss</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>organization---theBoss</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>OrganizationEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>theBoss</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>theBoss---organization</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
</ejb-relationship-role>
</ejb-relation>
</relationships>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>GangsterEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>OrganizationEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>JobEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
My weblogic-cmp-rdbms-jar.xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-rdbms-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'>
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>GangsterEJB</ejb-name>
<data-source-name>GangsterDB</data-source-name>
<table-name>GANGSTER</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>name</cmp-field>
<dbms-column>NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>nickname</cmp-field>
<dbms-column>NICKNAME</dbms-column>
</field-map>
<field-map>
<cmp-field>badness</cmp-field>
<dbms-column>BADNESS</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
</weblogic-query>
</weblogic-rdbms-bean>
<weblogic-rdbms-bean>
<ejb-name>OrganizationEJB</ejb-name>
<data-source-name>OrganizationDB</data-source-name>
<table-name>ORGANIZATION</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>name</cmp-field>
<dbms-column>NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>description</cmp-field>
<dbms-column>DESCRIPTION</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
</weblogic-query>
</weblogic-rdbms-bean>
<weblogic-rdbms-bean>
<ejb-name>JobEJB</ejb-name>
<data-source-name>JobDB</data-source-name>
<table-name>JOB</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>name</cmp-field>
<dbms-column>NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>score</cmp-field>
<dbms-column>SCORE</dbms-column>
</field-map>
<field-map>
<cmp-field>setupCost</cmp-field>
<dbms-column>SETUPCOST</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
</weblogic-query>
</weblogic-rdbms-bean>
<weblogic-rdbms-relation>
<relation-name>organization-memberGangsters</relation-name>
<weblogic-relationship-role>
<relationship-role-name>memberGangsters---organization</relationship-role-name>
<column-map>
<foreign-key-column>iD</foreign-key-column>
<key-column>ID</key-column>
</column-map>
</weblogic-relationship-role>
</weblogic-rdbms-relation>
<weblogic-rdbms-relation>
<relation-name>gangsters-jobs</relation-name>
<table-name>JOBS</table-name>
<weblogic-relationship-role>
<relationship-role-name>gangsters---jobs</relationship-role-name>
<column-map>
<foreign-key-column>iD</foreign-key-column>
<key-column>ID</key-column>
</column-map>
</weblogic-relationship-role>
<weblogic-relationship-role>
<relationship-role-name>jobs---gangsters</relationship-role-name>
<column-map>
<foreign-key-column>iD</foreign-key-column>
<key-column>ID</key-column>
</column-map>
</weblogic-relationship-role>
</weblogic-rdbms-relation>
<weblogic-rdbms-relation>
<relation-name>organization-theBoss</relation-name>
<weblogic-relationship-role>
<relationship-role-name>organization---theBoss</relationship-role-name>
<column-map>
<foreign-key-column>iD</foreign-key-column>
<key-column>ID</key-column>
</column-map>
</weblogic-relationship-role>
</weblogic-rdbms-relation>
</weblogic-rdbms-jar> -
Parameter passing from BPF to DM package
Hi there,
We have a DM package based on execute formulas that points to custom logic file. We've configured to work using legalentity and time as parameters and we put them on the promt under the SELECTINPUT. Everyting works fine but now I'll like to run it from a BPF step, so I configured same data region on BPF and use the inherit from dataregion on the step that launchs the DM package...for my surprise I need to enter again those values in the package as they come empty on the package selection screen.
So.... what I'm doing wrong?? Have to use another way to pass parameters to the package??
Thanks in advance for any help on this.
Regards,
CarlosYou might try to copy the package that you are requesting in the BPF as a back-up. Then in the package you have connected to the BPF, comment out the SELECTION PROCESS text in the Advanced area of the SSIS package. Then test the process and review the log to see if the current view or assigned view is passed as a parameter. If not, then you may have to use a specific package, that has a broader scope defined in the package details or Script logic file itself.
That would be my first step. -
Report data binding error with date values
I have CF7.02 with a Microsoft Visual FoxPro 9.0 SP1 Database
that I connect to using ODBC (FoxPro Driver 6.01.8630.01). I send
my sql results to a CF Report Builder 7.02 PDF report and it works
fine. If I dump the date values before I change them, they look
like the following: {ts '2004-12-20 00:00:00'} . However I have
tried a number of ways of manipulating the date before sending it
to the report, but I continue to get errors. I don't care what
format they go to the report in, since the report reformats them
anyway. I checked to make sure that none of the dates were null.
For example <cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDateTime(#ldCFPrcInputDate#) /> yields values in the
{ts '2004-12-20 00:00:00'} format when I dump the query results to
screen. Where:
ldCFPrcInputDate = 12/20/2004
CreateODBCDateTime(ldCFPrcInputDate) = {ts '2004-12-20
00:00:00'}
ReportQuery.PrcInputDate[lcCurRow] = {ts '2004-12-20
00:00:00'}
I get the error:
Report data binding error Unable to get value for field
'prcinputdate' of class 'java.util.Date'.
coldfusion.runtime.OleDateTime -> Date
Not using the CreateODBCDate function for example <cfset
ReportQuery.PrcInputDate[lcCurRow] = #ldCFPrcInputDate# /> I
get:
Report data binding error Unable to get value for field
'prcinputdate' of class 'java.util.Date'.
java.lang.String -> Date
Here are some of my failed attempts:
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDateTime(#ldCFPrcInputDate#) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
#ldCFPrcInputDate# />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
DateFormat(CreateODBCDate(#ldCFPrcInputDate#),'mm/dd/yyyy') />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate(DateFormat(#ldCFPrcInputDate#,'mm/dd/yyyy') />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate(DateFormat(#ldCFPrcInputDate#,'mm-dd-yyyy') />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
Trim(createODBCDateTime(ldtmpdate)) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate({05-07-2006}) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate('{05-07-2006}') />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate(05/07/2006) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate('05/07/2006')/>
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate(parseDateTime('05/07/2006')) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
parseDateTime(CreateODBCDateTime(05/07/2006)) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
parseDateTime(CreateODBCDateTime('#ldCFPrcInputDate#')) />
<cfset ReportQuery.PrcInputDate[lcCurRow] = '{05-07-2006}'
/>
<cfset ReportQuery.PrcInputDate[lcCurRow] = '{05/07/2006}'
/>
<cfset ReportQuery.PrcInputDate[lcCurRow] = '05/07/2006'
/>
I also did some googling without success. Any help is
appreciated.You may want to make sure that the column is not included in
the query variable list in your report cfr file.
The newest version of the Report Builder, which may be
installed on the server, no longer tolerates vars appearing in that
list of they are not in the query itselft. -
Hello Gurus,
I was trying to load data ffrom ODS to a Cube using DTP when I got the following error:
Exceptions in Substep: End Routine - RSBK231
The database returned a value containing an error
Do you know what this error message means. It refers to a end routine and I had no syntaxt errors with the endroutine. It also worked fine with previous data loads.
Any help in this regards is appreciated.
Thanks
RishiHi Rishi,
There might be some syntactical error in your end routine e.g division by a zero. This is just an example. Try running the DTP in Debug mode (you will get the option under execute tab of DTP) and see what the end routine code is doing. There might be some exception which you need to take care of.
Thanks..
Shambhu -
PowerPivot refresh error with data feed from sharepoint list with empty exception information
Hi,
My Powpivot refreshing error seems to be different from what others already experienced.
Scenario:
Constructed an external data source in the format of Http://<server_IP>/sites/<mysitecollection>/_vti_bin/listdata.svc
selected one table with some of the needed columns in the next step
Create calculate colums etc.
Create pivot tables etc.
All worked well offline
Upload the workbook into PowerPivot Gallery
Reference it from a page through Excel Web Service webpart allowing manual refresh
The refresh always reports failure with the named external data source
I opend the log file in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS and located the following error messages:
ASPPHOST::ShowEngineError: Out of line object 'DataSource', referring to ID(s) 'f8939b694cae', has been specified but has not been used。The following exception occurred while the managed IDbCommand interface was being used: .
Please note in the above message, NO detailed exception message was given. In other words,
the exception information is empty.
I checked as many things as I possibly could includin the security accounts etc. All seem to be right. But this empty exception got me stuck here.
What could possibly go wrong? Any help will be appreciated.
Thanks.Hello,
Here is a good article regarding Where to get information about data refresh failures for your reference, please see:
http://social.technet.microsoft.com/wiki/contents/articles/3870.troubleshooting-powerpivot-data-refresh.aspx
In addition, which credential option you're configured for the PowerPivot data refresh in SharePoint farm? You can go through the following articles regarding configure the PowerPivot data refresh:
Configure the PowerPivot Unattended Data Refresh Account (PowerPivot for SharePoint):
http://technet.microsoft.com/en-us/library/ff773327.aspx
Configure Stored Credentials for PowerPivot Data Refresh (PowerPivot for SharePoint):
http://technet.microsoft.com/en-us/library/ee210671.aspx
Hope this helps.
Regards,
Elvis Long
TechNet Community Support -
Error with data source and jndi
Dave,
I am using weblogic 6.1 now and I am still getting the same problem.
Error:
The DataSource name with the JNDI name: Organization can not be located. Please
ensure that the DataSource has been deployed successfully and that the JNDI name
in your EJB Deployment descriptor is correct.
The Entity Bean files that I have used for JBoss are:
* GangsterBean.java
* Copyright (c) 2002 Sempire, Inc.
* All rights reserved.
* This software is the confidential and proprietary information
* of Sempire, Inc
* @ version 1.0
package com.sempire.builder.business_component;
import java.util.Collection;
import java.util.Set;
import javax.ejb.CreateException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.FinderException;
public abstract class GangsterBean implements EntityBean
private static int idgen = 1;
private EntityContext context;
public Integer ejbCreate( String Name, String Nickname, Integer Badness) throws
CreateException
setID(new Integer(idgen++));
setName(Name);
setNickname(Nickname);
setBadness(Badness);
return null;
public void ejbPostCreate( String Name, String Nickname, Integer Badness)
throws CreateException
// CMP Field Accessors -----------------------------------------------------
public abstract Integer getID();
public abstract void setID(Integer ID);
public abstract String getName();
public abstract void setName(String Name);
public abstract String getNickname();
public abstract void setNickname(String Nickname);
public abstract Integer getBadness();
public abstract void setBadness(Integer Badness);
// CMR Field Accessors -----------------------------------------------------
public abstract Collection getJobs();
public abstract void setJobs(Collection Jobs);
public abstract Organization getOrganization();
public abstract void setOrganization(Organization Organization);
// EJB callbacks -----------------------------------------------------------
public void setEntityContext(EntityContext ctx)
context = ctx;
public void unsetEntityContext()
context = null;
public void ejbRemove() {}
public void ejbLoad() {}
public void ejbStore() {}
public void ejbPassivate() {}
public void ejbActivate() {}
What are the changes to be made in this file so that the files work in weblogic
too?
Also, my ejb-jar.xml file has been changed to:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<display-name>Business Component CMP 2.0</display-name>
<enterprise-beans>
<entity>
<display-name>Gangster Entity Bean</display-name>
<ejb-name>GangsterEJB</ejb-name>
<local-home>com.sempire.builder.business_component.GangsterHome</local-home>
<local>com.sempire.builder.business_component.Gangster</local>
<ejb-class>com.sempire.builder.business_component.GangsterBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>GangsterEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>nickname</field-name></cmp-field>
<cmp-field><field-name>badness</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<resource-ref>
<res-ref-name>jdbc/GangsterDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM GangsterEJB AS a]]>
</ejb-ql>
</query>
</entity>
<entity>
<display-name>Organization Entity Bean</display-name>
<ejb-name>OrganizationEJB</ejb-name>
<local-home>com.sempire.builder.business_component.OrganizationHome</local-home>
<local>com.sempire.builder.business_component.Organization</local>
<ejb-class>com.sempire.builder.business_component.OrganizationBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>OrganizationEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>description</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<resource-ref>
<res-ref-name>jdbc/OrganizationDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM OrganizationEJB AS a]]>
</ejb-ql>
</query>
</entity>
<entity>
<display-name>Job Entity Bean</display-name>
<ejb-name>JobEJB</ejb-name>
<local-home>com.sempire.builder.business_component.JobHome</local-home>
<local>com.sempire.builder.business_component.Job</local>
<ejb-class>com.sempire.builder.business_component.JobBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>JobEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>score</field-name></cmp-field>
<cmp-field><field-name>setupCost</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<resource-ref>
<res-ref-name>jdbc/JobDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM JobEJB AS a]]>
</ejb-ql>
</query>
</entity>
</enterprise-beans>
<relationships>
<ejb-relation>
<ejb-relation-name>organization-memberGangsters</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>organization---memberGangsters</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>OrganizationEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>memberGangsters</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>memberGangsters---organization</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<cascade-delete/>
<relationship-role-source>
<ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>organization</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>gangsters-jobs</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>gangsters---jobs</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>jobs</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>jobs---gangsters</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>JobEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>gangsters</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>organization-theBoss</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>organization---theBoss</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>OrganizationEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>theBoss</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>theBoss---organization</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
</ejb-relationship-role>
</ejb-relation>
</relationships>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>GangsterEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>OrganizationEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>JobEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
My weblogic-ejb-jar.xml file has been changed to:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>GangsterEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/GangsterDataSource</res-ref-name>
<jndi-name>jdbc.GangsterDB</jndi-name>
</resource-description>
</reference-descriptor>
<local-jndi-name>Gangster</local-jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>OrganizationEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/OrganizationDataSource</res-ref-name>
<jndi-name>jdbc.Organization</jndi-name>
</resource-description>
</reference-descriptor>
<local-jndi-name>Organization</local-jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>JobEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/JobDataSource</res-ref-name>
<jndi-name>jdbcJob</jndi-name>
</resource-description>
</reference-descriptor>
<local-jndi-name>Job</local-jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
Please do let me know all the changes I need to make so that my application can
deploy in weblogic.
Thank You
RonakDave,
I am using weblogic 6.1 now and I am still getting the same problem.
Error:
The DataSource name with the JNDI name: Organization can not be located. Please
ensure that the DataSource has been deployed successfully and that the JNDI name
in your EJB Deployment descriptor is correct.
The Entity Bean files that I have used for JBoss are:
* GangsterBean.java
* Copyright (c) 2002 Sempire, Inc.
* All rights reserved.
* This software is the confidential and proprietary information
* of Sempire, Inc
* @ version 1.0
package com.sempire.builder.business_component;
import java.util.Collection;
import java.util.Set;
import javax.ejb.CreateException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.FinderException;
public abstract class GangsterBean implements EntityBean
private static int idgen = 1;
private EntityContext context;
public Integer ejbCreate( String Name, String Nickname, Integer Badness) throws
CreateException
setID(new Integer(idgen++));
setName(Name);
setNickname(Nickname);
setBadness(Badness);
return null;
public void ejbPostCreate( String Name, String Nickname, Integer Badness)
throws CreateException
// CMP Field Accessors -----------------------------------------------------
public abstract Integer getID();
public abstract void setID(Integer ID);
public abstract String getName();
public abstract void setName(String Name);
public abstract String getNickname();
public abstract void setNickname(String Nickname);
public abstract Integer getBadness();
public abstract void setBadness(Integer Badness);
// CMR Field Accessors -----------------------------------------------------
public abstract Collection getJobs();
public abstract void setJobs(Collection Jobs);
public abstract Organization getOrganization();
public abstract void setOrganization(Organization Organization);
// EJB callbacks -----------------------------------------------------------
public void setEntityContext(EntityContext ctx)
context = ctx;
public void unsetEntityContext()
context = null;
public void ejbRemove() {}
public void ejbLoad() {}
public void ejbStore() {}
public void ejbPassivate() {}
public void ejbActivate() {}
What are the changes to be made in this file so that the files work in weblogic
too?
Also, my ejb-jar.xml file has been changed to:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<display-name>Business Component CMP 2.0</display-name>
<enterprise-beans>
<entity>
<display-name>Gangster Entity Bean</display-name>
<ejb-name>GangsterEJB</ejb-name>
<local-home>com.sempire.builder.business_component.GangsterHome</local-home>
<local>com.sempire.builder.business_component.Gangster</local>
<ejb-class>com.sempire.builder.business_component.GangsterBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>GangsterEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>nickname</field-name></cmp-field>
<cmp-field><field-name>badness</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<resource-ref>
<res-ref-name>jdbc/GangsterDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM GangsterEJB AS a]]>
</ejb-ql>
</query>
</entity>
<entity>
<display-name>Organization Entity Bean</display-name>
<ejb-name>OrganizationEJB</ejb-name>
<local-home>com.sempire.builder.business_component.OrganizationHome</local-home>
<local>com.sempire.builder.business_component.Organization</local>
<ejb-class>com.sempire.builder.business_component.OrganizationBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>OrganizationEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>description</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<resource-ref>
<res-ref-name>jdbc/OrganizationDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM OrganizationEJB AS a]]>
</ejb-ql>
</query>
</entity>
<entity>
<display-name>Job Entity Bean</display-name>
<ejb-name>JobEJB</ejb-name>
<local-home>com.sempire.builder.business_component.JobHome</local-home>
<local>com.sempire.builder.business_component.Job</local>
<ejb-class>com.sempire.builder.business_component.JobBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>JobEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>score</field-name></cmp-field>
<cmp-field><field-name>setupCost</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<resource-ref>
<res-ref-name>jdbc/JobDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM JobEJB AS a]]>
</ejb-ql>
</query>
</entity>
</enterprise-beans>
<relationships>
<ejb-relation>
<ejb-relation-name>organization-memberGangsters</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>organization---memberGangsters</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>OrganizationEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>memberGangsters</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>memberGangsters---organization</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<cascade-delete/>
<relationship-role-source>
<ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>organization</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>gangsters-jobs</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>gangsters---jobs</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>jobs</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>jobs---gangsters</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>JobEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>gangsters</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>organization-theBoss</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>organization---theBoss</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>OrganizationEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>theBoss</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>theBoss---organization</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
</ejb-relationship-role>
</ejb-relation>
</relationships>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>GangsterEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>OrganizationEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>JobEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
My weblogic-ejb-jar.xml file has been changed to:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>GangsterEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/GangsterDataSource</res-ref-name>
<jndi-name>jdbc.GangsterDB</jndi-name>
</resource-description>
</reference-descriptor>
<local-jndi-name>Gangster</local-jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>OrganizationEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/OrganizationDataSource</res-ref-name>
<jndi-name>jdbc.Organization</jndi-name>
</resource-description>
</reference-descriptor>
<local-jndi-name>Organization</local-jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>JobEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/JobDataSource</res-ref-name>
<jndi-name>jdbcJob</jndi-name>
</resource-description>
</reference-descriptor>
<local-jndi-name>Job</local-jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
Please do let me know all the changes I need to make so that my application can
deploy in weblogic.
Thank You
Ronak -
Hello,
we had created a scenario file to jdbc. while sending file to Oracle DB, it shows error as "ORA-01861: literal does not match format string". we checked the literals and white spaces. still we have same problem. so i have doubt on DATE format. we are sending date from PI system as yyyyMMdd which is not supported by Oracle i think. So please provide the DATE format accepted by Oracle and how to pass from SAP PI mapping. it will be appreciable if provide Steps to do in mapping or UDF code sample.
Also in response status we get the error "ORA-00917: missing comma ". So plz let me know how to solve this issue.
Thanks in Advance.Hi
The date format for oracle is dd-MON-yyyy.
Please refer to blog below
/people/santhosh.kumarv/blog/2008/10/10/life-is-all-about-days-date-in-xi
/people/sarvesh.singh3/blog/2009/02/13/yes-it-is-possible-with-datetrans-function
Regards,
Deepak.
Edited by: Deepak Shah on May 21, 2010 3:35 PM -
Getting Error with date parameter field -"Invalid DATE"
Hi
I created a report with 9.2 version. And i created 2 date parameter fields in it. And within crystal reports it works fine.
But If, I call from the VS2005 crystalreport.net(report document) SDK , i am getting error as Invalid Date" enter a Date Value". Actually it is a dtp control. how can i modify it.<p>There's not enough details to get a good understanding of your scenario, but it sounds like you're using some kind of date control to retrieve the date value and pass it to the report's parameter field at runtime. </p><p>If this is correct, it sounds like the format of the date value from the control may not be what the report is expecting. To debug, I would first use hardcoded values when you set the report parameter fields to see what works. Then compare that to what the return value is from the control to see if they match. I suspect the formats differ. </p><p>I did a quick search on the BOBJ kbase and found a couple of articles that may help you. I recommend searching as there are lots of information on how to set parameter fields at runtime. </p><p><span style="margin-left: 5px"><a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2010247&sliceId=&dialogID=8582434&stateId=1 0 8584068" target="_blank">c2010247</a></span><span style="margin-left: 5px"><span style="margin-left: 5px"><a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2010251&sliceId=&dialogID=8582434&stateId=1 0 8584068" target="_blank">c2010251</a></span></span></p><p>-MJ</p>
-
Error with data transfer configuration in solution manager
Dear SAP Support
i have a problem when i enter a tcode solution_manager > goto > data transfer configuration in my sap solutin manager system. the error appear
The requested URL could not be retrieved
While trying to retrieve the URL: http://solman.wilmar.com:8000/sap/public/myssocntl?
The following error was encountered:
Unable to determine IP address from host name for solman.wilmar.com
The dnsserver returned:
Name Error: The domain name does not exist.
This means that:
The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.
Your cache administrator is webmaster.
Generated Sat, 15 Sep 2007 10:03:30 GMT by proxy (squid/2.5.STABLE11)
are there any solution so i can fix my problem above. thanks.Hi Herry,
Are you working in the same network?
Are you able to ping the domain?
Just an idea.
Regards, Ruediger -
Beware: conversion error with dates
When I converted my pdf to xlsx format, some dates in a table were not converted correctly. In the pdf file, the dates were in mm/dd/yyyy format, but if the day was between 1-12, Export PDF treated the date as if was in dd/mm/yyyy format. It couldn't do that for dates with day 13-31 because that would have been an invalid month so these dates were converted correctly. This problem does not occur when converting the pdf file to Word docx format.
Is this a known problem?Hi,
Would you send your PDF document to [email protected] as an email attachment?
I will check it from my end.Please add the link to this forum post for reference.
Regards,
Florence -
Excel 2013 Powerpivot datamodel error with DATE formula
Hello forum users and Excel guru's alike.
I have a question relating the datamodel in Excel 2013 Powerpivot. I am using a Dutch version of Excel (on Office 365) but formula's in Datamodel are all in English so I think most of you will understand the issue:
What I want to do: Take a date and adjust this date to incorparate a number of months that is added in a other column.
Example:
Start of contract date: 24-5-2014 (this is a date field in the datamodel and it is called [StartContract])
Contract duration in months: 10 (this is a number field in the datamodel and it is called [DurationInMonths])
Output: 24-03-2015
(this is the calculated field that doesn't work)
My current formula looks like this:
=DATE(YEAR([StartContract]);MONTH([StartContract]+[DurationInMonths]);DAY([StartContract]))
It shows an error as soon as I hit Enter. The formula works fine when I replace [DurationInMonths] with the value "10" or when I leave out "+[DurationInMonths]". But that isn't an option!
The following variation also doesn't work.
=DATE(YEAR([StartContract]);MONTH([StartContract])+[DurationInMonths];DAY([StartContract]))
Please, is there any one with a solution?
Kind regards,
Erik van HurckHi Tony,
I have tried your solution, to no succes I am sad to say.
I do agree that the formula works in Excel, but now switch over to the
PowerPivot Data model and try the formula there. And it will repport an error:
=DATE(year([StartDate]);month([StartDate]+[DurationInMonths]);DAY([StartDate]))
is the formula I used in the Datamodel.
The DurationInMonths field is:
Whole numbers and formatted as: General
The StartDate is:
Auto (Date) and formatted as: Short Date
For more Information I get this error:
Cannot query internal supporting structures for column "EndDate" because they depend on a column, relationship, or measure that is not processed. please refresh or recalculate the model. Maybe this link will help further:
http://office.microsoft.com/en-au/excel-help/upgrade-power-pivot-data-models-to-excel-2013-HA103356104.aspx
Maybe you are looking for
-
for some reason my itunes will not let me add any files to my library. it was working fine every day before today. all of my formats are in .mp3 form and they will not be added in either "add file" or "add folder". i tried redownloading itunes and re
-
How can you turn your computer back to the factory settings?
I wanted to reboot my laptop but when i didn't backup my files and then i just went and reboot my laptop and then my recovery disc two doesn't work and when i stop the rebooting and try to go back to the startup it said the bootmgr is missing, so i t
-
Appointments from Exchange 2010 show as Mail in Mailbox
I have a very frustrating issue with a single user on one of our post offices. For reasons unknown appointments sent to the user from Exchange 2010 appear as mail items instead of appointments within the mailbox. Other users on the same post office d
-
Please help...battery problem...PLEASE
i really need help in this one or i'll get f**ked...now, my boss's ipod was with me and i tried connecting it to my computer to charge it...when i cama to take it i found it very hot and not recognized in the computer and not trning on...I reseted it
-
Toottip plug inn as created in
hi, Application Express 4.0.2.00.07 DB: 11g i have downloaded the tool tip plug inn and have imported it in my application. i have searched the forum about it, but most places they used jquery to solve the problem. i want to use plsql instead of jque