我在handleDisplayableEvent 中遇到异常。原因:链接错误

发布于 2024-10-22 16:38:30 字数 9545 浏览 3 评论 0原文

嘿嗨,朋友们,我的方法出现了异常...... 请帮助我,就像我的方法的代码一样

Exception in handleDisplayableEvent. Reason: LinkageError  source is : com.ui.PreviewPageUI@38f838f8

,它到达了方法,但之后它显示了上面的异常...请参阅代码...

private void getPreviewData(final String cat) {
    System.out.println("I am in privew data:"+cat);
    Thread th = new Thread() {
           public void run() {
            try {
                if (cat.equals("VD")) {
                    if (videoHastable == null || videoHastable.isEmpty()) {
                        initializeWaiting();
                        //ParseData parseData = new ParseData();
                       // String url = "http://122.170.122.186/web/papilon1.jsp?phonetype=" + Midlet.PHONE_TYPE + "&cat=VD";
                        //videoHastable = parseData.connectAndPTheUrl(url);
                        ParseUrl parsedata=new ParseUrl();
                        json=new JSONObject();
                        try {
                            json.put("phonetype",Midlet.PHONE_TYPE);
                            json.put("cat","VD");
                        } catch (JSONException ex) {
                            System.out.println("jsException:"+ex.toString());
                        }
                        String url="http://localhost:8084/MagicWeb/pappilon1?json="+json.toString();

                        videoHastable =parsedata.coonectHttp(url,cat);
                        circularLoading = false;
                    }
                    if (videoHastable != null) {
                        Midlet.display.setCurrent(new WallPapersCanvas(2, "VIDEOS", videoHastable));
                    } else {
                        initializeError("MESSAGE", "COULD NOT POPULATE DATA FROM THE SERVER", MAIN_CATEGORIES);
                    }
                } else if (cat.equals("WP")) {
                    System.out.println("I am in wallpaper");
                    if (wallHastable == null || wallHastable.isEmpty()) {
                        initializeWaiting();
                        /*ParseData parseData = new ParseData();
                        String url = "http://122.170.122.186/web/papilon1.jsp?phonetype=" + Midlet.PHONE_TYPE + "&cat=WP";
                        wallHastable = parseData.connectAndPTheUrl(url);*/
                        ParseUrl parsedata=new ParseUrl();
                        json=new JSONObject();
                        try {
                            json.put("phonetype",Midlet.PHONE_TYPE);
                            json.put("cat","WP");
                        }catch(JSONException e){
                            System.out.println("json excep:"+e.toString());
                        }catch(Exception e){
                            System.out.println("error in wp getpriview:"+e.toString());
                        }
                        String url="http://localhost:8084/MagicWeb/pappilon1?json="+json.toString();
                        System.out.println("I am in wallpaper getpreiview");
                        wallHastable =parsedata.coonectHttp(url,cat);
                        circularLoading = false;
                    }
                    if (wallHastable != null) {
                        Midlet.display.setCurrent(new WallPapersCanvas(2, "WALLPAPERS", wallHastable));
                    } else {
                        initializeError("MESSAGE", "COULD NOT POPULATE DATA FROM THE SERVER", MAIN_CATEGORIES);
                    }
                } else if (cat.equals("GM")) {
                    if (gamesHastable == null || gamesHastable.isEmpty()) {
                        initializeWaiting();
                        /*ParseData parseData = new ParseData();
                        String url = "http://122.170.122.186/web/papilon1.jsp?phonetype=" + Midlet.PHONE_TYPE + "&cat=GM";
                        gamesHastable = parseData.connectAndPTheUrl(url);*/
                        ParseUrl parsedata=new ParseUrl();
                        json=new JSONObject();
                        try {
                            json.put("phonetype",Midlet.PHONE_TYPE);
                            json.put("cat","GM");
                        } catch (JSONException ex) {
                            System.out.println(ex.toString());
                        }
                        String url="http://localhost:8084/MagicWeb/pappilon1?json="+json.toString();
                        gamesHastable =parsedata.coonectHttp(url,cat);
                        circularLoading = false;
                    }
                    if (gamesHastable != null) {
                        Midlet.display.setCurrent(new WallPapersCanvas(2, "GAMES", gamesHastable));
                    } else {
                        initializeError("MESSAGE", "COULD NOT POPULATE DATA FROM THE SERVER", MAIN_CATEGORIES);
                    }
                } else if (cat.equals("TH")) {
                    if (themesHastable == null || themesHastable.isEmpty()) {
                        initializeWaiting();
                        /*ParseData parseData = new ParseData();
                        String url = "http://122.170.122.186/web/papilon1.jsp?phonetype=" + Midlet.PHONE_TYPE + "&cat=TH";
                        themesHastable = parseData.connectAndPTheUrl(url);*/
                        ParseUrl parsedata=new ParseUrl();
                        json=new JSONObject();
                        try {
                            json.put("phonetype",Midlet.PHONE_TYPE);
                            json.put("cat","TH");
                        } catch (JSONException ex) {
                            System.out.println(ex.toString());
                        }
                        String url="http://localhost:8084/MagicWeb/pappilon1?json="+json.toString();
                        themesHastable =parsedata.coonectHttp(url,cat);
                        circularLoading = false;
                    }
                    if (themesHastable != null) {
                        Midlet.display.setCurrent(new WallPapersCanvas(2, "THEMES", themesHastable));
                    } else {
                        initializeError("MESSAGE", "COULD NOT POPULATE DATA FROM THE SERVER", MAIN_CATEGORIES);
                    }
                } else if (cat.equals("AN")) {
                    if (animateHastable == null || animateHastable.isEmpty()) {
                        initializeWaiting();
                        /*ParseData parseData = new ParseData();
                        String url = "http://122.170.122.186/web/papilon1.jsp?phonetype=" + Midlet.PHONE_TYPE + "&cat=AN";
                        animateHastable = parseData.connectAndPTheUrl(url);*/
                        ParseUrl parsedata=new ParseUrl();
                        json=new JSONObject();
                        try {
                            json.put("phonetype",Midlet.PHONE_TYPE);
                            json.put("cat","AN");
                        } catch (JSONException ex) {
                            System.out.println(ex.toString());
                        }
                        String url="http://localhost:8084/MagicWeb/pappilon1?json="+json.toString();
                        animateHastable =parsedata.coonectHttp(url,cat);
                        circularLoading = false;
                    }
                    if (animateHastable != null) {
                        Midlet.display.setCurrent(new WallPapersCanvas(2, "ANIMATIONS", animateHastable));
                    } else {
                        initializeError("MESSAGE", "COULD NOT POPULATE DATA FROM THE SERVER", MAIN_CATEGORIES);
                    }
                } else if (cat.equals("FS")) {
                    if (freeHastable == null || freeHastable.isEmpty()) {
                        initializeWaiting();
                        /*ParseData parseData = new ParseData();
                        String url = "http://122.170.122.186/disney/papilonfree.jsp?phonetype=" + Midlet.PHONE_TYPE;
                        freeHastable = parseData.connectAndPTheUrl(url);*/
                        ParseUrl parsedata=new ParseUrl();
                        json=new JSONObject();
                        try {
                            json.put("phonetype",Midlet.PHONE_TYPE);
                            json.put("cat","FS");
                        } catch (JSONException ex) {
                            System.out.println(ex.toString());
                        }
                        String url="http://localhost:8084/MagicWeb/pappilon1?json="+json.toString();
                        freeHastable =parsedata.coonectHttp(url,cat);
                        circularLoading = false;
                    }
                    if (freeHastable != null) {
                        Midlet.display.setCurrent(new WallPapersCanvas(2, "FREE GIFTS", freeHastable));
                    } else {
                        initializeError("MESSAGE", "COULD NOT POPULATE DATA FROM THE SERVER", MAIN_CATEGORIES);
                    }
                } else {
                    initializeError("MESSAGE", "CATEGORY NAME DOES NOT EXIST", MAIN_CATEGORIES);
                }
            } catch (Exception e) {
                System.out.println("error @ getPreviewData");
                e.printStackTrace();
            }
        }
    };
    System.out.println("Thread not started");
    try{
        th.start();
    }
    catch(Exception e){
        System.out.println("thread th:"+e.toString());
    }
}

