The java error which i meet in the oracle 11g when i using jdm
I have finish a java data mining program,it can work in oracle 10g.But now ,i have to apply this program in oracle 11g.
What should i do to make it still work in oracle 11g?
The jar have been replaced with 11g's jar.But when i debug the program,the BuildTask's m_ programName is still "dmsys.build_program" and it should be "sys.build_program".
Then when run to the executeTask,the Error occurred.
**************the error**********************************
19:19:55,734 DEBUG AprioriExecuteUtil:248 - ---------------------------------------------------
19:19:55,734 DEBUG AprioriExecuteUtil:249 - --- Build Model ---
19:19:55,734 DEBUG AprioriExecuteUtil:250 - ---------------------------------------------------
19:21:52,328 ERROR AprioriExecuteUtil:114 - executeError:
java.lang.ArrayIndexOutOfBoundsException: 0
at oracle.dmt.jdm.task.OraBuildTask.mapJobArgs(OraBuildTask.java:410)
at oracle.dmt.jdm.base.OraTask.retrieveObjectFromDatabase(OraTask.java:535)
at oracle.dmt.jdm.base.OraTask.removeTaskContents(OraTask.java:229)
at oracle.dmt.jdm.base.OraTask.removeObjectFromDatabase(OraTask.java:214)
at oracle.dmt.jdm.resource.OraPersistanceManagerImpl.removeObject(OraPersistanceManagerImpl.java:297)
at oracle.dmt.jdm.resource.OraConnection.removeObject(OraConnection.java:389)
at oracle.dmt.jdm.OraMiningObject.saveObjectInDatabase(OraMiningObject.java:150)
at oracle.dmt.jdm.resource.OraPersistanceManagerImpl.saveObject(OraPersistanceManagerImpl.java:245)
at oracle.dmt.jdm.resource.OraConnection.saveObject(OraConnection.java:383)
at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.executeTask(AprioriExecuteUtil.java:324)
at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.buildModel(AprioriExecuteUtil.java:303)
at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.execute(AprioriExecuteUtil.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
So,if there someone know the reason,please tell me how to solve this error.Thank you!!!!
Thanks for your response!
The JDK version is 1.6.0_02.
DB version is 11.2.0.1.0.
This is the code.
public class AprioriExecuteUtil {
private static Logger logger=Logger.getLogger(AprioriExecuteUtil.class);
* 连接数据库对象
private static Connection m_dmeConn;
private static ConnectionFactory m_dmeConnFactory;
* 在进程中使用的工厂对象
private static PhysicalDataSetFactory m_pdsFactory;
private static PhysicalAttributeFactory m_paFactory;
private static AssociationSettingsFactory m_assoFactory;
private static RulesFilterFactory m_filterFactory;
private static BuildTaskFactory m_buildFactory;
* 全局常量
private static DecimalFormat m_df = new DecimalFormat("##.####");
* modelId:数据挖掘模型Id
private String modelId = "";
*<p>Title: execute</p>
*<p>Description:执行数据挖掘,响应页面上的执行按钮</p>
* @param @return 设定文件
* @return String 返回类型
* @throws
public String execute(){
try{
dataminingManager().updateModelById(modelId, "schedule", "10");
dataminingManager().updateModelById(modelId, "startTime", DateUtil.getNow());
dataminingManager().updateModelById(modelId, "endTime", "");
dataminingManager().deleteModelRules(modelId,"TblSpModelRulesAr");
m_dmeConnFactory = new OraConnectionFactory();
ConnectionSpec connSpec = m_dmeConnFactory.getConnectionSpec();
connSpec.setURI("jdbc:oracle:thin:@"+SystemParamUtil.getSystemParameValue("数据挖掘.数据库.地址"));
connSpec.setName(SystemParamUtil.getSystemParameValue("数据挖掘.数据库.用户名"));
connSpec.setPassword(SystemParamUtil.getSystemParameValue("数据挖掘.数据库.密码"));
m_dmeConn = m_dmeConnFactory.getConnection(connSpec);
clean();
initFactories();
prepareData();
dataminingManager().updateModelById(modelId, "schedule","20");
buildModel();
dataminingManager().updateModelById(modelId, "schedule","100");
dataminingManager().updateModelById(modelId, "endTime", DateUtil.getNow());
clean();
return null;
}catch(Exception e) {
logger.error("executeError:",e);
return "error";
finally {
try {
m_dmeConn.close();
} catch(Exception e) {
logger.error("closeConnectError:",e);
return "error";
*<p>Title: clean</p>
*<p>Description:清理所有之前构造的临时表</p>
* @param 设定文件
* @return void 返回类型
* @throws
public void clean(){
java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
Statement stmt = null;
try{
stmt = dbConn.createStatement();
StringBuffer sql = new StringBuffer("select object_name from dba_objects where object_type in('TABLE','VIEW') and object_name like '%DM$%' ");
sql.append("and owner = '").append(SystemParamUtil.getSystemParameValue("数据挖掘.数据库.用户名")).append("'");
logger.info(sql.toString());
ResultSet rs = stmt.executeQuery(sql.toString());
while(rs.next()){
try{
stmt.executeUpdate("DROP VIEW "+rs.getString("object_name"));
}catch(SQLException e){}
try{
stmt.executeUpdate("DROP VIEW SALES_TRANS_CUST_V");
} catch(SQLException e) {}
try{
stmt.executeUpdate("DROP VIEW SALES_TRANS_CUST_AR_V");
} catch(SQLException e) {}
try {
m_dmeConn.removeObject("arModel_jdm", NamedObject.model );
}catch(JDMException e) {}
try {
m_dmeConn.removeObject("arSettings_jdm", NamedObject.buildSettings );
}catch(JDMException e) {}
try {
m_dmeConn.removeObject("arBuildData_jdm", NamedObject.physicalDataSet );
}catch(JDMException e) {}
try {
m_dmeConn.removeObject("arBuildTask_jdm", NamedObject.task );
}catch(JDMException e) {}
}catch(SQLException e) {
logger.error("cleanViewError:",e);
}finally{
try {
stmt.close();
}catch(Exception e){
logger.error("closeConnectError:",e);
*<p>Title: initFactories</p>
*<p>Description:初始化挖掘使用的工厂</p>
* @param @throws JDMException 设定文件
* @return void 返回类型
* @throws
public void initFactories() throws JDMException{
m_pdsFactory = (PhysicalDataSetFactory)m_dmeConn.getFactory("javax.datamining.data.PhysicalDataSet");
m_paFactory = (PhysicalAttributeFactory)m_dmeConn.getFactory("javax.datamining.data.PhysicalAttribute");
m_assoFactory = (AssociationSettingsFactory)m_dmeConn.getFactory("javax.datamining.association.AssociationSettings");
m_buildFactory = (BuildTaskFactory)m_dmeConn.getFactory("javax.datamining.task.BuildTask");
m_filterFactory = (RulesFilterFactory)m_dmeConn.getFactory("javax.datamining.association.RulesFilter");
*<p>Title: prepareData</p>
*<p>Description:准备数据</p>
* @param @throws Exception 设定文件
* @return void 返回类型
* @throws
public void prepareData() throws Exception{
logger.debug("---------------------------------------------------");
logger.debug("--- Prepare Data ---");
logger.debug("---------------------------------------------------");
this.createBuildData();
this.executeColumnFormatTransformation();
*<p>Title: createBuildData</p>
*<p>Description:用之前选择的产品构造视图</p>
* @param @throws Exception 设定文件
* @return void 返回类型
* @throws
public void createBuildData() throws Exception{
logger.debug("Create build data view...");
java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
PreparedStatement pStmt = null;
String custProductTableName= SystemParamUtil.getSystemParameValue("数据挖掘.订购关系表.表名");
TblSpDataMiningModel dataMiningmodel = dataminingManager().getDataMiningModel(modelId);
StringBuffer createView = new StringBuffer("CREATE VIEW SALES_TRANS_CUST_V AS SELECT cp.user_no as USER_NO, cp.product_id as PRODUCT_ID, 1 has_it ");
createView.append(" from ").append(custProductTableName).append(" cp ");
createView.append(" where cp.area_code = '").append(dataMiningmodel.getArea()).append("' GROUP BY USER_NO, PRODUCT_ID");
logger.debug(createView.toString());
pStmt = dbConn.prepareStatement(createView.toString());
pStmt.execute();
public void executeColumnFormatTransformation() throws Exception{
logger.debug("Execute column format transformation...");
StringBuffer createNestedColumn = new StringBuffer("CREATE VIEW SALES_TRANS_CUST_AR_V as ");
createNestedColumn.append(" SELECT D.USER_NO,CAST(MULTISET(SELECT DM_Nested_Numerical(C.PRODUCT_ID, has_it) FROM SALES_TRANS_CUST_V C ");
createNestedColumn.append(" WHERE C.USER_NO = D.USER_NO) AS DM_Nested_Numericals) CUSTPRODS FROM SALES_TRANS_CUST_V D group by D.USER_NO");
java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
PreparedStatement pStmt = null;
logger.debug(createNestedColumn.toString());
pStmt = dbConn.prepareStatement(createNestedColumn.toString());
pStmt.execute();
*<p>Title: buildModel</p>
*<p>Description:建立模型</p>
* @param @throws JDMException 设定文件
* @return void 返回类型
* @throws
public void buildModel() throws Exception{
logger.debug("---------------------------------------------------");
logger.debug("--- Build Model ---");
logger.debug("---------------------------------------------------");
PhysicalDataSet buildData = m_pdsFactory.create( "SALES_TRANS_CUST_AR_V", false );
PhysicalAttribute pa = m_paFactory.create("USER_NO", AttributeDataType.integerType, PhysicalAttributeRole.caseId );
buildData.addAttribute(pa);
m_dmeConn.saveObject("arBuildData_jdm", buildData, false );
AssociationSettings buildSettings = m_assoFactory.create();
//计算支持度和可信度以及最多分析多少个产品
/*java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
PreparedStatement pStmt = null;
String custProductTableName= SystemParamUtil.getSystemParameValue("数据挖掘.订购关系表.表名");
TblSpDataMiningModel dataMiningModel = dataminingManager().getDataMiningModel(modelId);
StringBuffer sql = new StringBuffer("select (trunc((count(*) /(count(distinct user_no) * count(distinct product_id))) * 50,2.2)) as destiny ");
sql.append(" from ").append(custProductTableName).append(" cp ");
sql.append(" where cp.area_desc = '").append(dataMiningModel.getArea()).append("'");
logger.debug(sql.toString());
pStmt = dbConn.prepareStatement(sql.toString());
ResultSet res = pStmt.executeQuery();
Float density = 0F;
while(res.next()){
density = res.getFloat("destiny");
if(density!=0){
buildSettings.setMinSupport(density);
buildSettings.setMinConfidence(density);
logger.debug("density = "+density);
}else{
buildSettings.setMinSupport(10f);
buildSettings.setMinConfidence(10f);
sql = new StringBuffer("select round(avg(COUNT(product_id))) as maxLength ");
sql.append(" from ").append(custProductTableName).append(" cp ");
sql.append(" where cp.area_desc = '").append(dataMiningModel.getArea()).append("' group by user_no ");
logger.debug(sql.toString());
pStmt = dbConn.prepareStatement(sql.toString());
res = pStmt.executeQuery();
int maxProductLength = 0;
while(res.next()){
maxProductLength = res.getInt("maxLength");
if(maxProductLength != 0 && maxProductLength >= 2){
buildSettings.setMaxRuleLength(maxProductLength);
logger.debug("maxProductLength = "+maxProductLength);
}else{
buildSettings.setMaxRuleLength(3);
logger.debug("maxProductLength = "+maxProductLength+" change to 3");
buildSettings.setMinSupport(1);
buildSettings.setMinConfidence(10);
buildSettings.setMaxRuleLength(3);
m_dmeConn.saveObject("arSettings_jdm", buildSettings, true );
BuildTask buildTask = m_buildFactory.create("arBuildData_jdm","arSettings_jdm","arModel_jdm");
buildTask.setDescription("arBuildTask_jdm" );
executeTask(buildTask,"arBuildTask_jdm");
AssociationModel model = (AssociationModel)m_dmeConn.retrieveObject("arModel_jdm", NamedObject.model);
if(buildSettings == null){
throw new Exception("Failure to restore build settings.");
}else{
displayAssociationRules( model );
*<p>Title: executeTask</p>
*<p>Description:执行任务</p>
* @param @param taskObj
* @param @param taskName
* @param @return
* @param @throws JDMException 设定文件
* @return boolean 返回类型
* @throws
public boolean executeTask(Task taskObj, String taskName) throws JDMException {
boolean isTaskSuccess = false;
m_dmeConn.saveObject(taskName, taskObj, true);
ExecutionHandle execHandle = m_dmeConn.execute(taskName);
logger.debug(taskName + " is started, please wait. ");
ExecutionStatus status = execHandle.waitForCompletion(Integer.MAX_VALUE);
isTaskSuccess = status.getState().equals(ExecutionState.success);
if( isTaskSuccess ) {
logger.debug(taskName + " is successful.");
} else {
logger.debug(taskName + " is failed.\nFailure Description: " +
status.getDescription() );
return isTaskSuccess;
247*******************the buildTask's m_programName is “dmsys.build_program” but it should be "sys.build_program" when i contact the 11g.I have tried many ways to compile the program,but it still can't be changed.
270*******************m_dmeConn.saveObject(taskName, taskObj, true);
the error:java.lang.ArrayIndexOutOfBoundsException: 0
If you need the data table
These are the sql :
-- Create table
create table TBL_MINING_CUST_HB
mobile_tele_no VARCHAR2(40),
area VARCHAR2(4),
user_dinner VARCHAR2(200),
re_flag VARCHAR2(2),
re_type VARCHAR2(40),
is_3gzd VARCHAR2(2),
arpu NUMBER,
net_on_duration NUMBER,
if_ring VARCHAR2(2),
if_gprs VARCHAR2(2),
gprs_fee NUMBER,
if_gprs_free VARCHAR2(2),
if_gprs_pkg VARCHAR2(2),
sms_fee NUMBER,
if_sms_free VARCHAR2(2),
if_sms_pkg VARCHAR2(2),
mms_fee NUMBER,
if_mms_pkg VARCHAR2(2),
if_mms_free VARCHAR2(2),
sen_fee NUMBER,
sen_in_fee NUMBER,
sen_out_fee NUMBER,
sen_free NUMBER,
sen_fact NUMBER,
one_cnt_10010 NUMBER,
three_cnt_10010 NUMBER,
one_cancel_business VARCHAR2(4000),
three_cancel_business VARCHAR2(4000),
sp VARCHAR2(4000)
tablespace CSS_APP
pctfree 10
initrans 1
maxtrans 255
storage
initial 64
next 1
minextents 1
maxextents unlimited
-- Add comments to the columns
comment on column TBL_MINING_CUST_HB.mobile_tele_no
is '电话号码';
comment on column TBL_MINING_CUST_HB.area
is '地市';
comment on column TBL_MINING_CUST_HB.user_dinner
is '用户套餐';
comment on column TBL_MINING_CUST_HB.re_flag
is '是否融合业务;1-是;0-否';
comment on column TBL_MINING_CUST_HB.re_type
is '套餐类别;2G后付费、2GOCS、3G后付费、3GOCS';
comment on column TBL_MINING_CUST_HB.is_3gzd
is '是否为3G终端(1-是,0非)';
comment on column TBL_MINING_CUST_HB.arpu
is 'ARPU;单位:元';
comment on column TBL_MINING_CUST_HB.net_on_duration
is '在网时长;单位:月';
comment on column TBL_MINING_CUST_HB.if_ring
is '是否开通炫铃功能,1-是;0-否';
comment on column TBL_MINING_CUST_HB.if_gprs
is '是否开通GPRS功能,1-是;0-否';
comment on column TBL_MINING_CUST_HB.gprs_fee
is 'GPRS流量使用情况;单位: M';
comment on column TBL_MINING_CUST_HB.if_gprs_free
is '套餐内是否自带优惠或赠送流量;1-是;0-否';
comment on column TBL_MINING_CUST_HB.if_gprs_pkg
is '是否定制优惠流量包;1-是;0-否';
comment on column TBL_MINING_CUST_HB.sms_fee
is '短信使用情况;单位:条';
comment on column TBL_MINING_CUST_HB.if_sms_free
is '套餐内是否自带优惠或赠送短信;1-是;0-否';
comment on column TBL_MINING_CUST_HB.if_sms_pkg
is '是否定制优惠短信包;1-是;0-否';
comment on column TBL_MINING_CUST_HB.mms_fee
is '彩信使用情况;单位:条';
comment on column TBL_MINING_CUST_HB.if_mms_pkg
is '是否定制优惠彩信包;1-是;0-否';
comment on column TBL_MINING_CUST_HB.if_mms_free
is '套餐内是否自带优惠或赠送彩信;1-是;0-否';
comment on column TBL_MINING_CUST_HB.sen_fee
is '本地长途合计分钟数;单位:分钟';
comment on column TBL_MINING_CUST_HB.sen_in_fee
is '本地长途省内长途;单位:分钟';
comment on column TBL_MINING_CUST_HB.sen_out_fee
is '本地长途省际长途;单位:分钟';
comment on column TBL_MINING_CUST_HB.sen_free
is '本地通话时长本地优惠分钟数;单位:分钟';
comment on column TBL_MINING_CUST_HB.sen_fact
is '本地通话时长实际使用分钟数:单位:分钟';
comment on column TBL_MINING_CUST_HB.one_cnt_10010
is '1月内拨打10010次数';
comment on column TBL_MINING_CUST_HB.three_cnt_10010
is '3月内拨打10010次数';
comment on column TBL_MINING_CUST_HB.one_cancel_business
is '1月内取消的增值业务';
comment on column TBL_MINING_CUST_HB.three_cancel_business
is '3月内取消的增值业务名称';
comment on column TBL_MINING_CUST_HB.sp
is '已开通的增值业务名称';
-- Create table
create table TBL_MINING_CUST_PRODUCT_HB
product_name VARCHAR2(1000),
product_id VARCHAR2(40),
user_no NUMBER,
area_code VARCHAR2(8)
tablespace CSS_APP
pctfree 10
initrans 1
maxtrans 255
storage
initial 16
next 1
minextents 1
maxextents unlimited
-- Create/Recreate indexes
create bitmap index IDX_PRODUCT_ID on TBL_MINING_CUST_PRODUCT_HB (PRODUCT_ID)
tablespace CSS_APP
pctfree 10
initrans 2
maxtrans 255
storage
initial 64K
next 1M
minextents 1
maxextents unlimited
create bitmap index IDX_USER_NO on TBL_MINING_CUST_PRODUCT_HB (USER_NO)
tablespace CSS_APP
pctfree 10
initrans 2
maxtrans 255
storage
initial 64K
next 1M
minextents 1
maxextents unlimited
-- Create table
create table TBL_MINING_PRODUCT_HB
product_name VARCHAR2(1000),
product_id VARCHAR2(30) not null,
coverage_rate NUMBER
tablespace CSS_APP
pctfree 10
initrans 1
maxtrans 255
storage
initial 16
next 1
minextents 1
maxextents unlimited
-- Add comments to the columns
comment on column TBL_MINING_PRODUCT_HB.product_name
is '产品名称';
comment on column TBL_MINING_PRODUCT_HB.product_id
is '产品ID';
comment on column TBL_MINING_PRODUCT_HB.coverage_rate
is '产品覆盖率=某一个产品的购买总数/所有产品的购买总数';
-- Create/Recreate primary, unique and foreign key constraints
alter table TBL_MINING_PRODUCT_HB
add constraint PK_PRODUCT_ID primary key (PRODUCT_ID)
using index
tablespace CSS_APP
pctfree 10
initrans 2
maxtrans 255
storage
initial 64K
next 1M
minextents 1
maxextents unlimited
Thanks!
Similar Messages
-
Hi, so today i decided to update my iPhone 4 from ios 4.3.5 to ios 6.1. But it keeps giving me the 3194 error, which means my device is somewhat not eligible. So can i update or not? since apple has stopped signing ios 5...
OMG guys, i got it to work. Here's how:
1. kill everything on your iphone 4, settings, contents...
2. now uninstall itunes and install the latest one again
3. now update
Good luck everyone
<Edited By Host> -
when I try to open seeded VO.xml from Jdeveloper it is giving below error. Can any one please help me out.
Warning: There are Java errors for this object. The wizard will be read only until they are corrected.
R12 version 12.1.3
Jdev patchp9879989_R12_GENERIC.zip
Thanks
Venkata .THi Venkata,
Same thing happening to me, R12.1.3. Please let me know if you find anything on this.
I tried some steps in this forums related to this, but no change. however I am not worried, customization works perfect after extension, but wanted to know the reason.
Thx.. -
The best methodolog to debug the java errors
What is the best methodolog to debug the java errors?
What are steps we need to take and how do we proceed.
and how to solve it?Hi Kadam,
Are these errors related to your use of Coherence? If not, I would point you to http://www.javaranch.com or other similar forum sites dedicated to supporting Java itself.
Later,
Rob Misek
Tangosol, Inc. -
Warning: There are java errors for this object. The wizar will be read-only
I migrate JDev9 to JDev10 and if open any module show message:
"Warning: There are java errors for this object. The wizard will be read-only util they are corrected."[Solved, sort of] view objects read only mode
The Oracle fix the problem?
Message was edited by:
oracle_user7 -
Do I need the 'java-polling-amf in my services-config.xml if I'm using coldfusion
Do I need the 'java-polling-amf in my services-config.xml if I'm using coldfusion?
Im using IntelliJ IDEA with a flex project and for some reason its stopping comilation with this error:
[SUITE (Flex Application 1)] flex.messaging.config.ConfigurationException: The services configuration includes a channel-definition 'java-polling-amf' that has an endpoint with a context.root token but a context root has not been defined. Please specify a context-root compiler argument.
when I was using flex builder with CF builder I never needed to specify the context.rootI don't use IDEA, so I don't know what kind of configuration settings it has for Flex project development.
You don't need the java-polling-amf channel for CF development. By default, CF development uses CF-specific channels:
my-cfamf
cf-polling-amf
my-cfamf-secure
any custom channels you've created yourself for CF to use
That said, all the channels require a context root setting for your project to compile properly. If you still have Flash Builder handy, take a look at your compiler switches for a project there to see what you're missing in IDEA.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/ -
Hi All,
this is the first time iv had to post on here on a forum since ive been doing IT but here goes.
Server background:
SBS 2011
Exchange 2010 SP3 RU6
Installed 2 years ago and has run relatively smooth since installation
Possible Cause: a recent application that had created a virtual directory in IIS.
Issue:
A user recently reported an issue with Outlook Anywhere, i did an exchange connection test and reported the following error
The RPC_S_SERVER_UNAVAILABLE error (0x6ba) was thrown by the RPC Runtime process.
Elapsed Time: 3834 ms.
Fixes Tried so far
- Reg fix for ports 6001,6002,6004
- Telnet 127.0.0.1 6001 all returns expected results
- Disable RPC then Re-enable via the management console
-Ran fix my network wizard which has shown an error in compenent 3 which it fixed
Component ID #3
If the Fix My network wizard shows that component ID #3 is broken, this means that within IIS the RPC virtual directory settings are incorrect.
Continuing to fix this error within the wizard will correct the RPC virtual directory to support both Basic and NTLM authentication to this virtual directory.
Any suggestions would be great as im running out of ideas, i have thought about rebuilding outlook anywhere but unsure of the implications on an SBSHi,
In order to check whether it is an RPC Virtual Directory issue, you can open IE and input:
Https://mail.domain.com/RPC/RPCProxy.dll
After inputting the credential, the expected result is a blank page. If not, I means the issue resides on the RPC VD. You can try rebuilding the RPC VD for the first try.
Thanks,
Simon Wu
TechNet Community Support -
Hi all ,
Im getting the below error , actually recently i created my own custom table zstudent, later i wrote select query to fetch data from the same and dump at internal table and then bind this to the table node.
But im getting below error, even i removed the select query still same error is occuring.
Error when processing your request
What has happened?
The URL http://********00.*****b.com:8000/sap/bc/webdynpro/sap/zdemo_student/ was not called due to an error.
Note
The following error text was processed in the system IDS : Access via 'NULL' object reference not possible.
The error occurred on the application server axsids00_IDS_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: WDDOINIT of program /1BCWDY/YUSM2Q74A826Y0JY1I4V==CP
Method: IF_WDR_COMPONENT_DELEGATE~WD_DO_INIT of program /1BCWDY/YUSM2Q74A826Y0JY1I4V==CP
Method: DO_INIT of program CL_WDR_DELEGATING_COMPONENT===CP
Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP
Method: INIT_CONTROLLER of program CL_WDR_COMPONENT==============CP
Method: INIT of program CL_WDR_CONTROLLER=============CP
Method: INIT of program CL_WDR_CLIENT_COMPONENT=======CP
Method: INIT of program CL_WDR_CLIENT_APPLICATION=====CP
Method: IF_WDR_RUNTIME~CREATE of program CL_WDR_MAIN_TASK==============CP
Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CPThanks Rama,
Acutally i accidentally commented the lo_nd_student = wd_context ....etc
this line was commented .
i have one small requirement to fetch data from local customised table and fill the same to internal table and bind that to table node.
my table node is student having attributes as name , city and number , all are of type strings.
now i created one custom table zstudent having ID - char of length 10,
name of type string
city of type string
num of type string
i have inserted records
but when i use select query to fill data from this zstudent to my internal table of type lt_student type wd_this->elements_student ,
im getting same above error. -
I have the b200 error and can't get the cartirdges to move out so I can change it.
I have a MX850 cannon. I have the b200 error and can see that the middle cartridge is empty but I can't get the ink cartridge holder tomove out. I have tried with power off but the ink cartridge holder won't move out.
Hi ernja.
The B200 error is a generic internal error code and could mean one of many things. Based on this, your PIXMA MX850 would require service. It is recommended that you contact live technical support . There is NO charge for this call.
Please dial 1-866-261-9362, Monday - Friday 10:00 a.m. - 10:00 p.m. ET (excluding holidays).
Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well. -
Fetch the netprice from the validity period which always matches with the
Let me describe the same.
Suppose the PO creation date is 04.07.2007
The conditions for an item in a contract for the PO are as follows;
1. Validity from 04.07.2007 validity to 04.07.2007 Netprice = 100.00
2. Validity from 05.07.2007 validity to 31.12.9999 Netprice = 200.00
We need to always fetch the netprice from the validity period which always matches with the PO creation date. here the value 100.00 should be the correct netpr as the PO creation date matches with the first validity period.
But the program is fetching the netprice 200.000 which belongs to the second validity period. That is beacuse the select statement which fetches the data for contracts collects on the basis of EKKO-kdate and ekko-kdtab.the fields kdate and kdtab retrieves the validity period of the contract which is from 04.07.2007 to 31.072007. This data is then used to retrieve the netpr data from EKPO and it fetched 200.00 as it retrives the netprice of current data in contract validity and h not with respect to PO creation date.
This data is then used to fetch the get the netpr data from EKPO.
what we need is the netprice for that validity period of item(Conditions) that matches with the PO creation date..
Below is the code where I'm selecting the data from ekko and ekpo for the contracts data..Can you please add the code snippet to the below attachesd subroutine to get the required data from KONV and KONP so that we can retrieve the correct Netprice.
FORM select_contracts USING p_s_cebeln LIKE s_cebeln[]
p_c_k_bstyp TYPE ebstyp
p_p_bukrs TYPE bukrs
p_p_ekorg TYPE ekorg
p_p_ekgrp TYPE bkgrp
*Begin of Mod-004
fp_p_cernam type ty_r_ernam
p_p_cernam TYPE ernam
*End of Mod-004
p_s_werks LIKE s_werks[]
p_s_matnr LIKE s_matnr[]
p_s_lifnr LIKE s_lifnr[]
p_s_val_dt LIKE s_val_dt[].
*mod-002
data : l_amount type BAPICURR_D, " Net price
l_waers TYPE waers, " Currency Key
l_eff_amount type BAPICURR_D. " Effective value
data: l_v_netpr type bprei.
*mod-002
SELECT ebeln
bukrs
bstyp
aedat
ernam
lifnr
zterm
ekorg
ekgrp
waers
wkurs
kdatb
kdate
inco1
INTO TABLE i_ekko
FROM ekko
WHERE ebeln IN p_s_cebeln
AND bstyp EQ p_c_k_bstyp
AND bukrs EQ p_p_bukrs
AND ekorg EQ p_p_ekorg
AND ekgrp EQ p_p_ekgrp
*Begin of Mod-004
AND ernam EQ p_p_cernam
AND ernam IN fp_p_cernam
*End of Mod-004
AND lifnr IN p_s_lifnr
AND ( kdatb IN p_s_val_dt OR kdate IN p_s_val_dt ).
IF sy-subrc EQ 0.
Populates internal table i_ekpo using EKPO table.
SELECT ebeln
ebelp
loekz
txz01
matnr
werks
ktmng
menge
meins
bprme
netpr
peinh
webaz
mwskz
uebto
untto
erekz
pstyp
knttp
repos
webre
konnr
ktpnr
ean11
effwr
xersy
aedat
prdat
INTO TABLE i_ekpo
FROM ekpo
FOR ALL ENTRIES IN i_ekko
WHERE ebeln = i_ekko-ebeln
and aedat = i_ekko-aedat
AND werks IN p_s_werks
AND matnr IN p_s_matnr.
LOOP AT i_ekpo INTO rec_ekpo.
MOVE rec_ekpo-ebeln TO rec_contr-ebeln.
MOVE rec_ekpo-ebelp TO rec_contr-ebelp.
MOVE rec_ekpo-loekz TO rec_contr-loekz.
MOVE rec_ekpo-txz01 TO rec_contr-txz01.
MOVE rec_ekpo-matnr TO rec_contr-matnr.
MOVE rec_ekpo-werks TO rec_contr-werks.
MOVE rec_ekpo-ktmng TO rec_contr-ktmng.
MOVE rec_ekpo-menge TO rec_contr-menge.
MOVE rec_ekpo-meins TO rec_contr-meins.
MOVE rec_ekpo-bprme TO rec_contr-bprme.
MOVE rec_ekpo-netpr TO rec_contr-netpr.
move l_v_netpr TO rec_contr-netpr.
mod-002
read table i_ekko into rec_ekko with key
ebeln = rec_ekpo-ebeln.
l_waers = rec_ekko-waers.
CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
EXPORTING
currency = l_waers
amount_internal = rec_contr-netpr
IMPORTING
AMOUNT_EXTERNAL = l_amount.
rec_contr-netpr = l_amount.
mod-002
MOVE rec_ekpo-peinh TO rec_contr-peinh.
MOVE rec_ekpo-webaz TO rec_contr-webaz.
MOVE rec_ekpo-mwskz TO rec_contr-mwskz.
MOVE rec_ekpo-uebto TO rec_contr-uebto.
MOVE rec_ekpo-untto TO rec_contr-untto.
MOVE rec_ekpo-erekz TO rec_contr-erekz.
MOVE rec_ekpo-pstyp TO rec_contr-pstyp.
MOVE rec_ekpo-knttp TO rec_contr-knttp.
MOVE rec_ekpo-repos TO rec_contr-repos.
MOVE rec_ekpo-webre TO rec_contr-webre.
MOVE rec_ekpo-konnr TO rec_contr-konnr.
MOVE rec_ekpo-ktpnr TO rec_contr-ktpnr.
MOVE rec_ekpo-ean11 TO rec_contr-ean11.
MOVE rec_ekpo-effwr TO rec_contr-effwr.
mod-002
CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
EXPORTING
currency = l_waers
amount_internal = rec_contr-effwr
IMPORTING
AMOUNT_EXTERNAL = l_eff_amount.
rec_contr-effwr = l_eff_amount.
*mod-002
MOVE rec_ekpo-xersy TO rec_contr-xersy.
APPEND rec_contr TO i_contr.
CLEAR: rec_ekpo,rec_contr.
mod-002
CLEAR : rec_ekko,l_amount, l_eff_amount,l_waers.
mod-002
ENDLOOP.
Modifying i_contr using i_ekko.
SORT i_ekko BY ebeln.
LOOP AT i_contr INTO rec_contr.
READ TABLE i_ekko INTO rec_ekko WITH KEY
ebeln = rec_contr-ebeln
BINARY SEARCH.
MOVE rec_ekko-bukrs TO rec_contr-bukrs.
MOVE rec_ekko-bstyp TO rec_contr-bstyp.
MOVE rec_ekko-aedat TO rec_contr-aedat.
MOVE rec_ekko-ernam TO rec_contr-ernam.
MOVE rec_ekko-lifnr TO rec_contr-lifnr.
MOVE rec_ekko-zterm TO rec_contr-zterm.
MOVE rec_ekko-ekorg TO rec_contr-ekorg.
MOVE rec_ekko-ekgrp TO rec_contr-ekgrp.
MOVE rec_ekko-waers TO rec_contr-waers.
MOVE rec_ekko-wkurs TO rec_contr-wkurs.
MOVE rec_ekko-kdatb TO rec_contr-kdatb.
MOVE rec_ekko-kdate TO rec_contr-kdate.
MOVE rec_ekko-inco1 TO rec_contr-inco1.
MODIFY i_contr FROM rec_contr.
ENDLOOP.
ENDIF.
REFRESH: i_ekko,
i_ekpo.
CLEAR : rec_ekko,
rec_ekpo,
rec_contr.
ENDFORM. "select_contracts
Thanks.Hi,
Please get the valid condition ( based on date ) from A016 (MK & LPA). With the appropriate KNUMH read the Condition header. You can access the different condition items viz., PB00, RA00 etc., for the values from table KONP. Further if you have Value scales / Quantity scales, you can read the data from KONM, KONW.
An additional tips: in KONP, if you have a condition like RA00 - Rebate, the value will be multiplied by 10 and saven in database to accomodate the discount to the third decimal.
I could not completely understand your requirements like nature of development ( Is it a Report / SAP Script ??) you are working etc., so that I could help you precisely.
Hope this helps,
Best Regards, Murugesh AS
Message was edited by:
Murugesh Arcot -
Does the java 1.4.2 sdk install the Java Runtime Environment twice?
I just installed this and I noticed that it appears I have two copies of the JRE one in C:\Program Files\Java\j2re1.4.2 and one in C:\j2sdk1.4.2\jre\
The contents of both folders look identical to me. Did the SDK install two copies? Did one copy come with Windows XP or Service Pack 1? In Add/Remove Programs there is one entry for the Java Runtime Environment and one for the SDK. I'd like to get rid of one of the copies of the JRE if possible. Thanks,
OllieThe copy in Program Files is likely the Java plug-in used with your web browser. I only have 1.3.1 installed so I can't positively confirm your 1.4 installation. Under Control Panels, you should have a Java Plug-in control.
-
Make sure that your bean is implementing the serializable interface and that
you are accessing the bean from the session with the same name.
Bryan
"Sandeep Suri" <[email protected]> wrote in message
news:[email protected]..
Hi, I have quick question about use of USEBEAN tag in SP2. When I
specify a scope of SESSION for the java bean, it does not keep the
values that I set for variable in the bean persistent.Thanks,Sonny
Try our New Web Based Forum at http://softwareforum.sun.com
Includes Access to our Product Knowledge Base! -
Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?
Not a lot of details here, but my guess is this isn't working for you because you are wiring in the task to the Active Channels Property and not the actual Channel Name. I have attatched a screenshot of what I believe you are trying to do. The Task has 2 channels in it, so I need to index off one of the channels and wire it into the active channels input of the Channel Property node. Then I can read information about that channel
Attachments:
channel_name.JPG 69 KB -
How do i get the java applet to stop appearing on the dock?
how do i get the java applet to stop appearing on the dock? it seems to do this for pop-up windows. also, the text on the popup window is different, how can I change that to normal? this all started when i loaded MAC OS X 10.6.8
You could try to block popup windows.
Safari / Preferences / Security
Also, go to Safari / Preferences / Extensions and clean out everything there. -
How to hide the window/canvas which is placed on the form?
Hi,
We have a bussiness requirement to hide the canvas/window which is present in the standard form.
The standard form already contains the Window/canvas,we want to hide it without disturbing its functionality so that it is not seen on the form when it forms.
Thans in adv.i tried above options i.e :-
1)
show_view('ORDER_BASIC');
GO_ITEM('ADDRESSSES.SHIP_TO_CONTACT_MIR2');
hide_view('ADDRESSES');
But may the block addresses resides on the canvas addresses ?
and ans to this que is ya block addresses reside on canvas addresses
2)i cant hide_window as that window has many canvases attached to it.
I am writing this code in WHEN-NEW-FORM-INSTANCE..hope its right??
Please let me know if its not the correct trigger to write the code...
Maybe you are looking for
-
Time MAchine won't back up due to not enough space, but there is
TIme Machine won't back up. Displays this: Actual capacity of the external backup drive is 999.68 GB and available is 135 gb . The imac internal HD capacity is 999.01GB and used space is 636.321 GB. This problem has occured periodically in the last 1
-
That is basically a summary of the problem The Dell Inspiron 3847 does not come with RAID, so I tried installing a PCI-express 1x RAID card. However, the RAID BIOS never shows up. The HDDs show up when I install the RAID controller driver in Windows
-
Out put quality after DVD authoring is less than .mov file that fcp source
Anyone know why I would be getting a notable drop in quality after i make a dvd? going from HF11 Cannon shot at 17 mbps into FCP. then out to compressor and using the high quality dvd setting. then when i play my dvd i notice for example jaggies on s
-
Multi-Touch still not work! MacBookPro 13' late 2013 model!
Sometimes in Safari,still crush and not work! My EFI is the latest 1.3! Always happen......."Two-finger swipe to navigate" always not working. I have to reboot my Macbook,after that everything will be fine.......
-
Hi, I have set up a SAP Query connection in Portal and I can see all the InfoSets from the R/3 System in Visual Composer Design Time. Connection Test is green. I drag and drop a InfoSet Query in my model but in runtime a got an error. What could be t