Handler chain file - validation files

Hi Everyone,
I have webservice where I would like to log all SOAP messages. Back in the WebLogic 8.1 days the developer merely specified an annotation to a soap handler like this:
* @editor-info:link autogen-style="java" autogen="false"
* @jws:handler operation="foo.utils.soaphandlers.BARHandler"
During the WebLogic 10.3 upgrade/import process this annotation disappeared. I am thus trying to restore this link to BARHandler. So... following this documentation:
http://download.oracle.com/docs/cd/E15523_01/web.1111/e13734/handlers.htm#i261458
I add an annotation:
@HandlerChain(file="bar_handler.xml")
and created XML...
<?xml version="1.0" encoding="UTF-8"?>
<handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
<handler-chain>
<handler>
<handler-class>foo.utils.soaphandlers.BARHandler</handler-class>
</handler>
</handler-chain>
</handler-chains>
BARHandler is a modern SOAP handler I know works in another context...
package foo.utils.soaphandlers;
...snip...
public class BARHandler implements SOAPHandler<SOAPMessageContext>
...snip...
Everything seems to go fairly well, until my <jwsc> task in build.xml blows up with this error (re-spaced for reading):
build.xml:123: weblogic.wsee.tools.WsBuildException: JWS Validation failed:
[Handler chain file validation error for file:
file:/path/src/foo/webservice/bar_handler.xml.
Element handler-chains@http://java.sun.com/xml/ns/javaee is not a valid
   handler-config@http://www.bea.com/xml/ns/jws document or
     a valid substitution.,
Handler chain file validation error for file:
file:/path/src/foo/webservice/bar_handler.xml.
Element handler-chains@http://java.sun.com/xml/ns/javaee is not a valid
   handler-config@http://www.bea.com/xml/ns/jws document or
     a valid substitution.]
I worked all day searching for an answer, but no luck so far. I also feel like the gremlins are mocking me! Not only does the validation error repeat twice but the first sentence of JSR 181 specification says all of this is "a simplified programming model". Alas, for me, it hasn't be so "simple" :(
Thanks a bunch for reading and if you reply I will be very grateful!
Cheers,
-Randy

Hello Randy -
Please check the following thread.
Validation Error in the JWS
Regards,
Justin.

