Duplicate function definition error on buttons
Hi there!
Ok first I'm a complete beginner when it comes to Flash so please bare with me.
What I'm looking to do is create a banner that transitions between different photos while there are small square buttons on the side that when the user clicks on them, it jumps to the corrosponding frame where a new photo begins showing. I've seen it a bunch of times on other websites.
After following the advice found here: http://forums.adobe.com/thread/781826?tstart=0
Everything was going well until I hit a snag. When trying to preview my movie I got the following error:
1021: Duplicate function definition
Now, I know there is a very obvious error here in my button scripts, but as I said, I have no idea what I'm doing. Can someone look at my code and tell me what's wrong and what I should change? I'll post all five scripts.
The instance names by the way are "sidebutton1" thru "sidebutton5" if that's any help.
Here's my codes for each of the five buttons (one of these code bits per button):
sidebutton1.addEventListener(MouseEvent.CLICK,f);
function f(e:Event):void{
gotoAndPlay(1);
sidebutton2.addEventListener(MouseEvent.CLICK,f);
function f(e:Event):void{
gotoAndPlay(100);
sidebutton3.addEventListener(MouseEvent.CLICK,f);
function f(e:Event):void{
gotoAndPlay(200);
sidebutton4.addEventListener(MouseEvent.CLICK,f);
function f(e:Event):void{
gotoAndPlay(300);
sidebutton5.addEventListener(MouseEvent.CLICK,f);
function f(e:Event):void{
gotoAndPlay(500);
sidebutton2.addEventListener(MouseEvent.CLICK,f2);
function f2(e:Event):void{
gotoAndPlay(100);
sidebutton3.addEventListener(MouseEvent.CLICK,f3);
function f3(e:Event):void{
gotoAndPlay(200);
Each function must have a special name...
Similar Messages
-
Error message: 1021: Duplicate function definition.
Hi All,
First let me start by saying that I know next to nothing about Flash. I have inherited a website maintenance project that has a Flash rotating image banner. I have managed to get the images to fade-in and fade-out correctly, but now I need to make these images clickable - linking images to pages in the website. I have read many posts here and have reviewed the video tutorials. I have been able to get the first image clickable using this AS3 action:
mars_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent) :void {
navigateToURL(new URLRequest("http://somewebsite/mars.php"));
trace("I'm clicked");
However, when I attempt to make another image clickable by using a different instance of a button I get the error message:
1021: Duplicate function definition.
I have a separate instance of a button with this AS3 action:
jupiter_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent) :void {
navigateToURL(new URLRequest("http://somewebsite/jupiter.php"));
trace("I'm clicked");
Obviously I'm not understanding how I'm supposed to do this so that I don't create a duplicate function definition. Any help would be most appreciated.excuse me , I have a question i hope that you help .. ( im new in here )
we were asked to create an interactive application on flash in two languages..
so i created two different fla files same exact codings ... i was wondering how can i combine them so the viewer can be able to choose the language from a button ?
when i try to combine them i get lots of errors of duplications in the actionscript
PS : MY MAIN PAGE INCLUDES A CAROUSEL with images ..
I was thinking of saving one of the fla as a movie and then add it some how to the second fla and combine it with a button but i can't figure it how..
i hope i was clear enough.. but is there any possibility to help me please ?!
when i tend to change names or something it creates error.. ( IM NOT A PRO IN AS3 ) and when i dublicate the scenes it give duplication errors.. WHAT IS THE SOLUTION ??
this is the code of the actionscript in the main page.. ( the carousel's code i took from someone ) and i used it on my project
import com.ccanvas.carousel.*;
var centerX:Number = stage.stageWidth/4;
var centerY:Number = stage.stageHeight/4;
var carc:Carousel = new Carousel(centerX, centerY, 256, 75, "icons.xml");
carc.addTooltip(new tooltip); // use 'tooltip' movieclip for item tooltip
addChild(carc); // add carousel to stage
function down(event:MouseEvent):void {
trace(event.currentTarget.toolText); // simple click interaction
function destroyCarousel(event:MouseEvent):void {
carc.destroy(); // remove all item in carousel as well as tooltip
function removeNextItem(event:MouseEvent):void {
if(carc.numOfItems > 2) {
carc.removeItem(2); // remove the item next to the remove item icon
create.addEventListener("mouseDown", createCarousel);
function createCarousel(event:MouseEvent):void {
if(carc.CREATED == false) {
// recreate the carousel
carc = new Carousel(centerX, centerY, 256, 75, "icons.xml");
carc.addTooltip(new tooltip);
addChild(carc);
}/* Click to Go to Scene and Play
Clicking on the specified symbol instance plays the movie from the specified scene and frame.
Instructions:
1. Replace "Scene 3" with the name of the scene you would like play.
2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
Tools_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene);
function fl_ClickToGoToScene(event:MouseEvent):void
MovieClip(this.root).gotoAndPlay(1, "Toolse");
}/* Click to Go to Scene and Play
Clicking on the specified symbol instance plays the movie from the specified scene and frame.
Instructions:
1. Replace "Scene 3" with the name of the scene you would like play.
2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
games_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToGames);
function fl_ClickToGoToGames(event:MouseEvent):void
MovieClip(this.root).gotoAndPlay(1, "Gamese");
}/* Click to Go to Scene and Play
Clicking on the specified symbol instance plays the movie from the specified scene and frame.
Instructions:
1. Replace "Scene 3" with the name of the scene you would like play.
2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
Identity_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToIdentity);
function fl_ClickToGoToIdentity(event:MouseEvent):void
MovieClip(this.root).gotoAndPlay(1, "Identitye");
}/* Click to Go to Scene and Play
Clicking on the specified symbol instance plays the movie from the specified scene and frame.
Instructions:
1. Replace "Scene 3" with the name of the scene you would like play.
2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
Reviews_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_13);
function fl_ClickToGoToScene_13(event:MouseEvent):void
MovieClip(this.root).gotoAndPlay(1, "Reviewse");
}/* Click to Go to Scene and Play
Clicking on the specified symbol instance plays the movie from the specified scene and frame.
Instructions:
1. Replace "Scene 3" with the name of the scene you would like play.
2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
Facts_button.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_20);
function fl_ClickToGoToScene_20(event:MouseEvent):void
MovieClip(this.root).gotoAndPlay(1, "Factse"); -
1021: Duplicate function definition I am lost... please advise
I am obviously new to as3... So I have 3 buttons (all in the same scene) that each need to go to a different scene. I put the script's on the same frame. Here is the script's:
btn_pg.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(1, "photo_gallery");
btn_vg.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(1, "photo_gallery");
This is the error message it gives me:
home_1, Layer 'actions', Frame 1, Line 8 1021: Duplicate function definition.
What do you have to do to use the same function for different buttons to get to different scenes?
Thank you for any consideration and help,
ThomasI tried to ad another button to that same code and it does not give an error but when i publish it doesn't do anything...
This is the code after I added:
btn_pg.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
btn_vg.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void
var nameOfButton:String = event.currentTarget.name;
if (nameOfButton == "btn_pg")
gotoAndStop(1, "photo_gallery");
else if (nameOfButton=="btn_vg")
gotoAndStop(1, "video_gallery");
else if (nameOfButton=="btn_b")
gotoAndStop(1, "blog");
Can you not have an infinite amount of buttons with this code?
Thanks again
Thomas -
Duplicate class definition error while invoking EJB from ADF project
Hi,
I am using Jdeveloper TP3 and facing the following problem.
I have built an EJB project and am ran them successfully in the embedded OC4J via a standalone java program.
Now I created another project with ADF capabilities and when I tried to ping the EJB i get the following exception
The application named, current-workspace-app, could not start due to an error.
duplicate class definition: javax/faces/context/FacesContextFactory Invalid class: javax.faces.context.FacesContextFactory Loader
This is happenning due to class conflicts between javaee.jar and trinidad-impl.jar/adf-richclient-impl.jar.
Is there any way of bypassing this class loader issue?Hi,
actually I didn' try the JNDI lookup but used resource injection instead
In a JSF managed bean I use
@EJB Ejb30SessionFacadeLocal myLocalInterface;
public SortableModel getTableModel() {
List rows = new ArrayList<Employees>();
rows = myLocalInterface.queryEmployeesFindAll();
this.tableModel = new SortableModel(rows);
return tableModel;
Its a EJB 3.0 session bean that accesses a Local interface. However, if the remote is on the same server then I would think that using @EJB Ejb30SessionFacadeRemote myRemoteInterface; does similar
Frank -
Please help, duplicate function
hi, just a quick question for poeple that use as3,
what excactly does the 'duplicate function definition' error
mean and how can you preven it?
please answer if you know
thanks!"tbjyyevskmjuvi7dcsat" <[email protected]>
wrote in message
news:f68502$4c$[email protected]..
>
quote:
Originally posted by:
Newsgroup User
>
> "tbjyyevskmjuvi7dcsat"
<[email protected]> wrote in message
> news:f66t2k$giu$[email protected]..
> > hi, just a quick question for poeple that use as3,
> > what excactly does the 'duplicate function
definition' error mean and
> > how
> > can you preven it?
> > please answer if you know
> > thanks!
>
>
> Somewhere in your code, (likely a movie-clip) is being
duplicated (like
> for
> an effect for falling snowflakes) and it can't "find"
the clip its looking
> for... either remove that functionality altogether or
synchronize the
> name(s) of your movie-clip(s) with those being
duplicated.
>
>
>
>
>
> yes but if i removed the function (mouse:event etc.) how
do i use it a
> second
> time?
you don't... and that was one of two options... -
I am trying to call a MATLAB M-file from LabVIEW 8.0. I keep getting Error Code 1050:
"Error 1050 occurred at LabVIEW: Error occurred while executing script. Error message from server: ??? Error: Function definitions are not permitted at the prompt or in scripts.
. in rickfito.vi->impedo.vi
Possible reason(s):
LabVIEW: Error occurred while executing script"
I tried running the sample MATLAB script example on the knowledge base, and everything works fine.
I am guessing that this error is happening because I have functions defined in the MATLAB script. But i thought this is better programming techinque. Also, the MATLAB window opens up when I start the VI.
Is there a way around this? I really do not want to remove the function definitions on the script.
Thx,
Pelo...First, see if the Matlab Script Node is trying to open any files. If
so, then make sure that the current Matlab directory is set to the
directory where that file is located. The Matlab script node in LabVIEW
does call the Matlab script server and executes the function in the
Matlab script node through Matlab. Therefore, even though LabVIEW may
be in the correct directory where the file is located, make sure Matlab
is as well.
The error may also occur if there is a disruption
in the script server between MATLAB and LabVIEW and the connection was
never re-established (possibly by closing MATLAB prematurely). Close
both LabVIEW and MATLAB then relaunch them both and run the VI.
MATLAB®
is a registered trademark of The MathWorks, Inc. Other product and
company names listed are trademarks and trade names of their respective
companies.
-Bob
-Bob -
CS6 duplicate function causes Run-time error in VB6
After upgrading from CS3 to CS6 the duplicate function is now causing runtime error "Type Mismatch". Error occurs on the last line of code.
All am I trying to achieve is to duplicate a rectangle containing an EPS from one document into another document. The method appears to work but assigning a pageitem value as a function fails.
Dim moInDesign As InDesign.Application
Dim oFromDocument As InDesign.Document
Dim oToDocument As InDesign.Document
Dim oFromRectangle As InDesign.Rectangle
Dim oToRectangle As InDesign.Rectangle
Set moInDesign = CreateObject("InDesign.Application.CS6")
Set oFromDocument = moInDesign.Documents.Add
Set oFromRectangle = oFromDocument.Rectangles.Add
oFromRectangle.GeometricBounds = Array(72, 72, 144, 144)
Set oToDocument = moInDesign.Documents.Add
Set oToRectangle = oFromRectangle.Duplicate(oToDocument.Pages.Item(1))it fails on CS5 too, to cheat and make it work, comment out (or remove) the rectangle dimensions
'Dim oFromRectangle As InDesign.Rectangle
'Dim oToRectangle As InDesign.Rectangle -
How to make input parameters as optional in the function definition
I have created a function for a data service which is at the Normalized layer and has 3 input parameters.
This function is called at the Integration layer in which we have to pass only one parameter. But for the remaning 2 parameters it is throwing an error as we cannot pass those parameters.
Is it possible that we can pass less number of parameters in the higher layer.
I had also made those parameters as optional in the function definition(by applying '?' while defining the arguments-e.g. $x as xs:string?), but error was thrown while generating the query plan.
I have attached a Demo project, in which i have defined a function at the normalized layer and this function is been called at the integration layer.
Thanks,
KinjalThanks mreiche for the reply
But the problem is that while writing
function myfunction( arg1 as xs:string, $arg2 as xs:string?) { ... }
in function definition in the normalized layer, the query plan is throwing following error:-
com.bea.ld.QueryException: Cannot generate XQuery for the function {ld:DemoProject/Normalized/TestGeo}getGeo:3
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:290)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:248) at com.bea.ld.Server_ydm4ie_EOImpl_816_WLStub.executeFunction(Unknown Source) at workshop.liquiddata.xds.views.queryplan.QueryPlanPanel.compileFunction(QueryPlanPanel.java:583) at workshop.liquiddata.xds.views.queryplan.QueryPlanPanel.access$900(QueryPlanPanel.java:39) at workshop.liquiddata.xds.views.queryplan.QueryPlanPanel$5.run(QueryPlanPanel.java:469) at java.lang.Thread.run(Thread.java:534)
Caused by: com.bea.ld.QueryException: Cannot generate XQuery for the function {ld:DemoProject/Normalized/TestGeo}getGeo:3 at com.bea.ld.EJBRequestHandler.invokeFunction(EJBRequestHandler.java:720) at com.bea.ld.EJBRequestHandler.executeFunction(EJBRequestHandler.java:339) at com.bea.ld.ServerBean.executeFunction(ServerBean.java:95) at com.bea.ld.Server_ydm4ie_EOImpl.executeFunction(Server_ydm4ie_EOImpl.java:312)
at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:120)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:429)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Caused by: com.bea.ld.server.FunctionCallQueryBuilder$QueryBuilderException: The following parameter type is not supported: {http://www.w3.org/2001/XMLSchema}string?
at com.bea.ld.server.FunctionCallQueryBuilder.addParameter(FunctionCallQueryBuilder.java:257)
at com.bea.ld.server.FunctionCallQueryBuilder.buildQuery(FunctionCallQueryBuilder.java:99)
at com.bea.ld.EJBRequestHandler.invokeFunction(EJBRequestHandler.java:716)
But no error is thrown when I call this function at the Integration layer,using
for $f in mfunction( 'test', () )
and the output which i get is as expected. -
Hi Guys:
I am experiencing some issue with DUPLIATE FUNCTION. What happen is that I have create some BUTTONS on the stage that was used througth out difference scence.....those buttons has same action that point page to particular scence. And this is when I found the DUPLICATE FUNCTION issue.
I found that I could get away by changing the name of the FUNCTION, but as I have quite a lots of those buttons so I really don't think this method is very pratical and organized. So does anyone have any better idea how this can be solved?
Many Thanks!Thanks so much, this did solve the problem. Studpid me that were trying to add same FUNCTION on each Scene that has the same button. Initially I thought it's more complex in AS3, but seems AS3 is actually trying to make thing easier and more praticler.
Not really good at previously AS, but decided to spend some time on learning AS3.0 now. Hope I could help people like me on the forum with question about AS3.0 soon. Just like the favor you did for me.
Many Thanks!! -
How to "end" function definition in SQL plus?
I am using Oracle 11g and SQL plus.
I am trying to define a function and get back to the SQL prompt, but it is just not exiting the function definition.
SQL> create function dept_count (dept_name varchar(20))
2 returns integer
3 begin
4 declare d_count integer;
5 select count (* ) into d_count
6 from instructor
7 where instructor.dept_name = dept_name
8 return d_count;
9 end
10 ;
11
12
13
14
15
16 ;;;
17 end dept_count;
18 ;
19
20 ; <--- I was expecting the SQL> prompt here but it doesn't appear.
What should I do? Please help. Thanks.And, to answer probably the most frequently asked question when I was an Oracle instructor ...
If you are saving this statement in a file to execute later, after the "/" at the bottom, hit return, so that your file contains a line feed after the /, rather than your file ending with the /
Otherwise you get the annoying, but completely harmless, error message "Input truncated after (number) characters" when you compile the program. -
Java.lang.LinkageError: duplicate class definition
Dear Experts,
We are in the process of Migrating current Mi2.5 application to NWM7.1.
We have that 2.5 application properly running in production system but in 7.1 while opening some JSP page of application
it sometimes opens properly & sometimes gives this error..
java.lang.LinkageError: duplicate class definition
The detailed error description is as given below..
Pls advice..Error: 500
Location: /ZEFL_BP_MI/jsp/stock/bp_technicians_issue_sparesforms.jsp
Internal Servlet Error:
java.lang.LinkageError: duplicate class definition: com/sap/BP/bean/TableViewBean
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.apache.tomcat.loader.AdaptiveClassLoader.doDefineClass(AdaptiveClassLoader.java:575)
at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:542)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.beans.Beans.instantiate(Unknown Source)
at java.beans.Beans.instantiate(Unknown Source)
at jsp.stock.bp_0005ftechnicians_0005fissue_0005fsparesforms._jspService(bp_0005ftechnicians_0005fissue_0005fsparesforms.java:101)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java:222)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:162)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.dispatchRequest(AbstractMEHttpServlet.java:780)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetThreadSafe(AbstractMEHttpServlet.java:281)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet(AbstractMEHttpServlet.java:552)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(AbstractMEHttpServlet.java:190)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Unknown Source)
Regards,
Saptak -
FRF-00025 Unable to call function. Error message: Syntax error in program
hi,
when we try to import the export file,we are getting the following error in the 24th phase
i.e., check DDIC Password.
The Error is
INFO 2007-10-29 15:53:20 [iaxxrfcimp.cpp:1017]
CAbRfcImpl::callLibraryFunction
Generating interface for remote function.
TRACE [iaxxrfcimp.cpp:1056]
CAbRfcImpl::performFunctionCall
Calling function module: INST_RFC_GET_INTERFACE
WARNING[E] 2007-10-29 15:53:21 [iaxxrfcimp.cpp:1089]
CAbRfcImpl::performFunctionCall
FRF-00025 Unable to call function. Error message: Syntax error in program SAPLSUNI . .
TRACE [iaxxrfcimp.cpp:1090]
CAbRfcImpl::performFunctionCall
RFC failure or system exception raised
TRACE [iaxxrfcimp.cpp:1091]
CAbRfcImpl::performFunctionCall
Syntax error in program SAPLSUNI .
TRACE [iaxxbjsmod.cpp:657]
CJSlibModule::showOkCancelBox_impl()
<html>Test logon to SAP System I50 failed.<p>Make sure that the system is started, that the user DDIC exists and that the password of user DDIC is correct.</html>
TRACE [iaxxgenimp.cpp:1093]
showDialog()
waiting for an answer from gui
What Could be the solution for this.
waiting for ur reply
SSHi Friend,
Please check whether or not there is view missing error recorded in dev_w0 trace file.
if there is , you can try to follow this procedure in order to manually
import the missing view definitions.
All steps must be carried out with the <sid>adm user of the target
system and from the install-directory:
1. In the install-directory
<sapinst_instdir>\...COPY\IMPORTT\SYSTEM\ABAP\ORA\UC\DB
create a file SAPVIEW.cmd with the following content:
tsk: "<sapinst_instdir>\...\COPY\IMPORT\SYSTEM\ABAP\ORA\UC\DB\SAPVIEW.TSK"
icf: "
<YOUR_EXPORT_DIRECTORY>\export\DATA\SAPVIEW.STR"
dcf: "<sapinst_instdir>\...\COPY\IMPORT\SYSTEM\ABAP\ORA\UC\DB\DDLORA.TPL"
dat: null
dir: null
ext: null
Please make sure that all paths are written correctly (in one line) and
the refered files are existant and readable. One exception:
The SAPVIEW.TSK file is created with step 2.:
2. Run from the command-line:
R3load -ctf I
<YOUR_EXPORT_DIRECTORY>\export\DATA\SAPVIEW.STR <sapinst_instdir>\...\COPY\IMPORT\SYSTEM\ABAP\ORA\UC\DB\DDLORA.TPL SAPVIEW.TSK ORA -l SAPVIEW.log
If there's a problem reading the 'SAPVIEW.STR' file, copy the
file to the install directory and adapt the path accordingly.
3. Run the view import by:
R3load.exe -i SAPVIEW.cmd -dbcodepage <YOUR_CODE_PAGE> -l SAPVIEW.log
-stop_on_error
4. Check both the SAPVIEW.log and the SAPVIEW.TSK file whether all views
have been created successfully.
If 4. is okay, restart the central instance and check whether you are
able to log on now. If yes, continue 'sapinst' by the option 'retry' or
'continue old installation'.
I Hope It can be helpful.
With Best Regards
Julia -
Revision: 21394
Revision: 21394
Author: [email protected]
Date: 2011-06-16 12:34:13 -0700 (Thu, 16 Jun 2011)
Log Message:
bug fix for watson 2887837 Not getting duplicate session detected error when same flex client id is used from two different HTTP sessions in CRX.
get the sessions id before we invalidate the duplicate session.
Checkintests pass
Modified Paths:
blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseHTTPEndpoint.javaFor our profect I think this issue was caused as follows:
Believing that remoting was full asynchronous we fired a 2 or 3 remote calls to the server at the same time ( within the same function ) - usually when the users goes to a new section of the app.
This seemed to trigger the duplicate http session error since according to http://blogs.adobe.com/lin/2011/05/duplication-session-error.html two remote calls arriving before a session is created will cause 2 sessions to be created.
Our current solution ( too early to say it works ) is to daisy chain the multiple calls together .
Also there seemed to be an issue where mobile apps that never quit ( thanks Apple! ) caused the error when activated after a few hours.
I guess the session expires on the server and the error above occurs on activation.
So the mobile apps now ping the server with a remote call when activated after sleeping for more than one hour.
All duplicate http errors are silently caught and reported.
Fingers crossed we won't get any more! -
Function Sequence Error -- After upgrading to Crystal Reports 2008
Since we intergrated Crystal 2008 in our application, We are having the ODBC DRIVER ERROR "S1010, Function Sequence Error"
The following steps reproduces the error.
I open any crystal report(using my application) and close it.
And then I try to close another dialog in my application.
The destructor of that dialog has the DELETE FROM TMPRPT WHERE etc... But actually the TMPRPT table is empty.
But This Scenario in general, does not produce any error. Only after I open and close Crystal report, and when the TMPRPT table doesn't have any records, executing the above DELETE sql throws CDBException, Funciton Sequence Error.
Is it because of the upgrade/mismatch of dlls? Can any one help how to work around this?
Thanks.Hi Don,
I would like to thank you for your helpful advice. your tips for odbc tracing really works.
Just to simplify things, I have created a simple mfc dialog based application that opens a connection using CDatabase in the initdialog and closes the connection in the destructor(because that is how we do in our main large application). On the dialog i put a "Print" button and when i click it, I open a crystalreportform and fill the connectioninfo structure and then call SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument). on the Form_closed function, I close database connections and close the report document.
When I come back to mfc application I execute a Delete from table where 1 =0, basically any delete/update that return empty recordset and it throws function sequence error.
BOOL CCrystalDemoDlgDlg::OnInitDialog()
CDialog::OnInitDialog();
ConnectDatabase() ;
return TRUE; // return TRUE unless you set the focus to a control
BOOL CCrystalDemoDlgDlg::ConnectDatabase()
if ( m_Database.IsOpen() )
m_Database.Close();
// Process database open request.
CString szConnection("DSN=CRYSTALTEST32;UID=DBA;PWD=picture");
!m_Database.OpenEx( szConnection, CDatabase::noOdbcDialog ) )
return TRUE;
BOOL CCrystalDemoDlgDlg::bExecuteSQL( CString SqlString )
if(m_Database.IsOpen())
m_Database.ExecuteSQL( (LPCTSTR)SqlString );
return TRUE;
void CCrystalDemoDlgDlg::OnBnClickedBtnPrint()
TRY
bExecuteSQL(_T("DELETE FROM TMPRPT WHERE 1=0"));
CrystalReportsForm ^ CRForm = gcnew CrystalReportsForm(gcnew System::String("ActvSumm1.rpt"));
CRForm->ShowDialog();
//CRForm->RunCrystalReports();
delete CRForm;
CRForm = nullptr;
bExecuteSQL(_T("DELETE FROM TMPRPT WHERE 1=0"));
CATCH(CDBException, e)
AfxMessageBox( e->m_strError );
return ;
END_CATCH
the following is the code in crystalreports library
namespace CR2008Library
public partial class CrystalReportsForm : Form
private ReportDocument _reportDocument;
private string _reportFile = "C:\\Nomadic\\Report\\";
public CrystalReportsForm(string reportFile)
InitializeComponent();
_reportDocument = CreateReportDocument(reportFile);
private ReportDocument CreateReportDocument(string reportFile)
ReportDocument newDocument = new ReportDocument();
_reportFile += reportFile;
newDocument.Load(_reportFile);
return newDocument;
public void ConfigureCrystalReports()
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.DatabaseName = "CRYSTALTEST";
connectionInfo.UserID = "DBA";
connectionInfo.Password = "picture";
connectionInfo.ServerName = "CRYSTALTEST32";
SetDBLogonForReport(connectionInfo, _reportDocument);
crystalReportViewer.ReportSource = _reportDocument;
private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
Tables tables = reportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
TableLogOnInfo tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
public void CrystalReportForm_Load(object sender, EventArgs e)
ConfigureCrystalReports();
private void CrystalReportsForm_FormClosed(object sender, FormClosedEventArgs e)
DisposeCR();
private void DisposeCR()
// Clean up by closing and disposing of the ReportDocument object
if (_reportDocument != null)
if (_reportDocument.Database.Tables.Count > 0)
Tables tables = _reportDocument.Database.Tables;
foreach (Table table in tables)
table.Dispose();
_reportDocument.Database.Dispose();
_reportDocument.Close();
_reportDocument.Dispose();
_reportDocument = null;
I have the log file which doesn't show any error in crystalreports library. I am giving some of the log file for your reference to see what's happening while exiting from crystal and executing the problem sql
CrystalDemoDlg 16c8-e8c EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 00F41CC0
CrystalDemoDlg 16c8-e8c ENTER SQLFetch
HSTMT 00F41CC0
CrystalDemoDlg 16c8-e8c EXIT SQLFetch with return code 100 (SQL_NO_DATA_FOUND)
HSTMT 00F41CC0
CrystalDemoDlg 16c8-e8c ENTER SQLCloseCursor
SQLHSTMT 00F41CC0
CrystalDemoDlg 16c8-e8c EXIT SQLCloseCursor with return code 0 (SQL_SUCCESS)
SQLHSTMT 00F41CC0
CrystalDemoDlg 16c8-e8c ENTER SQLFreeHandle
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 00F41CC0
CrystalDemoDlg 16c8-e8c EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 00F41CC0
CrystalDemoDlg 16c8-e8c ENTER SQLDisconnect
HDBC 00F427A0
CrystalDemoDlg 16c8-e8c EXIT SQLDisconnect with return code 0 (SQL_SUCCESS)
HDBC 00F427A0
CrystalDemoDlg 16c8-e8c ENTER SQLFreeHandle
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 00F427A0
CrystalDemoDlg 16c8-e8c EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 00F427A0
CrystalDemoDlg 16c8-e8c ENTER SQLFreeHandle
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00F42718
CrystalDemoDlg 16c8-e8c EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00F42718
CrystalDemoDlg 16c8-a34 ENTER SQLAllocStmt
HDBC 00F419A0
HSTMT * 0012E2C4
CrystalDemoDlg 16c8-a34 EXIT SQLAllocStmt with return code 0 (SQL_SUCCESS)
HDBC 00F419A0
HSTMT * 0x0012E2C4 ( 0x00f41cc0)
CrystalDemoDlg 16c8-a34 ENTER SQLSetStmtOption
HSTMT 00F41CC0
UWORD 0 <SQL_QUERY_TIMEOUT>
SQLPOINTER 0x0000000F
CrystalDemoDlg 16c8-a34 EXIT SQLSetStmtOption with return code 0 (SQL_SUCCESS)
HSTMT 00F41CC0
UWORD 0 <SQL_QUERY_TIMEOUT>
SQLPOINTER 0x0000000F (BADMEM)
CrystalDemoDlg 16c8-a34 ENTER SQLExecDirectW
HSTMT 00F41CC0
WCHAR * 0x03A30458 [ -3] "DELETE FROM TMPRPT WHERE 1=0\ 0"
SDWORD -3
CrystalDemoDlg 16c8-a34 EXIT SQLExecDirectW with return code 100 (SQL_NO_DATA_FOUND)
HSTMT 00F41CC0
WCHAR * 0x03A30458 [ -3] "DELETE FROM TMPRPT WHERE 1=0\ 0"
SDWORD -3
CrystalDemoDlg 16c8-a34 ENTER SQLNumResultCols
HSTMT 00F41CC0
SWORD * 0x0012E2B8
CrystalDemoDlg 16c8-a34 EXIT SQLNumResultCols with return code -1 (SQL_ERROR)
HSTMT 00F41CC0
SWORD * 0x0012E2B8
DIAG [S1010] [Microsoft][ODBC Driver Manager] Function sequence error (0)
CrystalDemoDlg 16c8-a34 ENTER SQLErrorW
HENV 00F418D8
HDBC 00F419A0
HSTMT 00F41CC0
WCHAR * 0x0012DE00 (NYI)
SDWORD * 0x0012E224
WCHAR * 0x0012DE20
SWORD 511
SWORD * 0x0012DE14
CrystalDemoDlg 16c8-a34 EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
HENV 00F418D8
HDBC 00F419A0
HSTMT 00F41CC0
WCHAR * 0x0012DE00 (NYI)
SDWORD * 0x0012E224 (0)
WCHAR * 0x0012DE20 [ 56] "[Microsoft][ODBC Driver Manager] Function sequence error"
SWORD 511
SWORD * 0x0012DE14 (56)
CrystalDemoDlg 16c8-a34 ENTER SQLErrorW
HENV 00F418D8
HDBC 00F419A0
HSTMT 00F41CC0
WCHAR * 0x0012DE00 (NYI)
SDWORD * 0x0012E224
WCHAR * 0x0012DE20
SWORD 511
SWORD * 0x0012DE14
I know that my post is too long, but i would like to give enough information for you to see what's happening. I use visual studio 2008 with crystal library 2008.
Thanks,
Lavanya. -
Getting java.lang.LinkageError: duplicate class definition after new build
I few weeks ago I started getting :
java.lang.LinkageError: duplicate class definition every time I tried to access a web app that just got a fresh ANT build to the the web server. The error sites the application's primary servlet class. When I bump the server on I-Planet (6.0), the error goes away. I cannot find a duplicate class anywhere, though. I'm stumped.I few weeks ago I started getting :
java.lang.LinkageError: duplicate class definition every time I tried to access a web app that just got a fresh ANT build to the the web server. The error sites the application's primary servlet class. When I bump the server on I-Planet (6.0), the error goes away. I cannot find a duplicate class anywhere, though. I'm stumped.
Maybe you are looking for
-
IPhone 4 will no longer vibrate since iOS 4.3 update.
My iPhone 4 stopped vibrating after installing iOS 4.3 Also what's the deal with the shortened text tones?!
-
Hi, I have the following problem: I make the expdp from my production database and I need import in test database, to make the export I use the command: /u01/app/oracle/product/10g/bin/expdp newsys/mypass@prd schemas=NEWSYS directory=DMPDIR dumpfile=
-
Missing thumbnails In October I switched from OS 10.1.5 to OS 10.4.8. My thumbnails have become only dotted outlines in iPhoto 6.0.5, except when enlarged. Reading thru these topics, I realize it may be my fault. I apparently committed a no-know by r
-
Virus - can I scan to find out if I have one?
I just created a network by using a router [Apple product] to connect a new PC to my iMac for the internet. Because this PC has NO word processing of any sort [my husband thinks Microsoft should be sued], I wanted to download OpenOffice on it. Unfo
-
SAP Short Dumps when generating BSP page
While generating my BSP page a short dump occurs saying that there is too much code basically. (more then 10,000 ABAP statments). This happens on my LAYOUT section of the screen and the weird thing is that I only have 2145 lines of code. A little ba