Directory scan NullPointer results in error (sometimes)

Could somebody explain the flowing error to me please:
Exception in thread "Basic L&F File Loading Thread" java.lang.NullPointerException
statistics.pass1.xml
        at java.util.Arrays$ArrayList.<init>(Arrays.java:3357)
        at java.util.Arrays.asList(Arrays.java:3343)
        at sun.awt.shell.Win32ShellFolderManager2.isFileSystemRoot(Win32ShellFolderManager2.java:358)
        at sun.awt.shell.ShellFolder.isFileSystemRoot(ShellFolder.java:242)
        at javax.swing.filechooser.FileSystemView.isFileSystemRoot(FileSystemView.java:323)
        at javax.swing.filechooser.FileSystemView.getShellFolder(FileSystemView.java:531)
statistics.xml
        at javax.swing.filechooser.FileSystemView.getFiles(FileSystemView.java:443)
        at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(BasicDirectoryModel.java:218)
        at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryModel.java:211)
BUILD SUCCESSFUL (total time: 6 seconds)The error is basically always the same, but I don't always get the errors.
When I run the directory scanner on (for example) my c:\ drive it runs without problems. But in some folders it gives me the errors above but I don't see why. They both have files and folders in it so I don't see the difference.
The same with my laptop.
Both running Windows 7 and Java JDK/JRE 6 update 20
I hope someone can help me ;)
Below the code that gives the error:
import java.io.File;
import javax.swing.JFileChooser;
public class NewMain {
    public static void main(String[] args) {
        JFileChooser fc = new JFileChooser();
        fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        fc.showOpenDialog(fc);
        File folder = new File(fc.getSelectedFile().toString());
        File[] listOfFiles = folder.listFiles();
        for (int i = 0; i < listOfFiles.length; i++) {
            System.out.println(listOfFiles.getName());

wastrel wrote:
Still I think this line looks strange,
fc.showOpenDialog(fc);
This method should be called with the parent Component and it doesn't seem right to use the JFileChooser object as its own parent. I suggest you try this instead,
fc.showOpenDialog(null);
With a little luck the bug is associated with the case where a parent Component is specified.Not a chance. As the JFileChooser hasn't been added to a Window, the call to JOptionPane.getWindowForComponent(parent) in JFileChooser.createDialog(Component parent) returns SwingUtilities.getSharedOwnerFrame(). The same results from passing null instead of fc. See the sources for JFileChooser and JOptionPane.
That said, it's certainly bad programming practice to pass as the parent parameter any reference that cannot possibly be used as a parent for the resulting dialog.
db

Similar Messages

  • Can anyone answer why in logic pro X I keep getting a window popping up that says Directory not found, result code= -120, followed by another window saying, Fade update failed, (error -120)?

    Can anyone answer, why in Logic Pro X I keep on getting a window popping up saying, Directory not found, result code = -120. Followed by another window saying, Fade update failed, (error -120)?
    I am running the latest version 10.0.5 through a Macbook Pro that has just been upgraded to 16GB Ram and a 960GB SSD which has made it as fast as ****. I upgraded because I was experiencing problems before and it was suggested that I didn't have enough Ram?
    I am using a Focusrite scarlett 2i4 and an Alesis Q61 midi controller. Weirdly, just trying to put a bass line down on a track using the Alesis, the bass sound goes out of tune with the track during recording only. This is very frustrating! I surely can't be the only one experiencing this?
    Many thanks
    Rob.

    Hi
    Time lost could be a problem, but.....
    Sadly, I don't think that there are any Apple docs relating to networked storgae issues with Logic. Other than a 'school' or 'business' setup, NAS/OD/AD setups are not usual circumstances for audio.
    If the issue is one of data backup & security, it may be enough to automatically backup the students local work folders to the NAS.
    If the issue is one of the Users being able to work from any Mac and pick up their files from the server, you are not likely to resolve this problem, without copying the files to the Local Mac.
    CCT

  • HP Officejet Pro 8500 A910 Scan to email failure Error Server Failure Try again Later message

    HP Officejet Pro 8500 A910n  ( CM758A ) Scan to email failure  Error  Server Failure  Try again Later message
    Ran HP Print & Scan Doctor - finds no problems. When sending a scanned document to the user email it has " Error Server Failure  Try again Later " message . Can run test to the scanner without any errors.  Tried to reset the printer - same result.
    Any help would be much apreciated.  AHuber

    Hello there! Welcome to the forums @TheShadow42 ,
    I read about the scan to email issue you are having and I will gladly try to help you! I would suggest checking your scan to email settings from the EWS, and perhaps run the scan to email wizard again. You should also see a scan and test option in the setup.
    Here is a link to the User Manual, that has quite a bit of great info. Check out page 62 for the scan to email information.
    Good luck
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Restoring .dmg image from external to Mac HD in Disk Utility: "Unable to scan image (Input/output error)"

    Hi guys,
    So I've got a problem with restoring the image backup I did (using Disk Utility) of my 500GB HD on my MBP which was acting weird or maybe even crashed a few months ago. After creating the backup image and putting it on my external device, I installed Mavericks back to see if everything was alright (mainly the HD) and everything seems okay.
    I did try restoring the backup image through disk utility before installing mavericks (thus erasing everything again on the HD) AND after. But nothing..
    The whole process starts fine and then it starts scanning the image when after maybe a good 10-15min in I get a message that says that it was unable to scan the image. I tried verifying the disk(s), everything came out "OK". Also tried scanning it through Images > Scan image for Restore... with the same results.
    While searching I've seen people getting messages like "Unable to scan filename.dmg (Invalid argument)" and "Unable to scan filename.dmg
    (Internal error)" but none have (Input/output error)
    The screen grab is below.
    I also came across something about using terminal/commands but I'm not that savvy with it, especially considering that those there had issues with either mounting or trouble finding the image.
    I've also tried moving the backup image to a different external device 2TB and also the desktop because I read it may have to do with the format of the externals or maybe free space. But THEN I would get a message saying
    "The Finder can't complete the operation because some data in "Mac HD Backup.dmg" can't be read or written. Error code -36"
    Fyi ALL my externals are HFS+/Journaled and the backup image format was compressed.
    I REALLY don't know what to do next. Was it the wrong move to create a dmg image? Have I lost everything? Is there still a way out?
    If anyone can help, THANKS!
    2012 MacBook Pro, Mac OS X (10.9.3)

    Make a "Genius" appointment at an Apple Store, or go to another authorized service provider. You may have to leave the machine there for several days.
    Back up all data on the internal drive(s) before you hand over your computer to anyone. There are ways to back up a computer that isn't fully functional—ask if you need guidance.
    If privacy is a concern, erase the data partition(s) with the option to write zeros* (do this only if you have at least two complete, independent backups, and you know how to restore to an empty drive from any of them.) Don’t erase the recovery partition, if present.
    Keeping your confidential data secure during hardware repair
    Apple also recommends that you deauthorize a device in the iTunes Store before having it serviced.
    *An SSD doesn't need to be zeroed.

  • Directory Scan and Volume Structure Failure

    My imac (white, 24") has been running slow and freezing up while attempting to preview files. Ran Disc Utility and OnyX, which gave me the following permission issues:
    Permissions differ on "usr/share/derby", should be drwxr-xr-x , they are lrwxr-xr-x
    Repaired "usr/share/derby"
    Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/
    But otherwise, both said the disk was fine.
    Ran TechTools failed the Directory Scan, Format Scan, and Volume Scan. I restarted from a second partition on the same HD. This partition passed all tests.
    I repeated all three tests on the original partition. This time, Disk Utility could not verify or repair the original partition and no longer recognized it as a valid startup disk. I erased the partition and restored from a Time Machine backup. Now, I get the following permission errors:
    Permissions differ on "usr/share/derby", should be drwxr-xr-x , they are lrwxr-xr-x
    Repaired "usr/share/derby"
    ACL found but not expected on "Library/Preferences/Audio"
    Repaired "Library/Preferences/Audio"
    ACL found but not expected on "Library/Preferences/com.apple.alf.plist"
    Repaired "Library/Preferences/com.apple.alf.plist"
    Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/
    And while once again OnyX and Disk Utility says the disk is fine, Tech Tools still reports a Directory Scan failure and Volume Structure failure. A subsequent Surface Scan passed.
    Ideas? Is this a software failure or a hardware failure? Both partitions are running 10.6.3. This is the second HD on this imac, the previous 750GB failed completely and could not be restored.

    Kyle W wrote:
    It says permissions are repaired on those items, but when I verify permissions, they are still not right.
    See Mac OS X: Disk Utility's Repair Disk Permissions messages that you can safely ignore. It isn't that the permissions themselves are wrong but that the database of correct permissions on your hard drive the utility refers to has not been updated to reflect the permissions settings & directory structure changes in the most recent OS updates. This is a known issue that affects everyone, but as the article says, you can ignore it.
    Mac is not experiencing the same slow down on routine items as it was before, but TechTools is still saying there's a problem.
    What version of TechTools are you using? If it is not a current one it may not recognize the recent changes in the file system structure made in Snow Leopard.

  • WS17900260 - Task TS17900108 resulted in error, in HCM Processes and Forms

    Hi,
      I have designed a HCM process and workflow. In custom workflow ,WS17900260 (TS17900108) has been used to save data. In this step it is resulting in error and shows the below message in "Step History" tab. No message in Message Tab.
    Work item 000000172044: Object CL_HRASR00_WF_COMPONENTS method SAVE_FORM_DATA_TO_DB cannot be exe
    Message no. WL821
    An exception with the type CX_HRASR00_PROCESS_MODE LLING occurred, but was neither handled locally.
    I tried executing the associated method and I did not get any error. Please let me know if anyone has faced this issue and how it is resolved.
    Thanks,
    Sri

    Hi Sri
    Expecting a prompt answer in 2 hours time is a tad too demanding for all of us
    We try to help you based on our experience and if we do not have it, we just wait for the right one to respond.
    It is not that I have experience in HCM Processes and Forms, but a little bit of googling to help you gave me the following:
    1) SAP Help for your task TS17900108 states that it has the same requirements for binding as that of task TS17900107 .... check the latter half of the page here:
    https://help.sap.com/saphelp_erp60_sp/helpdata/en/42/f28f8a1e5132c3e10000000a1553f6/content.htm
    2) If you check TS17900107 binding requirements, it needs certain necessary parameters which may be causing the issue. Check the mandatory requirements here:
    https://help.sap.com/saphelp_erp60_sp/helpdata/en/42/f2cf2c249b3268e10000000a1553f6/content.htm
    Also check for authorizations
    3) See how another user solved the issue with the same method here:
    http://scn.sap.com/thread/1753027
    4) See the possible advice for a similar issue with task TS17900107 (which is kind of similar to your task)
    Novice in HR forms and processes workflow - help in usage of TS17900110
    I checked various threads and the common link is that it all depends on your system and the bindings or the custom functions called within. Also do check for authorizations as mentioned in the first link from Help.sap.com
    I am sorry, I cannot give you further details because I myself do not have experience in HCM P&F. I am sure you too can google further from here, or we can be a little more patient for others to reply (I understand that some issues are critical and need immediate resolution, but we all are busy in our own projects and sometimes are not able to reply immediately).
    Regards,
    Modak

  • DSC: Importing Shared Variables results in error -1950679010

    This post is more of an "FYI" rather than a question.  I am using LV DSC 8.2.
    ASIDE:  I ran into this problem because I was trying to solve a related problem with Deploy Library.vi (I had dependant libraries that deployed manually, but not programmatically).  Eventually, I found the answer in http://digital.ni.com/public.nsf/allkb/8EF71E1DDDC36C908625716900594B50 (not a very satisfactory answer however, IMHO).
    During my solution search, another hint was provided with http://forums.ni.com/ni/board/message?board.id=170&message.id=177268&requireLogin=False which hints that using a "Network" defined SV, as opposed to a "Project" defined SV, could help.  Then I discovered the difference between NetworkrojectPath and Network:URL in the SV property definition.  Then I realized that NetworkrojectBinding is exposed in the Import fields (using the Multiple Variable Editor to do the importing of course), and this gave me the idea of being able to define a Network SV using the Import function.
    Unfortunately, it does not work.  In the csv file I set NetworkrojectBinding to FALSE, Network:UseBinding to TRUE and provide a valid Network SV path, but this results in error -1950679010: "Shared variable is bound but path or URL is not specified", which occurs when trying to save the LVLIB.  It would be nice to know why this doesn't work, as I think it should.  I think it is a problem with the SV import mechanism.
    David Moerman
    TruView Technology Integration Ltd.

    Yes, you can do this programatically.  I've attached a small chunk of example code (LV 8.5) that creates just 1 variable, as well as an image of it in case you are using an earlier version of LV.  If you want to create multiple variables for the same library just put the "AddSharedVariableToLibrary" in a loop, of course.
    David Moerman
    Attachments:
    Create Library and SV.PNG ‏48 KB
    Create Library of SVs - BASIC.vi ‏24 KB

  • Unable To Execute Files In The Temporary Directory. Setup Aborted. Error 5: Access Is Denied.

    Hi Everyone,
    Whenever I install some new software in my new laptop I get this error:-
    Unable To Execute Files In The Temporary Directory. Setup Aborted. Error 5: Access Is Denied.
    I have tried synchronizing the clocks but it doesn't remove the problem.
    These softwares work on another laptop that i have, which also runs windows 7.
    Can someone please tell me the solution as this is extremely urgent.
    Thanks In Advance.
    -Michael

    In short:
    ============
    My permissions were all fine, so if anyone has trouble resolving the issue after sorting permissions then make sure you try fully disabling your anti-virus / anti-spyware / firewall applications, because that was the cause for me.
    In detail:
    ============
    Problem:
    Failed to install this application
    - http://www.ssware.com/cryptoobfuscator/download.htm
    - on Windows 8.1 x64
    - Get error message "Unable To Execute Files In The Temporary Directory. Setup Aborted. Error 5: Access Is Denied."
    First Candidate Solution
    The issue turns out to NOT be security rights on the Temp folder
    ESET Smart Security HIPS Advanced Memory Scanner is the cause
    http://kb.eset.com/esetkb/index?page=content&id=SOLN2908&actp=search&viewlocale=en_US&searchid=1392804914417
    Instead, I went and turned off all the ESS protections one by one and it turned out to be HIPS that is causing this false positive.
    In fact, it is the Advanced Memory Scanner option under HIPS that is causing the error, while the application in question is legit (using Inno Setup and presumably trying to write to the user temp folder, not sure whether just logs or to execute from there)
    Furthermore, Smart Security logs have no entries under HIPS even though I ticked "Log all blocked operations" under the HIPS "Advanced setup" - it was quite a journey to find out the cause :)
    Thank you. I have the same OS and installed ESET Smart Security as well. And it is resolved now.
    I just want to add, that by "Temporarily disable protection" and "Temporarily disable firewall", it doesn't work. You have to disable HIPS, as KristjanL said. 

  • Using LOV with Validation on the Numeric Fields results in Error

    Dear JHeadstart Team,
    During my work with lov I encountered another problem. I defined a lov and attached the lov to a numeric field and check the LOV for validation. Now when I use LOV using the LOV button it works fine but when I enter some numbers and then press tab the LOV was not shown correctly and resulted in the following errors and the worst thing is that you can not navigate to any other pages and all try to navigate to other pages results in errors too. When we put the same LOV on a string field (which is not desirable for us) it worked fine.
    It seems to me like a bug. Am I right? Is ther any solution or workaround for this problem?
    Thanks in advance,
    Navid
    16:31:29 DEBUG (LovItemBean) -Cleared value of item HrTrainingCourseSchedulesTitle
    16:31:29 DEBUG (LovItemBean) -Cleared value binding #{bindings.HrTrainingCourseSchedulesTitle.inputValue} of item HrTrainingCourseSchedulesTitle
    16:31:29 ERROR (ApplyRequestValuesPhase) -java.lang.ClassCastException: java.lang.Long
    javax.faces.el.EvaluationException: java.lang.ClassCastException: java.lang.Long
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
         at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1079)
         at oracle.adf.view.faces.component.UIXEditableValue.broadcast(UIXEditableValue.java:247)
         at oracle.adf.view.faces.component.UIXSelectInput.broadcast(UIXSelectInput.java:215)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:249)
         at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:307)
         at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at com.pooya.controller.jsf.PooyaAuthenticationFilter.doFilter(PooyaAuthenticationFilter.java:256)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassCastException: java.lang.Long
         at oracle.jheadstart.controller.jsf.bean.LovItemBean.validateWithLov(LovItemBean.java:101)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         ... 31 more

    Hi Navid,
    We ran into the same bug and have the next workaround for it:
    We extended the JHeadstart class 'LovItemBean' and we have overridden the method 'validateWithLov(...)' with:
      public void validateWithLov(ValueChangeEvent valueChangeEvent)
        Object newValue = valueChangeEvent.getNewValue();
        if(newValue != null && !(newValue instanceof String))
          newValue = newValue.toString();
          ValueChangeEvent newEvent = new ValueChangeEvent(valueChangeEvent.getComponent(), valueChangeEvent.getOldValue(), newValue);
          newEvent.setPhaseId(valueChangeEvent.getPhaseId());
          super.validateWithLov(newEvent);
        else
          super.validateWithLov(valueChangeEvent);
      }Next step is to use a custom template in your JHeaedstart Application Structure file for 'LOV_ITEM_BEAN'. In this custom template you should use your own class as 'managed-bean-class' instead of the default JHeadstart one.
    Now you can safely generate LOV with validation of number fields.
    Maybe something the JHeadstart can pcik up in the next release of JHeadstart :-)
    Hope this helps.
    Pascal

  • Directory for archiving files with errors

    HI ,
    My Scenario is file to RFC Asynch.
    when ever the PI picks file from the source directory that file need to delete from the path and need to be archived to some other patch.
    And if the file has wrong data it need to archive to error archive folder.
    For this I used  Archive processing in filesender adapter and I also used directory for archiving files with errors(for wrong data files).
    Now the files are arching successfully in the given archive folder for successful messages. But the error files (wrong data which are throwing mapping error in MONI) are also archiving in the same archive folder.
    But these error files need to archive in error archive folder.
    How can I achieve this?
    Thanks in Adv..
    Vankadoath.

    you can use raja's logic ..........in addition in second receiver do a simple mapping UDF to delete the file from the SUCCESS folder. otherwise your file will be archived in both the folder success and errror
    see this code.
    DynamicConfiguration conf = (DynamicConfiguration) para.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
                   DynamicConfigurationKey keyFileName1 = DynamicConfigurationKey
                   .create("http://sap.com/xi/XI/System/File", "FileName");
                         inputFileName = conf.get(keyFileName1);
      *File f1 = new File("/usr/sap/XX/"+keyFileName1);*
      *boolean success = f1.delete();*
      *if (!success){*
      *System.out.println("Deletion failed.");*
      *System.exit(0);*
      *}else{*
      *System.out.println("File deleted.");*

  • Directory Scan and Volume scan failed on Techtool -- next steps?

    I've been having serious problems with this MB pro, bought May 07, recently. There is a repetitive sound coming from the harddrive that freezes the computer while various processes are happening. The computer also takes a long time to start up and then only displays a fragment of my desktop picture (the original wavey blue background shows on the rest of the display). I did an extended hardware test and found nothing; TechTool shows the Directory Scan, Surface Scan and Volume Structure tests failed.
    I'm downloading the bootable TechTool Deluxe file to try to do repairs, but I'm wondering what else I should be considering? I've backed up all data, but I'm wondering if I do a clean install of the OS if I'll lose applications that are currently on the hard drive?
    Thanks for your input

    Noises from the hard drive are not a good sign, especially along with the other symptoms you describe. Here is a utility that may be able to give you further insight into your hard drive:
    S.M.A.R.T. Utility
    http://www.versiontracker.com/dyn/moreinfo/macosx/32454
    You can attempt to repair the software on your hard drive with Disk Utility, Tech Tool Pro, or Disk Warrior. However, if the hard drive is failing physically, you will not be able to repair the software satisfactorily.
    If by a clean install you mean an Erase and Install, you could certainly try that, but you will lose all the applications that are not included in your install disc and you will have to reinstall them separately. Here is an article on installation options:
    http://support.apple.com/kb/HT1545?viewlocale=en_US
    One other thing you may want to check is whether you might also possibly have the NVIDIA chip issue:
    http://support.apple.com/kb/TS2377
    Do you have an external FireWire hard drive with a bootable clone? If so, you could try booting from it and see if your video distortion is still there when booted from a different drive.
    Good luck!

  • WSRP: Relative URL results in error code 404 in the consumer access.log

    Hello everyone,
    I deployed a JSF portlet(implemented in facelets) in Weblogic Server 10.3.2 (11g) [extended to support WSRP]. When the JSF portlet is consumed from a 'consumer' portal [Weblogic 10.3.2 portal], WSRP URL Rewrite results in error code 404 in the consumer portal access.log if the relative path (contextPath+resourcePath) of the javaScript resource is provided.
    However, when the absolute path (protocol + serverName + port+ contextPath) of the JavaScript resource is provided, it works correctly:
    works:
    <script type="text/javascript" src="#{request.protocol}://#{request.serverName}:#{request.serverPort}#{request.contextPath}/resources/scripts/search/patientSearch.js"><!-- --></script>
    Failed:
    <script type="text/javascript" src="#{request.contextPath}/resources/scripts/search/patientSearch.js"><!-- --></script>
    Any idea on what is causing the incorrect URL Rewrite?
    The .xhtml and the portlet wsdl are listed below:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:nchic="http://www.saic.com/nchicago/jsf">
    <ui:composition template="/WEB-INF/facelets/templates/page-protected.xhtml">
    <head>
    <title>not used</title>
    <ui:define name="title">#{msgs.searchPageTitle}</ui:define>
    <ui:define name="head">
    <f:verbatim>
    <style type="text/css">
    #patientSearchContainer .pageCentered {
    width: 800px;
    #patientSearchFormInstructions {
    padding: 10px 0px 10px 0px;
    font-weight: bold;
    font-size: 11px;
    text-align: left;
    .s-form-label {
    width: 250px;
    .s-form-input {
    width: 450px;
    </style>
    </f:verbatim>
    <script type="text/javascript" src="#{request.protocol}://#{request.serverName}:#{request.serverPort}#{request.contextPath}/resources/scripts/search/patientSearch.js"><!-- --></script>
    </ui:define>
    </head>
    <body >
    <ui:define name="body" >
    <h:panelGroup id="patientSearchContainer"
    layout="block"
    style="text-align: center;">
    <rich:panel id="patientSearchPanel"
    styleClass="pageCentered"
    header="#{msgs.searchPanelSearchTitle}">
    <h:panelGroup id="patientSearchFormInstructions" layout="block">
    <h:outputText value="#{msgs.searchInstructions}" />
    <ul>
    <li><h:outputText value="#{msgs.searchInstructions1}" /></li>
    <li><h:outputText value="#{msgs.searchInstructions2}" /></li>
    <li><h:outputText value="#{msgs.searchInstructions3}" /></li>
    </ul>
    </h:panelGroup>
    <h:panelGroup id="errorPanel"
    layout="block"
    rendered="#{searchForm.hasMessages}">
    <h:panelGroup layout="block"
    style="padding: 5px;">
    <h:outputFormat value="#{msgs.errorMultipleMessage}"
    rendered="#{searchForm.errorCount &gt; 1}">
    <f:param value="#{searchForm.errorCount}" />
    </h:outputFormat>
    <h:outputFormat value="#{msgs.errorSingleMessage}"
    rendered="#{searchForm.errorCount == 1}">
    <f:param value="#{searchForm.errorCount}" />
    </h:outputFormat>
    <h:messages layout="list"
    showSummary="false"
    showDetail="true"
    errorClass="errors"
    styleClass="errorsList" />
    </h:panelGroup>
    </h:panelGroup>
    <h:form id="patientSearchForm" prependId="false">
    <h:panelGrid columns="2"
    columnClasses="s-form-label,s-form-input"
    summary="#{msgs.tableSummary}">
    <nchic:label for="queryIdType"
    value="#{msgs.labelIdType}"
    required="false" />
    <h:selectOneMenu id="queryIdType"
    value="#{searchForm.criteria.identificationType}"
    converter="patient.IdentificationType"
    tabindex="2"
    styleClass="masked-hidden not-required">
    <f:selectItems value="#{searchForm.lists.allIdTypes}" />
    <a4j:support event="onchange"
    reRender="sponsorSearch,queryIdNumber"
    oncomplete="JointReg.searchForm.patientIdTypeUpdateComplete();"
    onsubmit="JointReg.searchForm.patientIdTypeUpdateSubmit();"
    actionListener="#{searchForm.identificationTypeChangeListener}" />
    </h:selectOneMenu>
    <nchic:label for="sponsorSearch"
    value="#{msgs.labelIdNumberRadios}"
    required="false" />
    <h:selectOneMenu id="sponsorSearch"
    value="#{searchForm.criteria.sponsorSearch}"
    tabindex="3"
    disabled="#{searchForm.identificationDisabled}"
    styleClass="masked-hidden not-required">
    <f:selectItem itemValue="true" itemLabel="#{msgs.labelSponsor}" />
    <f:selectItem itemValue="false" itemLabel="#{msgs.labelPatient}" />
    </h:selectOneMenu>
    <nchic:label for="queryIdNumber"
    value="#{msgs.labelIdNumber}"
    required="false" />
    <h:inputText id="queryIdNumber"
    converter="patient.IdentificationNumber"
    value="#{searchForm.criteria.identificationNumber}"
    tabindex="4"
    styleClass="not-required resettable"
    disabled="#{searchForm.identificationDisabled}"
    maxlength="11" />
    <nchic:label for="queryBirthDate"
    value="#{msgs.labelBirthDateShort}"
    required="false" />
    <nchic:date id="queryBirthDate"
    value="#{searchForm.criteria.birthDate}"
    monthValues="#{searchForm.lists.allMonths}"
    dayValues="#{searchForm.lists.allDays}"
    yearValues="#{searchForm.lists.allYears}"
    tabindex="5"
    styleClass="masked-hidden not-required resettable" />
    <nchic:label for="queryLastName"
    value="#{msgs.labelLastName}"
    required="false" />
    <h:inputText id="queryLastName"
    value="#{searchForm.criteria.lastName}"
    tabindex="8"
    maxlength="30"
    styleClass="not-required resettable" />
    <nchic:label for="queryFirstName"
    value="#{msgs.labelFirstName}"
    required="false" />
    <h:inputText id="queryFirstName"
    value="#{searchForm.criteria.firstName}"
    tabindex="9"
    maxlength="30"
    styleClass="not-required resettable" />
    <nchic:label for="queryGender"
    value="#{msgs.labelGender}"
    required="false" />
    <h:selectOneMenu id="queryGender"
    value="#{searchForm.criteria.gender}"
    converter="patient.Gender"
    tabindex="10"
    styleClass="masked-hidden not-required resettable">
    <f:selectItems value="#{searchForm.lists.allGenderTypes}" />
    </h:selectOneMenu>
    </h:panelGrid>
    <h:panelGroup layout="block" style="text-align: center">
    <h:panelGroup layout="block"
    style="padding-top: 15px; margin-left: auto; margin-right: auto;">
    <h:commandButton action="#{searchForm.searchAction}"
    value="#{msgs.buttonSearch}"
    styleClass="s-button"
    tabindex="11"
    onclick="jQuery(document.body).mask('Searching...');" />
    <rich:spacer width="10" />
    <h:commandButton type="button"
    styleClass="s-button"
    onclick="return JointReg.searchForm.resetSearchForm();"
    tabindex="12"
    value="#{msgs.buttonClearSearch}" />
    <rich:spacer width="100" />
    <h:commandButton action="#{searchForm.createJohnDoeAction}"
    styleClass="s-button"
    onclick="jQuery(document.body).mask('Registering...');"
    tabindex="13"
    value="#{msgs.buttonJohnDoe}" />
    </h:panelGroup>
    </h:panelGroup>
    </h:form>
    </rich:panel>
    </h:panelGroup>
    </ui:define>
    </body>
    </ui:composition>
    </html>
    WSDL:
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    - <s0:definitions xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:s2="urn:oasis:names:tc:wsrp:v1:bind" xmlns:s3="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s4="urn:bea:wsrp:ext:v1:bind" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" targetNamespace="urn:oasis:names:tc:wsrp:v1:wsdl">
    <import location="http://10.75.2.235:7711/RegistrationPortlet/producer/wsrp-2.0/markup?WSDL" namespace="urn:oasis:names:tc:wsrp:v2:wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" />
    <s0:import location="http://10.75.2.235:7711/RegistrationPortlet/producer/wsrp-1.0/markup?WSDL/wlp_wsrp_v1_bindings.wsdl" namespace="urn:bea:wsrp:ext:v1:bind" />
    <s0:import location="http://10.75.2.235:7711/RegistrationPortlet/producer/wsrp-1.0/markup?WSDL/wsrp_v1_bindings.wsdl" namespace="urn:oasis:names:tc:wsrp:v1:bind" />
    <wsp:UsingPolicy s0:Required="true" />
    - <wsp:Policy s1:Id="ProducerDefaultPolicy">
    - <wsp:All>
    - <wssp:Identity xmlns:wssp="http://www.bea.com/wls90/security/policy">
    - <wssp:SupportedTokens>
    - <wssp:SecurityToken TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-2004-01-saml-token-profile-1.0#SAMLAssertionID">
    - <wssp:Claims>
    <wssp:ConfirmationMethod>sender-vouches</wssp:ConfirmationMethod>
    </wssp:Claims>
    </wssp:SecurityToken>
    </wssp:SupportedTokens>
    </wssp:Identity>
    </wsp:All>
    </wsp:Policy>
    - <s0:service name="WSRPService">
    - <s0:port binding="s2:WSRP_v1_Markup_Binding_SOAP" name="WSRPBaseService">
    <s3:address location="http://10.75.2.235:7711/RegistrationPortlet/producer/wsrp-1.0/markup" />
    </s0:port>
    - <s0:port binding="s2:WSRP_v1_ServiceDescription_Binding_SOAP" name="WSRPServiceDescriptionService">
    <s3:address location="http://10.75.2.235:7711/RegistrationPortlet/producer/wsrp-1.0/serviceDescription" />
    </s0:port>
    - <s0:port binding="s4:WLP_WSRP_v1_Markup_Ext_Binding_SOAP" name="WLP_WSRP_Ext_Service">
    <s3:address location="http://10.75.2.235:7711/RegistrationPortlet/producer/wsrp-wlp-ext-1.0/markup" />
    </s0:port>
    </s0:service>
    </s0:definitions>

    did you publish the internetserive "<b>bbpstart</b>" to site internal?
    Regards
    Raja

  • Configuration validation resulted in error(s)

    Hi,
    I am facing a problem in configurator,we are using deferred booking workflow.When we are creating new orders with ATO/PTO items the standard BOOK Node in the workflow is getting completed with result Incomplete.
    The error message on sales order, which we can see from View all open messages, is saying as"Configurator validation resulted in error(s)".
    When we copy the above sales order which is failing with above error and create a new order, the new order is getting booked successfully.We are not changing anything in the copied order.
    Also the deferred workflow is not giving any issues when creating a sales order using the Standard item.The OM debug is also not suggesting anything related to this.
    Please let me know if anyone have come across this issue.
    Thanks!

    Thanks Sandeep for ur reply on this..
    I followed the process u mentioned but it didnt work.Actually as I mentioned in my first question, this issue is coming up only when we are creating new sales order.If we copy the sales order which is not getting booked then the new one(copied) sales order's gets booked correctly.Though the copied sales order also have same configuration.
    I also tried to validate the Configuration for the sales order having issue using the api CZ_CONFIG_API_PUB.verify_configuration and this resulting as SUCCESS.
    Is there any thing in the deferred booking process which may cause this issue?
    Also the error message Configuration Validation resulted in errors is coming through a exception, and the exception is being used in CZ_BATCH_VALIDATE.The batch validate is being called from Send_Input_xml procedure.It seems if we copy the order this procedure for batch validate is not being called.
    but i m not getting any clue in Send_Input_xml procedure abt why exception is being raised.
    Thanks!

  • 'Check  covered levels OKS'  process results in error during QA checkup

    Hi,
    The following process in QA test, before submiting a service contract results in error.
    'Check covered levels OKS' with the error message
    "Atleast one covered line is required".
    I'm not able to choose any product.
    How to set the covered level as product in service contracts?
    In the service contracts authoring window, under lines tab -->pricing/products-->
    effectivity
    line number
    level- covered product. But the lov in name field doesn't list any value ?
    what could be the possible reason for this?
    Regards,
    Nithya

    Well, I think I can only give some limited info about these questions since I am only a contracts user, not a developer or administrator.
    But here's a few things that might help.
    1 & 2) I have always created contracts from scratch where I work. They can't seem to get OM to create contracts correctly (so I can't help with question 2). I don't use OM except for inqueries.
    When you create such a contract, it should show up in the Install Base (IB) if you look up the IB record with the related Reference Number (which changed to Product Number in the IB when my company switched from 11.5.5 to 11.5.8). In my case it was the Contracts tab in 11.5.5 (Java interface) and the Contracts link in 11.5.8 (HTML interface).
    3) From my experience, the Contract Number is the Sales Order Number in View Transactions if you had the AR Interface checked in the contract.
    If you want to change from not having the AR Interface checked to having it checked, I think this works fine and the contract will bill the next time the Main Billing program is run after you make the change, as long as the Bill On Date (11.5.5) or Invoice Date (11.5.8) is set to the current date or earlier. An Invoice (INV line item with invoice # -99) will show up in the Billing History after the AR to Contracts Interface program is run. The actual invoice # will show up in this Billing History after the Invoicing programs are run.
    In 11.5.5, if our contract started in the future, we not only had to make sure the Bill On Date was current or earlier, but also run the Main Billing program on that contract with a date equal to or later than the end date of the contract we wanted to bill before it would work. Do not do this on all your contracts at once if you have recurring billing on any of them. You must run it on the individual contracts, otherwise the recurring contracts will bill in full. This is supposedly fixed in 11.5.8, since you can use offsets of more than 31 days on the invoice date, but we haven't billed any yet, so I can't say for sure.
    I had problems with billing when trying to change the ammounts in the line items after the billing program had already invoiced a contract in 11.5.5 and haven't tried this in 11.5.8 (it billed incorrect ammounts on the successive invoices).
    Note that we have a highly customized version of Oracle Applications 11i, so your results may differ somewhat.

  • Distribution Cycle KSV5 Resulting in error when deselected the test run chk

    Hi Experts,
    Please help me out
    iam getting an error while running a Distribution Cycle KSV5 Resulting in error when deselected the test run chk box.
    When run the same in the test run, there isn't any error log. but when i deselect the same & run iam getting an error like
    First Message:
    Balance per segment 9999 is not zero
    Message no. FAGL_COFI025
    Diagnosis
    Balance per segment 9999 is not zero.
    The balance on segment 9999 is 50.00 (transaction currency), 0.00 (object currency), and 50.00 (controlling area currency).
    System Response
    With the standard settings, postings cannot be made to the document because the balance for segment and partner segment does not amount to zero. This may be due to a programming error, or this setting may have been made (perhaps unintentionally) in the BAdIs for determining the segment or partner segment.
    Procedure
    If there is a programming error, please inform your system administrator.
    If this behavior is intentional, you can deactivate error message FAGL_COFI 025 in Customizing or change the error message into a warning message or an information message.
    2nd Message
    Balance per segment 1000 is not zero
    Message no. FAGL_COFI025
    Diagnosis
    Balance per segment 1000 is not zero.
    The balance on segment 1000 is 50.00- (transaction currency), 0.00 (object currency), and 50.00- (controlling area currency).
    System Response
    With the standard settings, postings cannot be made to the document because the balance for segment and partner segment does not amount to zero. This may be due to a programming error, or this setting may have been made (perhaps unintentionally) in the BAdIs for determining the segment or partner segment.
    Procedure
    If there is a programming error, please inform your system administrator.
    If this behavior is intentional, you can deactivate error message FAGL_COFI 025 in Customizing or change the error message into a warning message or an information message.
    3rd Message
    No update performed due to an error
    Message no. GA719
    Diagnosis
    A serious error occurred during processing.
    System Response
    Processing is continued as far as possible, but results are not posted.
    Procedure
    This error is shown in the error list before this error message. Here you can find more information about this particular error.
    I would appreciate an early reply........!!!
    Thanks & Regards,
    Neela

    Hi,
    Check notes 764652 and 897086; it might be helpful.
    Regards,
    Eli

Maybe you are looking for

  • No picture on TV with composite cable

    i-Pad 2. Can get picture on TV with HDMI cable using Apple's cable but get sound only if using Composite cable. What am I doing wrong? Have even gone back to the apple shop and got a replacement cable as I thought the one I had was faulty. But same r

  • Bluetooth problems in car after ios7 update

    Why will my iPhone 4 not pair with my car after ios7 update. It worked perfectly in my BMW 316d before the update. Any ideas please?

  • How do I reduce a PDF file size on my iPad

    I need to compress the PDF size from my keynote presentation for e mailing purposes. Help!

  • Access files on mac via internet from winXP

    I set up a mac in the office as a file server. I have the public folder defined to be accessible via afp and smb. When I access it from home with my mac via "connect to server" and put in the servername.com which I defined with no-ip.com it works jus

  • ESS  UWL  status

    We are using modified standard leave request workflow Ws12300111 with second level approval  with ESS .                      If a leave request is rejected , UWL status shows 'Completed ' , but if a leave request is approved status remains ' IN Progr