Java application problem

I am using JDK1.4 and working on Windows Xp.
I have written a code for application in java as follows:
import javax.swing.*;
public class sample
JPanel panel;
static JFrame frame;
JButton but;
public sample()
frame=new JFrame("frame");
panel=new JPanel();
frame.getContentPane().add(panel);
but=new JButton("click");
panel.add(but);
public static void main(String args[])
sample s=new sample();
frame.setSize(300,300);
frame.setVisible(true);
on executing program application window has appeared and it ran properly.
Then I closed that application window.But after that in command prompt window curser was just blinking and it was not allow to enter also.
I have tried pressing CTRL+C also.But situation in command prompt was same i.e curser in command prompt was just blinking.
Then I closed cmd window ;but one error has occured saying that cmd window can not close .
My friend has told me that she is also having windows xp and JDK1.4 ; ctrl+c is working properly in her command prompt.She has written the above same code in her computer and it executes properly.
Even though she has not written following statement:
"frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);"
when she exits from application window ,her cmd window gave same problem of only blinking curser.But when she press CTRL+C ; her command prompt starts responding by giving root.But my command prompt is not giving
positive responce to "ctrl+c" when I am exiting java application.
Is it possible to solve this problem without giving statement
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); ?
Why my command prompt is not responding to CTRL+c?
How can I tackle this problem ?
Is there any other key which can be used in command prompt of Windows Xp?

Is it possible to solve this problem without giving
statement
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
?this is because Swing have started some non-daemon helper threads for its internal purposes and the default close operation for frame is just HIDE_ON_CLOSE. So, the system will not exit because those non-daemon thread still not terminated.
What is the problems setting the default close operation to JFrame.EXIT_ON_CLOSE ?

