Error : Bigger type length than Maximum
Hi
I am using JBOSS Server-with ORACLE 10g-xe(express edition),Thru prepare statement it works well,But thru callable statement it is not working .I am getting the following error
Bigger type length than Maximum .
I am using
jdbc:oracle:thin@host_name:1521:service_name & classes12.jar
what is the solution?
by
balamuralikrishnan.s
This is a jdbc specific error. Moving to OCI drivers should trash the problem.
If you aren't able to use OCI drivers, then you should also try to upgrade your jdbc drivers to the newest version. I read about problems with a plus ( + ) in a varchar2 string causing this problem, also I heard stories about blobs, etc. etc. The error is therefore in my opinion a rather generic one that should be described in more detail by Oracle.
Similar Messages
-
Help~! - IOexception: Bigger type length than Maximum
Hi all,
I've been seeing errors below so often these days when I run my program.
Anybody has any clue?
"dberror= Error: java.sql.SQLException: Io exception: Bigger type length than Maximum
dberror= Error: java.sql.SQLException: Bigger type length than Maximum"
We are using JDBC thin, oracle8 on Linux.
Thanks for any help.
nullHi, my columns doesn't have any CLOB datatype.
Wonder what's the cause...
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Yekesa:
What is the data type of that column ?. If it is a CLOB column and the size is greater than 32K (approx), I have a seen a simular problem on 8.1.6, Windows NT.<HR></BLOCKQUOTE>
null -
Bigger type length than maximum
Anyone knows resolutions to problem of:
"Bigger type length than maximum"?
...what's means "ErrorCode =0"?
Please if you want help me, give me some informationsThanks for reply, the java method getErrorCode has given like return the number 0, the code that throws exception is java sql operation(opening and closing of statement and resultSet to executing an INSERT into ORACLE DATABASE)
-
Error java.sql.SQLException: Bigger type length than Maximum
My version of oracle is Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
When i perform stored function call using xml table i get that error above.
I am calling the function in my java application, jdk 1.5 >> oracle driver class is in the jar ojdbc14, this jar file i downloaded from the oracle website.
i ran the select statement select * from all_registry_banners; and it looks like there is a JVM and xml database version. Is it a problem due to the fact i am using a CLOB as a parameter?
The funny thing is that if i use a later version for oracle class driver ojdbc14-10.2.0.2 downloaded from findjar.com i get a different error:
PLS-00201: identifier 'SYS.DBMS_XQUERYINT' must be declared
I am really lost, please help!
Regards,
Shane.
my java code is:
String query = oracleQuery;
CallableStatement stmt = conn.prepareCall(query);
// register the type of the out param - an Oracle specific type
stmt.registerOutParameter(1, OracleTypes.CURSOR);
// set the in param
String xml = readInAsFile();
stmt.setString(2, xml );
// execute and retrieve the result set
stmt.execute();
ResultSet rs = (ResultSet)stmt.getObject(1);
stored function is:
CREATE OR REPLACE FUNCTION JL_INTERFACE.MAPPING_ITEMS_FUNC (xmlInput IN CLOB)
RETURN SYS_REFCURSOR
Is
mappingItemsCursor SYS_REFCURSOR;
Begin
Open mappingItemsCursor FOR
Select Identifiers.*, orders.*, OTCC.OTCC, OTCC.OTCC_DIC
From (Select XMLType(xmlInput) as xmlMessage
From Dual) xmlTypeInput
,XMLTable('for $i in /Message
return $i'
Passing xmlTypeInput.xmlMessage
Columns Jurisdiction VARCHAR(50) Path 'Body/Outcome/OutcomeHeader/CourtAppearance/Court/@Jurisdiction',
Law_Part_Code VARCHAR(50) Path 'Body/Outcome/Offence/ActionIdentifiers/@LawPartCode',
HNumber VARCHAR(50) Path 'Body/Outcome/Offence/ActionIdentifiers/ActionID/CANReference/@HNumber'
) Identifiers
,XMLTable('for $i in /Message/Body/Outcome/Offence/Order
return $i'
Passing xmlTypeInput.xmlMessage
Columns Order_Number VARCHAR(50) Path '@JusticelinkOrderNumber' ,
Order_Category VARCHAR(50) Path 'OrderTypeCodes/@JusticelinkOrderCategory' ,
Order_Type VARCHAR(50) Path 'OrderTypeCodes/@JusticelinkOrderType',
Next_Hearing_Type VARCHAR(50) Path 'NewListingDetails/Listing/ListingDetail/NextHearingType'
) Orders
,JL_INTERFACE.ORDER_TYPE_NSWP_OTCC OTCC
Where OTCC.Jurisdiction = Identifiers.Jurisdiction
And OTCC.Order_Type = Orders.Order_Type
And OTCC.Next_Hearing_Type = Orders.Next_Hearing_Type ;
Return mappingItemsCursor;
End MAPPING_ITEMS_FUNC;Hi, my columns doesn't have any CLOB datatype.
Wonder what's the cause...
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Yekesa:
What is the data type of that column ?. If it is a CLOB column and the size is greater than 32K (approx), I have a seen a simular problem on 8.1.6, Windows NT.<HR></BLOCKQUOTE>
null -
Error ocurred during capture: Bigger type length than Maximum
Hi,
I am working on a migration project from mysql 5.1 to oracle 9i. I have got everything setup as mentioned in the installation file (jdk1.5.0_22, mysql-connector-java-5.0.4, sql developer 1.5.3). I have tried the latest version 1.5.5 and 2.1 as well which doesn't seem to work either.
I have done the suggested changes in the forum specifically talking about this issue. They relate it to the jdbc.library not pointing to the current directory where sqldeveloper is installed but this is without the jdk so I guess that should not be case for this error. I have tested with all possible combinations; like with jdk and pointing the jdbc.library to the directory where sqldeveloper is installed. I have also tried the ORACLE_HOME = %CD%. I really need help on this one. I am quite not able to understand the root cause of this error and if it relates to jdbc, I have got the proper versions set.
Any ideas would be really appreciated.
I have attached the current property settings of the installation....
java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
java.awt.printerjob sun.awt.windows.WPrinterJob
java.class.path ..\..\ide\lib\ide-boot.jar
java.class.version 49.0
java.endorsed.dirs D:\Program Files\Java\jdk1.5.0_22\jre\lib\endorsed
java.ext.dirs D:\Program Files\Java\jdk1.5.0_22\jre\lib\ext
java.home D:\Program Files\Java\jdk1.5.0_22\jre
java.io.tmpdir C:\Temp\1\
java.library.path C:\Program Files\sqldeveloper;.;C:\WINDOWS\system32;C:\WINDOWS;E:\oracle\ora90\bin;E:\oracle\ora92\jre\1.4.2\bin\client;E:\oracle\ora92\jre\1.4.2\bin;E:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;E:\oracle\ora90IDS\bin;E:\oracle\ora90IDS\jre\1.3.1\bin;E:\oracle\ora90IDS\jre\1.4.0\bin;C:\Program Files\Oracle\jre\1.1.8\bin;E:\oracle\ora102\bin;E:\ODI\OStore\bin;C:\Program Files\Windows Resource Kits\Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\HITACHI\DynamicLinkManager\bin;C:\Program Files\HITACHI\DynamicLinkManager\lib;C:\Program Files\Common Files\Hitachi;e:\util;E:\Program Files\IBM\Director\bin;C:\Program Files\Common Files\IBM\ICC\cimom\bin;C:\Program Files\Windows Imaging\
java.naming.factory.initial oracle.javatools.jndi.LocalInitialContextFactory
java.runtime.name Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version 1.5.0_22-b03
java.specification.name Java Platform API Specification
java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.5
java.util.logging.config.file logging.conf
java.vendor Sun Microsystems Inc.
java.vendor.url http://java.sun.com/
java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
java.version 1.5.0_22
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) Client VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0
java.vm.vendor Sun Microsystems Inc.
java.vm.version 1.5.0_22-b03
jdbc.driver.home /E:/oracle/ora102/
jdbc.library /E:/oracle/ora102/jdbc/lib/ojdbc14.jar
line.separator \r\n
oracle.home C:\Program Files\sqldeveloper
oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG true
oracle.translated.locales de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
oracle.xdkjava.compatibility.version 9.0.4
orai18n.library /E:/oracle/ora102/jlib/orai18n.jar
os.arch x86
os.name Windows 2003
os.version 5.2
path.separator ;
reserved_filenames con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
sun.arch.data.model 32
sun.boot.class.path D:\Program Files\Java\jdk1.5.0_22\jre\lib\rt.jar;D:\Program Files\Java\jdk1.5.0_22\jre\lib\i18n.jar;D:\Program Files\Java\jdk1.5.0_22\jre\lib\sunrsasign.jar;D:\Program Files\Java\jdk1.5.0_22\jre\lib\jsse.jar;D:\Program Files\Java\jdk1.5.0_22\jre\lib\jce.jar;D:\Program Files\Java\jdk1.5.0_22\jre\lib\charsets.jar;D:\Program Files\Java\jdk1.5.0_22\jre\classes
sun.boot.library.path D:\Program Files\Java\jdk1.5.0_22\jre\bin
sun.cpu.endian little
sun.cpu.isalist
sun.desktop windows
sun.io.unicode.encoding UnicodeLittle
sun.java2d.ddoffscreen false
sun.jnu.encoding Cp1252
sun.management.compiler HotSpot Client Compiler
sun.os.patch.level Service Pack 2Elizabeth,
I'm not in the exact same circumstance (doing a migration) but getting the exact same error while trying to use SQL Developer to retrieve MySQL data (select * from table@mysql_link) using the DG4ODBC gateway (Oracle Database Gateway for ODBC).
It sounds like you've found some forum threads here that talk about this error. That's more than I've been able to find, with the exception of yours. Would you mind pointing me to one or two of those? A search here only turns up your thread for me. Thanks!
Earl -
Java.sql.SQLException: Bigger type length than Maximum
When i retrieve XMLType of size arnd 300k using XDK & JDBC thin driver for 9i i get this error. Any help would be appreciated.
I am using 9i Release 2 thin driver and xdk package.
Thanks,
SBill,
Could you please contact your Oracle Support representative about this bug? Please mention that this may be the same issue as bug number 938540.
Thanks. -
Error : Summary String length exceeds maximum
I just got an error while trying to Update a User on my IDM instance.
com.waveset.util.InternalError : Summary String length (3003) exceeds maximum (2048)
I already checked this forum for similar issues, and I found a couple of threads. However, for some reason, I was unable to VIEW those threads (something about not having the rights/access to read those threads)
So, I am posting my issue here.
Any help will be greatly appreciatedRoman,
if you are using NETBEANS, this is what you do :
(a) right-click on the name of your instance (in the Projects Tab)
(b) select IDM
(c) then select "Download Objects"
(d) From the list that appears, choose "Common Configuration Object Types"
(e) Next, choose "*Repository Configuration"*
Somewhere in this file, there is a clause which states : *"Maximum Summary = '2048'*
Change this value to something higher (but, *NOT* too high !)
This should solve your problem -
Column name length exceeds maximum allowed
Hello,
I get this error when am trying to create a table. ERROR: Column name length exceeds maximum allowed length(30).
Is it able to extend this length to be more than 30 ? By the way I am using Oracle 11g
Regards,
Moussa El Tayeb
about.me/MoussaEltayebHello,
also Oracle has some limits. For more Information see the logical limits
http://docs.oracle.com/cd/E14072_01/server.112/e10820/limits.htm
regards
Peter -
Ctxload error DRG-11530: token exceeds maximum length
I downloaded the 11g examples (formerly the companion cd) with the supplied knowledge base (thesauri), unzipped it, installed it, and confirmed that the droldUS.dat file is there. Then I tried to use ctxload to create a default thesaurus, using that file, as per the online documentation. It creates the default thesaurus, but does not load the data, due to the error "DRG-11530: token exceeds maximum length". Apparently one of the terms is too long. But what can I use to edit the file? I tried notepad, but it was too big. I tried wordpad, but it was unreadable. I was able to create a default thesaurus using the much smaller sample thesaurus dr0thsus.txt, so I confirmed that there is nothing wrong with the syntax or privileges. Please see the copy of the run below. Is there a way to edit the droldUS.dat file or a workaround or am I not loading it correctly? Does the .dat file need to be loaded differently than the .txt file?
CTXSYS@orcl_11g> select banner from v$version
2 /
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
CTXSYS@orcl_11g> select count(*) from ctx_thesauri where ths_name = 'DEFAULT'
2 /
COUNT(*)
0
CTXSYS@orcl_11g> select count(*) from ctx_thes_phrases where thp_thesaurus = 'DE
FAULT'
2 /
COUNT(*)
0
CTXSYS@orcl_11g> host ctxload -thes -user ctxsys/ctxsys@orcl -name default -file
C:\app\Barbara\product\11.1.0\db_1\ctx\data\enlx\droldUS.dat
Connecting...
Creating thesaurus default...
Thesaurus default created...
Processing...
DRG-11530: token exceeds maximum length
Disconnected
CTXSYS@orcl_11g> connect ctxsys/ctxsys@orcl
Connected.
CTXSYS@orcl_11g>
CTXSYS@orcl_11g> select count(*) from ctx_thesauri where ths_name = 'DEFAULT'
2 /
COUNT(*)
1
CTXSYS@orcl_11g> select count(*) from ctx_thes_phrases where thp_thesaurus = 'DE
FAULT'
2 /
COUNT(*)
0
CTXSYS@orcl_11g> exec ctx_thes.drop_thesaurus ('default')
PL/SQL procedure successfully completed.
CTXSYS@orcl_11g> host ctxload -thes -user ctxsys/ctxsys@orcl -name default -file
C:\app\Barbara\product\11.1.0\db_1\ctx\sample\thes\dr0thsus.txt
Connecting...
Creating thesaurus default...
Thesaurus default created...
Processing...
1000 lines processed
2000 lines processed
3000 lines processed
4000 lines processed
5000 lines processed
6000 lines processed
7000 lines processed
8000 lines processed
9000 lines processed
10000 lines processed
11000 lines processed
12000 lines processed
13000 lines processed
14000 lines processed
15000 lines processed
16000 lines processed
17000 lines processed
18000 lines processed
19000 lines processed
20000 lines processed
21000 lines processed
21760 lines processed successfully
Beginning insert...21760 lines inserted successfully
Disconnected
CTXSYS@orcl_11g> select count(*) from ctx_thesauri where ths_name = 'DEFAULT'
2 /
COUNT(*)
1
CTXSYS@orcl_11g> select count(*) from ctx_thes_phrases where thp_thesaurus = 'DE
FAULT'
2 /
COUNT(*)
9582
CTXSYS@orcl_11g>Hi Roger,
Thanks for the response. You are correct. I was confusing the terms thesaurus and knowledge base, which sometimes seem to be used interchangeably or synonymously, but are actually two different things. I read over the various sections of the documentation regarding the supplied knowledge base and supplied thesaurus more carefully and believe I understand now. Apparently, the dr0thsus.txt file that I did ultimately load using ctxload to create a default thesaurus is the supplied thesaurus that is intended to be used to create the default English thesaurus, which supports ctx_thes syn and such. The other droldUS.dat file that I mistakenly tried to load using ctxload is the supplied compiled knowledge base that supports ctx_doc themes and gist and such. In the past I have used ctx_thes.create_thesaurus to create a thesaurus, but using ctxload can also load a thesaurus from a text file with the data in a specified format. Once a thesaurus is loaded using ctxload, it can then be compiled using ctxkbtc to add it to the existing compiled knowledge base. So, the knowledge base is sort of a compilation of thesauri, which is what led to my confusion in terminology. I think I have it all straight in my mind now and hopefully this will help anybody else who searches for the same problem and finds this.
Thanks,
Barbara -
ORA-00162: external dbid length 117 is greater than maximum(16)
A .net user facing this oracle issue any body plz identify the soution it will be very big help.This is the error.
ORA-00162: external dbid length 117 is greater than maximum(16)Hello,
What's your Database name? Can you post content of your tnsnames.ora file?
Here is an example of tnsnames.ora
MYDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =192.168.1.100)(PORT = 1521))
(CONNECT_DATA =
(SERVER = dedicated)
(SERVICE_NAME = MYDB)
)Regards
OrionNet -
I am able to pick 4 videos from the Photo library in my iPhoneAPP but when i try to pick 5th one it throws an error:
"More than maximum 5 filtered album lists trying to register. This will fail,Why i am getting this error when i pick video from Photo library."Hello Tate r Bulic
I don't have any idea how to remove this error,can i pick more than 5 videos from the photo library...
If it's then please help me and gimme idea..Thanks -
I have an iPhone 4S and when I try to add an iCloud account is gives me an error "Cannot Sign In, The maximum number of free accounts have been activated on this iPhone." Is there any way to deactivate an account? I have one for myself, one for my family and one for my work. I had all three on my iphone and then I deleted my work. I wanted to get my own person @me.com account. It wouldn't let me create it from my iphone, so I created it from my Macbook Pro. I am trying to add it to my iphone, but it keeps giving me that error. If there is a way I can deactivate my work one so I can use my @me.com personal account?
Welcome to the Apple Community.
Unfortunately once all the 3 iCloud accounts have been created on your mobile device, you cannot create any more regardless of what you do. You will need to re-use one of the accounts that you have already created or create your new account on another device or computer.
You should however be able to add existing accounts to your device, are you sure you aren't trying to create on rather than simply use an existing one. -
Hi Everyone..
I am getting an Error 1046: Type was not found or was not a compile-time constant: Component Event.
The ComponentEvent class has been imported,and also the event handling code is there. I am not sure what else is wrong, hope somebody can advise me. Thanks. The code is below, the point where the error occurs as indicated by the compiler has been highlighted.
package
import flash.display.Sprite;
import flash.media.Camera;
import flash.media.Microphone;
import flash.media.Video;
import fl.controls.TextArea;
import fl.controls.Button;
import fl.controls.TextInput;
import flash.events.SyncEvent;
import flash.events.MouseEvent;
import flash.events.FocusEvent;
import flash.net.SharedObject;
import flash.net.NetConnection;
import flash.net.NetStream;
import flash.events.NetStatusEvent;
import flash.events.FocusEvent;
import flash.events.ComponentEvent;
public class VideoChat extends Sprite
private var button:Button;
private var text_so:SharedObject;
private var textArea:TextArea;
private var textInput:TextInput;
private var chatName:TextInput;
private var nc:NetConnection;
private var nsOut:NetStream;
private var nsIn:NetStream;
private var rtmpNow:String;
private var msg:Boolean;
private var cam:Camera;
private var mic:Microphone;
private var vid:Video;
public function VideoChat ()
//Set up UI
textArea = new TextArea();
textArea.setSize(500,280);
textArea.move(20,54);
addChild(textArea);
textInput = new TextInput();
textInput.setSize(500,24);
textInput.move(20,340);
textInput.addEventListener(ComponentEvent.ENTER,checkKey);
addChild(textInput);
button = new Button();
button.width=50;
button.label="Send";
button.move(20,370);
button.addEventListener(MouseEvent.CLICK, sendMsg);
addChild(button);
chatName = new TextInput;
chatName.setSize (100,24);
chatName.move (80,370);
chatName.text="<Enter Name>";
chatName.addEventListener (FocusEvent.FOCUS_IN, cleanName);
addChild(chatName);
//Connect
rtmpNow="rtmp:/VideoChat ";
nc=new NetConnection;
nc.connect (rtmpNow);
nc.addEventListener(NetStatusEvent.NET_STATUS,doSO);
cam = Camera.getCamera();
mic=Microphone.getMicrophone();
//Camera Settings
cam.setKeyFrameInterval(15);
cam.setMode (240, 180, 15, false);
cam.setMotionLevel(35,3000);
cam.setQuality(40000 / 8,0);
//Microphone Settings
mic.gain = 85;
mic.rate=11;
mic.setSilenceLevel (25,1000);
mic.setUseEchoSuppression (true);
//Video Setup
vid=new Video(cam.width, cam.height);
addChild (vid);
vid.x=10, vid.y=20;
//Attach local video and camera
vid.attachCamera(cam);
private function doSO(e:NetStatusEvent):void
good=e.info.code == "NetConnection.Connect.Success";
if(good)
//Set up shared object
text_so=SharedObject.getRemote("test", nc.uri, false);
text_so.connect (nc);
text_so.addEventListener(SyncEvent.SYNC, checkSO);
private function checkSO(e:SyncEvent):void
for (var chung:uint; change<e.changeList.length; chng++)
switch(e.chageList[chng].code)
case "clear":
break;
case "success":
break;
case "change":
textArea.appendText (text_so.data.msg + "\n");
break;
private function cleanName(e:FocusEvent): void
chatName.text="";
private function sendMsg(e:MouseEvent):void
noName=(chatName.text=="<Enter Name>" || chatName.text=="");
if (noName)
textArea.appendText("You must enter your name \n");
else
text_so.setProperty("msg", chatName.text +": " + textInput.text);
textArea.appendText (chatName.text +": "+textInput.text +"\n");
textInput.text="";
private function checkKey (e:ComponentEvent):void
noName=(chatName.text=="<Enter Name>" || chatName.text=="");
if (noName)
textArea.appendText("You must enter your name \n");
else
text_so.setProperty("msg", chatName.text +": " + textInput.text);
textArea.appendText (chatName.text +": "+textInput.text +"\n");
textInput.text="";
//Create NetStream instances
private function checkConnect (e:NetStatusEvent):void
msg=e.info.code == "NetConnection.Connect.Success";
if(msg)
nsOut=new NetStream(nc);
nsIn=new NetStream(nc);
//NetStream
nsOut.attachAudio(mic);
nsOut.attachCamera(cam);
nsOut.publish("camstream");
nsIn.play("camstream");Hi Guys...
I have found out what is wrong. I was importing the wrong package the correct one should have been:
import fl.events.ComponentEvent;
instead of
import flash.events.ComponentEvent;
I hope this is helpful for anyone caught in a simillar situation as me...Thanks.. -
I'm a student I have a final project want to deliver it after two days.
I'm making a drag and drop game, I watched a tutorial to do that.
But after ending coding I faced a weird error!
I've I checked that my code is the same as the code in the tutorial.
This is the Debug error report:
Attempting to launch and connect to Player using URL E:\FL\ActionScript\Drag and Drop Project\DragAndDrop.swf
[SWF] E:\FL\ActionScript\Drag and Drop Project\DragAndDrop.swf - 87403 bytes after decompression
TypeError: Error #1034: Type Coercion failed: cannot convert paper1$ to DragDrop.
at Targets()[E:\FL\ActionScript\Drag and Drop Project\Targets.as:23]
My `.fla` File is containing 12 Objects to drag and another 12 Objects to drop on it.
The idea here is when drop the Object on the target the Object will become invisible and the target become visible (in `.fla` file `target alpha = 0`).
I made two classes:
DragDrop.as : for the objects that I'm going to drag.
Targets.as : for the targets that I'm going to drop Objects on it.
Note: match function is to animate "GameOver" MovieClip When complete the game.
DragDrop.as:
package
import flash.display.*;
import flash.events.*;
public class DragDrop extends Sprite
var origX:Number;
var origY:Number;
var target:DisplayObject;
public function DragDrop()
// constructor code
origX = x;
origY = y;
addEventListener(MouseEvent.MOUSE_DOWN, drag);
buttonMode = true;
function drag(evt:MouseEvent):void
stage.addEventListener(MouseEvent.MOUSE_UP, drop);
startDrag();
parent.addChild(this);
function drop(evt:MouseEvent):void
stage.removeEventListener(MouseEvent.MOUSE_UP, drop);
stopDrag();
if(hitTestObject(target))
visible = false;
target.alpha = 1;
Object(parent).match();
x = origX;
y = origY;
Targets.as:
package
import flash.display.*;
import flash.events.*;
public class Targets extends MovieClip
var dragdrops:Array;
var numOfMatches:uint = 0;
var speed:Number = 25;
public function Targets()
// constructor code
dragdrops = [paper1,paper2,paper3,paper4,paper5,paper6,
paper7,paper8,paper9,paper10,paper11,paper12,];
var currentObject:DragDrop;
for(var i:uint = 0; i < dragdrops.length; i++)
currentObject = dragdrops[i];
currentObject.target = getChildByName(currentObject.name + "_target");
public function match():void
numOfMatches++;
if(numOfMatches == dragdrops.length)
win.addEventListener(Event.ENTER_FRAME, winGame);
function winGame(event:Event):void
win.y -= speed;
if(win.y <= 0)
win.y = 0;
win.removeEventListener(Event.ENTER_FRAME, winGame);
win.addEventListener(MouseEvent.CLICK, clickWin);
function clickWin(event:MouseEvent):void
win.removeEventListener(MouseEvent.CLICK, clickWin);
win.addEventListener(Event.ENTER_FRAME, animateDown);
var currentObject:DragDrop;
for(var i:uint = 0; i < dragdrops.length; i++)
currentObject = dragdrops[i];
getChildByName(currentObject.name + "_target").alpha = 0;
currentObject.visible = true;
numOfMatches = 0;
addChild(win);
function animateDown(event:Event):void
win.y += speed;
if(win.y >= stage.stageHeight)
win.y = stage.stageHeight;
win.removeEventListener(Event.ENTER_FRAME, animateDown);
...ThanksThank you very much for replying.
- dragdrops represents: the dragable objects.
- Targets obtaining the dropable objects by hitTestObject, then the dropable objects visible is turned to false, & the target visible turned to true.
Dragable objects is a 12 elements all of them have an instance names: paper1....paper12.
When I focused to the project I noticed that I forget to give the dragable objects an instance names!
after making the instance names to them, a new error occures:
E:\FL\ActionScript\Drag and Drop Project\Targets.as, Line 11
1046: Type was not found or was not a compile-time constant: paper1.
This error is continuing to paper2, paper3.....paper12 !
Please download my project, I must deliver it to my college in 24/12. I will never forget your favor. thanks.
https://www.dropbox.com/s/8mdg5w17vvryzso/Drag%20and%20Drop%20Project.rar | 715KB -
ORA-31044: Top-level prefix length exceeds maximum
Hi,
I am trying to migrate the cube and associated view created by view generator from one environment to another environment.
The cube is migraed through XML and it is working.
But when we compile the view created in one environment in the target environemn after cube migration we get and error as - "ORA-31044: Top-level prefix length exceeds maximum".
What is the resolution for this?
Regards,
GurudattaNot sure what is happening between production and development environments, if it worked in dev it should work in production assuming no other changes were made to the data model. Data volumes should not be an issue. When you are testing the view are you using a WHERE clause to limit the number of rows returned? Try just returning the top level for each dimension, the 'All' dimension member as this will return just one row (or one row for each year if you have a time dimension with year as the top level).
Keith Laker
Oracle EMEA Consulting
BI Blog: http://oraclebi.blogspot.com/
DM Blog: http://oracledmt.blogspot.com/
BI on Oracle: http://www.oracle.com/bi/
BI on OTN: http://www.oracle.com/technology/products/bi/
BI Samples: http://www.oracle.com/technology/products/bi/samples/
Maybe you are looking for
-
I'm unable to reinstall my iTunes app on my laptop PC that is running windows 7. Please help?!
-
Hi, i am using XI7.0, Sender JDBC error is below; when i test to connect to Oracle DB in using JAVA Code with ojdbc14.jar which was deployed into XI J2EE, i have no problem with insert update delete in using same code which was used in JDBC adapter i
-
All apps shutting down when I try to print
Updated to 10.4.11 about 2 weeks ago. All seemed to be working fine. Haven't changed anything else. Suddenly, whenever I try to print from any app (Word, Text edit, Preview, etc.) the program just shuts down. Rebooted several times, repaired permissi
-
Bonjour 2 questions sur Itunes: - Les plages des CD telecharger sont en double comment les supprimer? - Après le n° de la palge il y a un point d'exclamation que je n'arrive pas à retirer? Merci de vos conseils
-
Mail Personal Mailboxes / folders wont display
Hi I have recently upgrades from OS 10.4.11 to 10.5.6. After following a couple of discussions and Apple Support guides I have been able to get my Mail to open correctly with the Inbox, Send and Trash all ok, plus I can send and receive e-mail. But m