JMS Null Characters being added to payload
Hi.
I have an application which produces jms messages to a queue.
Every message I have created seems to have 4 NULL characters pasted onto the end of the payload.
I am experiencing the same issue with deployed applications and those just connecting to the jms server from a different application outside of Netweaver.
This has only just started happening, and everything was working ok before this happened - has anyone any pointers at all??
Im very confused as to why this would happen.
Update: It also only applies to BytesMessages as TextMessage is ok.
Regards,
Andrew
Edited by: Andrew Morton on May 15, 2008 12:14 PM
This is to do with the jms framework.
The 2 ways to get the payload out of the message resulted in 2 different sizes of payload being delivered.
Similar Messages
-
MS control characters being added
Contribute 3 has just started adding the ^M to the end of
each line in the code. Is there a way to stop this? I have been
really trying to keep the code as minimalistic as I can (I use vi
but have recently been given an assistant that will be using
Contribute). I see the ^M in vi editor. How can I stop Contribute
from adding these? Thank you!This is to do with the jms framework.
The 2 ways to get the payload out of the message resulted in 2 different sizes of payload being delivered. -
Special characters being read from the unicode file for greek language
Hi All,
I have a report which would upload a unicode file and then update the vendor master data accordingly.
The file contains greek characters too.
when the file is being read in the code, some special characters are being added up to the vendor number which is the first entry. The special characters are not included in the file , but are added up only to the first vendor number and not any other vendor numbers.
The logic that is being used is as follows :
TRY.
IF unicode IS INITIAL.
IF codepage IS INITIAL.
*--> For backward compatibility where this FM might be called from
* other dependent objects (FMs/dynamic subroutines)
* which donot have access to user's input w.r.t Unicode parameters
OPEN DATASET filename FOR INPUT
IN LEGACY TEXT MODE
MESSAGE msg
REPLACEMENT CHARACTER repl_char
IGNORING CONVERSION ERRORS
FILTER filter.
ELSE.
*--> System in non-unicode and Unicode Environment (Phases I and II)
OPEN DATASET filename FOR INPUT
IN LEGACY TEXT MODE CODE PAGE codepage MESSAGE msg
REPLACEMENT CHARACTER repl_char
IGNORING CONVERSION ERRORS
FILTER filter.
ENDIF.
ELSE.
*--> Extract File in Unicode format - Phase III
OPEN DATASET filename FOR INPUT IN TEXT MODE ENCODING UTF-8
MESSAGE msg
FILTER filter.
ENDIF.
IF sy-subrc NE 0.
MESSAGE e001(zuni) WITH filename sy-subrc
RAISING file_open_error.
ENDIF.
the unicode parameters used are : codepage = 8000.
An early reply is most appreciated.
Regards,
Manu.Please check SAP notes for Eastern European Characters in Unicode system. and may be below code helps you
DATA:
ltp_bom TYPE sychar01,
ltp_encoding TYPE sychar01,
ltp_codepage TYPE cpcodepage.
Processing --------------------------------------------------------- *
TRY.
CALL METHOD cl_abap_file_utilities=>check_utf8
EXPORTING
file_name = itp_filename
max_kb = -1
all_if_7bit_ascii = abap_true
IMPORTING
bom = ltp_bom
encoding = ltp_encoding.
CATCH cx_sy_file_open .
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING file_open_error.
CATCH cx_sy_file_authority .
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING file_authority_error.
CATCH cx_sy_file_io .
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING file_io_error.
ENDTRY.
CASE ltp_encoding.
WHEN cl_abap_file_utilities=>encoding_utf8
OR cl_abap_file_utilities=>encoding_7bit_ascii.
CASE ltp_bom.
WHEN cl_abap_file_utilities=>no_bom.
OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
ENCODING UTF-8.
WHEN cl_abap_file_utilities=>bom_utf8.
OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
ENCODING UTF-8
SKIPPING BYTE-ORDER MARK.
WHEN cl_abap_file_utilities=>bom_utf16_be.
ltp_codepage = '4102'.
OPEN DATASET itp_filename FOR INPUT IN LEGACY BINARY MODE
BIG ENDIAN CODE PAGE ltp_codepage.
WHEN cl_abap_file_utilities=>bom_utf16_le.
ltp_codepage = '4103'.
OPEN DATASET itp_filename FOR INPUT IN LEGACY BINARY MODE
LITTLE ENDIAN CODE PAGE ltp_codepage.
WHEN OTHERS.
OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
ENCODING UTF-8.
ENDCASE.
WHEN OTHERS.
OPEN DATASET itp_filename FOR INPUT IN LEGACY TEXT MODE.
ENDCASE.
Edited by: Nilesh Shete on May 7, 2010 5:29 PM -
Event Receiver:Item is Being Adding Event Recevier Issue
Hi All,
* I had written Simple event receviers(Item is Being Adding) to a site at FarmLevel(Farm Solution) and below is the code for it.
* In below code I am adding the List name to a Column called "Name" ,when Item is being adding the code is getting loop and inserting unwanted data and updating Column "Name" with it instead of updating when item is added
*Below if u see there is no value in Column "Name" when I insert values "Mark Devis"(Title) and "In Meeting"(Body) columns
Can any one help me how can I solve the issue
Code:
string listitle = properties.List.Title + "" + "is List Name";
string siteurl = http://sp2010:8080/personal/Sample/;
using (SPSite mysite = new SPSite(siteurl))
using (SPWeb myweb = mysite.OpenWeb())
SPList mylist = myweb.Lists["Announcements"];
SPListItem newitem = mylist.Items.Add();
newitem["Name"] = listitle.ToString();
newitem.Update();
Result:
SamarHello Samar,
Try to use before/after properties to update item in list on ItemAdding event.
http://sarveshspn.blogspot.in/2010/05/using-itemadding-and-afterproperties-to_08.html
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/1ed217b1-9441-4fe1-b3aa-68b2768bdfc7/updating-list-item-value-on-the-itemadding-event-handler-of-an-item-receiver-class?forum=sharepointdevelopmentlegacy
Also make sure that you have at least contributor right in list to edit data.
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Every single website url address, or url address within a website page is being added to my location bar/address bar drop down menu.
I don't want everything added or saved in the location bar. Only urls that I used a lot used to be saved there but now every single url (and url within a url)I visit is being added to it.
How can I stop this? This just started happening.
I'm sure it's a simple browser setting but I've checked and nothing gives an option to control this.
Firefox 3.0.17
Windows XP
== User Agent ==
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.17) Gecko/2009122116 Firefox/3.0.17A possibility is to open the links via the right-click context menu or a middle-click in a new tab to make sure that Firefox sees them as regular links.
-
I updated to the new iTunes last week. Today I plugged in my 4th generation Shuffle to add some new songs. The shuffle appears in Devices, but when I try to add songs, I'm not getting the progress bar at the top of the screen, so I'm assuming the song isn't being added. I tried ejecting the Shuffle and plugging it in again, and I got a message that my iPod needed to be restored before it could be used with iTunes -- even though the screen also said the Shuffle is up to date on the software. I finally gave in and restored it, but I continue to get the same message. When I eject the iPod and try to play it now, I'm getting nothing, and when it is connected to the usb port, the orange light is continually flashing. I've been trying to figure this out for about 3 hours now, so if anyone could help me, I'd be eternally grateful!
The 1st and 2nd gen shuffles do not have an automatic syncing mode, like later shuffles and the "big" iPods. It is maintained manually (or by using the Autofill feature).
If the iTunes sidebar (along left side of window) is hidden, from the menu bar, under View, select Show Sidebar. The shuffle appears in the sidebar, under DEVICES, when connected.
To add songs to the shuffle... Show a list of songs in the iTunes window. For example, you can select Music under LIBRARY (in the sidebar) to show your complete iTunes music library list. Select a song and drag it to the shuffle in the sidebar. You can do this with more than one song selected. Alternately, select the song(s), right-click the selection, and choose the command to Add to Playlist -> [name of iPod].
To remove songs from the shuffle... Select the shuffle in the sidebar. To the right, it's Settings screen is shown. Toward the top, where it says Settings, click on On This iPod (to the right). The list of songs on the shuffle is shown below. Select the song you want to remove and press Delete on the keyboard. You can do this with more than one song selected.
NOTE: At the bottom of the shuffle's list of songs, there are controls for the Autofill feature. You can also use Autofill to fill your shuffle from your music library or from a specific playlist. -
Hi Guys
when we install an Application in windows 8 family, we see that in addition of Application executable file, user manuals (.chm) and PDF & other files related to that App are added to start menu (when we click down Arrow which shows all programs) and
so the start menu gets quit messy.
is there any settings to make only applications executable file be added to start menu & prevent other types of files related to that App being added here?
thanks in advancedHi John,
This issue is related to the programs package we installed.
• An installation package contains all of the information that the Windows Installer requires to install or uninstall an application or product and to run the setup user interface.
• The developer can specify installation context, and based on these properties, Windows Installer automatically redirects the values of folder properties and registrations to locations.
• The shortcut is added to the profile by these context
We could right click these file and could find out they are the shortcut mentioned above.
For more information about Windows Installer, please refer to the following article.
http://msdn.microsoft.com/en-us/library/windows/desktop/dd765197(v=vs.85).aspx
Best regards,
Fangzhou CHEN
Fangzhou CHEN
TechNet Community Support
hi Fangzhou
useful link
thanks a lot -
Photos are being added to my iPad, without choosing any events in iPhoto or having them sync with iCloud
I just upgraded to IOS6, and now my ipad is full of pictures I did not choose to sync.
I cannot delete them without deleting them from all sources.
Actually, the message is when I go to hit EDIT, select a picture, and then choose DELETE: "This photo is used in an album. Do you want to delete it everywhere? Delete Everywhere"
Does that mean "Everywhere" on my iPad, or everywhere including whatever place on my computer it found the photos to begin with?
PLEASE HELP
Ps:
I've already done this:
To delete photos from your device
In iTunes, select the device icon in the Devices list on the left. Click the Photos tab in the resulting window.
Choose "Sync photos from."
On a Mac, choose iPhoto or Aperture from the pop-up menu.
On a Windows PC, choose Photoshop Album or Photoshop Elements from the pop-up menu.
Choose "Selected albums" and deselect the albums or collections you want to delete.
Click Apply.You can still sync the photos and keep the photos that are already on the device. You have to include all of the albums or events in the pictures folder that you sync from. If you are using iPhoto, select that in the Sync Photos from drop down menu and then select all of the albums or events that you want to sync. Make sure to check Selected Albums, events, faces and automatically include (no events). Using that option will allow you to choose exactly which albums and events to sync.
You have to remember that all photos must be included in every sync so you cannot sync photos from iPhoto today and then try to sync photos from another folder tomorrow, or you will erase all of the photos that were synced from iPhoto. You need to maintain one main Photos syncing folder for the photos that you want to transfer to the iPad. You can have subfolders within that one main folder and you can selectively sync those subfolders. You just have to place all of the photos that you want to sync into one main iPad syncing photos folder.
There are WiFi transfer apps that allow you to transfer photos to the iPad without having to sync with iTunes. I use this one. This app (and others like it) will allow you to use multiple computers to transfer photos.
Wireless Transfer App Easily send photos to iPhone/iPad ... -
IDOC Data record is appending with NULL characters instead of spaces.
Hi Gurus,
1) We have created a port with Japanese characters for MATMAS05 (IDOC type) and trying to download an IDOC into an XML file using the ADAPTER, the actual data is less than the length of the IDOC string so we need to append the remaining spaces to each data record which in turn fills the segment pad but whereas in NON-UNICODE server the data record is appending with NULL characters instead of spaces.
2) For Japanese port the receiver port name in XML file is appearing with some junk characters in NON-UNICODE client, whereas in UNICODE client it is displaying the correct port name with Japanese characters.
Your help will be appreciated.
Thanks in Advance.ORA-06512 indicates a numeric or value-error line 2 seems to show to the first statement.
Check the datatypes of your columns/items.
Try to issue an update manually in SQL*Plus to see if it works generally. -
Tracks being played are automatically being added to library!!!
Is there any way to stop a track being played from being added to the library?
There's no way I know of to stop iTunes adding the song but if you right click on the file and choose Open With and then QuickTime you can listen to it without using iTunes.
-
Null characters in the source file
Hi frnds,
We have a file to file scenario, where in R/3 system will generate the flat files and put in the some folder of R/3 system itself. XI needs to pick this file and process but the problem here is the file contains every alternate character as null character i.e., 1st,3rd,5th.. and so on. Whic is failing during mapping.
Following is the error message displayed:
*com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x0(:main:, row:4, col:12) at java.lang.Throwable.<init>(Throwable.java:56) at com.sap.aii.utilxi.misc.api.BaseRuntimeException.<init>(BaseRuntimeException.java:58) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:187) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:174) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) a.............t *
Please can any one help how to handle this file with null characters.
Regards,
Shiva.HI,
On source side make all those fields as optional i.e. occurance will be 0..1 or 0...Unbounded.
Also while mapping with Receiver fields make those also optional or use DefaultValue Node to pass default value as blank space.
Actually the node is unable to generate due to Null value so that might be the problem
Thanks
Swarup -
How do I stop google crome from being added to my computer when downloading Adobe Reader?
How do I stop google crome from being added to my computer when downloading Adobe Reader?
By unchecking the box on the download page.
Or by downloading the offline installer from the FTP site or http://get.adobe.com/reader/enterprise/ -
Sync Space Problems as removed apps being added back
I had a problem with the original laptop in which I had itunes on so I haven't backed up or sync'd my phone for over 6 months. I finally got around to moving the itunes file to another computer. Now when I try to sync my phone it is trying to add the apps back that were deleted off the phone but were still on the last time on itunes backed up of the phone. So now the Apps are being added back and before it can complete the sync it runs out of space and cannot complete the process. Help how can I get around this, thanks.
You'd think that deleting an app from your iPhone and then syncing the iPhone would tell iTunes that you don't want that application on your iPhone any longer - but that isn't what happens. iTunes is your home base for applications and media. You have to tell iTunes what you want added to your iOS device or removed from your iOS device.
My habit is to connect my iOS device and immediately select the option to sync newly purchased items from the device to iTunes. Once that's done I select my device in iTunes and look over the applications and media to see that everything I want/don't want is correctly indicated. Then I sync again.
Step 1 gets all the updated and newly purchased stuff into iTunes. Step 2 makes sure I get only what I want (and exactly what I want) on my device. -
File extension _000 is being added
I believe this is part of the rollback option which we are
not using.
We tried the Rollback option at one time and it became
confusing for the users as well as for those of us who administer
Contribute 3 because it was adding so many extra files which was
contributing to broken links. We do not need the Rollback option
because our users are only allowed access to development and
everything is backed up daily. Therefore, we disabled the rollback
option.
Even though Rollback has been disabled, the _000 file
extension is still being added to graphics and PDF files. How can
we stop Contribute 3 from adding this _000 file extension? It is
still causing a problem with broken links because the files moved
into production do not have the _000 file extension.By Default any user role created - ex: Publisher, Writer
etc.. will not have a permission called "Allow users to delete the
files they have permission to edit"...
Edit->Administer Website->Select the role->Edit role
settings->File Folder Access, Check the check box... All users
to delete the file they have permission to edit...
When you give this permission, and if the user in that role
tries to publish a file then he will be prompted with a dialog -
"Do you want to overwrite this file? or create a similar file name
i.e., _000"...
But by default this checkbox is unchecked so, people will
have by default _000 created....
hope this helps...
-Arun -
HI FRENS,
kindly tell me how to remove null characters from a string
thanks in advanceHi,
you mean space?
In this case:
replace all occurrences of space in string with ''.
rgs
Maybe you are looking for
-
This is what I found when searching for an answer online, but iTunes has changed so much since this posting that I don't know if the answer is still valid: Give your playlist as a gift You can gift a playlist to a friend, assuming everything is avail
-
How to set format for a column in repository
Hi all, i have some columns for which i would like to set a default format of the data directly into the repository. For example, a numeric code is shown as 1.234,00, i want the BM to show by default 1234. Or a date shown as 03/03/2013 04:00:00 AM i
-
How to fetch data from database in javafx 2.2 table which is editable.
Dears! I want to fetch data from database in javafx 2.2 tableformat with jdbc , which is also editable and i can add more records in this table also. Can anybody help me
-
What can I get rid off to clear the most space on my iPhone 4?
What can I get rid off to clear the most space on my iPhone 4?
-
New Mac Book Pro Retina (late 2013) won't wake
Bought new model of MBP with Maverick pre installed and every so often I open lid from being in sleep mode and nothing happens, I then press the power button and still nothing happens, I repeat pressing the power button for a few minutes then sudden