الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Exception Model.appmoduleimpl Cannot Be Cast To Model.appmoduleimpl In Adf String Amdef="model.appmodule"; String Config="appmdulelocal";

Featured Replies

بتاريخ:

عندى باتون كاتب تحتيه الكودده كل ما اجى انفذ يطلعلى الخطا اللى فى عنوان الموضوع
 
String amDef="model.AppModule";
String config="AppMخduleLocal";
ApplicationModule am=Configuration.createRootApplicationModule(amDef, config);
AppModuleImpl service=(AppModuleImpl)am;
service.query();

ودى الدالة اللى فى AppModleImpl


int tc1,sm1,bc1;
String tc,sm,bc;
String un;
Double cp;
int res=0;


public void queryData(){
ViewObject vo=getTypeView1();
vo.executeQuery();
while(vo.hasNext()){
Row row=vo.next();
tc=(String)row.getAttribute("TypeCode");
cp=(Double)row.getAttribute("current_price");
sm=(String)row.getAttribute("sell_mass");
un=(String)row.getAttribute("UnitName");

}
tc1 =Integer.parseInt(tc);
sm1=Integer.parseInt(sm);
bc=BellImpl.foreign.toString();
bc1=Integer.parseInt(bc);
String plCode="begin\n update bell_details set mass=?,price=?,type_number=?,unit=(select unit_code from unit where unit_name='?') where bell_code=?;"+
"commit;"+"end;";
CallableStatement stmt=null;
try{
stmt=getDBTransaction().createCallableStatement(plCode,getDBTransaction().DEFAULT);
stmt.setInt(1,sm1);
stmt.setDouble(2,cp);
stmt.setInt(3,tc1);
stmt.setString(4, un);
stmt.setInt(5,bc1);
res=stmt.executeUpdate();
stmt.close();
}catch(Exception e){
e.printStackTrace();
}
}

بتاريخ:
  • كاتب الموضوع

الايرور بيطلع مثل الجملة التالية
Exception Model.appmoduleimpl Cannot Be Cast To Model.appmoduleimpl

بتاريخ:

 

طيب حرف خ بهذا السطر 

 

String config="AppMخduleLocal";

 

هذا ورد سهواً قبل أم بعد الخطأ الذي يظهر  ؟

 

إن حذفت هذا الحرف الزائد هل لا زالت المشكلة كما هي ؟

 

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.