Problem with Intrastat handling (MEIS)
Dear SCN Members,
we have a problem with Intrastat handling:
Our company is in Great Britain (example VAT-No. GB123456789)
We have a vendor in Switzerland (no EU VAT-No.), who has a fiscal representative in Belgium (example VAT-No. BE1234567890).
Both have a separate vendor number (swiss vendor: 23176, belgian vendor: 33179).
We created a partner "WL" (Goods Supplier) in the vendor master data of the swiss vendor and assigend the belgian vendor number. The swiss vendor master data has nothing filled in the "VAT Reg. No." field (LFA1-STCEG) of the vendor master data. The belgian vendor number has the belgian VAT-No. filled in the "VAT Reg. No." field (LFA1-STCEG) of the vendor master data.
The partner "WL" is automatically taken into the purchase order header partners and is also taken into account for the goods receipt posting.
After I have posted the vendor invoice, the line is shown in transaction MEIS, but the incompletion log is always showing message no. EIP029:
The system did not find the VAT registration number of vendor 23176.
In my opinion, the VAT no. of the fiscal representative (BE1234567890) should be taken into account for the Intrastat reporting, as the swiss vendor has no VAT number. We have not yet managed to get the belgian VAT into the Intrastat report.
Could you please clarify. Thanks in advance for your help!
Hi,
Please refer the KBA: 1988909 - MEIS: Error EIP 029 "The system did not find the VAT registration number of vendor The reason and the solution is well explained in the KBA. You may change the configuration as explained in the KBA and test again.
Regards,
AKPT
Similar Messages
-
Hello all,
I have a problem with event handling. I have two buttons in my GUI application with the same name.They are instance variables of two different objects of the same class and are put together in the one GUI.And their actionlisteners are registered with the same GUI. How can I differentiate between these two buttons?
To be more eloborate here is a basic definition of my classes
class SystemPanel{
SystemPanel(FTP ftp){ app = ftp};
FTP app;
private JButton b = new JButton("ChgDir");
b.addActionListener(app);
class FTP extends JFrame implements ActionListener{
SystemPanel rem = new SystemPanel(this);
SystemPanel loc = new SystemPanel(this);
FTP(){
add(rem);
add(loc);
pack();
show();
void actionPerformed(ActionEvent evt){
/*HOW WILL I BE ABLE TO KNOW WHICH BUTTON WAS PRESSED AS THEY
BOTH HAVE SAME ID AND getSouce() ?
In this case..it if was from rem or loc ?
} It would be really helpful if anyone could help me in this regard..
Thanks
Hari VigenshHi levi,
Thankx..
I solved the problem ..using same concept but in a different way..
One thing i wanted to make clear is that the two buttons are in the SAME CLASS and i am forming 2 different objects of the SAME class and then putting them in a GUI.THERE IS NO b and C. there is just two instances of b which belong to the SAME CLASS..
So the code
private JButton b = new JButton("ChgDir");
b.setActionCommand ("1");
wont work as both the instances would have the label "ChgDir" and have setActionCommand set to 1!!!!
Actually I have an array of buttons..So I solved the prob by writting a function caled setActionCmdRemote that would just set the action commands of one object of the class differently ..here is the code
public void setActionCommandsRemote()
for(int i = 0 ; i <cmdButtons.length ; i++)
cmdButtons.setActionCommand((cmdButtons[i].getText())+"Rem");
This just adds "rem" to the existing Actioncommand and i check it as folows in my actionperformed method
if(button.getActionCommand().equals("DeleteRem") )
deleteFileRemote();
else if(button.getActionCommand().equals("Delete") )
deleteFileLocal();Anyway thanx a milion for your help..this was my first posting and I was glad to get a prompt reply!!! -
Problems with SoapMessage Handler in SJS AS 8.1
Hi!
I try to post it in this forum as well, since there is no response in the WebService forum, and it also seems to be a problem with the application server.
I have problems with execution of standard soap message handler.
Both webservice and handler is of "HelloWorld" and is generated in the NetBeans 4.1 IDE and follows the standards of WebService and GenericHandler
When I try the WebService Runtime testtool integrated in NetBeans, the handler and webservice works fine on the localhost SJS AS 8.1. Then I try to execute the same wsdl from other test environment(like soapscope) and I receive an error from the SJS AS(JAXRPC.TIE.04: Internal Server Error (JAXRPCTIE01: caught exception while handling request: java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.impl.TextImpl))
Then I try to deploy without references to the handler in the webservice.xml, and then webservice works fine.(also through soapscope).
Is there some server settings that I have missed??
I also have the latest build of NetBeans 4.1 and a standalone version of SunAppserver 8.1(Sun Java System Application Server Platform Edition 8.1 2005Q2 UR2)
Stacktrace from the server:
[#|2005-06-16T14:11:09.546+0200|WARNING|sun-appserver-pe8.1_02|javax.enterprise .system.container.web|_ThreadID=16;|preWebHandlerError
java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.impl.TextImpl
at com.sun.xml.rpc.server.StreamingHandler.getOpcodeForRequestMessage(StreamingHan dler.java:628)
at com.sun.enterprise.webservice.WsUtil.getInvMethod(WsUtil.java:943)
at com.sun.enterprise.webservice.ServletPreHandler.handleRequest(ServletPreHandler .java:55)
at com.sun.xml.rpc.client.HandlerChainImpl.handleRequest(HandlerChainImpl.java:86)
at com.sun.xml.rpc.server.StreamingHandler.callRequestHandlers(StreamingHandler.ja va:918)
at com.sun.xml.rpc.server.StreamingHandler.preHandlingHook(StreamingHandler.java:8 31)
at no.vsusdag.ws.DagWSEPSEI_Tie.preHandlingHook(DagWSEPSEI_Tie.java:236)
at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:102)
at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate. java:443)
at com.sun.enterprise.webservice.JAXRPCServlet.doPost(JAXRPCServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterCha in.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.ja va:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal ve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:13 2)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:653)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:534)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.jav a:403)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
|#]
[#|2005-06-16T14:11:09.546+0200|SEVERE|sun-appserver-pe8.1_02|com.sun.xml.rpc.s erver|_ThreadID=16;|com.sun.xml.messaging.saaj.soap.impl.TextImpl
java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.impl.TextImpl
at com.sun.enterprise.webservice.WsUtil.throwSOAPFaultException(WsUtil.java:972)
at com.sun.enterprise.webservice.ServletPreHandler.handleRequest(ServletPreHandler .java:68)
at com.sun.xml.rpc.client.HandlerChainImpl.handleRequest(HandlerChainImpl.java:86)
at com.sun.xml.rpc.server.StreamingHandler.callRequestHandlers(StreamingHandler.ja va:918)
at com.sun.xml.rpc.server.StreamingHandler.preHandlingHook(StreamingHandler.java:8 31)
at no.vsusdag.ws.DagWSEPSEI_Tie.preHandlingHook(DagWSEPSEI_Tie.java:236)
at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:102)
at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate. java:443)
at com.sun.enterprise.webservice.JAXRPCServlet.doPost(JAXRPCServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterCha in.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.ja va:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal ve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:13 2)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:653)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:534)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.jav a:403)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
|#]
Hope someone have some tips and can help me.
thanks
Dag ArvolaHi,
I too use SOAPScope and have faced the same problem.
With some trial and error figured out that the problem is possibly with the way the XML string is parsed by the Message Handler classes.
Here is the detail and hope it helps you too. The work around is to remove any white spaces / new line chars following the <Body> tag.
Rgds, Rajasekhar
I uploaded a SOAPScope workspace with different message invocations, with the "Message Handler" configured.
The work space is @
http://www.mindreef.net/tide/shared/workspace/e36d678cbb35389dd238fa16a8cdeb14
The 1st Message is the one captured in SOAPScope, while invoked from the NetBeans IDE itself.
If you observe the 3rd message that failed and the 4th Message that works, the only difference is the string that is posted to the Web Service URI.
From Resend > Preview Edit
3rd Message is a properly formatted xml document with the third line reading as just
<soap:Body>
where as
4th Message is not a properly formatted xml document with the third line reading as
<soap:Body><mrns0:createCustomer>
Even a <Space> as in "<soap:Body> <mrns0:createCustomer>" causes a SOAP Fault to occur.
********************* -
Sap4rails - Problem with automatic handling of data types under Windows
Hello all,
I've been trying to develop my own application using sap4rails library but whenever I call one of standard RFCs I always get strange results. Here is the piece of the code from my model which gets data from CURRENCY_LIST table:
require "sap4rails"
class App < SAP4Rails
@@funcs = [
'BAPI_CURRENCY_GETLIST',
# User defined instance methods here
attr_accessor :message
class << self
def getlist()
RAILS_DEFAULT_LOGGER.info("[App]#getlist ")
App.BAPI_CURRENCY_GETLIST.call()
return App.BAPI_CURRENCY_GETLIST.currency_list.rows()
end
end
here is the code from the controller
class AppController < ApplicationController
layout "standard-layout"
def index
list
render_action 'list'
end
def list
RAILS_DEFAULT_LOGGER.info("[LIST] action started...")
@currencies = App.getlist()
end
end
end the code from the view:
<html>
<head>
<title> Currencies </title>
</head>
<body>
<h1>Listing Currencies</h1>
<table border="1">
<tr>
<% @currencies.first.each_key {|key| %>
<th><%= key %></th>
<% } %>
</tr>
<% for currency in @currencies %>
<tr>
<% currency.each_value {|val| %>
<td><%= val %></td>
<% } %>
</tr>
<% end %>
</table>
</body>
</html>
As you can see everything is just simple. I run my application on the Windows XP OS and always get such result:
<html>
<head>
<title>Currencies and Exchange Rates: index</title>
</head>
<body>
<html>
<head>
<title> Currencies </title>
</head>
<body>
<h1>Listing Currencies</h1>
<table border="1">
<tr>
<th>VALID_TO</th>
<th>ALT_CURR</th>
<th>LONG_TEXT</th>
<th>CURRENCY_ISO</th>
<th>CURRENCY</th>
</tr>
<tr>
<td>oran peseta </td>
<td>231And</td>
<td> </td>
<td>099991</td>
<td>ADP ADP02</td>
</tr>
<tr>
<td>babwean Dollar </td>
<td>231Zim</td>
<td> </td>
<td>699991</td>
<td>ZWD ZWD71</td>
</tr>
</table>
</body>
</html>
It seems like there is sth wrong with mapping data types from R/3 to data types in Ruby. Does anyone has an idea what could be wrong? I would be very grateful for any help.
Best Regards
Michal M.First can you please post all log file errors
>> I can't really give you a solution or specific recommendation since I did not saw this error yet myself, but on your own risk you can try:
1. You may try to just register 'dts.dll' using regsvr32.exe, but this error may indicate a bigger problem with setup.
If you are running SQL Server 64bit then try running this at the command prompt: %windir%\syswow64\regsvr32 "%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\dts.dll"
2. You can try reinstall from start (In this case you have to make sure that you un-install all)
[Personal Site] [Blog] [Facebook] -
NFS: server reboot - client problem with "file handle" - no unmont
Hello,
when I restart a NFS-server and a client has a NFS-share on it still mounted, that NFS-share becomes unusable on the client: everything causes the client complain about an old "file handle", even trying to unmount that share!
So my question is: How to deal gracefully with a NFS-server reboot and avoiding this file handle problem?
Apart from going to each client and unmount the NFS-share by hand?
Thanks!Do I need to Give these values manually again as they are moved from Env to other?
When we transport ID objects, the values stored in the channel get lost and have to be manually enetered......it happens even for DEV --> QA environment.
Now your channel should reflect PROD-related data.
2- Why my Receiver communiation channel coimg as
Communication Channel | PRD_400 | RFC_QA3_Receiver:
The channel name does not depend on the environment it is present....verify the name once again!
Regards,
Abhishek. -
As you can see if you click to view my profile my forum handel is "Ivan Ćurić". First and last letter of my surname is ć or in unicode "c with acute" (uppercase: U+0106, lowercase: U+0107). Due to some problems in your forum software my surname is displayed as "Ivan Ćuri&..." - last letter of my surname is replaced with "&" sign.
I supose it is a bug in character counting and conversion from unicode to HTML entities.
Please, will you consider repairing this?It's a known problem that happens occasionally.
The loss is not permanent, your handle will return once the necessary server/service is back to normal.
hsawwan is being 494875.BluShadow is being 452534. is about that problem, for example. -
Image scaling problem with object handles
Hi,
I am facing scaling problem.I am using custom actionscript component called editImage.EditImage consists imageHolder a flexsprite which holds
image.Edit Image component is uing object handles to resize the image.I am applying mask to the base image which is loaded into imageholder.
My requirement is when I scale the editImage only the mask image should be scaled not the base image.To achieve this I am using Invert matix .With this
the base image is not scaled but it is zoomed to its original size.But the base image should not zoomed and it should fit to the imageholder size always. When I scale the editImage only the mask image should scale.How to solve this.Please help .
With thanks,
SrinivasHi Viki,
I am scaling the mask image which is attached to imageHolder.When i scale
the image both the images are scaled.
If u have time to find the below link:
http://fainducomponents.s3.amazonaws.com/EditImageExample03.html
u work with this component by masking the editImage.If u find any solution
for scale only mask ,plz share the same.
thanks,
Srinivas -
Problem with File Handler and log files
I'm developing a polymorphic structure for file handling specially for the log file for a server based App... Its working fine except for one thing. The log file that goes into the File Handler comes as a parameter to the class, the problem is that when it writes de file, though it DOES know where it should go, it doesn't do it and it writes the message into some other Log file belonging to another process...
Does someone know how to avoid this or fix it?? any ideas or tips would be great!!Immediately below the Tabs saying "Files" and Assets" is a small box
with arrow on the right to show the drop down list. In the box
on the right there's an icon of two networked computers. Then it
says, "ftp://Hill farm Web Site" which is the name of my website.
If I click on the arrows to pull up the drop-down box, I get four
options divided by a line. Above the line the options are Computer,
HD and ftp://Hill farm Web Site. Below the line it says manage sites.
Below this is list of files that make up my website in a directory
structure. The header for the first column reads, "Local Files",
which appears to be untrue, because the top line in the directory
structure below reads, "ftp://Hill farm Web Site".
Does this help?
regards
David -
Problem with volume handle and external SWF
Hello I'm having 2 problems.
The first is that when loading an external swf in my main SWF I get this in the output window:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at audio_fla::list_1/frame1()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at audio_fla::MainTimeline()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at audio_fla::MainTimeline/frame1()
But it still works. Its an mp3 player.
The other problem is that the loaded SWF has a volume controller. When I test the external SWF by itself it works fine. When I load it on my main SWF when I start to drag the handle on my volume slider and MOUSE_UP outside the handle it still keep dragging the handle.
The code of my main SWF is:
import caurina.transitions.*;
var _currentCategory:String = "";
var percent:String = "";
var loader = new Loader();
loader.name="videoLoader";
loadermc.visible=false;
cat.addEventListener(MouseEvent.MOUSE_OVER, onOverCat);
cat.addEventListener(MouseEvent.MOUSE_OUT, onOutCat);
cat.addEventListener(MouseEvent.CLICK, onClickCat);
btnback.addEventListener(MouseEvent.MOUSE_OVER, onOverCat);
btnback.addEventListener(MouseEvent.MOUSE_OUT, onOutCat);
btnback.addEventListener(MouseEvent.CLICK, onClickBack);
cat.buttonMode = true;
btnback.buttonMode = false;
btnback.visible = false;
function onOverCat(e:MouseEvent):void{
Tweener.addTween(e.target, {alpha:.5 , time:.5});
function onOutCat(e:MouseEvent):void{
Tweener.addTween(e.target, {alpha:.25 , time:.5});
function onClickBack(e:MouseEvent):void{
loader.unloadAndStop();
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
lcontent.visible = false;
cat.visible = true;
Tweener.addTween(cat, {alpha:1, time:1});
btnback.buttonMode = false;
btnback.visible = false;
cat.buttonMode = true;
toptxt.text = "SELECCIONE UNA CATEGORIA"
function onClickCat(e:MouseEvent):void{
lcontent.visible=true;
cat.buttonMode = false;
Tweener.addTween(cat, {alpha:0, time:1, onComplete:function(){
cat.visible = false;
btnback.buttonMode = true;
btnback.visible = true;
loaderTweenIn(e.target.name);
function loaderTweenIn (c:String):void{
var category:String = c+".swf";
trace(category);
loader.load(new URLRequest(category));
loader.contentLoaderInfo.addEventListener (Event.COMPLETE, movieLoaded);
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, movieProgress);
function ioErrorHandler(e:IOErrorEvent):void{
trace("ioErrorHanlder: "+e);
function movieLoaded(e:Event):void{
trace("The movie has loaded");
lcontent.addChild(loader);
loadermc.visible=false;
function movieProgress(e:ProgressEvent):void{
loadermc.visible = true;
// percent=String(Math.floor(e.bytesLoaded / e.bytesTotal * 100)) + "%";
trace("The movie is loading "+Math.floor(e.bytesLoaded / e.bytesTotal * 100));
The code on my external SWF is:
import caurina.transitions.*;
volume_mc.slider_mc.buttonMode = true;
var myXML:XML;
var thb:Thbs;
var myThumbs:XMLList;
var totalThumbs:Number;
var thumbHeight:Number=50;
var i:uint = 0;
var preloader:LoaderAnim;
var yCounter:Number = 0;
var container:MovieClip;
var musicReq:URLRequest;
var music:Sound = new Sound();
var sc:SoundChannel;
var currentSound:Sound = music;
var pos:Number;
var songPlaying:Boolean = false;
var songlist:XMLList;
var currentIndex:Number = 0;
mc_sound.mute.visible=false;
var xmlLoader:URLLoader = new URLLoader();
///////////////////////////PLAYLIST//////////////////
function initMediaPlayer(e:Event):void{
myXML = new XML(xmlLoader.data);
myThumbs = myXML.*;
totalThumbs = myThumbs.length();
trace("The total thumbs are "+totalThumbs);
createContainer();
callThumbs();
xmlLoader.load(new URLRequest("audio.xml"));
function createContainer():void{
container = new MovieClip();
list.ch.addChild(container);
container.y = 0;
container.x = 0;
container.buttonMode = true;
function onOver(e:MouseEvent):void{
var t:Loader = Loader(e.target);
Tweener.addTween(t, {alpha:.5, time:1});
function onOut(e:MouseEvent):void{
var t:Loader = Loader(e.target);
Tweener.addTween(t, {alpha:1, time:1});
function callThumbs():void{
var thumbURL = myThumbs[i].@thumb;
var thumbTitle:String = myThumbs[i].@title;
var thumbDesc:String = myThumbs[i];
trace("Loading "+thumbURL);
trace("Title "+thumbTitle);
trace("Desc "+thumbDesc);
var thumbLoader = new Loader();
thumbLoader.load(new URLRequest(thumbURL));
thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
thumbLoader.name=i;
thumbLoader.x=5;
thumbLoader.y=5;
thb = new Thbs();
container.addChild(thb);
thb.thb_title.htmlText = thumbTitle;
thb.thb_desc.autoSize = TextFieldAutoSize.LEFT;
thb.thb_desc.htmlText = thumbDesc;
thb.y = (thumbHeight+2)*yCounter;
preloader = new LoaderAnim();
preloader.x = thb.x + 20;
preloader.y = thb.y+ 20;
container.addChild(preloader);
yCounter++;
function thumbLoaded(e:Event):void{
var thbx:Loader = Loader(e.target.loader);
thb.addChild(thbx);
thbx.addEventListener(MouseEvent.MOUSE_OVER, onOver);
thbx.addEventListener(MouseEvent.MOUSE_OUT, onOut);
container.removeChild(preloader);
i++;
if (i<totalThumbs){
callThumbs();
if (i==totalThumbs){
startAudio();
xmlLoader.addEventListener(Event.COMPLETE, initMediaPlayer);
///////////////////////////////////////AUDIO//////////////////////////
function startAudio():void{
songlist = myXML.*;;//this is the same as myXML.*;
trace("This is the first song "+songlist[0].@song);
musicReq = new URLRequest(songlist[0].@song);
music.load(musicReq);
sc = music.play();
sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
next_btn.addEventListener(MouseEvent.CLICK, nextSong);
prev_btn.addEventListener(MouseEvent.CLICK, prevSong);
pause_btn.addEventListener(MouseEvent.CLICK,pauseSong);
stop_btn.addEventListener(MouseEvent.CLICK,stopSong);
function nextSong(e:Event):void
if (currentIndex < (songlist.length() - 1))
currentIndex++;
else
currentIndex = 0;
var nextReq:URLRequest = new URLRequest(songlist[currentIndex].@song);
var nextTitle:Sound = new Sound(nextReq);
sc.stop();
sc = nextTitle.play();
songPlaying = true;
currentSound = nextTitle;
sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
function prevSong(e:Event):void
if (currentIndex > 0)
currentIndex--;
else
currentIndex = songlist.length() - 1;
var nextReq:URLRequest = new URLRequest(songlist[currentIndex].@song);
var prevTitle:Sound = new Sound(nextReq);
sc.stop();
sc = prevTitle.play();
songPlaying = true;
currentSound = prevTitle;
sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
function pauseSong(e:Event):void
pos = sc.position;
sc.stop();
songPlaying = false;
play_btn.addEventListener(MouseEvent.CLICK,playSong);
function playSong(e:Event):void
if(songPlaying == false)
sc = currentSound.play(pos);
sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
songPlaying = true;
play_btn.removeEventListener(MouseEvent.CLICK,playSong);
function stopSong(e:Event):void
sc.stop();
pos = 0;
songPlaying = false;
play_btn.addEventListener(MouseEvent.CLICK,playSong);
///////////////////////////////VOLUME/////////////////////////////
var xOffset:Number;
var xMin:Number = 0;
var xMax:Number = volume_mc.track.width;
volume_mc.slider_mc.addEventListener(MouseEvent.MOUSE_DOWN, sliderDown);
volume_mc.slider_mc.addEventListener(MouseEvent.MOUSE_UP, sliderUp);
stage.addEventListener(MouseEvent.MOUSE_UP, sliderUp);
function sliderDown(e:MouseEvent):void{
stage.addEventListener(MouseEvent.MOUSE_MOVE, sliderMove);
xOffset = mouseX - volume_mc.slider_mc.x;
function sliderUp(e:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, sliderMove);
function sliderMove(e:MouseEvent):void{
volume_mc.slider_mc.x = mouseX - xOffset;
if(volume_mc.slider_mc.x<=xMin){
volume_mc.slider_mc.x = xMin;
if(volume_mc.slider_mc.x>=xMax){
volume_mc.slider_mc.x = xMax;
var vol:Number = volume_mc.slider_mc.x*.01;
var st:SoundTransform = new SoundTransform(vol,0);
sc.soundTransform = st;
trace("The volume is "+vol);
if(vol==0){
mc_sound.mute.visible=true;
}else{
mc_sound.mute.visible=false;
e.updateAfterEvent();I found the solution.
-
Hallo!
Please see the attached sample code. This code simply show a small WPF-Dialog.
Test 1 (showing the problem)
Simply run the program. You will see Powershell crashing "Powershell has stopped working".
The cause of this is the devision by 0 inside the Eventhandler.
We would normally expect, that the exception should be handled by the trap.
Test 2 (showing normal operation)
Simply remove the comment in line 28 ($i=1/0).
This activates an exception outside the Eventhandler. Now the Trap will be executed normally.
--> The exception can be handled by the Powershell Devloper.
Can anybody help? Why does the Error management via Trap not work inside Eventhandlers?
Thanks for some assistance and ideas!
Regards
Heike
cls
Set-StrictMode -Version 4.0
$ErrorActionPreference = "stop"
Add-Type -Assemblyname PresentationFramework
# -- Eventhandler - will be fired during form load -----------------------------------------------------
$FormLoaded = {
Write-Host "EventHandler is running..."
# Problem:
# All exceptions will crash Powershell.
# We would normally expect that the Global Trap will be executed!
# This problem occurs inside of Eventhandlers only!
# TEST 1 --> Create an Exception (Division by 0) --> Powershell crashes: "Powershell_ISE has stopped working"
$i=1/0
# -- End of Eventhandler----------------------------------------------------------------------------------
# -- Start of Demo-Programm ------------------------------------
Write-Host "Start Demo"
# -- TEST 2 ---
# Write-Host "Test 2: Testing Global Trap"
# Create an Exception (Division by 0) --> Powershell does not crash --> Global Trap will be executed --> OK
# $i=1/0
# XAML-Code for WPF-Dialog
[xml]$xaml = @"
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Test - " Height="370" Width="657" ResizeMode="NoResize" WindowStyle="ThreeDBorderWindow" WindowStartupLocation="CenterScreen" ShowInTaskbar="False" >
<Grid Margin="0,0,0,-4">
<Label Name="CustomerName" Content="Hello World" HorizontalAlignment="Left" Margin="10,2,0,0" VerticalAlignment="Top" Width="596"/>
</Grid>
</Window>
$Form1=[Windows.Markup.XamlReader]::Load((New-Object System.Xml.XmlNodeReader $xaml)) # Load form
Write-Host "Register Event"
$Form1.Add_Loaded($FormLoaded)
Write-Host "Starting ShowDialog"
$Form1.ShowDialog() > $null
Write-Host "End of program"
# Global Trap - all exceptions should be handled here
trap{
Write-host "Global Trap is running..."
Write-host "End of trap - program will be stopped"It works fine if you don't try to execute the code while loading and if you use a better exception handling method.
Add-Type -Assemblyname PresentationFramework
[xml]$xaml=@'
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Test - " Height="370" Width="657" ResizeMode="NoResize" WindowStyle="ThreeDBorderWindow" WindowStartupLocation="CenterScreen" ShowInTaskbar="False" >
<Grid Margin="0,0,0,-4">
<Label Name="CustomerName" Content="Hello World" HorizontalAlignment="Left" Margin="10,2,0,0" VerticalAlignment="Top" Width="596"/>
</Grid>
</Window>
$Form1=[Windows.Markup.XamlReader]::Load((New-Object System.Xml.XmlNodeReader $xaml)) # Load form
$Form1.Add_Loaded({
Write-Host "EventHandler is running..."
Try{
$i=1/0
Catch{
Write-Host "$_"
$Form1.ShowDialog()
¯\_(ツ)_/¯ -
SOAP - XI - RFC / Problem with timeout-handle
hi gurus
B I G U R G E N T problem. how can it be:
- i've got an custom-bapi
- in receiver-rfc-adapter 'commit-controller' is on
when i force an time-out in sap ecc the soap-caller receives an system-error 'time-out...'.
but: the custom-bapi becomes an commit and in ecc the document is booked!
how can it be?
thanks
thi Rajesh
in sxmb_moni the message has the status 'log-version'.
soap-adapter-log:
2010-06-24 17:04:42 Erfolgreich calling the module processor for channel CC_SD01_WS_OUT
2010-06-24 17:04:42 Erfolgreich MP: Tritt in den Modulprozessor ein
2010-06-24 17:04:42 Erfolgreich MP: Lokales Modul localejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean wird verarbeitet
2010-06-24 17:04:42 Erfolgreich SOAP: request message entering the adapter with user KOMM
2010-06-24 17:04:42 Erfolgreich SOAP: request message leaving the adapter (call)
2010-06-24 17:04:42 Erfolgreich Die Anwendung versucht eine XI Message synchron zu senden über SOAP_http://sap.com/xi/XI/System
2010-06-24 17:04:42 Erfolgreich Versuch die Message in die Call-Queue zu stellen
2010-06-24 17:04:42 Erfolgreich Message erfolgreich in Queue gestellt
2010-06-24 17:04:42 Erfolgreich Die Message wurde erfolgreich aus der Call-Queue abgerufen
2010-06-24 17:04:42 Erfolgreich Der Status der Message wurde auf DLNG gesetzt
2010-06-24 17:05:47 Fehler Rückgabe synchroner Fehlerbenachrichtigung an rufende Anwendung: com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 500 : Timeout.
2010-06-24 17:05:47 Fehler Die Übertragung der Message über http://szhm2179:8001/sap/xi/engine?type=entry ist fehlgeschlagen, weil: com.sap.aii.af.ra.ms.api.DeliveryException: Received HTTP response code 500 : Timeout
2010-06-24 17:05:47 Fehler Der Status der Message wurde auf FAIL gesetzt
2010-06-24 17:05:47 Fehler Zurück zur Anwendung. Ausnahme: com.sap.aii.af.ra.ms.api.DeliveryException: Received HTTP response code 500 : Timeout
2010-06-24 17:05:47 Fehler SOAP: call failed: com.sap.aii.af.ra.ms.api.DeliveryException: Received HTTP response code 500 : Timeout
2010-06-24 17:05:47 Fehler SOAP: call failed: com.sap.aii.af.ra.ms.api.DeliveryException: Received HTTP response code 500 : Timeout
2010-06-24 17:05:47 Fehler MP: Ausnahme aufgetreten mit Grund com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 500 : Timeout: com.sap.aii.af.ra.ms.api.DeliveryException: Received HTTP response code 500 : Timeout
rfc-adapter-log:
2010-06-24 17:04:43 Erfolgreich Message wurde erfolgreich vom Messaging-System empfangen. Profil: XI URL: http://szhm2179.stzh.ch:50100/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER
2010-06-24 17:04:43 Erfolgreich Mit der Verbindung RFC_http://sap.com/xi/XI/System. Versuch die Message in die Request-Queue zu stellen
2010-06-24 17:04:43 Erfolgreich Message erfolgreich in Queue gestellt
2010-06-24 17:04:43 Erfolgreich Die Message wurde erfolgreich von der Request-Queue abgerufen
2010-06-24 17:04:43 Erfolgreich Der Status der Message wurde auf DLNG gesetzt
2010-06-24 17:04:43 Erfolgreich Liefert an Kanal: CC_SD01_RFC_IN
2010-06-24 17:04:43 Erfolgreich MP: Tritt in den Modulprozessor ein
2010-06-24 17:04:43 Erfolgreich MP: Lokales Modul localejbs/RfcAFBean wird verarbeitet
2010-06-24 17:04:43 Erfolgreich RFC-Adapter hat synchrone Message erhalten. Versucht, sRFC für /STZH/SOZ_CD_F2_BELEG_CREATE zu senden
2010-06-24 17:04:43 Erfolgreich RFC-Adapter hat synchrone Message erhalten. Versucht, sRFC für J2EE_GUEST zu senden
2010-06-24 17:05:47 Fehler SOAP: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 500 : Timeout: com.sap.aii.af.ra.ms.api.DeliveryException: Received HTTP response code 500 : Timeout
2010-06-24 17:08:43 Erfolgreich BAPI-Response war eine Struktur des Typs BAPIRET2
2010-06-24 17:08:43 Erfolgreich TYPE='S', Message (ID:/stzh/messages, NUMBER:000): "I:/stzh/messages:000 Beleg wurde erfolgreich gebucht", LOG_NO:, LOG_MSG_NO:000000 (PARAMETER:, ROW:0, FIELD:, SYSTEM:D70450)
2010-06-24 17:08:43 Erfolgreich BAPI erfolgreich ausgeführt
2010-06-24 17:08:43 Erfolgreich Commit-Transaktion mit BAPI_TRANSACTION_COMMIT
2010-06-24 17:08:43 Erfolgreich MP: Verlässt den Modulprozessor
2010-06-24 17:08:43 Fehler Zustellung der Message an die Anwendung über RFC_http://sap.com/xi/XI/System ist fehlgeschlagen weil: com.sap.aii.af.ra.ms.api.MessageExpiredException: Sync application request expired.. Message wird auf 'fehlgeschlagen' gesetzt
2010-06-24 17:08:43 Fehler Der Status der Message wurde auf FAIL gesetzt
2010-06-24 17:08:43 Fehler Rückgabe der synchronen Fehler-Message an rufende Anwendung: com.sap.aii.af.ra.ms.api.MessageExpiredException: Sync application request expired..
why does the rfc-adapter sends the bapi_transaktion_commit after an soap-error?
thank you for your help.
regards
t. -
Problems with event handling in JmenuItem
Hello:
I'm trying to handle an event for a menuItem and tool bar item: with this code:
newBallotAction = new AbstractAction("newBallot")
public void actionPerformed(ActionEvent e)
try{
System.out.println("MainWindow newBallotAction");
Ballot ballot = new Ballot();
System.out.println("MainWindow newBallotAction 2nd");
DDNewBallotWindow ddNewBallotWindow = new DDNewBallotWindow(ballot);
if (ballot != null) // <ballotName>, <ballotOptionsNumber> , <ballotOption1>, <ballotOption2>, .., <ballotOption(optionsNumber)>
brothers.msgToBrothers("<Ballot>" + "<origin>" + myName + "</origin>"+ ballot.toRep() +"</Ballot>" , myName);
else
System.out.println("MainWindow ballot null");
}catch(Exception f){
System.out.println("MainWindow newBallotAction exception" + e);
JMenuItem ballotMIDdMenu = new JMenuItem("New Ballot");
ballotMIDdMenu = fileMenu.add(newBallotAction);
ddMenu.add(ballotMIDdMenu);
It produces the next exception:
MainWindow newBallotAction exceptionjava.awt.event.ActionEvent[ACTION_PERFORMED,cmd=newBallot] on javax.swing.JMenu$2[,1,49,137x21,alignmentX=null,alignmentY=null,border=javax.swing.plaf.metal.MetalBorders$MenuItemBorder@55a338,flags=264,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=2,bottom=2,right=2],paintBorder=true,paintFocus=false,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=newBallot]
It's really complex ... I'm desperado ;)
Thanks in advance, Nacho.Hi,
The exception is propably occuring in the Ballot() constructor (which you didn't post).
And, as dukeman already mentionned, you are printing out the ActionEvent object and not the Exception itself. -
I've got the itunes 5.0.
My list is sorted alphabetical, but the "the beatles" (for example) are sorted in under "t" and not "b". How can I handle this?When "Library" is selected, clicking the "Artist" column heading/label sorts the display by artist (just making sure we're on the same 'page'). For me, the "The Beatles" does show in the "B" area.
Make sure the spelling is correct - well - make sure there is no space before the "The" and that there is 1 space after the "The". -
Problem with file handles : jdeveloper makes them getting smaller
hello,
I downloaded today jdeveloper 11.1.2.1 for linux and I installed it on my centos 6.2 (like redhat).
I didn't read the prerequisites.
the installation worked fine, but when I tried to modify the JDialog swing file of a view project, I have an error message telling me there are save file errors, and complaining the files handles are too small.
I think the two errors are linked.
I read some stuff on the net and found a tutorial explaining how to have fs.file-max=70000 in sysctl.conf and 30000 when you type ulimit -n, what is also explained in the prerequisites.
so I ran jdeveloper a new time and found the same error.
I opened a terminal, and saw that ulimit -n gives ... 1024.
seems that the parameter is changed when I launch jdeveloper.
can you see an explanation?
thanks
olivierthe resolution is here : [http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.wbit.help.install.doc/topics/tincreasehandles.html|http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.wbit.help.install.doc/topics/tincreasehandles.html] .
cool! -
Any problems with LE8 handling LE7 projects?
Hi,
I'm still considering the upgrade. One of the things I've been hearing on the Pro 8 forums is that people have been having problems working on their L7 projects in L8. Any comments?Thanks very much, you’ve really help. I think I will buy this camera. Just a couple of others points though.
The AG-DVX100B has three modes for shooting 16:9: conversion lens, AG-LA7200G; Letterbox, which I think is just chopping off the top and bottom of a 4:3 image; and squeeze mode, which squeezes the pixels, am I right in thinking this loses resolution? (refering to another thread). None of these are true anamorphic 16:9, of course. So which mode would you recommend? The conversion lens retails for about £700.
One other thing, the camera claims to cover a full wide angle lens range: extending to 4.5mm. I’m just quoting the manual now. Has anyone found the need to use a wide angle conversion lens, and if so what brand, century?
Thanks for all your help
1.5 Ghz PowerbookPC G4 Mac OS X (10.4.7)
Maybe you are looking for
-
Validation not working during Mass Change of Vendor Line Items
Hi All, I created validation for Reference Key 1 field of Vendor line items, in this validation i used customized user exit. Whenever i select multiple line items in FBL1N for mass change & try to put a unauthenticated value system gives error as per
-
I'd like to synchronise my phone because of a pbm with an app. But it is not recognized at all by ITunes... I uninstalled, repaired, installed ITunes, Quicktime, turned off several time the phone... and the pbm still be... Anyone knows what to do pls
-
I am unable to connect to Face Time with WiFi connection?
I am unable to connect to friends with Face Time. There business premises has WiFi they connected to each other to show how it worked. When I tried to connect One after the other neither would connect to my iPhone 4. I tried again from my home wi
-
hi all, I am trying to validate a simple soap message against soap schema and the xml message part against my own schema. I am getting the following error: Envelope unmarshalled :[Attributes={}] [Header=null] [Body=[Attributes={}] [Body Entries= [(0)
-
CS4 Clone Tool NOT Multithreading and CS4 Slow on i7 965 Processor
I noticed for the first time that the new clone tool in CS4 is not using all of my processors on my new i7 965XE processor. In fact it uses only one processor and this makes it run incredibly slow. I have also noticed that CS4 in general is rather sl