Similar Messages

  • Java application problem in my 6021

    Dear.
    I read from user guide for 6021, that this mobile is enabled with java technologyu. but when i try to get Java application from bluetooth, it says as invalid file format. what is the remedy for this issue? shall i update my mobile software?
    When am trying to download directly from my bank websie, it says as File is too large. But it is just 151kb, also i have enough memory.
    Please refer the jar file in attachment in .txt extension.
    Wad to do in this..?
    Regards
    Prab

    Try using latest version of PCSuites for your phone, and install java application that is specifically compatible to your phone model by this. Java applications developed for a particular model, will not work correctly or not at all. There's misconception about java appl(portability), yes it can be easily ported to another device, but have to be recompiled because of hardware differences like displays size, max resolution etc.
    Message Edited by android on 18-Feb-2008 02:11 PM
    Knowledge not shared is knowledge wasted!
    If you find it helpfull, it's not hard to click the STAR..

  • Java application crashes due to some problem in native  code

    Hi All
    I have a Java application that calls APIs in a 3rd party DLL(I don't have access to its source code or logs) through my VC++ DLL(Win32) that acts as the wrapper DLL.
    The Application has many functionalities and is based on multithreading (both on Java layer as well as C++ layer). Most of the functionalities are working , but when I try to close the application, it crashes.
    Moreover the crashing occurs inconstently, sometimes it does not crash. Instead of showing any debug information , it simply creates a error file with disassembly code that I am not able to understand.
    Though the error seems like an java error, but actually it seems to be due to native code. I have try catch blocks in my code and also implemented settranslator functionality to get hold of structured/C exceptions. But still I am not able to catch any exceptions.
    I am pasting the the contents of the file here:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c9111de, pid=488, tid=1848
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_14-b05 mixed mode)
    # Problematic frame:
    # C [ntdll.dll+0x111de]
    --------------- T H R E A D ---------------
    Current thread (0x009d1790): JavaThread "CompilerThread0" daemon [_thread_in_native, id=1848]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000001
    Registers:
    EAX=0x00000001, EBX=0x00030000, ECX=0x02d17a18, EDX=0x00030278
    ESP=0x02c2f8e8, EBP=0x02c2fb08, ESI=0x02d17a10, EDI=0x00000001
    EIP=0x7c9111de, EFLAGS=0x00010202
    Top of Stack: (sp=0x02c2f8e8)
    0x02c2f8e8: 009fa9a0 000000c0 00000008 0811d3d8
    0x02c2f8f8: 0000000c 00a2c0e0 00000003 00000004
    0x02c2f908: 08018216 00000001 02c2fcc4 08018385
    0x02c2f918: 00000002 00000001 02c2f93c 02d06d0c
    0x02c2f928: 0802a50a 00000000 00000001 02c2f93c
    0x02c2f938: 04a3cb4c 02d01008 02c2f964 0802a850
    0x02c2f948: 02c2f96e 00000000 00000007 00000000
    0x02c2f958: 04a3cb38 00000004 08018216 00000001
    Instructions: (pc=0x7c9111de)
    0x7c9111ce: 39 89 bd 0c ff ff ff 8b 46 0c 89 85 68 ff ff ff
    0x7c9111de: 8b 10 3b 57 04 0f 85 8c 31 02 00 3b d1 0f 85 84
    Stack: [0x02bf0000,0x02c30000), sp=0x02c2f8e8, free space=254k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [ntdll.dll+0x111de]
    C [MSVCRT.dll+0x1c3c9]
    C [MSVCRT.dll+0x1c3e7]
    C [MSVCRT.dll+0x1c42e]
    V [jvm.dll+0xacda9]
    V [jvm.dll+0x17102]
    V [jvm.dll+0x16c8d]
    V [jvm.dll+0x16dca]
    V [jvm.dll+0x170a7]
    V [jvm.dll+0x172e8]
    V [jvm.dll+0x4dc65]
    V [jvm.dll+0x4d894]
    V [jvm.dll+0xd3a36]
    V [jvm.dll+0xd3a04]
    C [MSVCRT.dll+0x2a3b0]
    C [kernel32.dll+0xb683]
    Current CompileTask:
    HotSpot Client Compiler:423 b sun.awt.AWTAutoShutdown.isReadyToShutdown()Z (33 bytes)
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x049d6328 JavaThread "Thread-19" [_thread_blocked, id=1440]
    0x049d24d0 JavaThread "Thread-18" [_thread_blocked, id=3620]
    0x049d40c8 JavaThread "Thread-17" [_thread_blocked, id=2476]
    0x02df0538 JavaThread "TimerQueue" daemon [_thread_blocked, id=3876]
    0x00036a78 JavaThread "DestroyJavaVM" [_thread_blocked, id=2448]
    0x02e43768 JavaThread "Thread-6" [_thread_blocked, id=3664]
    0x02e23130 JavaThread "Thread-4" [_thread_blocked, id=2816]
    0x02e21d08 JavaThread "Thread-2" [_thread_blocked, id=3344]
    0x02da3f78 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2528]
    0x02da3268 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=4008]
    0x02d91f90 JavaThread "AWT-Windows" daemon [_thread_blocked, id=648]
    0x02d3a478 JavaThread "AWT-Shutdown" [_thread_blocked, id=2988]
    =>0x009d1790 JavaThread "CompilerThread0" daemon [_thread_in_native, id=1848]
    0x009d0a90 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3568]
    0x009ce128 JavaThread "Finalizer" daemon [_thread_blocked, id=1824]
    0x009ccda0 JavaThread "Reference Handler" daemon [_thread_blocked, id=3280]
    Other Threads:
    0x00a0b6e8 VMThread [id=608]
    0x00a0d620 WatcherThread [id=3012]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 640K, used 583K [0x10010000, 0x100c0000, 0x104f0000)
    eden space 576K, 90% used [0x10010000, 0x10091e40, 0x100a0000)
    from space 64K, 99% used [0x100b0000, 0x100bfff8, 0x100c0000)
    to space 64K, 0% used [0x100a0000, 0x100a0000, 0x100b0000)
    tenured generation total 7772K, used 5451K [0x104f0000, 0x10c87000, 0x14010000)
    the space 7772K, 70% used [0x104f0000, 0x10a42d80, 0x10a42e00, 0x10c87000)
    compacting perm gen total 8192K, used 8137K [0x14010000, 0x14810000, 0x18010000)
    the space 8192K, 99% used [0x14010000, 0x148024e8, 0x14802600, 0x14810000)
    Dynamic libraries:
    0x00400000 - 0x0040b000 c:\dcsthick\jre\bin\java.exe
    0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f5000 C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
    0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
    0x08000000 - 0x08143000 c:\dcsthick\jre\bin\client\jvm.dll
    0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
    0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
    0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
    0x10000000 - 0x10007000 c:\dcsthick\jre\bin\hpi.dll
    0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
    0x00390000 - 0x0039e000 c:\dcsthick\jre\bin\verify.dll
    0x003b0000 - 0x003c9000 c:\dcsthick\jre\bin\java.dll
    0x003d0000 - 0x003de000 c:\dcsthick\jre\bin\zip.dll
    0x02e70000 - 0x02f84000 C:\dcsthick\jre\bin\awt.dll
    0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
    0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
    0x5ad70000 - 0x5ada8000 C:\WINDOWS\SYSTEM32\uxtheme.dll
    0x02fe0000 - 0x03031000 C:\dcsthick\jre\bin\fontmanager.dll
    0x73760000 - 0x737a9000 C:\WINDOWS\system32\ddraw.dll
    0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
    0x73940000 - 0x73a10000 C:\WINDOWS\system32\D3DIM700.DLL
    0x74720000 - 0x7476b000 C:\WINDOWS\system32\MSCTF.dll
    0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime
    0x03320000 - 0x0333c000 C:\dcsthick\lib\CrewsDmApiJniNt.dll
    0x031b0000 - 0x031bb000 c:\dcsthick\lib\CRWNT_DM.dll
    0x03240000 - 0x03249000 c:\dcsthick\lib\BAT_API.dll
    0x03340000 - 0x03352000 c:\dcsthick\lib\DC_DSM32.dll
    0x03360000 - 0x03369000 c:\dcsthick\lib\CRWTOOLS.dll
    0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
    0x03370000 - 0x0337a000 c:\dcsthick\lib\PMAPI.dll
    0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\COMCTL32.dll
    0x03790000 - 0x037b2000 c:\dcsthick\ResaDLL\DC_DSMNB.dll
    0x5b860000 - 0x5b8b4000 C:\WINDOWS\system32\NETAPI32.dll
    0x038d0000 - 0x038f2000 c:\dcsthick\ResaDLL\DC_DSMIP.dll
    0x71ad0000 - 0x71ad9000 C:\WINDOWS\system32\WSOCK32.dll
    0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
    0x71a50000 - 0x71a8f000 C:\WINDOWS\system32\mswsock.dll
    0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
    0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
    0x66580000 - 0x6658f000 C:\WINDOWS\system32\pnrpnsp.dll
    0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
    0x032e0000 - 0x0330a000 C:\dcsthick\lib\ResaHostConnection.dll
    0x03250000 - 0x03257000 c:\dcsthick\lib\CRWNT_GWALC.dll
    0x03310000 - 0x03319000 c:\dcsthick\lib\ALCAPI.dll
    0x763b0000 - 0x763f9000 C:\WINDOWS\system32\comdlg32.dll
    0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
    0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\SHELL32.dll
    0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
    VM Arguments:
    jvm_args: -Dcfdynaproppath=c:\dcsthick/config/ -Dcfdynapropxml=RESA_KCOdynamicproperties.xml -DConfigPath=c:\dcsthick/config/RESA_KCOConfig.xml -DResolution=High -DWorkstationID=GWGTE -DMode=GateBoarding -DlogPath=c:\temp\kcologs -DlogInformation=0 -DGateway=ALCSQ1 -DNetBiosPort=A
    java_command: com.singaporeair.dcs.standalone.application.model.ApplicationModel SQ/IGATEADXX
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=c:\dcsthick\jre\bin
    PATH=c:\dcsthick\jre\bin;c:\dcsthick/lib;c:\dcsthick/ResaDLL
    USERNAME=USER
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 2 family 6, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 1039600k(565656k free), swap 2501208k(2091128k free)
    vm_info: Java HotSpot(TM) Client VM (1.4.2_14-b05) for windows-x86, built on Mar 14 2007 16:46:11 by "java_re" with MS VC++ 6.0
    The JAVA Application during initialisation establishes a connection with the host server for various devices. For each of the device it establishes a separate connection and keeps listening on these connections using multithreading.
    During App close, we need to close each of these connections one by one for each device.
    The opening /closing of connection is done by 3rd party DLL and call to there APIs is done through a C++ Wrapper DLL that I have built between the Java layer and their DLL.
    When we close the Application, I am always able to close the connections on the first 2 devices. Then all of a sudden it crashes either for the 3rd device conn. close or for the 4th one. The code is the same for all the devices . That too sometimes it just goes fine without crashing. If its a null pointer exception, why is it that it crashes on some occassions and not in other times. More importantly, why is it that it does not fail for the first 2 devices , but fails for the 3rd or 4th device connection close?
    Can please anyone help me. Please suggest me as to how I can determine the cause of the error.
    And is this error really coming in ntdll.dll or is it getting caused of my dll?

    The opening /closing of connection is done by 3rd party DLL and call to there APIs is done through a C++ Wrapper DLL that I have built between the Java layer and their DLL.The specific error indicates a pointer/memory problem.
    The first place that is likely is in your code.
    The second most likely place for the cause is because you are using the third party library incorrectly. For example before exiting you are supposed to clean up resources and you are not doing so.
    As a remote possibility, much less likely that either of the above, there is a bug in jnative or in the 3rd party library.

  • Deploying problem of web dynpro java application

    Hi,
    I have a web dynpro java application with no problem about deploying.
    I copied this application with another name.
    I tryed new application to deploy but sdm aborted with error.
    Error
    19.Tem.2011 10:22:25 /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [001]Deployment aborted
    Settings
    SDM host : vserver0202
    SDM port : 52018
    URL to deploy : file:/C:/Users/CEMIL~1.BOZ/AppData/Local/Temp/temp27456HF_PERS_RAPOR_BUTCE.ear
    Result
    => deployment aborted : file:/C:/Users/CEMIL~1.BOZ/AppData/Local/Temp/temp27456HF_PERS_RAPOR_BUTCE.ear
    Aborted: development component 'HF_PERS_RAPOR_BUTCE'/'local'/'LOKAL'/'0.2011.07.19.10.22.15'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application local/HF_PERS_RAPOR_BUTCE.. Reason: Clusterwide exception: Failed to deploy application local/HF_PERS_RAPOR_BUTCE. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is:      com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application local/HF_PERS_RAPOR_BUTCE. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted

    Hi,
    Since the exception says "Are all referenced components deployed and available on the engine?"
    Check wether any DC is used as a used DC in the webdynpro component which you are deploying.
    If any used DC is available try to deploy that DC in the server and then deploy ur webdynpro application.
    If all reference DC's are avialable in server, still if you get this error try to rename the component and reload+rebuild the project and deploy it.
    Hope this helps you...
    Regards,
    Saleem Mohammad.

  • *Connection problems Sap A Java Application*

    Hi Gurus,
    I have a problem. I'm riding the part of the JCO SERVER for SAP from sending information to a Java application.
    I created the RFC destination of the type TCP / IP and I have registered my JAVA application in the visual administrator. This application java is already deployed listening to SAP and I can think of the following error when I run a BAPI created in the ABAP fate that I created.
    It's not that I can think of that might be.
    Or if someone was going another way of doing it from using sap we can send things to JAVA without having to java call the BAPI please help.
    Errores tiempo ejecucióCALL_FUNCTION_REMOTE_ERROR
    "JCO.Server could not find server function 'Z_BAPI_RFC'"
    ¿Qué ha sucedido?
    Error in ABAP application program.
    The current ABAP program "Z_BAPI_RFC====================FT" had to be terminated because one of the statements could not be
    executed.
    This is probably due to an error in the ABAP program.
    The error occurred in an RFC call to another system.
    The target system has also written a short dump.
    Consult this short dump for more precise information about
    the cause of the error.

    Please note that this forum is dedicated to all other development-related questions which are not directly addressed by other forums. This includes Business Objects SDKs, products, or technologies which do not fall under BusinessObjects Enterprise, BusinessObjects Edge, Crystal Reports Server, or Crystal Reports (for example Desktop Intelligence SDK, Universe Designer SDK, Portal Integration Kits, Java User Function Libraries, and other third party technologies or development languages).
    As your query relates to an SAP product, please post to an SAP forum.
    Ludek

  • The problem about multi-thread in java application

    i have problem with the multi-thread in java application, i don't know how to stop and restart a thread safely, because the function thread.stop(),thread.suspend() are both deprecated.
    now what i can only do is making the thread check a flag(true or false) to determine whether to start or to stop, but i think this thread will always be in the memory and maybe it will lower the performance of the system, as the program i am developping is working under realtime enviorement.
    please help me about it. thanks !

    hi,
    you can stop a thread by exiting it's run()-method which in terms can be done by checking the interrupted-flag:
    public void run(){
    while(interrupted()){ //if the thread consists of a loop
    or
    public void run(){
    if(interrupted())return;
    if(interrupted())return;
    or by the use of the return-statement anywhere withing the run-method. Afterwards, that is when the thread is no longer needed, you clear all the references to the specific thread object by setting them to null:
    Thread t;
    ... //working
    t.interrupt(); //interrupting
    while(t.isAlive()){
    Thread.yield(); //wait till thread t has stopped
    t=null;
    best regards, Michael

  • User Role problems in Sun Java Application Server Platform Edition 8

    I am having two problems setting up user roles in Sun Java Application Server Platform Edition 8. At first, I thought that it was a problem with the higher level features that I was using, so I created a very simple example using the simplest authentication I can use, but the problem still occurs. I am using the file realm and configuring the users in the App Server Admin Console. I create 2 users in different roles. One user should have access, the other should not.
    1) The first problem is that both users can access the page
    2) The second problem is that the isUserInRole() method returns false for both users with the role that it should be authenticating against.
    Here is a sample of my code:
    Users Configured in Console:
    username password roles
    user1 ********** admin
    user2 ********** noaccess
    web.xml
         <security-role>
              <role-name>admin</role-name>
         </security-role>
         <security-constraint>
              <web-resource-collection>
                   <web-resource-name>My Protected Area</web-resource-name>
                   <url-pattern>/*</url-pattern>
              </web-resource-collection>
              <auth-constraint>
                   <role-name>admin</role-name>
              </auth-constraint>
              <user-data-constraint>
                   <transport-guarantee>NONE</transport-guarantee>
              </user-data-constraint>
         </security-constraint>
         <login-config>
              <auth-method>BASIC</auth-method>
              <realm-name>file</realm-name>
         </login-config>
         <servlet>
              <servlet-name>
                   TestServlet
              </servlet-name>
              <servlet-class>
                   mypackage.TestServlet
              </servlet-class>
              <security-role-ref>
                   <role-name>admin</role-name>
                   <role-link>admin</role-link>
              </security-role-ref>
         </servlet>
         <servlet-mapping>
              <servlet-name>
                   TestServlet
              </servlet-name>
              <url-pattern>
                   /TestServlet
              </url-pattern>
         </servlet-mapping>
    TestServlet.java:
              out.println("admin role: " + request.isUserInRole("admin") + "<BR/>");
    Thanks before hand for any responses.
    - Brian

    Hi Jeanfrancois,
    Your suggestion has lead me to find my problem. There were actually three problems.
    1) First, you suggestion to reorder my xml file did not cause any errors to occur. I got suspicious that my web.xml file was wrong. I looked at some sample web-xml files and found that I was missing the header as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
    2) When I added this information, the deploy feature failed stating the my web.xml file was out of order. I fixed the ordering. It now deployed, but the security still wasn't working.
    3) I then added the sun-web.xml file. This file was missing before hand as I thought it was unnessary. However, this file added the essential mapping from a role to a group. After adding this, it now started to work.
    Thanks so much for you time and effort. You really did help me.
    - Brian Blank

  • WD java application in UWL link has authentication problems !

    Hi ,
        I am facing a starnge problem in UWL. I am trying to open an WD Java application upon clicking of UWL workitem. In the WdDoInit() method I have RFC present in R3-HR system. but Rfc execution could not be done when I click UWL work item and it opens in a new window. When I execute same application from place like through an Iview, it works fine. I feel WD_MODELDATA_DEST tickets are not being passed .
    for the work arond I made application prperty Authentication to true. When I opens for the first time , application hits rfc n fetch out data. but strangely on the second time onwards it prompts me for user authentication.
    Kindly give me possible solutions .
    Thanks
    Abhay

    Hi,
    1. Have you done the all the visualization settings in SWFVISU?
    2. If yes then did you re-register the server you are using?
    2. Are you able to view the WDJ view while clicking the link in UWL?
    and one more thing WdDoInit() will execute only once.
    please check the above things
    Regards
    SM Nizamudeen

  • Problem Web Dynpro Java applications using JasperReports

    Hello all,
    We have followed the footsteps of these blogs but we can not make it work.
    Part I --> Part-I: Print Web Dynpro Java applications using JasperReports
    Part II --> Part-II: Print Web Dynpro Java applications using JasperReports
    Part III --> Part-III: Print Web Dynpro Java applications using JasperReports
    Details system: 7.02 SP3
    We believe that the problem is in the library, because it finds them.
    1) We created project as a DC external library with *.jars
    2) Public part DC external library.
    3) Add public part of DC Library into new project DC WebDynpro Java.
    4) Development Component -> Build is OK
    5) Development Component -> Deploy is OK
    6) Test app ERROR.
    When we run the application shows the error:
    The initial exception that caused the request to fail, was:
       java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/JRDataSource
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at com.unisys.tmb.View01.onActiongenerarPDF(View01.java:161)
        at com.unisys.tmb.wdp.InternalView01.wdInvokeEventHandler(InternalView01.java:140)
        at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
        ... 28 more
    See full exception chain for details.
    Regards,
    Luis.

    Hello John,
    Thanks for the link. We have performed the steps in this blog:
    1) Create DC Project "External Library" with name js/jars:
    - Add *.jars in folder Libraries.[Screenshot Libraries|http://img846.imageshack.us/img846/8395/jsjars.jpg]
    - Add archives (*.jar) to public part with name ExternalLib. Which option to choose?
    a- Provides an API for developing/compiling other DCs (Option chosen)
    b- Can be packaged into other build results (eg SDAs)
    - Development Component -&gt; Build
    Step 1 is OK.
    2) Create "J2EE Server Component / Library" DC with name js/lib:
    - Add Used DC -> public part project ExternalLibrary -> "ExternalLib"
    - Specify both build time and run-time dependency here and strong.
    - Generated SDA file in <var>gen/default/deploy</var> How do we check that it contains <var>js.jar</var>?
    - folder gen/default/plublic/defLib/lib/java then you meet *.jars files again. is OK.
    - Development Component -> Deploy.
    - Go to Visual Administrator. We found the library js/lib, but has no associated *. jar. It is the problem.[Screenshot Visual Administrator|http://img542.imageshack.us/img542/5537/visualadminlib.jpg]
    3) Create "WebDynpro" DC with name pdf_jasper
    - Add used DC (defLib) to WebDynpro DC with option "Build time".
    - WebDynpro References -> Library references --> add <var>jslib
    - Deploy
    - Run error: java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/JRDataSource
    Regards,
    Luis.

  • Problem installing Java Applications

    Hi there, i have problems installing Java Applications (from Ovi and from another source). The Apps from stores quit with just "there was a error", the other App is more detailed:
    Interner Fehler: Jsr plugin com.nokia.mj.impl.chapi.core.utils.
    ServiceProviderInstaller cancelled installation
    Is it possible that the Java-Handler is missing or faulty? Can this handler be manually installed? Thanks Gerd (E7-00 Anna, clean installation after hardreset)
    Solved!
    Go to Solution.

    Sorry about my previous answer, as it's not really an efficient solution.
    Skyee put the solution for this issue in another thread
    FA136376 I am unable to install any Java apps after the Symbian Anna upgrade, how to fix this?
    After upgrading Symbian Anna and starting the Java installation file on the Nokia Symbian^3 device, the following error message may be displayed: Installation failed – internal error: Jsr plugin com.nokia.mj.jmpl.chapi.core.utils.ServiceProviderInstaller cancelled installation. To fix this, install the following java_symbian_anna_fix.sis file: http://dl.nokia.com/ns/java_symbian_anna_fix.sis .
    Note: During the installation the file will give the warning message: Application not compatible with phone. Continue anyway. Select yes to proceed.

  • Problem running java applications on Mac Mini.

    Hi all.
    I have a Mac Mini. Days ago, I started having problems running java applications. Right now, I can not run any java application or even a plugin into a web page.
    I downloaded and reinstalled java from Oracle website, but the problem remains unsolve.
    Anyone can help me?
    Thanks in advance.
    Carlos.

    azofra1 wrote:
    Hi all.
    I have a Mac Mini. Days ago, I started having problems running java applications. Right now, I can not run any java application or even a plugin into a web page.
    What error indications do you get? You have to enable error logging in the Java Control Panel to see the details.

  • Oracle 9.0.1 and Sun Java Application Server problem

    Hello
    I am gonna configure Oracle's (9.0.1) thin JDBC driver (only for JDK 1.3) on Sun Java Application Server 8
    I copied the class12.zip to domain1/lib/ext. I add the usr name and passwd in domain1/config/domain.xml.
    it looks like
    <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="oracle.jdbc.pool.OracleDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="false" max-pool-size="32" max-wait-time-in-millis="60000" name="OraclePool" pool-resize-quantity="2" res-type="javax.sql.DataSource" steady-pool-size="8">
    <property name="url" value="jdbc:oracle:thin:@localhost:1521:ora9i"/>
    <property name="Password" value="tiger"/>
    <property name="User" value="scott"/>
    It doesn't work though. Anybody know the problem?
    Thanks a lot

    You should use the oracle 9.0.3 ojdbc14.jar or a later version, not classes12.zip.
    The config looks like for me:
    <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="oracle.jdbc.pool.OracleDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="my-oracle-pool" pool-resize-quantity="2" res-type="javax.sql.DataSource" steady-pool-size="16">
    <property name="URL" value="jdbc:oracle:thin:@localhost:1521:mydb"/>
    <property name="user" value="user"/>
    <property name="password" value="mypass"/>
    </jdbc-connection-pool>
    You will also need to boot the server after adding the jar files to lib/ext

  • Problems running Java Application. Prease Help Me!!

    I've just finished a java application to my University, I used Forte for Java and the Timer that comes with it, it works fine, but, when I try to run it from outside Forte, it's just impossible, I even create a .jar file(with Forte 4), but when I try to run it from Forte, it tells me this:
    java.lang.NoClassDefFoundError: org/netbeans/examples/lib/timerbean/TimerListener
    Exception in thread "main"
    it seems that it's a problem with the Timer, why??
    And when I try to run it from the explorer (Windows), by double clicking the file, it tells me:
    Java Virtual Machine Launcher
    Could not find the main class. Program will exit!
    But how is that possible??, it works fine with Forte. That's my problem, I need to take it to the teacher, but I can only run it from Forte now. What can I do??? Any suggestions?. I Hope that somebody can help me, please.

    This sounds like a problem with the classpath. I was facing similar error with another application. Finally I ended up unzipping the class files and putting them in a directory that was in my class path.
    Or you could explicitly specily your classpath.
    Say your application (called app) is in c:\java\app and your classes are located in c:\java\classes\ where classes is directory run it like:
    c:\java>java -cp c:\java\classes[;second path] app
    hopefully it works.
    -Chirag

  • Problem while deploying a webdynpro java application in NWDS 7.1 version

    HI All,
            I got the below error when i deploying the  webdynpro java application in NWDS 7.1 version..help me out...........................................
    Exception:
    com.sap.ide.eclipse.deployer.api.APIException: ConnectionException,cause=[Ecc]
    NameNotFoundException.The SAP J2EE ENGINE service 'tcbldeploy_controller' is not available
    because of deployment or down engine( service ).
    Reason: Object not found in lookup of
    tcbldeploy_controller.
         at
    com.sap.ide.eclipse.deployer.dc.ComponentManagerImpl.getDeployProcessor(ComponentManagerImpl
    .java:64)
         at com.sap.ide.eclipse.sdm.threading.DCDeployThread.run(DCDeployThread.java:118)
    Caused by: com.sap.engine.services.dc.api.ConnectionException: [ERROR CODE DPL.DCAPI.1118]
    NameNotFoundException.The SAP J2EE ENGINE service 'tcbldeploy_controller' is not available
    because of deployment or down engine( service ).
    Reason: Object not found in lookup of
    tcbldeploy_controller.
         at
    com.sap.engine.services.dc.api.session.impl.SessionImpl.createCM(SessionImpl.java:320)
         at
    com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.<init>(DeployProcessorImpl.ja
    va:136)
         at
    com.sap.engine.services.dc.api.deploy.impl.DeployProcessorFactoryImpl.createDeployProcessor(
    DeployProcessorFactoryImpl.java:26)
         at
    com.sap.engine.services.dc.api.impl.ComponentManagerImpl.getDeployProcessor(ComponentManager
    Impl.java:46)
         at
    com.sap.ide.eclipse.deployer.dc.ComponentManagerImpl.getDeployProcessor(ComponentManagerImpl
    .java:58)
         ... 1 more
    Caused by: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object
    not found in lookup of tcbldeploy_controller.
         at
    com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:649)
         at
    com.sap.engine.services.jndi.implserver.ServerContextRedirectableImpl.lookup(ServerContextRe
    directableImpl.java:80)
         at
    com.sap.engine.services.jndi.implserver.ServerContextImplp4_Skel.dispatch(ServerContextImplp
    4_Skel.java:555)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)
         at
    com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136
         at
    com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.pro
    cess(ApplicationSessionMessageListener.java:33)
         at
    com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)

    First check is Java stack is running ?
    make sure J2EE_ADMIN user not locked.
    Ans please check password in secure area. check password in secure store should be correct.
    may be you can try with restart of SAP and DB.
    All the best
    regards
    nag

  • Problems with File I/O in  java applications at KVM/CLDC Layer

    I wrote couple of programs made use of Connector.open with "file" protocol to perform File I/O.
    Code snippet from java application for File Read
    InputConnection conn = (InputConnection)
    Connector.open("file:/input.txt", Connector.READ );
    I got javax.microedition.io.ConnectionNotFoundException: The requested protocol does not exist file:/input.txt
    Code snippet from java application for File Write
    OutputConnection conn = (OutputConnection)
    Connector.open( "file:/input.txt;append=true", Connector.WRITE );
    I got javax.microedition.io.ConnectionNotFoundException: The requested protocol does not exist file:/input.txt;append=true
    I have couple of questions
    1. Does Connector class support "file" protocol at KVM/CLDC layer of Sun's reference implementation?
    2. If so, what could I be doing wrong?
    Thanks,
    Nuthan
    I'm looking forward to hear from you.

    I believe you can find the right answer here :
    http://forum.java.sun.com/thread.jsp?forum=50&thread=307980
    Hope that will help.
    bye

Maybe you are looking for

  • Problem, in Transfering of a material

    Dear Guru's,   I was trying transfer a material from one storage to another storage location in back date on 31.03.2008,The posting periods are still open. But i am facing an error "Deficit of BA Unrestr. prev. 2.630 L : 204200549 PLBW BRMS 31030108

  • HT1498 I forgot my pass code for my Apple TV ?  Help please

    I'm stuck I need my passcode for my AppleTV  Which I forgot to do I do now?

  • Document Distribution with customized event.

    Hi, Is anyone familiar with the fenomenon "document distribution" in SAP? The following is the case: When a document is changed and saved in SAP the event DRAW.CHANGED is triggered. In SWETYPV you can link this event to the receiver DISTRIBUTION. Her

  • Time machine multiple backup drives question

    Time machine to backup to my 2TB MyBook drive.  I wanted a second backup on a portable 1TB, so in time machine settings, I selected the 1TB drive, and then clicked the "Replace" button, instead of the "Use both" button.  Currently the 1TB drive is ba

  • Split Rule doesn't work for certain items

    Hi experts, In TPVS, I set up split rule with split qty 1 and no item split.  The rest of setting is like default value.  However, in VS01, some item qty is more than 1.  I check the detail. There is exception, but don't know what it is.  Is there an