请帮助我,谢谢...

Hey Hi Friends I got exception in my method...
please help me error like that

Exception in handleDisplayableEvent. Reason: LinkageError  source is : com.ui.PreviewPageUI@38f838f8

code of my method here it reaches to method but after that it shows above exception... see code...

private void getPreviewData(final String cat) {
    System.out.println("I am in privew data:"+cat);
    Thread th = new Thread() {
           public void run() {
            try {
                if (cat.equals("VD")) {
                    if (videoHastable == null || videoHastable.isEmpty()) {
                        initializeWaiting();
                        //ParseData parseData = new ParseData();
                       // String url = "http://122.170.122.186/web/papilon1.jsp?phonetype=" + Midlet.PHONE_TYPE + "&cat=VD";
                        //videoHastable = parseData.connectAndPTheUrl(url);
                        ParseUrl parsedata=new ParseUrl();
                        json=new JSONObject();
                        try {
                            json.put("phonetype",Midlet.PHONE_TYPE);
                            json.put("cat","VD");
                        } catch (JSONException ex) {
                            System.out.println("jsException:"+ex.toString());
                        }
                        String url="http://localhost:8084/MagicWeb/pappilon1?json="+json.toString();

                        videoHastable =parsedata.coonectHttp(url,cat);
                        circularLoading = false;
                    }
                    if (videoHastable != null) {
                        Midlet.display.setCurrent(new WallPapersCanvas(2, "VIDEOS", videoHastable));
                    } else {
                        initializeError("MESSAGE", "COULD NOT POPULATE DATA FROM THE SERVER", MAIN_CATEGORIES);
                    }
                } else if (cat.equals("WP")) {
                    System.out.println("I am in wallpaper");
                    if (wallHastable == null || wallHastable.isEmpty()) {
                        initializeWaiting();
                        /*ParseData parseData = new ParseData();
                        String url = "http://122.170.122.186/web/papilon1.jsp?phonetype=" + Midlet.PHONE_TYPE + "&cat=WP";
                        wallHastable = parseData.connectAndPTheUrl(url);*/
                        ParseUrl parsedata=new ParseUrl();
                        json=new JSONObject();
                        try {
                            json.put("phonetype",Midlet.PHONE_TYPE);
                            json.put("cat","WP");
                        }catch(JSONException e){
                            System.out.println("json excep:"+e.toString());
                        }catch(Exception e){
                            System.out.println("error in wp getpriview:"+e.toString());
                        }
                        String url="http://localhost:8084/MagicWeb/pappilon1?json="+json.toString();
                        System.out.println("I am in wallpaper getpreiview");
                        wallHastable =parsedata.coonectHttp(url,cat);
                        circularLoading = false;
                    }
                    if (wallHastable != null) {
                        Midlet.display.setCurrent(new WallPapersCanvas(2, "WALLPAPERS", wallHastable));
                    } else {
                        initializeError("MESSAGE", "COULD NOT POPULATE DATA FROM THE SERVER", MAIN_CATEGORIES);
                    }
                } else if (cat.equals("GM")) {
                    if (gamesHastable == null || gamesHastable.isEmpty()) {
                        initializeWaiting();
                        /*ParseData parseData = new ParseData();
                        String url = "http://122.170.122.186/web/papilon1.jsp?phonetype=" + Midlet.PHONE_TYPE + "&cat=GM";
                        gamesHastable = parseData.connectAndPTheUrl(url);*/
                        ParseUrl parsedata=new ParseUrl();
                        json=new JSONObject();
                        try {
                            json.put("phonetype",Midlet.PHONE_TYPE);
                            json.put("cat","GM");
                        } catch (JSONException ex) {
                            System.out.println(ex.toString());
                        }
                        String url="http://localhost:8084/MagicWeb/pappilon1?json="+json.toString();
                        gamesHastable =parsedata.coonectHttp(url,cat);
                        circularLoading = false;
                    }
                    if (gamesHastable != null) {
                        Midlet.display.setCurrent(new WallPapersCanvas(2, "GAMES", gamesHastable));
                    } else {
                        initializeError("MESSAGE", "COULD NOT POPULATE DATA FROM THE SERVER", MAIN_CATEGORIES);
                    }
                } else if (cat.equals("TH")) {
                    if (themesHastable == null || themesHastable.isEmpty()) {
                        initializeWaiting();
                        /*ParseData parseData = new ParseData();
                        String url = "http://122.170.122.186/web/papilon1.jsp?phonetype=" + Midlet.PHONE_TYPE + "&cat=TH";
                        themesHastable = parseData.connectAndPTheUrl(url);*/
                        ParseUrl parsedata=new ParseUrl();
                        json=new JSONObject();
                        try {
                            json.put("phonetype",Midlet.PHONE_TYPE);
                            json.put("cat","TH");
                        } catch (JSONException ex) {
                            System.out.println(ex.toString());
                        }
                        String url="http://localhost:8084/MagicWeb/pappilon1?json="+json.toString();
                        themesHastable =parsedata.coonectHttp(url,cat);
                        circularLoading = false;
                    }
                    if (themesHastable != null) {
                        Midlet.display.setCurrent(new WallPapersCanvas(2, "THEMES", themesHastable));
                    } else {
                        initializeError("MESSAGE", "COULD NOT POPULATE DATA FROM THE SERVER", MAIN_CATEGORIES);
                    }
                } else if (cat.equals("AN")) {
                    if (animateHastable == null || animateHastable.isEmpty()) {
                        initializeWaiting();
                        /*ParseData parseData = new ParseData();
                        String url = "http://122.170.122.186/web/papilon1.jsp?phonetype=" + Midlet.PHONE_TYPE + "&cat=AN";
                        animateHastable = parseData.connectAndPTheUrl(url);*/
                        ParseUrl parsedata=new ParseUrl();
                        json=new JSONObject();
                        try {
                            json.put("phonetype",Midlet.PHONE_TYPE);
                            json.put("cat","AN");
                        } catch (JSONException ex) {
                            System.out.println(ex.toString());
                        }
                        String url="http://localhost:8084/MagicWeb/pappilon1?json="+json.toString();
                        animateHastable =parsedata.coonectHttp(url,cat);
                        circularLoading = false;
                    }
                    if (animateHastable != null) {
                        Midlet.display.setCurrent(new WallPapersCanvas(2, "ANIMATIONS", animateHastable));
                    } else {
                        initializeError("MESSAGE", "COULD NOT POPULATE DATA FROM THE SERVER", MAIN_CATEGORIES);
                    }
                } else if (cat.equals("FS")) {
                    if (freeHastable == null || freeHastable.isEmpty()) {
                        initializeWaiting();
                        /*ParseData parseData = new ParseData();
                        String url = "http://122.170.122.186/disney/papilonfree.jsp?phonetype=" + Midlet.PHONE_TYPE;
                        freeHastable = parseData.connectAndPTheUrl(url);*/
                        ParseUrl parsedata=new ParseUrl();
                        json=new JSONObject();
                        try {
                            json.put("phonetype",Midlet.PHONE_TYPE);
                            json.put("cat","FS");
                        } catch (JSONException ex) {
                            System.out.println(ex.toString());
                        }
                        String url="http://localhost:8084/MagicWeb/pappilon1?json="+json.toString();
                        freeHastable =parsedata.coonectHttp(url,cat);
                        circularLoading = false;
                    }
                    if (freeHastable != null) {
                        Midlet.display.setCurrent(new WallPapersCanvas(2, "FREE GIFTS", freeHastable));
                    } else {
                        initializeError("MESSAGE", "COULD NOT POPULATE DATA FROM THE SERVER", MAIN_CATEGORIES);
                    }
                } else {
                    initializeError("MESSAGE", "CATEGORY NAME DOES NOT EXIST", MAIN_CATEGORIES);
                }
            } catch (Exception e) {
                System.out.println("error @ getPreviewData");
                e.printStackTrace();
            }
        }
    };
    System.out.println("Thread not started");
    try{
        th.start();
    }
    catch(Exception e){
        System.out.println("thread th:"+e.toString());
    }
}

please help me Thanks....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你是暖光i 2024-10-29 16:38:30

看一下LinkageError的描述:

LinkageError的子类表明一个类对另一个类有一定的依赖性;然而,在前一个类编译后,后一个类发生了不兼容的变化。

你的一个班级发生了一些事情。也许您需要重新编译它们,或重新验证它们。

Look at the description of LinkageError:

Subclasses of LinkageError indicate that a class has some dependency on another class; however, the latter class has incompatibly changed after the compilation of the former class.

Something has happened to one of your classes. Perhaps you need to recompile them, or reverify them.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文