Failed to open a swing JSP file but a dialog box prompt to download jsp

Hi gurus,
I have encountered one strange problem where previously I have installed JRE 1.4.2.0.6 for running my form 10g application.
I 'm currently testing an ADF swing application in a 3 tier model using version 10.1.3 which require JRE 1.5 but when I try to load http://localhost/swing/oc4j.jsp, it will prompt up with the message:
Some files can harm your computer. If the file information below looks suspicious or you do not fully trust the source, do not open or save this file
would you like to open the file or save it to your computer?"
In normal case, it will do a download of the jar file to the client machine and open the swing application using java web start but it seems the problem is related with my previous installation of 1.4 . Even though I have completely uninstalled JRE 1.4 and install JRE 1.5 , I cannot run the ADF swing in 3 tier which is seems to be in relation with the signed jar.
Ana

Ana,
seems that the client doesn't recognize the Mime type for JavaWebstart. Try on a different client. JavaWebStart works for me when I test it on my machine with ADF Swing.
Frank

Similar Messages

  • I am running InDesign CS5.5 and trying to open an In Design File but getting an error message. " Cannot open the file "PDavidLCover.indd". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file

    I am running InDesign CS5.5 and trying to open an In Design File but getting an error message. " Cannot open the file "PDavidLCover.indd". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file me be open in another application."Please help I really need to get this file open.

    Since you've shown us the folder contents it's a good bet it isn't in use (no lock file). And it doesn't look like the file is mis-named as there doesn't seem to be anything else there that would be the .indd file (but just in case, open it in TextEdit and paste the first few lines here so we can see what the file header says), so the most likely case is the file is damaged. Is that on a removable device of some sort?
    You can try the tool at Repair corrupt InDesign Adobe files on Mac OS X  or send me a link to the file by private message and I'll try the recovery tool I have for Windows.

  • HT3775 I am trying to open an mpeg movie file but my macbook pro won't open it unless it's mpeg1, 2, or 4. What can I do to get it open?

    I am trying to open an mpeg movie file but my macbook pro won't open it unless it's a mpeg 1,2, or 4. What can I do to get this to play?

    teamspilly wrote:
    I am trying to open an mpeg movie file but my macbook pro won't open it unless it's a mpeg 1,2, or 4. What can I do to get this to play?
    Try downloadinc VLC Player from here
    http://www.videolan.org/vlc/download-macosx.html
    And try playing them with that.
    Cheers
    Pete

  • I can open some older numbers files but not others. I get a message that says I need a newer version of numbers.

    I can open some older numbers files but not other. I get a message saying I need a new version of numbers. Why would some files open and not others?

    SK,
    Here's the deal. If you ever open a Numbers file with Version 3, the file is converted to Version 3 and can't be opened again by Version 2. Version 2 and Version 3 are undoubtedly both on your machine and they look so similar that you may not realize which you are using. So, there are two steps to getting into trouble.
    1. Open a Numbers 2 file with Numbers 3, edit it and Close it.
    2. Try to open that file with Version 2. You ill get the error.
    To always get it right, find the file you want to open in Finder, Right-Click it and choose Open With... and pick Version 3 from the drop down list.
    If you have a file that you prefer to use only in Version 2, always use Open with... Numbers 2.3.
    Jerry

  • I was sent an email which I thought was legit . I opened an attachment (zip file) but nothing in it. I phoned the bank to double check, and of course the email was bogus. How can I tell whether my macbook air version X.9.4 has a virus or not.

    I was sent an email which I thought was legit . I opened an attachment (zip file) but nothing in it. I phoned the bank to double check, and of course the email was bogus. How can I tell whether my macbook air version now has a virus?

    No Mac viruses are propagated through email.
    Be vigilant for suspicious activity as you normally should be, but do not download or install some "anti-virus" utility in an effort to fix a problem that does not exist. That's a well-worn path to certain misery.

  • Opening our program after payment when account is active but the dialog box says free trial has expired

    opening our program after payment when account is active but the dialog box says free trial has expired

    Has it ever been shown as fully licensed on this computer? Or has it just been showing a free trial countdown, which you ignored and it has now run out?

  • Is there a way to select more than one file in a dialog box

    I want to select multiple files in the dialog box and get all the file names I selected, is there any way to do this?

    Hi
    Try checking out the following link
    http://forums.ni.com/ni/board/message?board.id=170&message.id=88666
    Regards
    NeilR

  • How do I ensure user name is shown rather than 'another user' on the 'File in Use' dialog box?

    How can I ensure user names are shown rather than just 'another user' on the 'File in Use' dialog box that appears when attempting to edit a checked out document in Microsoft Word/Excel? 
    All suggestions welcome. 

    If I recall correctly, that dialog is generated by the Office client product supporting that file type. There would be no way to modify it.
    Trevor Seward
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • I tried playing a you tube video, but received a message prompt to download the latest version of Adobe Flash Player. The link to Adobe stated that there are issues with MAC OS X 10.7 and Flash Player 10.3. The new version did not download. Any Suggestion

    I tried playing a you tube video, but received a message prompt to download the latest version of Adobe Flash Player. The link to Adobe stated that there are issues with MAC OS X 10.7 and Flash Player 10.3. The new version did not download. Any Suggestion

    Hi Seattle
    From Adobe site only!
    flashplayer11_b1_install_mac_071311.dmg
    Works fine.
    Cheers Tomi

  • Upon opening LR I receive a "Server Busy" dialoge box: "This action cannot be completed because the other program is busy. Choose 'Switch To' to activate the busy program and correct the problem." I have no other programs open and when I wait a bit it cle

    Upon opening LR I receive a "Server Busy" dialoge box: "This action cannot be completed because the other program is busy. Choose 'Switch To' to activate the busy program and correct the problem." I have no other programs open and when I wait a bit it clears with the 'retry' button. Happened following a recent update. I'd really like this to go away - any ideas?

    For me this happens when I have Zenfolio or Facebook open in Google Chrome, even if Google Chrome is not active.  If you use Chrome, when the error shows up open Chrome and close each one of the tabs and click on the retry in Lightroom.  Also happens if Internet explorer is running with either of these two programs.

  • HT202879 I am stumped - trying to open a recent Pages file but error message says that I need a "newer version" of Pages.  My software updates show that there are no updates available.  I recently updated Pages but it is not consistent.

    I am stumped - I am trying to open a recent Pages file (created with a newer software that I thought was correctly installed recently) but error message says that I need a "newer version" of Pages.  My software updates show that there are no updates available. Pages 09 version 4.3 shows as my current version.

    You have 2 versions of Pages on your Mac.
    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5/5.01 can not open Pages 5.1 files and you will get the warning that you need a newer version.
    Pages 5.1 sometimes can not open its own files and you will get the warning that you need a newer version.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has not only managed to confuse all its users, but also itself.
    Note: Apple has removed over 95 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • Failed to open the key store file-based

    Hi,
    i tied to make web app from this [article |http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/ejb/ejb.html]. And then I'm trying to run app on WebLogicServer, it's shutting down.
    The erorr log is:
    <24.04.2012 21:13:51 MSD> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
    <24.04.2012 21:13:51 MSD> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
    <24.04.2012 21:13:52 MSD> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 20.4-b02 from Sun Microsystems Inc..>
    <24.04.2012 21:13:52 MSD> <Info> <Management> <BEA-141107> <Version: WebLogic Server 12.1.1.0 Wed Dec 7 08:40:57 PST 2011 1445491 >
    <24.04.2012 21:13:54 MSD> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
    <24.04.2012 21:13:54 MSD> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.>
    <24.04.2012 21:13:54 MSD> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\Boocha\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms, such as Windows.>
    <24.04.2012 21:13:54 MSD> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\Boocha\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00006. Log messages will continue to be logged in C:\Users\Boocha\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.>
    <24.04.2012 21:13:54 MSD> <Notice> <Log Management> <BEA-170019> <The server log file C:\Users\Boocha\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
    24.04.2012 21:13:58 oracle.security.jps.internal.keystore.file.FileKeyStoreManager openKeyStore
    WARNING: Сбой при открытии хранилища ключей на основе файла.
    <24.04.2012 21:13:58 MSD> <Error> <Security> <BEA-090892> <The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: JPS-06514: Сбой при открытии хранилища ключей на основе файла.>
    <24.04.2012 21:13:58 MSD> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: JPS-06514: Сбой при открытии хранилища ключей на основе файла.
    weblogic.security.SecurityInitializationException: The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: JPS-06514: Сбой при открытии хранилища ключей на основе файла.
         at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1402)
         at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1022)
         at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
         at weblogic.security.SecurityService.start(SecurityService.java:148)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         Truncated. see log file for complete stacktrace
    Caused By: oracle.security.jps.JpsRuntimeException: JPS-06514: Сбой при открытии хранилища ключей на основе файла.
         at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:167)
         at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:369)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         Truncated. see log file for complete stacktrace
    Caused By: oracle.security.jps.JpsException: JPS-06514: Сбой при открытии хранилища ключей на основе файла.
         at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPDPService(PolicyUtil.java:2855)
         at oracle.security.jps.internal.policystore.PolicyUtil.getPDPService(PolicyUtil.java:3097)
         at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:164)
         at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:369)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         Truncated. see log file for complete stacktrace
    Caused By: oracle.security.jps.service.keystore.KeyStoreServiceException: JPS-06514: Сбой при открытии хранилища ключей на основе файла.
         at oracle.security.jps.internal.keystore.file.FileKeyStoreManager.openKeyStore(FileKeyStoreManager.java:374)
         at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.doInit(FileKeyStoreServiceImpl.java:104)
         at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<init>(FileKeyStoreServiceImpl.java:76)
         at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<init>(FileKeyStoreServiceImpl.java:66)
         at oracle.security.jps.internal.keystore.KeyStoreProvider.getInstance(KeyStoreProvider.java:157)
         Truncated. see log file for complete stacktrace
    >
    <24.04.2012 21:13:58 MSD> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED.>
    <24.04.2012 21:13:58 MSD> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down.>
    <24.04.2012 21:13:58 MSD> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.>
    Process exited.
    What's wrong?

    policy: getPermissions:
    PD CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    PD ClassLoader: sun.misc.Launcher$AppClassLoader@57fee6fc
    PD Principals: <no principals>
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/wlserver_12.1/server/lib/- <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/modules/- <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/wlserver_12.1/server/ext/- <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/wlserver_12.1/common/lib/ext/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/patch_wls1211/profiles/default/sysext_manifest_classpath/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/wlserver_12.1/common/eval/pointbase/lib/- <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: []
    Active Principals: []
    policy: granting (java.security.AllPermission <all permissions> <all actions>)
    policy: evaluation (codesource/principals) passed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.iau_11.1.1/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.pki_11.1.1/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/weblogic/application/defaults/EJB <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/weblogic/application/defaults/Web <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/weblogic/application/defaults/Connector <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/apps/jdk1.6.0_30/jre/lib/ext/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/usr/java/packages/lib/ext/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/apps/jdk1.6.0_30/jre/lib/ext/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (null <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: [weblogic.security.principal.WLSGroupImpl/Administrators]
    Active Principals: []
    policy: evaluation (principals) failed
    policy: evaluate codesources:
    Policy CodeSource: (null <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: [weblogic.security.principal.WLSGroupImpl/Deployers]
    Active Principals: []
    policy: evaluation (principals) failed
    policy: evaluate codesources:
    Policy CodeSource: (null <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: [weblogic.security.principal.WLSGroupImpl/Operators]
    Active Principals: []
    policy: evaluation (principals) failed
    policy: evaluate codesources:
    Policy CodeSource: (null <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: [weblogic.security.principal.WLSGroupImpl/Monitors]
    Active Principals: []
    policy: evaluation (principals) failed
    policy: evaluate codesources:
    Policy CodeSource: (null <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: [weblogic.security.principal.WLSKernelIdentity/*]
    Active Principals: []
    policy: evaluation (principals) failed
    policy: evaluate codesources:
    Policy CodeSource: (null <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: []
    Active Principals: []
    policy: granting (java.util.PropertyPermission java.version read)
    policy: granting (java.util.PropertyPermission java.vendor read)
    policy: granting (java.util.PropertyPermission java.vendor.url read)
    policy: granting (java.util.PropertyPermission java.class.version read)
    policy: granting (java.util.PropertyPermission os.name read)
    policy: granting (java.util.PropertyPermission os.version read)
    policy: granting (java.util.PropertyPermission os.arch read)
    policy: granting (java.util.PropertyPermission file.separator read)
    policy: granting (java.util.PropertyPermission path.separator read)
    policy: granting (java.util.PropertyPermission line.separator read)
    policy: granting (java.util.PropertyPermission java.specification.version read)
    policy: granting (java.util.PropertyPermission java.specification.vendor read)
    policy: granting (java.util.PropertyPermission java.specification.name read)
    policy: granting (java.util.PropertyPermission java.vm.specification.version read)
    policy: granting (java.util.PropertyPermission java.vm.specification.vendor read)
    policy: granting (java.util.PropertyPermission java.vm.specification.name read)
    policy: granting (java.util.PropertyPermission java.vm.version read)
    policy: granting (java.util.PropertyPermission java.vm.vendor read)
    policy: granting (java.util.PropertyPermission java.vm.name read)
    policy: evaluation (codesource/principals) passed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/apps/jdk1.6.0_30/jre/lib/ext/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/usr/java/packages/lib/ext/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (null <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: []
    Active Principals: []
    policy: granting (java.lang.RuntimePermission stopThread)
    policy: granting (java.net.SocketPermission localhost:1024- listen,resolve)
    policy: granting (java.util.PropertyPermission java.version read)
    policy: granting (java.util.PropertyPermission java.vendor read)
    policy: granting (java.util.PropertyPermission java.vendor.url read)
    policy: granting (java.util.PropertyPermission java.class.version read)
    policy: granting (java.util.PropertyPermission os.name read)
    policy: granting (java.util.PropertyPermission os.version read)
    policy: granting (java.util.PropertyPermission os.arch read)
    policy: granting (java.util.PropertyPermission file.separator read)
    policy: granting (java.util.PropertyPermission path.separator read)
    policy: granting (java.util.PropertyPermission line.separator read)
    policy: granting (java.util.PropertyPermission java.specification.version read)
    policy: granting (java.util.PropertyPermission java.specification.vendor read)
    policy: granting (java.util.PropertyPermission java.specification.name read)
    policy: granting (java.util.PropertyPermission java.vm.specification.version read)
    policy: granting (java.util.PropertyPermission java.vm.specification.vendor read)
    policy: granting (java.util.PropertyPermission java.vm.specification.name read)
    policy: granting (java.util.PropertyPermission java.vm.version read)
    policy: granting (java.util.PropertyPermission java.vm.vendor read)
    policy: granting (java.util.PropertyPermission java.vm.name read)
    policy: evaluation (codesource/principals) passed
    policy: getPermissions:
    PD CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    PD ClassLoader: sun.misc.Launcher$AppClassLoader@57fee6fc
    PD Principals: <no principals>
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/wlserver_12.1/server/lib/- <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/modules/- <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/wlserver_12.1/server/ext/- <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/wlserver_12.1/common/lib/ext/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/patch_wls1211/profiles/default/sysext_manifest_classpath/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/wlserver_12.1/common/eval/pointbase/lib/- <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: []
    Active Principals: []
    policy: granting (java.security.AllPermission <all permissions> <all actions>)
    policy: evaluation (codesource/principals) passed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.iau_11.1.1/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.pki_11.1.1/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/weblogic/application/defaults/EJB <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/weblogic/application/defaults/Web <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/weblogic/application/defaults/Connector <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/apps/jdk1.6.0_30/jre/lib/ext/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/usr/java/packages/lib/ext/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/apps/jdk1.6.0_30/jre/lib/ext/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (null <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: [weblogic.security.principal.WLSGroupImpl/Administrators]
    Active Principals: []
    policy: evaluation (principals) failed
    policy: evaluate codesources:
    Policy CodeSource: (null <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: [weblogic.security.principal.WLSGroupImpl/Deployers]
    Active Principals: []
    policy: evaluation (principals) failed
    policy: evaluate codesources:
    Policy CodeSource: (null <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: [weblogic.security.principal.WLSGroupImpl/Operators]
    Active Principals: []
    policy: evaluation (principals) failed
    policy: evaluate codesources:
    Policy CodeSource: (null <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: [weblogic.security.principal.WLSGroupImpl/Monitors]
    Active Principals: []
    policy: evaluation (principals) failed
    policy: evaluate codesources:
    Policy CodeSource: (null <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: [weblogic.security.principal.WLSKernelIdentity/*]
    Active Principals: []
    policy: evaluation (principals) failed
    policy: evaluate codesources:
    Policy CodeSource: (null <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: []
    Active Principals: []
    policy: granting (java.util.PropertyPermission java.version read)
    policy: granting (java.util.PropertyPermission java.vendor read)
    policy: granting (java.util.PropertyPermission java.vendor.url read)
    policy: granting (java.util.PropertyPermission java.class.version read)
    policy: granting (java.util.PropertyPermission os.name read)
    policy: granting (java.util.PropertyPermission os.version read)
    policy: granting (java.util.PropertyPermission os.arch read)
    policy: granting (java.util.PropertyPermission file.separator read)
    policy: granting (java.util.PropertyPermission path.separator read)
    policy: granting (java.util.PropertyPermission line.separator read)
    policy: granting (java.util.PropertyPermission java.specification.version read)
    policy: granting (java.util.PropertyPermission java.specification.vendor read)
    policy: granting (java.util.PropertyPermission java.specification.name read)
    policy: granting (java.util.PropertyPermission java.vm.specification.version read)
    policy: granting (java.util.PropertyPermission java.vm.specification.vendor read)
    policy: granting (java.util.PropertyPermission java.vm.specification.name read)
    policy: granting (java.util.PropertyPermission java.vm.version read)
    policy: granting (java.util.PropertyPermission java.vm.vendor read)
    policy: granting (java.util.PropertyPermission java.vm.name read)
    policy: evaluation (codesource/principals) passed
    policy: evaluate codesources:
    Policy CodeSource: (file:/opt/bea/apps/jdk1.6.0_30/jre/lib/ext/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (file:/usr/java/packages/lib/ext/* <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluation (codesource) failed
    policy: evaluate codesources:
    Policy CodeSource: (null <no signer certificates>)
    Active CodeSource: (file:/opt/bea/Middleware/oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar <no signer certificates>)
    policy: evaluate principals:
    Policy Principals: []
    Active Principals: []
    policy: granting (java.lang.RuntimePermission stopThread)
    policy: granting (java.net.SocketPermission localhost:1024- listen,resolve)
    policy: granting (java.util.PropertyPermission java.version read)
    policy: granting (java.util.PropertyPermission java.vendor read)
    policy: granting (java.util.PropertyPermission java.vendor.url read)
    policy: granting (java.util.PropertyPermission java.class.version read)
    policy: granting (java.util.PropertyPermission os.name read)
    policy: granting (java.util.PropertyPermission os.version read)
    policy: granting (java.util.PropertyPermission os.arch read)
    policy: granting (java.util.PropertyPermission file.separator read)
    policy: granting (java.util.PropertyPermission path.separator read)
    policy: granting (java.util.PropertyPermission line.separator read)
    policy: granting (java.util.PropertyPermission java.specification.version read)
    policy: granting (java.util.PropertyPermission java.specification.vendor read)
    policy: granting (java.util.PropertyPermission java.specification.name read)
    policy: granting (java.util.PropertyPermission java.vm.specification.version read)
    policy: granting (java.util.PropertyPermission java.vm.specification.vendor read)
    policy: granting (java.util.PropertyPermission java.vm.specification.name read)
    policy: granting (java.util.PropertyPermission java.vm.version read)
    policy: granting (java.util.PropertyPermission java.vm.vendor read)
    policy: granting (java.util.PropertyPermission java.vm.name read)
    policy: evaluation (codesource/principals) passed
    Apr 25, 2012 10:41:17 AM oracle.security.jps.internal.keystore.file.FileKeyStoreManager openKeyStore
    WARNING: Opening of file based keystore failed.
    <Apr 25, 2012 10:41:17 AM EDT> <Error> <Security> <BEA-090892> <The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: JPS-06514: Opening of file based keystore failed.>
    <Apr 25, 2012 10:41:17 AM EDT> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: JPS-06514: Opening of file based keystore failed.
    weblogic.security.SecurityInitializationException: The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: JPS-06514: Opening of file based keystore failed.
    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1402)
    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1022)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
    at weblogic.security.SecurityService.start(SecurityService.java:148)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    Truncated. see log file for complete stacktrace
    Caused By: oracle.security.jps.JpsRuntimeException: JPS-06514: Opening of file based keystore failed.
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:167)
    at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:369)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    Truncated. see log file for complete stacktrace
    Caused By: oracle.security.jps.JpsException: JPS-06514: Opening of file based keystore failed.
    at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPDPService(PolicyUtil.java:2855)
    at oracle.security.jps.internal.policystore.PolicyUtil.getPDPService(PolicyUtil.java:3097)
    at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:164)
    at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:369)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    Truncated. see log file for complete stacktrace
    Caused By: oracle.security.jps.service.keystore.KeyStoreServiceException: JPS-06514: Opening of file based keystore failed.
    at oracle.security.jps.internal.keystore.file.FileKeyStoreManager.openKeyStore(FileKeyStoreManager.java:374)
    at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.doInit(FileKeyStoreServiceImpl.java:104)
    at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<init>(FileKeyStoreServiceImpl.java:76)
    at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<init>(FileKeyStoreServiceImpl.java:66)
    at oracle.security.jps.internal.keystore.KeyStoreProvider.getInstance(KeyStoreProvider.java:157)
    Truncated. see log file for complete stacktrace
    >
    <Apr 25, 2012 10:41:17 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED.>
    <Apr 25, 2012 10:41:17 AM EDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down.>
    <Apr 25, 2012 10:41:17 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.>
    While trying to troubleshoot, I found "default-keystore.jks" is going missing in $DOMAIN_HOME/config/fmwconfig. and jps-config.xml in $DOMAIN_HOME/config/fmwconfig is using this file. Not sure if that is the issue and if so not sure how to create one or need to be copied from some other location

  • TalkTalk's webmail inbox fails to open in Firefox 4.0 but worked in 3.6 & works in IE8 - fix?

    I have recently upgraded my laptop to Firefox 4.0 from 3.6 & my TalkTalk webmail inbox now fails to open. It opened OK with 3.6 & still opens in IE8 on my desktop.
    TalkTalk will only advise me to find a different browser which works & change to it.
    The above is the screenscrape of the page causing the trouble.
    As you can see, the text "Hello ! You have undefined new mails in your inbox" appears where it should say the number of new mails in the inbox (which 3.6 did & IE8 does), but there's more.
    The next step is to click the "Inbox" image - nothing happens in 4.0 whereas in 3.6 & IE8 the Inbox opens satisfactorily.
    Is there a fix for this, or is it a standards failure in either 4.0 or (hopefully more likely) in TalkTalk?
    Please say if there is more information you need.
    It appears that the screenscrape won't copy to here - if you need it, please advise a suitable method.

    Java is listed as enabled under Firefox Tools/Add-ons/PlugIns and the Java Test confirms the latest version is installed and working.
    Additional information. When I click on Grid it displays the solution but still with the lines of the grid missing.

  • Image displays in some jsp files but not others

    OK, I have a jsf jsp pages js tag for my application that occurs in several jsp pages:
    <tr>
       <td>
          <jsp:include page="/includes/footer.jsp"/>
       </td>
    </tr>     footer.jsp has an image tag like this:
    <td align="left"><img src="images/logo.jpg" alt="X Systems"/></td>     The jsp files are in a directory which is under the base directory like the include and image files. For some reason, in one jsp page the logo.jpg file does not get displayed. As I understand it, the application server jboss/tomcat resolves the image files. Why would it be displayed it in one page and not another?

    You are using a relative link to access your image.
    That means it will look for your image relative to the page it last served.
    If you ask for http://myapp/root.jsp, it will locate http://myapp/images/logo.jsp
    If you ask for http://myapp/module/index.jsp it will locate http://myapp/module/images/logo.jsp
    If you right click on your image / broken image placeholder and look at its properties, you should be able to see the url which it is trying to fetch the image from.
    The client will resolve relative links from the address url it last accessed. It knows nothing of any serverside forwards/includes that you might have done.
    So if you access http://myapp/action and forward to /moduel/accounting/balanceSheet.jsp it will still treat the url as http://myapp/action for resolving relative links.
    As far as the client is concerned, the root is /
    As far as your web application is concerned, the root is /myapp (or whatever your context name is)
    Because of this you can't give your images an static absolute url, because you would be hardcoding the context name into your jsp.
    Alternatives
    - use something like <img src="<%= request.getContextName() %>/images/logo.jsp"/>
    - use a tag library to hide the implementation of option #1 (like struts tag html:img)
    - only use relative links, and always specify a html <base> on your page to resolve relative links from.
    Hope this helps,
    evnafets

  • How to open a text file without using dialog box

    I can open a file using dialog box but I want to open a file without using any dialog box for writing.
    With the following commands a new file is created.
    File outputFile = new File("outagain.txt");
    FileWriter out = new FileWriter(outputFile);
    I want to open an existing file and put some more text in it using FileWriter or any other object
    rgds,
    Arsalan

    import java.io.*;
    class UReader
        BufferedReader in;
        BufferedReader input;
        String fileName;
        public UReader(String fileName)
            this.fileName = null;
            this.fileName = fileName;
            try
                in = new BufferedReader(new FileReader(fileName));
                input = new BufferedReader(new FileReader("A.b"));
            catch(IOException _ex) { }
        public final String getContent()
            String txt = "";
            try
                while(in.ready())
                    txt = txt + in.readLine();
                    txt = txt + "\n";
                in.close();
                txt.trim();
            catch(IOException _ex) { }
            return txt;
        public final String getLine(int row)
            try
                input = new BufferedReader(new FileReader(fileName));
            catch(IOException _ex) { }
            String txt = null;
            if(row <= getRows()) {
                try
                    for(int i = 0; i < row; i++)
                        txt = input.readLine();
                    input.close();
                catch(IOException _ex) { }
            } else {
                txt = "Index out of Bounds";
            return txt;
        public final int getRows()
            try
                input = new BufferedReader(new FileReader(fileName));
            catch(IOException _ex) { }
            String txt = null;
            int rows = 0;
            try
                while(input.ready())
                    txt = input.readLine();
                    rows++;
                input.close();
            catch(IOException _ex) { }
            return rows;
    import java.io.*;
    import java.util.*;
    class UWriter
        PrintWriter out;
        String fileName;
        String[] txt;
        static int NEW_LINE = 1;
        static int APPEND = 0;
        public UWriter(String s)
            fileName = null;
            txt = null;
            fileName = s;
            try
                out = new PrintWriter(new BufferedWriter(new FileWriter(s, true)));
            catch(IOException ioexception) { }
        public final void addContent(String s, int i)
            int l = 0;
            StringBuffer sb = new StringBuffer(s);
            s.replaceAll("\n\n", "\n###\n");
            StringTokenizer str = new StringTokenizer(s, "\n");
            String token = null;
            while (str.hasMoreTokens()) {
                ++l;
                token = str.nextToken();
            str = new StringTokenizer(s, "\n");
            txt = new String[l];
            int k = 0;
            String test;
            while (str.hasMoreTokens()) {
                test = str.nextToken();
                if (test.equals("###")) test = "";
                txt[k++] = test;
            if(i == 0) {
                try
                    for (int j = 0; j < txt.length; ++j) {
                        out.println(txt[j]);
                    out.close();
                catch(Exception ioexception) { }
            } else {
                try
                    out.println();
                    for (int j = 0; j < txt.length; ++j) {
                        out.println(txt[j]);
                    out.close();
                catch(Exception ioexception1) { }
        public final void writeContent(String s)
            int l = 0;
            s.replaceAll("\n\n", "###");
            StringTokenizer str = new StringTokenizer(s, "\n");
            String token = null;
            while (str.hasMoreTokens()) {
                ++l;
                token = str.nextToken();
            str = new StringTokenizer(s, "\n");
            txt = new String[l];
            int k = 0;
            String test;
            while (str.hasMoreTokens()) {
                test = str.nextToken();
                if (test.equals("###")) test = "";
                txt[k++] = test;
            try
                PrintWriter bufferedwriter = new PrintWriter(new BufferedWriter(new FileWriter(fileName, false)));
                for (int j = 0; j < txt.length; ++j) {
                    bufferedwriter.println(txt[j]);
                bufferedwriter.close();
            catch(IOException ioexception) { }
    }Maybe they are not the best codes, i wrote them a long time ago, so dont ask why i did anything wierd. :D
    But anyway it works.

Maybe you are looking for