Similar Messages

  • How to handle errors in a file at sender side?

    Hi
    I have done a file to proxy scenario.
    I know how to handle errors on proxy.
    But on sender side when picking the file if one the record have worng fomat its throwing mapping error and its not processing any record..
    I wanted to process the records which have right format and data and  all remaining recrods which have wromg format should be send back to the sender as file.
    How to do this.
    How to handle error in sender file.
    Regards
    Sowmya

    Hello Sowmya,
    In your scenario Three ways you can validate the data.
    1) Before the data reaches into SAP system ie in XI system during Mapping or before mapping i,e in Adapter Module in the Sender side
    2) this option, is in the receiver applications side. ie. Validations will be taken care in the SAP system i.e in ABAP server proxy code.
    3)Through BPM, If Mapping Exception Occures then through exception Branch you can send bad formate file to sender again.
    Generally, it is prefer to more business critical validations in the Application System ie Receiver Application System (ABAP Server Proxy)
    In this, you can have more flexibility of the validations as you are validating some of the SAP payroll informations as Personal ID etc.
    Based on the complexity and flexibility of the requirement, you can either do this in the XI (if XI, ie Sender Adapter Module or Mapping) or in the ABAP proxy
    Thanks'
    Sunil Singh

  • Error handling when loading flate files

    Hi
    We have a Process Chain loading flate files from a server into a ODS. We want to create a routine to avoid errors in the ODS when no files is found.
    The error we want to handle is
    Error 1 when loading external data
    Message no. RSAR234
    We want to handle this error message as OK to avoid red request in the ODS
    Please help
    Kind regards
    Ola Einar Langen

    Hi, and thanks for your hints.
    We ended up with the following codes. It's will mark the prosess chain red (but this is as wanted) but we have implemented that the prosess chain will proceed even with error in the loading process
    The code for the routine implemented in the infopackage in "External data" tab.
    p_filename = 'filename.txt.
    OPEN DATASET p_filename FOR INPUT IN BINARY MODE.
    If file could not be open
    IF SY-SUBRC NE 0.
        p_subrc = SY-SUBRC.
      delete the current request
        CALL FUNCTION 'RSSM_DELETE_REQUEST'.
    ENDIF.
    close the file if OK
    CLOSE DATASET p_filename.
    p_subrc = 0.
    The solution is no OK for us
    Kind regards
    Ola Einar Langen

  • How to do file validation with ODI 10.1.3.5

    Hi Team,
    Please help me, how to handle file validation with ODI?
    My source is files.
    Requirement:
    With ODI i have to do the file validation and file data loading successfully. Once it is successfully done then i have to move the particular file and move to different directory.
    Any internal tool is there in ODI package to watch the file.
    Regards,
    Suresh

    Hi Suresh,
    You can do your file loading and validation in an ODI interface.
    Once you are done with the interface, add it to a package, you can set up subsequent steps in the package to move the file to another location using the built in ODI file utilities in the package.
    Terrence.

  • Flat File Validation

    Hi
    I have a scenario where i get a flat file from a external vendor every month which has customer  #
    as one of the fields.
    Vendor usually updates his customers information using a clients 3rd party software tool.( basically this  tool assigns a unique customer number and updates the BI customer master).
    Now my issue is I have to validate the customer #'s in the Flat file against customer master in BI. If a particular Customer in Flat file do not exist in BI customer master(when Vendor forgets to update the BI customer master) I should have a log of the non existing customer #'s so that I can follow up with the Vendor to update mater data using the tool for the customers in question.
    Please share your ideas in validating the flat file.

    Hi  Sreenivas/ Venkatesh
    Thanks for the response.
    Well Sreenivas; I am dealing with 40 of such flat files and trying to lay out a process to handle them efficiently so that maintenance can be mininmized in the future.
    Can you please give more insight on handling this situation technically.
    This is the process I am thinking of  from the discussion.
    1.Feed the flat files to a custome Flat File Validation program(transaction) in BI
    2. Split the file in to Error file and Confirmation file.
    3. Load the Confirmation file in to BI
    4. Send the Error file to Vendor for correction and load the corrected file sent from the vendor.
    Can we make this process more efficient especially handling  files more in number.
    Venkatesh: your suggestion is also feasible but I am guessing it needs more effort as we are actually loading and trying to find the errors. what is your take on this?
    please share your ideas.

  • Can't upload file to Sharepoint "The URL is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.

    Hello,
    I do database/SharePoint upgrades for SQL and or SharePoint or moving to new servers frequently.  In a nutshell, I backup the database (run the upgrade tools if necessary), load new server and sql software and restore the db, load but
    not configure SharePoint, and add the content db that was resotred through powershell.  I have never had any big issues with this before.  This time, I have done this same procedure as there is a new domain and new server.  Server and
    SQL 2008R2 and SharePoint 2010 on both old and new servers - just new server and new domain.  I have done this twice now (as it is a virtual server) and I have the same issue.  I can't check anything in or upload anything new.  I get the error
    - The URL '<path to the file and filename>' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.  I have made sure
    that my database and log files are on a drive that has plenty of space (db is not restricted to grow).  I have made sure my database is not locked.  I have checked to see that I don't have version in my indexed columns in that library (I
    don't have any).  I have checked that my recycle bin is on in central admin.  I am not using RBS.  I have turned on verbose logging and found the following when I searched on the correlation ID from the error message - it is saying invalid
    column name extension.  I am not sure what to do at this point.  I can see there is a column in SQL called extension in the AllDocs table. Thanks.
    09/16/2014 10:41:44.84  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Name=Request (POST:http://sqlsp:80/disc/_layouts/checkin.aspx?List=%7B5219EA15-A36A-4162-A188-4B8D518D7E79%7D&FileName=%2Fdisc%2FJigs%20and%20Fixtures%2FJigs%20and%20Fixtures%2FAssembly%2F30%20Assembly%2DGeneral%2FJ30XXA50%2D00%2Easm&IsDlg=1) 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:44.85  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Site=/ 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     Database                       d0d6 High     System.Data.SqlClient.SqlException: Invalid column name 'Extension'.    
    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)     at System.Data.SqlClient.TdsParser.Run(RunBehavior
    runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)     at System.Data.SqlClient.SqlDataReader.HasMoreResults()     at System.Data.SqlClient.SqlDataReader.NextResult()    
    at Microsoft.SharePoint.SPSqlClient.ExecuteQueryInternal(Boolean retryfordeadlock)     at Microsoft.SharePoint.SPSqlClient.ExecuteQuery(Boolean retryfordeadlock) 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     Database                       d0d6 High     System.Data.SqlClient.SqlException: Invalid column name 'Extension'.    
    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)     at System.Data.SqlClient.TdsParser.Run(RunBehavior
    runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)     at System.Data.SqlClient.SqlDataReader.HasMoreResults()     at System.Data.SqlClient.SqlDataReader.NextResult()    
    at Microsoft.SharePoint.SPSqlClient.ExecuteQueryInternal(Boolean retryfordeadlock)     at Microsoft.SharePoint.SPSqlClient.ExecuteQuery(Boolean retryfordeadlock) 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     General                        8kh7 High     The URL 'Jigs and Fixtures/Jigs and Fixtures/Assembly/30 Assembly-General/J30XXA50-00.asm'
    is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web. 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     General                        9mpn High     File exception: Microsoft.SharePoint.SPException: The URL 'Jigs and
    Fixtures/Jigs and Fixtures/Assembly/30 Assembly-General/J30XXA50-00.asm' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web. ---> System.Runtime.InteropServices.COMException
    (0x81020030): The URL 'Jigs and Fixtures/Jigs and Fixtures/Assembly/30 Assembly-General/J30XXA50-00.asm' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.    
    at Microsoft.SharePoint.Library.SPRequestInternalClass.CheckInFile(String bstrUrl, String bstrWebRelativeUrl, Int32 iCheckinType, String bstrCheckinComment, Boolean bIsMigrate, Int32 iEditorId, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafe... 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01* w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     General                        9mpn High     ...ArrayWriter pUniqueFieldCallback)     at Microsoft.SharePoint.Library.SPRequest.CheckInFile(String
    bstrUrl, String bstrWebRelativeUrl, Int32 iCheckinType, String bstrCheckinComment, Boolean bIsMigrate, Int32 iEditorId, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)     --- End of inner exception
    stack trace ---     at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)     at Microsoft.SharePoint.Library.SPRequest.CheckInFile(String bstrUrl, String bstrWebRelativeUrl, Int32 iCheckinType, String
    bstrCheckinComment, Boolean bIsMigrate, Int32 iEditorId, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)     at Microsoft.SharePoint.SPFile.CheckIn(String comment, SPCheckinType checkInType, Boolean
    b... 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01* w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     General                        9mpn High     ...IsMigrate, SPUser modifiedBy) 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     Runtime                        tkau Unexpected System.Runtime.InteropServices.COMException: The URL 'Jigs and Fixtures/Jigs and
    Fixtures/Assembly/30 Assembly-General/J30XXA50-00.asm' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.    at Microsoft.SharePoint.Library.SPRequestInternalClass.CheckInFile(String
    bstrUrl, String bstrWebRelativeUrl, Int32 iCheckinType, String bstrCheckinComment, Boolean bIsMigrate, Int32 iEditorId, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)     at Microsoft.SharePoint.Library.SPRequest.CheckInFile(String
    bstrUrl, String bstrWebRelativeUrl, Int32 iCheckinType, String bstrCheckinComment, Boolean bIsMigrate, Int32 iEditorId, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter ... 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01* w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     Runtime                        tkau Unexpected ...pUniqueFieldCallback) 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.03  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (POST:http://sqlsp:80/disc/_layouts/checkin.aspx?List=%7B5219EA15-A36A-4162-A188-4B8D518D7E79%7D&FileName=%2Fdisc%2FJigs%20and%20Fixtures%2FJigs%20and%20Fixtures%2FAssembly%2F30%20Assembly%2DGeneral%2FJ30XXA50%2D00%2Easm&IsDlg=1)).
    Execution Time=182.518658097607 88fb3615-c87c-4a7c-8e83-d63a551a9b8f

    I have fixed it.  I did a backup of the database and log file 2 times. I also did an upgrade-spcontentdatabase command in the sharepoint powershell.  Not sure why it worked, but I had read online about upgrade issues from WSS2 to WSS3 to 2010
    and I thought maybe something did not fully get upgraded even though this has been in use for 2 years since the upgrade.

  • The URL is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.

    Hi all, 
    I'm having this issue on all document libraries when editing its properties, and it is also happening when creating new sub site (when it tries to provision the homepage). This issue is happening in a site collection that was migrated from a SharePoint 2010
    environment. 
    I have investigated every single error message, and none of the search results I found on the web helped, including the issue with having multiple column names mapped to the same database name ("@tp_Editor" error below). The file exists and it
    gets added to the document library but it fails when updating it's properties. 
    Here is logs from the ULS logs related to this issue:
    <nativehr>0x81020030</nativehr><nativestack></nativestack>The URL 'test/sdfsdfsdf.docx' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.
    SPRequest.AddOrUpdateItem: UserPrincipalName=i:0).w|s-1-5-21-1739618301-713299677-2434533842-6675, AppPrincipalName= ,bstrUrl....
    Non-version conflict error in RunItemEventReceiverExProps.  Exception: Microsoft.SharePoint.SPException: The URL 'test/sdfsdfsdf.docx' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the
    current Web. ---> System.Runtime.InteropServices.COMException: <nativehr>0x81020030</nativehr><nativestack></nativestack>The URL 'test/sdfsdfsdf.docx' is invalid.  It may refer to a nonexistent file or folder, or refer to a
    valid file or folder that is not in the current Web.    
     at Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String&
    pbstrGuid, Guid 
    Exception while assigning Document ID: The URL 'test/sdfsdfsdf.docx' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.
    Failed to get output parameter, HR: 0x80131509, Native stack:
    [Forced due to logging gap, cached @ 01/31/2014 16:45:19.56, Original Level: Verbose] Invoking EventReceiver - [Id: {0}]
    System.Data.SqlClient.SqlException (0x80131904): Parameter '@tp_Editor' was supplied multiple times.    
     at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)    
     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)    
    SQL error code from last error 8143 - Parameter '@tp_Editor' was supplied multiple times.
    <nativehr>0x81020030</nativehr><nativestack></nativestack>The URL 'test/sdfsdfsdf.docx' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.
    SPRequest.AddOrUpdateItem: UserPrincipalName=i:0).w|s-1-5-21-1739618301-713299677-2434533842-6675, AppPrincipalName= ,bstrUrl=http://
    System.Runtime.InteropServices.COMException: The URL 'test/sdfsdfsdf.docx' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.   
     at Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, 

    It sounds like you have an Event Receiver attached to your library that might be throwing an internal error and blocking the file from being uploaded. The following errors state that the file that SharePoint thought was uploaded actually wasn't. I would
    focus on what is happening within the event receiver.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • ITunes No Longer Runs--iTunes Helper Resources Not a Valid File Name

    I made a dumb mistake (I think) and tried to install iTunes onto an SD card.  At first, my computer would only let me open iTunes if the SD card was installed.  I tried to reinstall to the C drive, but keep getting the "I Tunes Helper Resources not a Valid File Name" message.  At this point I want to uninstall everything and start over, but I'm afraid I'll lose my music.  I still have all the files but, of course, none will open since I don't have a properly installed iTunes anymore.   Would appreciate any assistance in uninstalling, reinstalling and saving my current music files.

    Here's what I decided to do.  Fortunately, all the files were still available, so I simply backed them up from my iTunes Music Library onto a 32 GB flash drive then transferred the new stuff onto an older computer in my office with an older version of iTunes.  I had to do this in several shifts since I have more than 32GB of music.  Everything that transferred plays well.  Next I'll try to wipe iTunes completely off the new computer, reinstall an older version of iTunes and then reload all the files onto the new computer.  What a PITA!

  • Ways to handle large volume data (file size = 60MB) in PI 7.0 file to file

    Hi,
    In a file to file scenario (flat file to xml file), the flat file is getting picked up by FCC and then send to XI. In xi its performing message mapping and then XSL transformation in a sequence.
    The scenario is working fine for small files (size upto 5MB) but when the input flat file size is more then 60 MB, then XI is showing lots of problem like (1) JCo call error or (2) some times even XI is stoped and we have to strat it manually again to function properly.
    Please suggest some way to handle large volume (file size upto 60MB) in PI 7.0 file to file scenario.
    Best Regards,
    Madan Agrawal.

    Hi Madan,
    If every record of your source file was processed in a target system, maybe you could split your source file into several messages by setting up this in Recordset Per Messages parameter.
    However, you just want to convert you .txt file into a .xml file. So, try firstly to setting up
    EO_MSG_SIZE_LIMIT parameter in SXMB_ADM.
    However this could solve the problem in Inegration Engine, but the problem will persit in Adapter Engine, I mean,  JCo call error ...
    Take into account that file is first proccessed in Adapter Engine, File Content Conversion and so on...
    and then it is sent to the pipeline in Integration Engine.
    Carlos

  • The URL 'filename.xml' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current web

    Hi All,
    We have a form library with around 2000 InfoPath forms submitted successfully, but suddenly from the couple of weeks noticing that, the users are able to submit the form successfully without
    any issues but the referenced .xml file is physically not
    getting saved and the strange thing is it's reference(i.e. xml) is available. When we try opening the form it gives below error.<o:p></o:p>
    “InfoPath cannot open the following file ‘formpath/.xml’
    ”<o:p></o:p>
    When we try viewing the version history, it gives below error:<o:p></o:p>
    "The URL 'filename.xml' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current web"<o:p></o:p>
    I have also looked at the logs but not much information. Can someone help me?
    MercuryMan

    Hi,
    According to the error message, this issue is a typically database related issue.
    1. Make sure that your Content Database in SQL is not full.
    Open SQL management studio and connect to SQL server that have your content DB.
    You can find SQL server name from "manage servers in this farm".
    Right click the content database, click Reports > Standard Reports > Disk Usage to generate a standard report.
    For your reference:
    http://social.technet.microsoft.com/Forums/en-US/178095de-7fba-482c-9be1-94e60b1906e0/sharepoint-2010-error-the-url-item-url-is-invalid-it-may-refer-to-a-nonexistent-file-or
    2. According to KB 894631, this error message will be thrown out when the content database is configured to read-only.
    Go to Central Administration > Manage Content Databases and check if it is the case. Also, recycle the application pool in case the cache was corrupted.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Pictures won't save as valid files

    Whenever I take a picture on my Pearl 8220, it displays the image, and then saves it to my media card. however, when i attempt to view any pictures using my blackberry, the images can't be opened, and display as a black screen with a red x in the top left corner. reading the images off of the sd card with a PC doesn't work either, the images don't open as valid files, even though they look like non-empty jpeg files.
     Thanks for any help,
    Slothsberry 

    Hi, Slothsberry.
    Have you finally fixed this? Looks like I have the similar issue. I'm on bold and using the app that creates Excel file in Device Memory. The file looks like it's OK (size is not zero, it has proper name), but it can not be opened. When I studied its connent I saw every its byte is just zero. Other users of the app do not get in this problem. I can't figure out what could be wrong with my device...
    Thanks in advance,
    Arhimed

  • How to handle a fixed length file without newline?

    Hi Experts,
    I'd like to handle a fixed length file without newline by sender file adapter.
    A file like following.
    It contains three recores."AAXBBBXCCCCX" is one record.
    AA1BBB1CCCC1AA2BBB2CCCC2AA3BBB3CCCC3
    I tried that following two parameters set. But only first recored was read.
    fieldFixedLengths
    fieldFixedLengthType
    Please tell me how to handle.
    Thanks
    Shinya Kawagoe.

    For this case we wrote a simple Adapter Module inserting an end of line character after an offset.
    This way it can be reused in many interfaces.
    And reading the whole file may not be an option in case of large source files. May cause performance / memory issues.
    eolbean.offset = <recordLlen>
    XMLPayload xmlpayload = msg.getDocument();
    byte[] content = xmlpayload.getContent();
    byte crlf = 0x0A;
    int current = 0;
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    int lines = content.length / recordLen;
    do
         lines--;
         baos.write(content, current, recordLen);
         if (lines > 0) // if other lines, eol required
              baos.write(crlf);
              current += recordLen;
    } while (lines > 0);
    xmlpayload.setContent(baos.toByteArray());
    baos.close();
    Audit.addAuditLogEntry(key, AuditLogStatus.SUCCESS,     MODULE + " Done EOLing.");

  • How to handle large data in file adapter

    We have a scenario Proxy -> PI -> File Sever using File adapter.
    File adapter is using FCC for conversion.
    recently we had wave 2 products live and suddenly for this interface we have increase in volume of messages, due to which File adapter is not performing well, PI goes slow or frequent disconnect from file server problem. Due to which either we will have duplicate records in file or file format created is wrong.
    File size is somewhere around 4.07 GB which I also think quite high for PI to handle.
    Can anybody suggest how we can handle such large data.
    Regards,
    Vikrant

    Check this Blog for Huge File Processing:
    Night Mare-Processing huge files in SAP XI
    However, you can take a look also to this Blog, about High Volume Messages:
    Step-by-Step Guide in Processing High-Volume Messages Using PI 7.1's Message Packaging
    PI Performance Tuning Best Practice:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2016a0b1-1780-2b10-97bd-be3ac62214c7?QuickLink=index&overridelayout=true&45896020746271

  • How to handle the layout of file in OWB?

    Hi all,
    I am facing one problem..that is
    If my file is coming monthly
    i need to load into datamart.
    But the problem is the layout is not same.
    At the end of the file one field may add or one field may delete..
    The procedure I am following to load data into datamart is "First I am creating External table and then from Eaternal table to Table."
    How can I handle this type of file in OWB
    Pls give me some inputs
    Thanks in advance
    Srinivas

    hi,
    Define the extenal table in the followin way,
    CREATE TABLE sample_extbl
    2 ( col1 NUMBER
    3 , col2 NUMBER
    4 , col3 NUMBER
    5 )
    6 ORGANIZATION EXTERNAL
    7 (
    8 TYPE ORACLE_LOADER
    9 DEFAULT DIRECTORY LOG_DIR
    10 ACCESS PARAMETERS
    11 (
    12 RECORDS DELIMITED BY NEWLINE
    13 nobadfile
    14 nologfile
    15 FIELDS TERMINATED BY ',' LDRTRIM
    16 MISSING FIELD VALUES ARE NULL
    17 )
    18 LOCATION (LOG_DIR:'a.csv')
    19 )
    20 REJECT LIMIT UNLIMITED;
    case 1:
    Now, for example if the file a.csv contains the data as follows.
    col1,col2,col3,col4,col5
    abc,28,xyz,mno,1000
    abc2,38,xyz,mno,2000
    abc3,28,xyz,mno,3000
    Then, if we query the external table "sample_extbl"
    select * from sample_extbl
    Then you get the data as follows
    col1 col2 col3
    abc 28 xyz
    abc2 38 xyz
    abc3 28 xyz
    Case 2:
    Now, for example if the file a.csv contains the data as follows.
    col1,col2,col3,col4,col5
    abc,28,xyz,mno,1000
    abc2,38
    abc3,28,xyz,mno
    Then, if we query the external table "sample_extbl"
    select * from sample_extbl
    Then you get the data as follows
    col1 col2 col3
    abc 28 xyz
    abc2 38
    abc3 28 xyz
    Regards,
    Gowtham Sen.

  • How to handle the java.policy file ?

    Can somebody tell me how to handle the java.policy file?
    I always get java.net.SocketExceptions and java.security.AccessControlExceptions while connecting to an appserver from an applet.
    What do I have to write in the java.policy file, where do I have to place it and do I have to call it in some way form my applet?
    Thanks in advance.
    don call

    The java.policy file goes in your jre installation directory in .../jre/lib/security (there should be one there already).
    I used it to allow otherwise restricted permissions for an applet using javax.comm. Add something like the following to the file:
    grant codeBase "URL:http://yourDomainName/rootDirectoryOfYourApp/*" {
         permission java.security.AllPermission;
    This will give the applet downloaded from your site all permissions. You might want to give only certain permissions, I don't know.
    Teri

Maybe you are looking for

  • Manually created submit buttons & mandatory fields

    Hi, I included a Submit & an Email button in some of my forms.  I've set them up as Regular buttons and coded them myself to do what I want eg: if(xfa.host.messageBox("Please save this form before emailing or data will be lost","Save Form",1,1))    

  • Laserwriter 320 driver

    Does anyone know where I can get the driver software for my Personal Laserwriter 320 to run on Mac OS 8.5.1? I have a StarMax 4200. Thanks!

  • Idoc CREMAS05 getting errors

    We are posting the VENDOR data from PI to ECC. we are getting below error. Transaction WE02 is showing error code 51 saying *"Field RF02K - D0130 is not an input field"* The field is not present in the standard IDOC. So what could be the possible pro

  • Printing out French characters

    Hi to everyone. I'm trying to make a small application that will help me learn french verbes. I have the verbes in a file (written with notepad on windows) and I want to print them usign System.out.println(); The problem is I'm in Greece, so my local

  • Excel to pdf to word

    When I convert an excel sourced pdf to word the clarity makes it unreadable. Additionally the grid lines appear even though they were deleted on the original excel sheet and do not appear on the pdf doc. Any hints?