Xcode ; Private - private ??
I recently installed Xcode 2.5 and as far as I can tell I installed the correct version for my system - situation here, which is Tiger 10.4.11 and am using it on a G4 Dual MDD.
I have since been experiencing this strange phenomenon when repairing permissions using Disk Utility, as listed below here; (note the "P" / "p" in private's)
Repairing permissions for “WD160TIGER”
Determining correct file permissions.
Group differs on ./Private, should be 80, group is 0
Permissions differ on ./Private, should be drwxrwxr-x , they are drwxr-xr-x
Owner and group corrected on ./Private
Permissions corrected on ./Private
Group differs on ./private, should be 0, group is 80
Permissions differ on ./private, should be drwxr-xr-x , they are drwxrwxr-x
Owner and group corrected on ./private
Permissions corrected on ./private
Permissions repair complete
The privileges have been verified or repaired on the selected volume
I used "EasyFind" and was able to discover precisely which folders they are.
"Private" (with the uppercase P) is a new one in my Developers folder, and "private" (lowercase p) is at the root level of my startup drive.This appears to be normal.
Whenever I use Disk Utility now, and repair permissions, I get the same results. It says it repairs things but, it never really does.
Note; It does not seem to be a problem but does seem a little unusual.
Question ?
Is this a normal occurrence ?
or should I try to fix it ?
Thanks for any insights.
TTab
I recently installed Xcode 2.5 and as far as I can tell I installed the correct version for my system - situation here, which is Tiger 10.4.11 and am using it on a G4 Dual MDD.
I have since been experiencing this strange phenomenon when repairing permissions using Disk Utility, as listed below here; (note the "P" / "p" in private's)
Repairing permissions for “WD160TIGER”
Determining correct file permissions.
Group differs on ./Private, should be 80, group is 0
Permissions differ on ./Private, should be drwxrwxr-x , they are drwxr-xr-x
Owner and group corrected on ./Private
Permissions corrected on ./Private
Group differs on ./private, should be 0, group is 80
Permissions differ on ./private, should be drwxr-xr-x , they are drwxrwxr-x
Owner and group corrected on ./private
Permissions corrected on ./private
Permissions repair complete
The privileges have been verified or repaired on the selected volume
I used "EasyFind" and was able to discover precisely which folders they are.
"Private" (with the uppercase P) is a new one in my Developers folder, and "private" (lowercase p) is at the root level of my startup drive.This appears to be normal.
Whenever I use Disk Utility now, and repair permissions, I get the same results. It says it repairs things but, it never really does.
Note; It does not seem to be a problem but does seem a little unusual.
Question ?
Is this a normal occurrence ?
or should I try to fix it ?
Thanks for any insights.
TTab
Similar Messages
-
Hello,
While studying I have come up with this problem a few times and was wondering if you could help me.
I am currently working with linked list examples and the variables used have default package access. I am however told that the variables should normally be declared private.
So I made a kinda dummy class which shows my problem.
public class Private
private Private unreachable;
private String greating="hello";
public Private()
unreachable = null;
greating="";
public String getGreating()
return greating;
public Private getReach()
return unreachable;
public class PrivateWork
private String differentGreating;
private Private reachMe;
public PrivateWork()
differentGreating="";
reachMe=null;
public void changeGreating(String change)
Private p = new Private();
p.greating = change; //produces "greating has private access in the class Private" error
p.getGreating() = change; //produces "unexpected type" error
reachMe = p;
public class TestPrivate
public static void main(String[]args)
PrivateWork p = new PrivateWork();
p.changeGreating("Good Morning");
}I know that by making the Private class an inner class of PrivateWork I can keep the variables declared private and the "p.greating = change;" will work.
However is there another way I can access the "greating" variable from the changeGreating(String change) method in the PrivateWork class.I am currently working with linked list examples and the variables
used have default package access.What variables are you referring to?
p.greating = change; //produces "greating has private access in the class Private" error That one should be pretty obvious because it is the definition of private: you can't use objects of the class to access private variables.
By the way, "greating" is spelled greeting.
p.getGreating() = change; //produces "unexpected type" errorI'm not sure about that one. But, you can split that statement up into two lines and you won't get a compile error:
String gr = p.getGreating();
gr = change;However, I don't think that is going to do what you expect. Try to predict the output of this example:
class Private
private String greeting="hello";
public String getGreeting()
return greeting;
public class AATest1
public static void main(String[]args)
Private p = new Private();
String gr = p.getGreeting();
gr = "Goodbye";
System.out.println(p.getGreeting()); //Output??
} -
HELP: Inner Class vs. Private Member
I use "javadoc -private" to create documents with inner classes. As a result, all private fields and methods, which I don't need, show up in the same document. Is there any way I can have inner classes without private members?
how do you declare your inner class?
Is it (public)
public static class MyInnerClassor (private)
private static class MyInnerClassor (package)
static class MyInnerClassor (protected)
protected static class MyInnerClassTry to change the way you declare the inner class. Use protected or package or public instead. -
Accessing private fields from an subclass whoes parent is abstract.
I seem not to be able to access some private fields from a subclass who's parent is abstract...
here is some code to demonstrate this: (based on yawmark's code)
import java.lang.reflect.*;
import java.net.URLClassLoader;
import java.io.*;
import java.net.*;
class PrivateReflection {
public static void main(String[] args) throws Exception {
Private p = new Private();
File f=new File("test.jar");
URL[] urls=new URL[1];
urls[0]=f.toURL();
URLClassLoader loader=new URLClassLoader(urls);
Class c=loader.getClass();
// Class c=p.getClass();
Field field = c.getField("packages");
field.setAccessible(true);
System.out.println(field.get(p));
class Private {
private String packages = "Can't get to me!";
private void privateMethod() {
System.out.println("The password is swordfish");
}There is no need for a test.jar file to be created.
I know for a fact that the ClassLoader abstract class defines a field called "packages" which is an HashMap.
How do i access this private field?
I am in the process of making a utility which re-compresses a inputed JAR using other compression methods than normal zip compression while still keeping the same functionality as the inputed JAR.
I do have it working for Executable JARS: www.geocities.com/budgetanime/bJAR.html
This old version only works for executable JARs and uses Bzip2 compression.
I believe i have been able to solve all but one last problem to making re-compressed JARs which work as "library" JARs. This last problem is "removing" temporary prototype classes from the system loader and replacing them with the actual decompressed classes. As there seems not to be an nice way to do this i will have to manually remove references of the classes from the system class loader which is why i am asking this question.lol! i have solved my problem... it was because i was using the getField() method instead of the getDeclaredField() method.
-
How do I re-hide this file called "private"
A file called "private", which is supposed to be invisible, has suddenly become visible. How do I make this file invisible again?
Arthur wrote:
You can do this in Terminal.
1. open a terminal window (Applications > Utilities > Terminal)
2. change to the directory where the private folder is. For example, it looks like it is in your HD, so that would be:
cd /
Once you are in that directory, type this:
mv "private" ".private"
Note the period before the second one. You have to enter the commands exactly as written.
Then Neil wrote:
Use the following Terminal command:
sudo chflags hidden /private/
This folder is necessary for Mac OS X to operate and shouldn't be renamed or deleted.
(80387)
=========================
So who's right? OR do I flip acoin? -
How to find intersection point between a lineseries and a vertical line.
I have a lineseries chart (refer the screenshot). As I move the spend slider shown in the attachment, a vertical line is drawn in the chart. (I did this using the cartesian canvas as annotation element - using canvas.moveTo(), canvas.lineTo() functions)
I want to find out the intersection point(y value) where the vertical line meets the lineseries. Can someone help me on this. It will be really helpful.
Thanks,
JayakrishnanHere are a few functions I wrote years ago for common chart transformations... the function you're going to focus on for your solution is chartToScreen...
* Converts the screen position to chart value position
* @param thePos - Number - The position you want to convert
* @private
private function getChartCoordinates(thePos:Point):Object
var tmpArray:Array = dataTransform.invertTransform(thePos.x, thePos.y);
return {x:tmpArray[0], y:tmpArray[1]};
* Takes a non-numeric chart value and returns a proper numeric value
* @param inValue - String - The display name of the instance showing on the axis (eg. if we're showing months, it might be 'Sep - 06'
* @param theAxis - IAxis - The axis on which we're looking
public function getNumericChartValue(inValue:String, theAxis:IAxis):Object
var axisCache:Array = new Array({inValue: inValue})
if(!(theAxis is LinearAxis))
theAxis.mapCache(axisCache, "inValue", "outValue", true);
return {numericValue: axisCache[0].outValue}
else
return {numericValue: Number(inValue)};
* Converts the chart values into screen coordinate values
* @param chartX - Number - The display name of the instance showing on the axis (eg. if we're showing months, it might be 'Sep - 06'
* @param chartY - Number - The axis on which we're looking
public function chartToScreen(chartX:Number, chartY:Number, theSeries:Series):Point
var tmpCache:Array = new Array({chartX:chartX, chartY:chartY});
if(theSeries)
theSeries.dataTransform.transformCache(tmpCache, "chartX", "screenX", "chartY", "screenY");
else
dataTransform.transformCache(tmpCache, "chartX", "screenX", "chartY", "screenY");
return new Point(Math.round(tmpCache[0].screenX), Math.round(tmpCache[0].screenY));
* takes a point in mouse position, and runs it through converting to chart coordinates, converts chart coordinate to numeric value if needed
* and then back into mouse position to get the nearest axis snap point
* @param thePoint - Point - The position we're converting
* @private
private function getSnapPosition(thePoint:Point):Point
var chartPoint:Object = getChartCoordinates(new Point(thePoint.x, thePoint.y));
//if either of the axis chart results is not in numeric format, we get the numeric equivalent of it
var chartX:* = chartPoint.x;
var chartY:* = chartPoint.y;
chartX = getNumericChartValue(chartPoint.x, CartesianChart(this.chart).horizontalAxis).numericValue;
chartY = getNumericChartValue(chartPoint.y, CartesianChart(this.chart).verticalAxis).numericValue;
return chartToScreen(chartX, chartY, null); -
Greetings and Salutations,
I'm having speed issues with my Adobe AIR application. From what I've read on the web, AIR is supposed to be fast at drawing graphics. I am writing an application which has multiple screens. On one of the screens I have a tab (SuperNavigator) which has a canvas on it. That canvas has a series of other canvases (built with a repeater) that have graphics in them. I am having speed issues when I have more than 50 of these children canvases. I've tried running it without the graphics (code below is without the graphics) to see how it performs. When I have 954 of these canvases being drawn it takes about 2.5 minutes to draw. This is unacceptable and I'm wondering if this is something I've induced or if AIR was never meant to handle such a large amount of canvases (actually this isn't a large amount, in a real world environment there could be a lot more). I've included relevant clips from the code. There are a couple empty boxes that in the real application will hold graphics.
The class withing the Tab Navigator is a canvas.
In the action Script (the setter line takes 2.5 minutes to get past) (it's binding to the repeater that seems to be my problem).
[Bindable] private
private var _assetList:Array;
[Bindable]
public function get timelineAssetList():Array{
return this._assetList;
public function set timelineAssetList(ac:Array):void{
this._assetList = ac;
The MXML code that is being bound to:
<mx:Canvas id="labelCanvas" left="0" right="0" top="0" height="65" verticalScrollPolicy="off" scroll="scrolling(event)">
<mx:HBox horizontalGap="1" left="10" right="10" top="10">
<mx:Spacer width="2"/>
<mx:Canvas width="{getHeaderWidth()}" height="40" borderStyle="solid" borderColor="{StaticVariables.borderColor.getColorUint()}" horizontalCenter="0">
<PastDataView:ColorBarScale id="scale" bottom="10"/>
</mx:Canvas>
<mx:Canvas width="20" height="40">
<mx:Spacer width="20" />
</mx:Canvas>
</mx:HBox>
</mx:Canvas>
<mx:Canvas id="assetCanvas" left="0" right="0" bottom="0" top="65" scroll="scrolling(event)">
<mx:VBox y="10" right="16" left="10" verticalGap="0">
<mx:Repeater id="assetRepeater" dataProvider="{timelineAssetList}">
<mx:HRule width="100%"/>
<PastDataView:ColorBarBar id="barArray" width="100%" height="170" asset="{assetRepeater.currentItem}"/>
</mx:Repeater>
</mx:VBox>
</mx:Canvas>
The ColorBarBar consists of:
<?xml version="1.0" encoding="utf-8"?><mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300" xmlns:PastDataView="org.XXXXXX.CenterScreen.PastDataView.*" horizontalScrollPolicy="off" click="clicked()">
[Bindable]
public static var _colorBarHeight:int = StaticVariables.colorBarHeight;
[Bindable]
private var _asset:Object;
[Bindable]
public function set asset(a:Object):void{
this._asset = a; getBackgroundColor();
public function get asset():Object{
return _asset; }
private function getBackgroundColor():void {
var color:String = asset.color;
if (color == null) color = "Black";
if( color.toLowerCase() == "blue" ) {
lblAssetTag.setStyle("color", 0x1674cc); lblAsset.setStyle(
"color", 0x1674cc); }
else if( color.toLowerCase() == "red" ) {
lblAssetTag.setStyle("color", 0xe35353); lblAsset.setStyle(
"color", 0xe35353); }
else if(color.toLowerCase() == "grey" || color.toLowerCase() == "gray") { lblAssetTag.setStyle(
"color", 0xe55555); lblAsset.setStyle(
"color", 0xe55555); }
else { // give it a default color lblAssetTag.setStyle(
"color", 0x000000); lblAsset.setStyle(
"color", 0x000000); }
private function calculateActivityRepeaterHeight():int{
return this.height-50-_colorBarHeight; }
public function clicked():void{
dispatchEvent(new SelectAssetEvent(this._asset, false, false, true)); }
]]> </mx:Script>
<mx:VBox left="0" top="0" right="0">
<mx:Spacer height="1"/>
<mx:HBox>
<mx:Spacer width="2"/> <mx:Label id="lblAssetTag" text="{asset.type}: " fontWeight="bold" fontSize="12" doubleClickEnabled="true" doubleClick="titleClicked()"/> id="lblAssetTag" text="{asset.type}: " fontWeight="bold" fontSize="12" doubleClickEnabled="true" doubleClick="titleClicked()"/> id="lblAssetTag" text="{asset.type}: " fontWeight="bold" fontSize="12" doubleClickEnabled="true" doubleClick="titleClicked()"/>
<mx:Label id="lblAsset" text="{asset.name}" fontSize="12" doubleClickEnabled="true" doubleClick="titleClicked()"/>
<mx:Label id="lblAssetId" text="{'(' + asset.id + ')'}" fontSize="12" visible="{mx.core.Application.application.debugMode}"/>
</mx:HBox>
<mx:HBox horizontalGap="1">
<mx:Spacer width="2"/>
<mx:Spacer width="10" />
<mx:VBox width="100%"> <mx:VBox>
</mx:VBox>
<mx:VBox id="displays" verticalScrollPolicy="auto" height="{calculateActivityRepeaterHeight()}" horizontalScrollPolicy="off">
</mx:VBox>
</mx:VBox>
</mx:HBox>
<mx:Spacer height="2"/>
</mx:VBox></mx:Canvas>
I would appreciate any thoughts or feedback you could provide.
~martinThe Canvas is a very heavy object that has lots of overhead. Even worse is the VBox object that is in there multiple times.
What exactally are you trying to accomplish? Just looking over the code, it seems that the same could be done directly with the Graphics API, at a much faster rate.
For each of the VBoxes and Canvases you have, the entire size of each child and parent need to be re-evalulated each time you add or change something. This is a HUGE overhead, and probably why the app is running so slow. You may need to convert this app to use simpler objects (UIComponent or something lower-level like that) to get any speed.
Are you using Flex Bulder? Take a look at the app while the Profiler is running to see what I'm talking about. -
IPSEC packets are not encrypted
Hello (and Happy Thanksgiving to those in the USA),
We recently swapped our ASA and re-applied the saved config to the new device. There is a site-to-site VPN that works and a remote client VPN that does not. We use some Cisco VPN clients and some Shrew Soft VPN clients.I've compared the config of the new ASA to that of the old ASA and I cannot find any differences (but the remote client VPN was working on the old ASA). The remote clients do connect and a tunnel is established but they are unable to pass traffic. Systems on the network where the ASA is located are able to access the internet.
Output of sho crypto isakmp sa (ignore peer #1, that is the working site-to-site VPN)
Active SA: 2
Rekey SA: 0 (A tunnel will report 1 Active and 1 Rekey SA d
Total IKE SA: 2
1 IKE Peer: xx.168.155.98
Type : L2L Role : responder
Rekey : no State : MM_ACTIVE
2 IKE Peer: xx.211.206.48
Type : user Role : responder
Rekey : no State : AM_ACTIVE
Output of sho crypto ipsec sa (info regarding site-to-site VPN removed). Packets are decrypted but not encrypted.
Crypto map tag: SYSTEM_DEFAULT_CRYPTO_MAP, seq num: 65535, local addr: publi
c-ip
local ident (addr/mask/prot/port): (0.0.0.0/0.0.0.0/0/0)
remote ident (addr/mask/prot/port): (10.20.1.100/255.255.255.255/0/0)
current_peer: xx.211.206.48, username: me
dynamic allocated peer ip: 10.20.1.100
#pkts encaps: 0, #pkts encrypt: 0, #pkts digest: 0
#pkts decaps: 20, #pkts decrypt: 20, #pkts verify: 20
#pkts compressed: 0, #pkts decompressed: 0
#pkts not compressed: 0, #pkts comp failed: 0, #pkts decomp failed: 0
#pre-frag successes: 0, #pre-frag failures: 0, #fragments created: 0
#PMTUs sent: 0, #PMTUs rcvd: 0, #decapsulated frgs needing reassembly: 0
#send errors: 0, #recv errors: 0
local crypto endpt.: public-ip/4500, remote crypto endpt.: xx.211.206.48/4
500
path mtu 1500, ipsec overhead 82, media mtu 1500
current outbound spi: 7E0BF9B9
current inbound spi : 41B75CCD
inbound esp sas:
spi: 0x41B75CCD (1102535885)
transform: esp-aes esp-sha-hmac no compression
in use settings ={RA, Tunnel, NAT-T-Encaps, }
slot: 0, conn_id: 16384, crypto-map: SYSTEM_DEFAULT_CRYPTO_MAP
sa timing: remaining key lifetime (sec): 28776
IV size: 16 bytes
replay detection support: Y
Anti replay bitmap:
0x00000000 0x00000001
spi: 0xC06BF0DD (3228299485)
transform: esp-aes esp-sha-hmac no compression
in use settings ={RA, Tunnel, NAT-T-Encaps, Rekeyed}
slot: 0, conn_id: 16384, crypto-map: SYSTEM_DEFAULT_CRYPTO_MAP
sa timing: remaining key lifetime (sec): 28774
IV size: 16 bytes
replay detection support: Y
Anti replay bitmap:
0x000003FF 0xFFF80001
outbound esp sas:
spi: 0x7E0BF9B9 (2114714041)
transform: esp-aes esp-sha-hmac no compression
in use settings ={RA, Tunnel, NAT-T-Encaps, }
slot: 0, conn_id: 16384, crypto-map: SYSTEM_DEFAULT_CRYPTO_MAP
sa timing: remaining key lifetime (sec): 28774
IV size: 16 bytes
replay detection support: Y
Anti replay bitmap:
0x00000000 0x00000001
spi: 0xCBF945AC (3422111148)
transform: esp-aes esp-sha-hmac no compression
in use settings ={RA, Tunnel, NAT-T-Encaps, Rekeyed}
slot: 0, conn_id: 16384, crypto-map: SYSTEM_DEFAULT_CRYPTO_MAP
sa timing: remaining key lifetime (sec): 28772
IV size: 16 bytes
replay detection support: Y
Anti replay bitmap:
0x00000000 0x00000001
Config from ASA
: Saved
: Written by me at 19:56:37.957 pst Tue Nov 26 2013
ASA Version 8.2(4)
hostname mfw01
domain-name company.int
enable password xxx encrypted
passwd xxx encrypted
names
name xx.174.143.97 cox-gateway description cox-gateway
name 172.16.10.0 iscsi-network description iscsi-network
name 192.168.1.0 legacy-network description legacy-network
name 10.20.50.0 management-network description management-network
name 10.20.10.0 server-network description server-network
name 10.20.20.0 user-network description user-network
name 192.168.1.101 private-em-imap description private-em-imap
name 10.20.10.2 private-exchange description private-exchange
name 10.20.10.3 private-ftp description private-ftp
name 192.168.1.202 private-ip-phones description private-ip-phones
name 10.20.10.6 private-kaseya description private-kaseya
name 192.168.1.2 private-mitel-3300 description private-mitel-3300
name 10.20.10.1 private-pptp description private-pptp
name 10.20.10.7 private-sharepoint description private-sharepoint
name 10.20.10.4 private-tportal description private-tportal
name 10.20.10.8 private-xarios description private-xarios
name 192.168.1.215 private-xorcom description private-xorcom
name xx.174.143.99 public-exchange description public-exchange
name xx.174.143.100 public-ftp description public-ftp
name xx.174.143.101 public-tportal description public-tportal
name xx.174.143.102 public-sharepoint description public-sharepoint
name xx.174.143.103 public-ip-phones description public-ip-phones
name xx.174.143.104 public-mitel-3300 description public-mitel-3300
name xx.174.143.105 public-xorcom description public-xorcom
name xx.174.143.108 public-remote-support description public-remote-support
name xx.174.143.109 public-xarios description public-xarios
name xx.174.143.110 public-kaseya description public-kaseya
name xx.174.143.111 public-pptp description public-pptp
name 192.168.2.0 Irvine_LAN description Irvine_LAN
name xx.174.143.98 public-ip
name 10.20.10.14 private-RevProxy description private-RevProxy
name xx.174.143.107 public-RevProxy description Public-RevProxy
name 10.20.10.9 private-XenDesktop description private-XenDesktop
name xx.174.143.115 public-XenDesktop description public-XenDesktop
name 10.20.1.1 private-gateway description private-gateway
name 192.168.1.96 private-remote-support description private-remote-support
interface Ethernet0/0
nameif public
security-level 0
ip address public-ip 255.255.255.224
interface Ethernet0/1
speed 100
duplex full
nameif private
security-level 100
ip address private-gateway 255.255.255.0
interface Ethernet0/2
shutdown
no nameif
no security-level
no ip address
interface Ethernet0/3
shutdown
no nameif
no security-level
no ip address
interface Management0/0
nameif management
security-level 100
ip address 192.168.0.1 255.255.255.0
management-only
ftp mode passive
clock timezone pst -8
clock summer-time PDT recurring
dns server-group DefaultDNS
domain-name mills.int
object-group service ftp
service-object tcp eq ftp
service-object tcp eq ftp-data
object-group service DM_INLINE_SERVICE_1
group-object ftp
service-object udp eq tftp
object-group service DM_INLINE_TCP_1 tcp
port-object eq 40
port-object eq ssh
object-group service web-server
service-object tcp eq www
service-object tcp eq https
object-group service DM_INLINE_SERVICE_2
service-object tcp eq smtp
group-object web-server
object-group service DM_INLINE_SERVICE_3
service-object tcp eq ssh
group-object web-server
object-group service kaseya
service-object tcp eq 4242
service-object tcp eq 5721
service-object tcp eq 8080
service-object udp eq 5721
object-group service DM_INLINE_SERVICE_4
group-object kaseya
group-object web-server
object-group service DM_INLINE_SERVICE_5
service-object gre
service-object tcp eq pptp
object-group service VPN
service-object gre
service-object esp
service-object ah
service-object tcp eq pptp
service-object udp eq 4500
service-object udp eq isakmp
object-group network MILLS_VPN_VLANS
network-object 10.20.1.0 255.255.255.0
network-object server-network 255.255.255.0
network-object user-network 255.255.255.0
network-object management-network 255.255.255.0
network-object legacy-network 255.255.255.0
object-group service InterTel5000
service-object tcp range 3998 3999
service-object tcp range 6800 6802
service-object udp eq 20001
service-object udp range 5004 5007
service-object udp range 50098 50508
service-object udp range 6604 7039
service-object udp eq bootpc
service-object udp eq tftp
service-object tcp eq 4000
service-object tcp eq 44000
service-object tcp eq www
service-object tcp eq https
service-object tcp eq 5566
service-object udp eq 5567
service-object udp range 6004 6603
service-object tcp eq 6880
object-group service DM_INLINE_SERVICE_6
service-object icmp
service-object tcp eq 2001
service-object tcp eq 2004
service-object tcp eq 2005
object-group service DM_INLINE_SERVICE_7
service-object icmp
group-object InterTel5000
object-group service DM_INLINE_SERVICE_8
service-object icmp
service-object tcp eq https
service-object tcp eq ssh
object-group service RevProxy tcp
description RevProxy
port-object eq 5500
object-group service XenDesktop tcp
description Xen
port-object eq 8080
port-object eq 2514
port-object eq 2598
port-object eq 27000
port-object eq 7279
port-object eq 8000
port-object eq citrix-ica
access-list public_access_in extended permit object-group DM_INLINE_SERVICE_8 any host public-ip
access-list public_access_in extended permit object-group VPN any host public-ip
access-list public_access_in extended permit object-group DM_INLINE_SERVICE_7 any host public-ip-phones
access-list public_access_in extended permit object-group DM_INLINE_SERVICE_1 any host public-ftp
access-list public_access_in extended permit tcp any host public-xorcom object-group DM_INLINE_TCP_1
access-list public_access_in extended permit object-group DM_INLINE_SERVICE_2 any host public-exchange
access-list public_access_in extended permit tcp any host public-RevProxy object-group RevProxy
access-list public_access_in extended permit object-group DM_INLINE_SERVICE_3 any host public-remote-support
access-list public_access_in extended permit object-group DM_INLINE_SERVICE_6 any host public-xarios
access-list public_access_in extended permit object-group web-server any host public-sharepoint
access-list public_access_in extended permit object-group web-server any host public-tportal
access-list public_access_in extended permit object-group DM_INLINE_SERVICE_4 any host public-kaseya
access-list public_access_in extended permit object-group DM_INLINE_SERVICE_5 any host public-pptp
access-list public_access_in extended permit ip any host public-XenDesktop
access-list private_access_in extended permit icmp any any
access-list private_access_in extended permit ip any any
access-list VPN_Users_SplitTunnelAcl standard permit server-network 255.255.255.0
access-list VPN_Users_SplitTunnelAcl standard permit user-network 255.255.255.0
access-list VPN_Users_SplitTunnelAcl standard permit management-network 255.255.255.0
access-list VPN_Users_SplitTunnelAcl standard permit 10.20.1.0 255.255.255.0
access-list VPN_Users_SplitTunnelAcl standard permit legacy-network 255.255.255.0
access-list private_nat0_outbound extended permit ip object-group MILLS_VPN_VLANS Irvine_LAN 255.255.255.0
access-list private_nat0_outbound extended permit ip object-group MILLS_VPN_VLANS 10.20.1.96 255.255.255.240
access-list private_nat0_outbound extended permit ip object-group MILLS_VPN_VLANS 10.90.2.0 255.255.255.0
access-list public_1_cryptomap extended permit ip object-group MILLS_VPN_VLANS Irvine_LAN 255.255.255.0
access-list public_2_cryptomap extended permit ip object-group MILLS_VPN_VLANS 10.90.2.0 255.255.255.0
pager lines 24
logging enable
logging list Error-Events level warnings
logging monitor warnings
logging buffered warnings
logging trap warnings
logging asdm warnings
logging mail warnings
logging host private private-kaseya
logging permit-hostdown
logging class auth trap alerts
mtu public 1500
mtu private 1500
mtu management 1500
ip local pool VPN_Users 10.20.1.100-10.20.1.110 mask 255.255.255.0
no failover
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (public) 101 interface
nat (private) 0 access-list private_nat0_outbound
nat (private) 101 0.0.0.0 0.0.0.0
nat (management) 101 0.0.0.0 0.0.0.0
static (private,public) public-ip-phones private-ip-phones netmask 255.255.255.255 dns
static (private,public) public-ftp private-ftp netmask 255.255.255.255 dns
static (private,public) public-xorcom private-xorcom netmask 255.255.255.255 dns
static (private,public) public-exchange private-exchange netmask 255.255.255.255 dns
static (private,public) public-RevProxy private-RevProxy netmask 255.255.255.255 dns
static (private,public) public-remote-support private-remote-support netmask 255.255.255.255 dns
static (private,public) public-xarios private-xarios netmask 255.255.255.255 dns
static (private,public) public-sharepoint private-sharepoint netmask 255.255.255.255 dns
static (private,public) public-tportal private-tportal netmask 255.255.255.255 dns
static (private,public) public-kaseya private-kaseya netmask 255.255.255.255 dns
static (private,public) public-pptp private-pptp netmask 255.255.255.255 dns
static (private,public) public-XenDesktop private-XenDesktop netmask 255.255.255.255 dns
access-group public_access_in in interface public
access-group private_access_in in interface private
route public 0.0.0.0 0.0.0.0 cox-gateway 1
route private server-network 255.255.255.0 10.20.1.254 1
route private user-network 255.255.255.0 10.20.1.254 1
route private management-network 255.255.255.0 10.20.1.254 1
route private iscsi-network 255.255.255.0 10.20.1.254 1
route private legacy-network 255.255.255.0 10.20.1.254 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
ldap attribute-map admin-control
map-name comment Privilege-Level
ldap attribute-map allow-dialin
map-name msNPAllowDialin IETF-Radius-Class
map-value msNPAllowDialin FALSE NOACCESS
map-value msNPAllowDialin TRUE IPSecUsers
ldap attribute-map mills-vpn_users
map-name msNPAllowDialin IETF-Radius-Class
map-value msNPAllowDialin FALSE NOACCESS
map-value msNPAllowDialin True IPSecUsers
ldap attribute-map network-admins
map-name memberOf IETF-Radius-Service-Type
map-value memberOf FALSE NOACCESS
map-value memberOf "Network Admins" 6
dynamic-access-policy-record DfltAccessPolicy
aaa-server Mills protocol nt
aaa-server Mills (private) host private-pptp
nt-auth-domain-controller ms01.mills.int
aaa-server Mills_NetAdmin protocol ldap
aaa-server Mills_NetAdmin (private) host private-pptp
server-port 389
ldap-base-dn ou=San Diego,dc=mills,dc=int
ldap-group-base-dn ou=San Diego,dc=mills,dc=int
ldap-scope subtree
ldap-naming-attribute cn
ldap-login-password *
ldap-login-dn cn=asa,ou=Service Accounts,ou=San Diego,dc=mills,dc=int
server-type microsoft
ldap-attribute-map mills-vpn_users
aaa-server NetworkAdmins protocol ldap
aaa-server NetworkAdmins (private) host private-pptp
ldap-base-dn ou=San Diego,dc=mills,dc=int
ldap-group-base-dn ou=San Diego,dc=mills,dc=int
ldap-scope subtree
ldap-naming-attribute cn
ldap-login-password *
ldap-login-dn cn=asa,ou=Service Accounts,ou=San Diego,dc=mills,dc=int
server-type microsoft
ldap-attribute-map network-admins
aaa-server ADVPNUsers protocol ldap
aaa-server ADVPNUsers (private) host private-pptp
ldap-base-dn ou=San Diego,dc=mills,dc=int
ldap-group-base-dn ou=San Diego,dc=mills,dc=int
ldap-scope subtree
ldap-naming-attribute cn
ldap-login-password *
ldap-login-dn cn=asa,ou=Service Accounts,ou=San Diego,dc=mills,dc=int
server-type microsoft
ldap-attribute-map mills-vpn_users
aaa authentication enable console ADVPNUsers LOCAL
aaa authentication http console ADVPNUsers LOCAL
aaa authentication serial console ADVPNUsers LOCAL
aaa authentication telnet console ADVPNUsers LOCAL
aaa authentication ssh console ADVPNUsers LOCAL
http server enable
http 0.0.0.0 0.0.0.0 management
http 0.0.0.0 0.0.0.0 public
http 0.0.0.0 0.0.0.0 private
snmp-server host private private-kaseya poll community ***** version 2c
snmp-server location Mills - San Diego
snmp-server contact Mills Assist
snmp-server enable traps snmp authentication linkup linkdown coldstart
sysopt noproxyarp private
crypto ipsec transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac
crypto ipsec transform-set ESP-DES-SHA esp-des esp-sha-hmac
crypto ipsec transform-set ESP-DES-MD5 esp-des esp-md5-hmac
crypto ipsec transform-set ESP-AES-192-MD5 esp-aes-192 esp-md5-hmac
crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto ipsec transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac
crypto ipsec transform-set ESP-AES-192-SHA esp-aes-192 esp-sha-hmac
crypto ipsec transform-set ESP-AES-128-MD5 esp-aes esp-md5-hmac
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto ipsec transform-set ESP-AES-128-SHA esp-aes esp-sha-hmac
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set pfs
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set transform-set ESP-AES-128-SHA ESP-AES-128-MD5 ESP-AES-192-SHA ESP-AES-192-MD5 ESP-AES-256-SHA ESP-AES-256-MD5 ESP-3DES-SHA ESP-3DES-MD5 ESP-DES-SHA ESP-DES-MD5
crypto map public_map 1 match address public_1_cryptomap
crypto map public_map 1 set pfs
crypto map public_map 1 set peer xx.168.155.98
crypto map public_map 1 set transform-set ESP-3DES-MD5 ESP-AES-128-SHA
crypto map public_map 1 set nat-t-disable
crypto map public_map 1 set phase1-mode aggressive
crypto map public_map 2 match address public_2_cryptomap
crypto map public_map 2 set pfs group5
crypto map public_map 2 set peer xx.181.134.141
crypto map public_map 2 set transform-set ESP-AES-128-SHA
crypto map public_map 2 set nat-t-disable
crypto map public_map 65535 ipsec-isakmp dynamic SYSTEM_DEFAULT_CRYPTO_MAP
crypto map public_map interface public
crypto isakmp enable public
crypto isakmp policy 1
authentication pre-share
encryption aes
hash sha
group 5
lifetime 86400
crypto isakmp policy 10
authentication pre-share
encryption aes
hash sha
group 2
lifetime 86400
crypto isakmp policy 30
authentication pre-share
encryption 3des
hash md5
group 1
lifetime 28800
telnet 0.0.0.0 0.0.0.0 private
telnet timeout 5
ssh 0.0.0.0 0.0.0.0 public
ssh 0.0.0.0 0.0.0.0 private
ssh 0.0.0.0 0.0.0.0 management
ssh timeout 5
console timeout 0
dhcpd address 192.168.0.2-192.168.0.254 management
threat-detection basic-threat
threat-detection statistics access-list
threat-detection statistics tcp-intercept rate-interval 30 burst-rate 400 average-rate 200
ntp authenticate
ntp server 216.129.110.22 source public
ntp server 173.244.211.10 source public
ntp server 24.124.0.251 source public prefer
webvpn
enable public
svc enable
group-policy NOACCESS internal
group-policy NOACCESS attributes
vpn-simultaneous-logins 0
vpn-tunnel-protocol svc
group-policy IPSecUsers internal
group-policy IPSecUsers attributes
wins-server value 10.20.10.1
dns-server value 10.20.10.1
vpn-tunnel-protocol IPSec
password-storage enable
split-tunnel-policy tunnelspecified
split-tunnel-network-list value VPN_Users_SplitTunnelAcl
default-domain value mills.int
address-pools value VPN_Users
group-policy Irvine internal
group-policy Irvine attributes
vpn-tunnel-protocol IPSec
username admin password Kra9/kXfLDwlSxis encrypted
tunnel-group VPN_Users type remote-access
tunnel-group VPN_Users general-attributes
address-pool VPN_Users
authentication-server-group Mills_NetAdmin
default-group-policy IPSecUsers
tunnel-group VPN_Users ipsec-attributes
pre-shared-key *
tunnel-group xx.189.99.114 type ipsec-l2l
tunnel-group xx.189.99.114 general-attributes
default-group-policy Irvine
tunnel-group xx.189.99.114 ipsec-attributes
pre-shared-key *
tunnel-group xx.205.23.76 type ipsec-l2l
tunnel-group xx.205.23.76 general-attributes
default-group-policy Irvine
tunnel-group xx.205.23.76 ipsec-attributes
pre-shared-key *
tunnel-group xx.168.155.98 type ipsec-l2l
tunnel-group xx.168.155.98 general-attributes
default-group-policy Irvine
tunnel-group xx.168.155.98 ipsec-attributes
pre-shared-key *
class-map global-class
match default-inspection-traffic
policy-map type inspect dns preset_dns_map
parameters
message-length maximum 512
policy-map global-policy
class global-class
inspect dns
inspect esmtp
inspect ftp
inspect h323 h225
inspect h323 ras
inspect netbios
inspect rsh
inspect rtsp
inspect sip
inspect skinny
inspect sqlnet
inspect sunrpc
inspect tftp
inspect xdmcp
service-policy global-policy global
privilege cmd level 3 mode exec command perfmon
privilege cmd level 3 mode exec command ping
privilege cmd level 3 mode exec command who
privilege cmd level 3 mode exec command logging
privilege cmd level 3 mode exec command failover
privilege cmd level 3 mode exec command packet-tracer
privilege show level 5 mode exec command import
privilege show level 5 mode exec command running-config
privilege show level 3 mode exec command reload
privilege show level 3 mode exec command mode
privilege show level 3 mode exec command firewall
privilege show level 3 mode exec command asp
privilege show level 3 mode exec command cpu
privilege show level 3 mode exec command interface
privilege show level 3 mode exec command clock
privilege show level 3 mode exec command dns-hosts
privilege show level 3 mode exec command access-list
privilege show level 3 mode exec command logging
privilege show level 3 mode exec command vlan
privilege show level 3 mode exec command ip
privilege show level 3 mode exec command ipv6
privilege show level 3 mode exec command failover
privilege show level 3 mode exec command asdm
privilege show level 3 mode exec command arp
privilege show level 3 mode exec command route
privilege show level 3 mode exec command ospf
privilege show level 3 mode exec command aaa-server
privilege show level 3 mode exec command aaa
privilege show level 3 mode exec command eigrp
privilege show level 3 mode exec command crypto
privilege show level 3 mode exec command vpn-sessiondb
privilege show level 3 mode exec command ssh
privilege show level 3 mode exec command dhcpd
privilege show level 3 mode exec command vpn
privilege show level 3 mode exec command blocks
privilege show level 3 mode exec command wccp
privilege show level 3 mode exec command webvpn
privilege show level 3 mode exec command module
privilege show level 3 mode exec command uauth
privilege show level 3 mode exec command compression
privilege show level 3 mode configure command interface
privilege show level 3 mode configure command clock
privilege show level 3 mode configure command access-list
privilege show level 3 mode configure command logging
privilege show level 3 mode configure command ip
privilege show level 3 mode configure command failover
privilege show level 5 mode configure command asdm
privilege show level 3 mode configure command arp
privilege show level 3 mode configure command route
privilege show level 3 mode configure command aaa-server
privilege show level 3 mode configure command aaa
privilege show level 3 mode configure command crypto
privilege show level 3 mode configure command ssh
privilege show level 3 mode configure command dhcpd
privilege show level 5 mode configure command privilege
privilege clear level 3 mode exec command dns-hosts
privilege clear level 3 mode exec command logging
privilege clear level 3 mode exec command arp
privilege clear level 3 mode exec command aaa-server
privilege clear level 3 mode exec command crypto
privilege cmd level 3 mode configure command failover
privilege clear level 3 mode configure command logging
privilege clear level 3 mode configure command arp
privilege clear level 3 mode configure command crypto
privilege clear level 3 mode configure command aaa-server
prompt hostname context
call-home
profile CiscoTAC-1
no active
destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService
destination address email [email protected]
destination transport-method http
subscribe-to-alert-group diagnostic
subscribe-to-alert-group environment
subscribe-to-alert-group inventory periodic monthly
subscribe-to-alert-group configuration periodic monthly
subscribe-to-alert-group telemetry periodic daily
Cryptochecksum:5d5c963680401d150bee94b3c7c85f7a
Maybe my eyes are glazing over from looking at this for too long. Does anything look wrong? Maybe I missed a command that would not show up in the config?
Thanks in advance to all who take a look.Marius,
I connected via my VPN client at home and pinged a remote server, attempted to RDP by name and then attempted to RDP by IP address. All were unsuccessful. Here is the packet capture:
72 packets captured
1: 09:44:06.304671 10.20.1.100.137 > 10.20.10.1.137: udp 68
2: 09:44:06.304885 10.20.1.100.54543 > 10.20.10.1.53: udp 34
3: 09:44:07.198384 10.20.1.100.51650 > 10.20.10.1.53: udp 32
4: 09:44:07.300353 10.20.1.100.54543 > 10.20.10.1.53: udp 34
5: 09:44:07.786504 10.20.1.100.137 > 10.20.10.1.137: udp 68
6: 09:44:07.786671 10.20.1.100.137 > 10.20.10.1.137: udp 68
7: 09:44:07.786855 10.20.1.100.137 > 10.20.10.1.137: udp 68
8: 09:44:08.198399 10.20.1.100.51650 > 10.20.10.1.53: udp 32
9: 09:44:09.282608 10.20.1.100.61328 > 10.20.10.1.53: udp 32
10: 09:44:09.286667 10.20.1.100.137 > 10.20.10.1.137: udp 68
11: 09:44:09.286926 10.20.1.100.137 > 10.20.10.1.137: udp 68
12: 09:44:09.287201 10.20.1.100.137 > 10.20.10.1.137: udp 68
13: 09:44:09.300491 10.20.1.100.54543 > 10.20.10.1.53: udp 34
14: 09:44:10.199193 10.20.1.100.51650 > 10.20.10.1.53: udp 32
15: 09:44:10.282150 10.20.1.100.61328 > 10.20.10.1.53: udp 32
16: 09:44:11.286865 10.20.1.100.137 > 10.20.10.1.137: udp 68
17: 09:44:12.302993 10.20.1.100.61328 > 10.20.10.1.53: udp 32
18: 09:44:12.785054 10.20.1.100.137 > 10.20.10.1.137: udp 68
19: 09:44:13.301101 10.20.1.100.54543 > 10.20.10.1.53: udp 34
20: 09:44:14.204029 10.20.1.100.51650 > 10.20.10.1.53: udp 32
21: 09:44:14.287323 10.20.1.100.137 > 10.20.10.1.137: udp 68
22: 09:44:14.375331 10.20.1.100 > 10.20.10.1: icmp: echo request
23: 09:44:16.581589 10.20.1.100.137 > 10.20.10.1.137: udp 50
24: 09:44:18.083842 10.20.1.100.137 > 10.20.10.1.137: udp 50
25: 09:44:18.199879 10.20.1.100.137 > 10.20.10.1.137: udp 50
26: 09:44:19.224063 10.20.1.100 > 10.20.10.1: icmp: echo request
27: 09:44:19.582367 10.20.1.100.137 > 10.20.10.1.137: udp 50
28: 09:44:19.704019 10.20.1.100.137 > 10.20.10.1.137: udp 50
29: 09:44:20.288193 10.20.1.100.137 > 10.20.10.1.137: udp 68
30: 09:44:21.200307 10.20.1.100.137 > 10.20.10.1.137: udp 50
31: 09:44:21.786321 10.20.1.100.137 > 10.20.10.1.137: udp 68
32: 09:44:23.289535 10.20.1.100.137 > 10.20.10.1.137: udp 68
33: 09:44:24.204777 10.20.1.100 > 10.20.10.1: icmp: echo request
34: 09:44:29.219440 10.20.1.100 > 10.20.10.1: icmp: echo request
35: 09:44:29.287460 10.20.1.100.137 > 10.20.10.1.137: udp 68
36: 09:44:30.787617 10.20.1.100.137 > 10.20.10.1.137: udp 68
37: 09:44:32.287887 10.20.1.100.137 > 10.20.10.1.137: udp 68
38: 09:45:00.533816 10.20.1.100.137 > 10.20.10.1.137: udp 50
39: 09:45:02.018019 10.20.1.100.137 > 10.20.10.1.137: udp 50
40: 09:45:03.160239 10.20.1.100.52764 > 10.20.10.1.53: udp 34
41: 09:45:03.350354 10.20.1.100.53948 > 10.20.10.1.53: udp 38
42: 09:45:03.521960 10.20.1.100.137 > 10.20.10.1.137: udp 50
43: 09:45:04.158408 10.20.1.100.52764 > 10.20.10.1.53: udp 34
44: 09:45:04.344342 10.20.1.100.53948 > 10.20.10.1.53: udp 38
45: 09:45:06.160681 10.20.1.100.52764 > 10.20.10.1.53: udp 34
46: 09:45:06.358593 10.20.1.100.53948 > 10.20.10.1.53: udp 38
47: 09:45:10.159125 10.20.1.100.52764 > 10.20.10.1.53: udp 34
48: 09:45:10.345227 10.20.1.100.53948 > 10.20.10.1.53: udp 38
49: 09:45:14.550478 10.20.1.100.59402 > 10.20.10.1.53: udp 32
50: 09:45:15.536166 10.20.1.100.59402 > 10.20.10.1.53: udp 32
51: 09:45:17.546144 10.20.1.100.59402 > 10.20.10.1.53: udp 32
52: 09:45:21.882812 10.20.1.100.137 > 10.20.10.1.137: udp 50
53: 09:45:23.379222 10.20.1.100.137 > 10.20.10.1.137: udp 50
54: 09:45:24.893386 10.20.1.100.137 > 10.20.10.1.137: udp 50
55: 09:45:41.550035 10.20.1.100.137 > 10.20.10.1.137: udp 50
56: 09:45:43.029875 10.20.1.100.137 > 10.20.10.1.137: udp 50
57: 09:45:44.541979 10.20.1.100.137 > 10.20.10.1.137: udp 50
58: 09:46:10.767782 10.20.1.100.137 > 10.20.10.1.137: udp 68
59: 09:46:12.261934 10.20.1.100.137 > 10.20.10.1.137: udp 68
60: 09:46:13.776250 10.20.1.100.137 > 10.20.10.1.137: udp 68
61: 09:46:19.848970 10.20.1.100.137 > 10.20.10.1.137: udp 68
62: 09:46:20.113183 10.20.1.100.49751 > 10.20.10.7.3389: S 3288428077:3288428077(0) win 8192
63: 09:46:21.331251 10.20.1.100.137 > 10.20.10.1.137: udp 68
64: 09:46:22.831423 10.20.1.100.137 > 10.20.10.1.137: udp 68
65: 09:46:23.101511 10.20.1.100.137 > 10.20.10.1.137: udp 50
66: 09:46:23.123254 10.20.1.100.49751 > 10.20.10.7.3389: S 3288428077:3288428077(0) win 8192
67: 09:46:24.591705 10.20.1.100.137 > 10.20.10.1.137: udp 50
68: 09:46:26.115976 10.20.1.100.137 > 10.20.10.1.137: udp 50
69: 09:46:28.834276 10.20.1.100.137 > 10.20.10.1.137: udp 68
70: 09:46:29.125817 10.20.1.100.49751 > 10.20.10.7.3389: S 3288428077:3288428077(0) win 8192
71: 09:46:30.342816 10.20.1.100.137 > 10.20.10.1.137: udp 68
72: 09:46:31.840746 10.20.1.100.137 > 10.20.10.1.137: udp 68
72 packets shown -
Group degradation in perceived performance
Hi there,
We recently upgraded to SDK 4.5.1 and noticed that our application took a hit in perceived responsiveness in the process. After digging around a bit I ran into a change in the Group class that is responsible for this degradation, the change itself is in bold:
override public function set scrollRect(value:Rectangle):void { // Work-around for Flash Player bug: if GraphicElements share // the Group's Display Object and cacheAsBitmap is true, the // scrollRect won't function correctly. var previous:Boolean = canShareDisplayObject; super.scrollRect = value; if (numGraphicElements > 0 && previous != canShareDisplayObject) invalidateDisplayObjectOrdering(); if (mouseEnabledWhereTransparent && hasMouseListeners) { // Re-render our mouse event fill if necessary. redrawRequested = true; super.$invalidateDisplayList(); } }
Below please find a small application that illustrates this problem. Note that I have monkey patched Group in the default package so that it is possible to compile with and without the code above. I find that a large screen and Chrome help showcase the problem.
The part that I am not getting is what was the code in bold trying to fix in the first place?
Thanks!!
~ Miguel
<?xml version="1.0" encoding="utf-8"?>
<s:Application
minWidth="955" minHeight="600"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:local="*">
<fx:Script>
<![CDATA[
private var _moveMode:Boolean = false;
protected function monkeypatchedgroup1_mouseMoveHandler(event:MouseEvent):void
// TODO Auto-generated method stub
if (_moveMode)
redBox.x = event.stageX;
redBox.y = event.stageY;
protected function bordercontainer1_mouseDownHandler(event:MouseEvent):void
// TODO Auto-generated method stub
_moveMode = true;
protected function monkeypatchedgroup1_mouseUpHandler(event:MouseEvent):void
// TODO Auto-generated method stub
_moveMode = false;
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<local:MonkeyPatchedGroup
width="100%" height="100%"
mouseMove="monkeypatchedgroup1_mouseMoveHandler(event)"
mouseUp="monkeypatchedgroup1_mouseUpHandler(event)">
<s:BorderContainer id="redBox"
width="50" height="50"
backgroundColor="red"
mouseDown="bordercontainer1_mouseDownHandler(event)"/>
</local:MonkeyPatchedGroup>
</s:Application>
Here is the monkey patched group:
// ADOBE SYSTEMS INCORPORATED
// Copyright 2008 Adobe Systems Incorporated
// All Rights Reserved.
// NOTICE: Adobe permits you to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
package
import flash.display.BlendMode;
import flash.display.DisplayObject;
import flash.geom.Rectangle;
import mx.core.FlexVersion;
import mx.core.IFlexModule;
import mx.core.IFontContextComponent;
import mx.core.IUIComponent;
import mx.core.IUITextField;
import mx.core.IVisualElement;
import mx.core.IVisualElementContainer;
import mx.core.UIComponent;
import mx.core.mx_internal;
import mx.events.FlexEvent;
import mx.graphics.shaderClasses.ColorBurnShader;
import mx.graphics.shaderClasses.ColorDodgeShader;
import mx.graphics.shaderClasses.ColorShader;
import mx.graphics.shaderClasses.ExclusionShader;
import mx.graphics.shaderClasses.HueShader;
import mx.graphics.shaderClasses.LuminosityShader;
import mx.graphics.shaderClasses.SaturationShader;
import mx.graphics.shaderClasses.SoftLightShader;
import mx.styles.IAdvancedStyleClient;
import mx.styles.ISimpleStyleClient;
import mx.styles.IStyleClient;
import mx.styles.StyleProtoChain;
import spark.components.ResizeMode;
import spark.components.supportClasses.GroupBase;
import spark.core.DisplayObjectSharingMode;
import spark.core.IGraphicElement;
import spark.core.IGraphicElementContainer;
import spark.core.ISharedDisplayObject;
import spark.events.ElementExistenceEvent;
use namespace mx_internal;
// Events
* Dispatched when a visual element is added to the content holder.
* <code>event.element</code> is the visual element that was added.
* @eventType spark.events.ElementExistenceEvent.ELEMENT_ADD
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
[Event(name = "elementAdd", type = "spark.events.ElementExistenceEvent")]
* Dispatched when a visual element is removed from the content holder.
* <code>event.element</code> is the visual element that's being removed.
* @eventType spark.events.ElementExistenceEvent.ELEMENT_REMOVE
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
[Event(name = "elementRemove", type = "spark.events.ElementExistenceEvent")]
// Styles
* Color of text shadows.
* @default #FFFFFF
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
[Style(name = "textShadowColor", type = "uint", format = "Color", inherit = "yes", theme = "mobile")]
* Alpha of text shadows.
* @default 0.55
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
[Style(name = "textShadowAlpha", type = "Number", inherit = "yes", minValue = "0.0", maxValue = "1.0", theme = "mobile")]
// Excluded APIs
[Exclude(name = "addChild", kind = "method")]
[Exclude(name = "addChildAt", kind = "method")]
[Exclude(name = "removeChild", kind = "method")]
[Exclude(name = "removeChildAt", kind = "method")]
[Exclude(name = "setChildIndex", kind = "method")]
[Exclude(name = "swapChildren", kind = "method")]
[Exclude(name = "swapChildrenAt", kind = "method")]
[Exclude(name = "numChildren", kind = "property")]
[Exclude(name = "getChildAt", kind = "method")]
[Exclude(name = "getChildIndex", kind = "method")]
// Other metadata
[ResourceBundle("components")]
[DefaultProperty("mxmlContent")]
[IconFile("Group.png")]
* The Group class is the base container class for visual elements.
* The Group container takes as children any components that implement
* the IUIComponent interface, and any components that implement
* the IGraphicElement interface.
* Use this container when you want to manage visual children,
* both visual components and graphical components.
* <p>To improve performance and minimize application size,
* the Group container cannot be skinned.
* If you want to apply a skin, use the SkinnableContainer instead.</p>
* <p><b>Note:</b> The scale grid might not function correctly when there
* are DisplayObject children inside of the Group, such as a component
* or another Group. If the children are GraphicElement objects, and
* they all share the Group's DisplayObject, then the scale grid works
* properly.</p>
* <p>Setting any of the following properties on a GraphicElement child
* requires that GraphicElement to create its own DisplayObject,
* thus negating the scale grid properties on the Group.</p>
* <pre>
* alpha
* blendMode other than BlendMode.NORMAL or "auto"
* colorTransform
* filters
* mask
* matrix
* rotation
* scaling
* 3D properties
* bounds outside the extent of the Group
* </pre>
* <p>The Group container has the following default characteristics:</p>
* <table class="innertable">
* <tr><th>Characteristic</th><th>Description</th></tr>
* <tr><td>Default size</td><td>Large enough to display its children</td></tr>
* <tr><td>Minimum size</td><td>0 pixels</td></tr>
* <tr><td>Maximum size</td><td>10000 pixels wide and 10000 pixels high</td></tr>
* </table>
* @mxml
* <p>The <code><s:Group></code> tag inherits all of the tag
* attributes of its superclass and adds the following tag attributes:</p>
* <pre>
* <s:Group
* <strong>Properties</strong>
* blendMode="auto"
* mxmlContent="null"
* scaleGridBottom="null"
* scaleGridLeft="null"
* scaleGridRight="null"
* scaleGridTop="null"
* <strong>Events</strong>
* elementAdd="<i>No default</i>"
* elementRemove="<i>No default</i>"
* />
* </pre>
* @see spark.components.DataGroup
* @see spark.components.SkinnableContainer
* @includeExample examples/GroupExample.mxml
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
public class MonkeyPatchedGroup extends GroupBase implements IVisualElementContainer, IGraphicElementContainer, ISharedDisplayObject
* Constructor.
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
public function MonkeyPatchedGroup():void
super();
// Variables
private var needsDisplayObjectAssignment:Boolean = false;
private var layeringMode:uint = ITEM_ORDERED_LAYERING;
private var numGraphicElements:uint = 0;
private static const ITEM_ORDERED_LAYERING:uint = 0;
private static const SPARSE_LAYERING:uint = 1;
// Overridden properties
// baselinePosition
* @inheritDoc
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
override public function get baselinePosition():Number
if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_4_5)
return super.baselinePosition;
if (!validateBaselinePosition())
return NaN;
var bElement:IVisualElement = baselinePositionElement;
// If no baselinePositionElement is specified, use the first element
if (bElement == null)
for (var i:int = 0; i < numElements; i++)
var elt:IVisualElement = getElementAt(i);
if (elt.includeInLayout)
bElement = elt;
break;
if (bElement)
return bElement.baselinePosition + bElement.y;
else
return super.baselinePosition;
[Inspectable(category = "General", enumeration = "noScale,scale", defaultValue = "noScale")]
* @private
override public function set resizeMode(value:String):void
if (isValidScaleGrid())
// Force the resize mode to be scale if we
// have set scaleGrid properties
value = ResizeMode.SCALE;
super.resizeMode = value;
* @private
override public function set scrollRect(value:Rectangle):void
// Work-around for Flash Player bug: if GraphicElements share
// the Group's Display Object and cacheAsBitmap is true, the
// scrollRect won't function correctly.
var previous:Boolean = canShareDisplayObject;
super.scrollRect = value;
if (numGraphicElements > 0 && previous != canShareDisplayObject)
invalidateDisplayObjectOrdering();
if (mouseEnabledWhereTransparent && hasMouseListeners)
// Re-render our mouse event fill if necessary.
redrawRequested = true;
trace("Calling invalidateDisplayList in GroupBase");
super.$invalidateDisplayList();
* @private
override mx_internal function set hasMouseListeners(value:Boolean):void
if (mouseEnabledWhereTransparent)
redrawRequested = true;
super.hasMouseListeners = value;
* @private
override public function set width(value:Number):void
if (_width != value)
if (mouseEnabledWhereTransparent && hasMouseListeners)
// Re-render our mouse event fill if necessary.
redrawRequested = true;
super.$invalidateDisplayList();
super.width = value;
* @private
override public function set height(value:Number):void
if (_height != value)
if (mouseEnabledWhereTransparent && hasMouseListeners)
// Re-render our mouse event fill if necessary.
redrawRequested = true;
super.$invalidateDisplayList();
super.height = value;
// Properties
// alpha
[Inspectable(defaultValue = "1.0", category = "General", verbose = "1")]
* @private
override public function set alpha(value:Number):void
if (super.alpha == value)
return;
if (_blendMode == "auto")
// If alpha changes from an opaque/transparent (1/0) and translucent
// (0 < value < 1), then trigger a blendMode change
if ((value > 0 && value < 1 && (super.alpha == 0 || super.alpha == 1)) || ((value == 0 || value == 1) && (super.alpha > 0 && super.alpha < 1)))
blendModeChanged = true;
invalidateDisplayObjectOrdering();
invalidateProperties();
super.alpha = value;
// baselinePositionElement
private var _baselinePositionElement:IVisualElement;
* The element used to calculate the GroupBase's baselinePosition
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
public function get baselinePositionElement():IVisualElement
return _baselinePositionElement;
* @private
public function set baselinePositionElement(value:IVisualElement):void
if (value === _baselinePositionElement)
return;
_baselinePositionElement = value;
invalidateParentSizeAndDisplayList();
// blendMode
* @private
* Storage for the blendMode property.
private var _blendMode:String = "auto";
private var blendModeChanged:Boolean;
private var blendShaderChanged:Boolean;
[Inspectable(category = "General", enumeration = "auto,add,alpha,darken,difference,erase,hardlight,invert,layer,lighten,multiply,normal,subtract,screen,overlay,colordodge,colorburn,exclusion,softlight,hue,saturation,color,luminosity", defaultValue = "auto")]
* A value from the BlendMode class that specifies which blend mode to use.
* A bitmap can be drawn internally in two ways.
* If you have a blend mode enabled or an external clipping mask, the bitmap is drawn
* by adding a bitmap-filled square shape to the vector render.
* If you attempt to set this property to an invalid value,
* Flash Player or Adobe AIR sets the value to <code>BlendMode.NORMAL</code>.
* <p>A value of "auto" (the default) is specific to Group's use of
* blendMode and indicates that the underlying blendMode should be
* <code>BlendMode.NORMAL</code> except when <code>alpha</code> is not
* equal to either 0 or 1, when it is set to <code>BlendMode.LAYER</code>.
* This behavior ensures that groups have correct
* compositing of their graphic objects when the group is translucent.</p>
* @default "auto"
* @see flash.display.DisplayObject#blendMode
* @see flash.display.BlendMode
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
override public function get blendMode():String
return _blendMode;
* @private
override public function set blendMode(value:String):void
if (value == _blendMode)
return;
invalidateProperties();
blendModeChanged = true;
//The default blendMode in FXG is 'auto'. There are only
//certain cases where this results in a rendering difference,
//one being when the alpha of the Group is > 0 and < 1. In that
//case we set the blendMode to layer to avoid the performance
//overhead that comes with a non-normal blendMode.
if (value == "auto")
_blendMode = value;
// SDK-29631: Use super.$blendMode instead of super.blendMode
// since Group completely overrides blendMode and we
// want to bypass the extra logic in UIComponent which
// has its own override.
// TODO (egeorgie): figure out whether we can share some
// of that logic in the future.
if (((alpha > 0 && alpha < 1) && super.$blendMode != BlendMode.LAYER) || ((alpha == 1 || alpha == 0) && super.$blendMode != BlendMode.NORMAL))
invalidateDisplayObjectOrdering();
else
var oldValue:String = _blendMode;
_blendMode = value;
// If one of the non-native Flash blendModes is set,
// record the new value and set the appropriate
// blendShader on the display object.
if (isAIMBlendMode(value))
blendShaderChanged = true;
// Only need to re-do display object assignment if blendmode was normal
// and is changing to something else, or the blend mode was something else
// and is going back to normal. This is because display object sharing
// only happens when blendMode is normal.
if ((oldValue == BlendMode.NORMAL || value == BlendMode.NORMAL) && !(oldValue == BlendMode.NORMAL && value == BlendMode.NORMAL))
invalidateDisplayObjectOrdering();
// mxmlContent
private var mxmlContentChanged:Boolean = false;
private var _mxmlContent:Array;
[ArrayElementType("mx.core.IVisualElement")]
* The visual content children for this Group.
* This method is used internally by Flex and is not intended for direct
* use by developers.
* <p>The content items should only be IVisualElement objects.
* An <code>mxmlContent</code> Array should not be shared between multiple
* Group containers because visual elements can only live in one container
* at a time.</p>
* <p>If the content is an Array, do not modify the Array
* directly. Use the methods defined by the Group class instead.</p>
* @default null
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
public function set mxmlContent(value:Array):void
if (createChildrenCalled)
setMXMLContent(value);
else
mxmlContentChanged = true;
_mxmlContent = value;
// we will validate this in createChildren();
* @private
mx_internal function getMXMLContent():Array
if (_mxmlContent)
return _mxmlContent.concat();
else
return null;
* @private
* Adds the elements in <code>mxmlContent</code> to the Group.
* Flex calls this method automatically; you do not call it directly.
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
private function setMXMLContent(value:Array):void
var i:int;
// if there's old content and it's different than what
// we're trying to set it to, then let's remove all the old
// elements first.
if (_mxmlContent != null && _mxmlContent != value)
for (i = _mxmlContent.length - 1; i >= 0; i--)
elementRemoved(_mxmlContent[i], i);
_mxmlContent = (value) ? value.concat() : null; // defensive copy
if (_mxmlContent != null)
var n:int = _mxmlContent.length;
for (i = 0; i < n; i++)
var elt:IVisualElement = _mxmlContent[i];
// A common mistake is to bind the viewport property of a Scroller
// to a group that was defined in the MXML file with a different parent
if (elt.parent && (elt.parent != this))
throw new Error(resourceManager.getString("components", "mxmlElementNoMultipleParents",
[ elt ]));
elementAdded(elt, i);
// Properties: ScaleGrid
private var scaleGridChanged:Boolean = false;
// store the scaleGrid into a rectangle to save space (top, left, bottom, right);
private var scaleGridStorageVariable:Rectangle;
// scale9Grid
* @private
override public function set scale9Grid(value:Rectangle):void
if (value != null)
scaleGridTop = value.top;
scaleGridBottom = value.bottom;
scaleGridLeft = value.left;
scaleGridRight = value.right;
else
scaleGridTop = NaN;
scaleGridBottom = NaN;
scaleGridLeft = NaN;
scaleGridRight = NaN;
// scaleGridBottom
[Inspectable(category = "General")]
* Specifies the bottom coordinate of the scale grid.
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
public function get scaleGridBottom():Number
if (scaleGridStorageVariable)
return scaleGridStorageVariable.height;
return NaN;
public function set scaleGridBottom(value:Number):void
if (!scaleGridStorageVariable)
scaleGridStorageVariable = new Rectangle(NaN, NaN, NaN, NaN);
if (value != scaleGridStorageVariable.height)
scaleGridStorageVariable.height = value;
scaleGridChanged = true;
invalidateProperties();
invalidateDisplayList();
// scaleGridLeft
[Inspectable(category = "General")]
* Specifies the left coordinate of the scale grid.
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
public function get scaleGridLeft():Number
if (scaleGridStorageVariable)
return scaleGridStorageVariable.x;
return NaN;
public function set scaleGridLeft(value:Number):void
if (!scaleGridStorageVariable)
scaleGridStorageVariable = new Rectangle(NaN, NaN, NaN, NaN);
if (value != scaleGridStorageVariable.x)
scaleGridStorageVariable.x = value;
scaleGridChanged = true;
invalidateProperties();
invalidateDisplayList();
// scaleGridRight
[Inspectable(category = "General")]
* Specifies the right coordinate of the scale grid.
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
public function get scaleGridRight():Number
if (scaleGridStorageVariable)
return scaleGridStorageVariable.width;
return NaN;
public function set scaleGridRight(value:Number):void
if (!scaleGridStorageVariable)
scaleGridStorageVariable = new Rectangle(NaN, NaN, NaN, NaN);
if (value != scaleGridStorageVariable.width)
scaleGridStorageVariable.width = value;
scaleGridChanged = true;
invalidateProperties();
invalidateDisplayList();
// scaleGridTop
[Inspectable(category = "General")]
* Specifies the top coordinate of the scale grid.
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4
public function get scaleGridTop():Number
if (scaleGridStorageVariable)
return scaleGridStorageVariable.y;
return NaN;
public function set scaleGridTop(value:Number):void
if (!scaleGridStorageVariable)
scaleGridStorageVariable = new Rectangle(NaN, NaN, NaN, NaN);
if (value != scaleGridStorageVariable.y)
scaleGridStorageVariable.y = value;
scaleGridChanged = true;
invalidateProperties();
invalidateDisplayList();
private function isValidScaleGrid():Boolean
return !isNaN(scaleGridLeft) && !isNaN(scaleGridTop) && !isNaN(scaleGridRight) && !isNaN(scaleGridBottom);
// Overridden methods: UIComponent
* @private
* Whether createChildren() has been called or not.
* We use this in the setter for mxmlContent to know
* whether to validate the value immediately, or just
* wait to let createChildren() do it.
private var createChildrenCalled:Boolean = false;
* @private
override protected function createChildren():void
super.createChildren();
createChildrenCalled = true;
if (mxmlContentChanged)
mxmlContentChanged = false;
setMXMLContent(_mxmlContent);
* @private
override public function validateProperties():void
super.validateProperties();
// Property validation happens top-down, so now let's
// validate graphic element properties after
// calling super.validateProperties()
if (numGraphicElements > 0)
var length:int = numElements;
for (var i:int = 0; i < length; i++)
var element:IGraphicElement = getElementAt(i) as IGraphicElement;
if (element)
element.validateProperties();
* @private
override protected function commitProperties():void
super.commitProperties();
invalidatePropertiesFlag = false;
if (blendModeChanged)
blendModeChanged = false;
// Figure out the correct blendMode value
// to set.
// SDK-29631: Use super.$blendMode instead of super.blendMode
// since Group completely overrides blendMode and we
// want to bypass the extra logic in UIComponent which
// has its own override.
// TODO (egeorgie): figure out whether we can share some
// of that logic in the future.
if (_blendMode == "auto")
if (alpha == 0 || alpha == 1)
super.$blendMode = BlendMode.NORMAL;
else
super.$blendMode = BlendMode.LAYER;
else if (!isAIMBlendMode(_blendMode))
super.$blendMode = _blendMode;
if (blendShaderChanged)
// The graphic element's blendMode was set to a non-Flash
// blendMode. We mimic the look by instantiating the
// appropriate shader class and setting the blendShader
// property on the displayObject.
blendShaderChanged = false;
switch (_blendMode)
case "color":
super.blendShader = new ColorShader();
break;
case "colordodge":
super.blendShader = new ColorDodgeShader();
break;
case "colorburn":
super.blendShader = new ColorBurnShader();
break;
case "exclusion":
super.blendShader = new ExclusionShader();
break;
case "hue":
super.blendShader = new HueShader();
break;
case "luminosity":
super.blendShader = new LuminosityShader();
break;
case "saturation":
super.blendShader = new SaturationShader();
break;
case "softlight":
super.blendShader = new SoftLightShader();
break;
// Due to dependent properties alpha and blendMode there may be a need
// for a second pass at committing properties (to ensure our new
// blendMode or blendShader is assigned to our underlying display
// object).
if (invalidatePropertiesFlag)
super.commitProperties();
invalidatePropertiesFlag = false;
if (needsDisplayObjectAssignment)
needsDisplayObjectAssignment = false;
assignDisplayObjects();
if (scaleGridChanged)
// Don't reset scaleGridChanged since we also check it in updateDisplayList
if (isValidScaleGrid())
resizeMode = ResizeMode.SCALE; // Force the resizeMode to scale
* @private
override public function validateSize(recursive:Boolean = false):void
// Since IGraphicElement is not ILayoutManagerClient, we need to make sure we
// validate sizes of the elements, even in cases where recursive==false.
// Size validation happens bottom-up, so now let's
// validate graphic element size before
// calling super.validateSize()
if (numGraphicElements > 0)
var length:int = numElements;
for (var i:int = 0; i < length; i++)
var element:IGraphicElement = getElementAt(i) as IGraphicElement;
if (element)
element.validateSize();
super.validateSize(recursive);
* @private
override public function setActualSize(w:Number, h:Number):void
if (_width != w || _height != h)
if (mouseEnabledWhereTransparent && hasMouseListeners)
// Re-render our mouse event fill if necessary.
redrawRequested = true;
super.$invalidateDisplayList();
super.setActualSize(w, h);
* @private
override public function validateDisplayList():void
// call super.validateDisplayList() and let updateDisplayList() run
super.validateDisplayList();
// If the DisplayObject assignment is still not completed, then postpone validation
// of the GraphicElements. invalidateDisplayList() will be called during the next
// commitProperties() call since needsDisplayObjectAssignment=true,
// so we will be re-running validateDisplayList() anyways
if (needsDisplayObjectAssignment && invalidatePropertiesFlag)
return;
// DisplayList validation happens top-down, so we should
// validate graphic element DisplayList after
// calling super.validateDisplayList(). This is
// gets tricky because of graphic-element sharing. We clear
// Group's graphic's object in updateDisplayList() and handle the
// rest of the DisplayList validation in here.
// Iterate through the graphic elements. If an element has a displayObject that has been
// invalidated, then validate all graphic elements that draw to this displayObject.
// The algorithm assumes that all of the elements that share a displayObject are in between
// the element with the shared displayObject and the next element that has a displayObject.
var sharedDisplayObject:ISharedDisplayObject = this;
if (numGraphicElements > 0)
var length:int = numElements;
for (var i:int = 0; i < length; i++)
var element:IGraphicElement = getElementAt(i) as IGraphicElement;
if (!element)
continue;
// Do a special check for layer, we may stumble upon an element with layer != 0
// before we're done with the current shared sequence and we don't want to mark
// the sequence as valid, until we reach the next sequence.
if (element.depth == 0)
// Is this the start of a new shared sequence?
if (element.displayObjectSharingMode != DisplayObjectSharingMode.USES_SHARED_OBJECT)
// We have finished redrawing the previous sequence
if (sharedDisplayObject)
sharedDisplayObject.redrawRequested = false;
// Start the new sequence
sharedDisplayObject = element.displayObject as ISharedDisplayObject;
if (!sharedDisplayObject || sharedDisplayObject.redrawRequested)
element.validateDisplayList();
else
// If we have layering, we don't share the display objects.
// Don't update the current sharedDisplayObject
var elementDisplayObject:ISharedDisplayObject = element.displayObject as ISharedDisplayObject;
if (!elementDisplayObject || elementDisplayObject.redrawRequested)
element.validateDisplayList();
if (elementDisplayObject)
elementDisplayObject.redrawRequested = false;
// Mark the last shared displayObject valid
if (sharedDisplayObject)
sharedDisplayObject.redrawRequested = false;
* @private
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
// let user's code (layout) run first before dealing with graphic element
// sharing because that's when redraws can be requested
super.updateDisplayList(unscaledWidth, unscaledHeight);
// Clear the group's graphic because graphic elements might be drawing to it
// This isn't needed for DataGroup because there's no DisplayObject sharing
// This code exists in updateDisplayList() as opposed to validateDisplayList()
// because of compatibility issues since most of this code was
// refactored from updateDisplayList() and in to validateDisplayList(). User's code
// already assumed that they could call super.updateDisplayList() and then be able to draw
// into the Group's graphics object. Because of that, the graphics.clear() call is left
// in updateDisplayList() instead of in validateDisplayList() with the rest of the graphic
// element sharing code.
var sharedDisplayObject:ISharedDisplayObject = this;
if (sharedDisplayObject.redrawRequested)
// clear the graphics here. The pattern is usually to call graphics.clear()
// before calling super.updateDisplayList() so what happens in super.updateDisplayList()
// isn't erased. However, in this case, what happens in super.updateDisplayList() isn't
// much, and we want to make sure super.updateDisplayList() runs first since the layout
// is what actually triggers the the shareDisplayObject to request to be redrawn.
graphics.clear();
drawBackground();
// If a scaleGrid is set, make sure the extent of the groups bounds are filled so
// the player will scale our contents as expected.
if (isValidScaleGrid() && resizeMode == ResizeMode.SCALE)
graphics.lineStyle();
graphics.beginFill(0, 0);
graphics.drawRect(0, 0, 1, 1);
graphics.drawRect(measuredWidth - 1, measuredHeight - 1, 1, 1);
graphics.endFill();
if (scaleGridChanged)
scaleGridChanged = false;
if (isValidScaleGrid())
// Check for DisplayObjects other than overlays
var overlayCount:int = _overlay ? _overlay.numDisplayObjects : 0;
if (numChildren - overlayCount > 0)
throw new Error(resourceManager.getString("components", "scaleGridGroupError"));
super.scale9Grid = new Rectangle(scaleGridLeft,
scaleGridTop,
scaleGridRight - scaleGridLeft,
scaleGridBottom - scaleGridTop);
else
super.scale9Grid = null;
* @private
* TODO (rfrishbe): Most of this code is a duplicate of UIComponent::notifyStyleChangeInChildren,
* refactor as appropriate to avoid code duplication once we have a common
* child iterator between UIComponent and Group.
override public function notifyStyleChangeInChildren(
styleProp:String, recursive:Boolean):void
if (mxmlContentChanged || !recursive)
return;
var n:int = numElements;
for (var i:int = 0; i < n; i++)
var child:ISimpleStyleClient = getElementAt(i) as ISimpleStyleClient;
if (child)
child.styleChanged(styleProp);
if (child is IStyleClient)
IStyleClient(child).notifyStyleChangeInChildren(styleProp,
recursive);
if (advanceStyleClientChildren != null)
for (var styleClient:Object in advanceStyleClientChildren)
var iAdvanceStyleClientChild:IAdvancedStyleClient = styleClient as IAdvancedStyleClient;
if (iAdvanceStyleClientChild)
iAdvanceStyleClientChild.styleChanged(styleProp);
* @private
* TODO (rfrishbe): Most of this code is a duplicate of UIComponent::regenerateStyleCache,
* refactor as appropriate to avoid code duplication once we have a common
* child iterator between UIComponent and Group.
override public function regenerateStyleCache(recursive:Boolean):void
// Regenerate the proto chain for this object
initProtoChain();
// Recursively call this method on each child.
var n:int = numElements;
for (var i:int = 0; i < n; i++)
var child:IVisualElement = getElementAt(i);
if (child is IStyleClient)
// Does this object already have a proto chain?
// If not, there's no need to regenerate a new one.
if (IStyleClient(child).inheritingStyles != StyleProtoChain.STYLE_UNINITIALIZED)
IStyleClient(child).regenerateStyleCache(recursive);
else if (child is IUITextField)
// Does this object already have a proto chain?
// If not, there's no need to regenerate a new one.
if (IUITextField(child).inheritingStyles)
StyleProtoChain.initTextField(IUITextField(child));
// Call this method on each non-visual StyleClient
if (advanceStyleClientChildren != null)
for (var styleClient:Object in advanceStyleClientChildren)
var iAdvanceStyleClientChild:IAdvancedStyleClient = styleClient as IAdvancedStyleClient;
if (iAdvanceStyleClientChild && iAdvanceStyleClientChild.inheritingStyles != StyleProtoChain.STYLE_UNINITIALIZED)
iAdvanceStyleClientChild.regenerateStyleCache(recursive);
// Content management
* @private
override public function get numElements():int
if (_mxmlContent == null)
return 0;
return _mxmlContent.length;
* @private
override public function getElementAt(index:int):IVisualElement
// check for RangeError:
checkForRangeError(index);
return _mxmlContent[index];
* @private
* Checks the range of index to make sure it's valid
private function checkForRangeError(index:int, addingElement:Boolean = false):void
// figure out the maximum allowable index
var maxIndex:int = (_mxmlContent == null ? -1 : _mxmlContent.length - 1);
// if adding an element, we allow an extra index at the end
if (addingElement)
maxIndex++;
if (index < 0 || index > maxIndex)
throw new RangeError(resourceManager.getString("components", "indexOutOfRange",
[ index ]));
* @private
private function isAIMBlendMode(value:String):Boolean
if (value == "colordodge" || value == "colorburn" || value == "exclusion" || value == "softlight" || value == "hue" || value == "saturatioFYI - This regression has been filed here: http://bugs.adobe.com/jira/browse/SDK-31989
-
Installing ML: locked partition missing after I erased it!
I was into a clean install idea on macpro
I made bootable 10.8 usb, then restart to cmd+r mode. I decided to erase my 1st partition before install ML. so I opened disk utility and tried to erase 1st partition. this partition was password protected, so It asked for password 1 time and then erased it, since then the partition is missing!!! I can not see it in disk utility. I restarted from bootable USB but still disk0s2 is missing and "Repair Disk Permissions" is also unavailable. also it is not available for my 2nd partition as well (After I unlock it )
before I had 2 partitions
1st is about 998 GB Called Srvr01.HD01 ( currently missing!)
2nd is about 1 GB Called Private ( Thanks God it is still there!)
before installation, in disk utility left side, if was like this:
Disk
-- Srvr01.HD01
-- Private
now in disk utility it is like this:
Private
-- Private
Srvr01.HD01
But in Partition layout I can c both "Srvr01.HD01" and "Private" and all th options are gray and unavailableIt seems I Found te solution myself!:
http://osxdaily.com/2011/09/23/view-mount-hidden-partitions-in-mac-os-x/#comment -412195
Quit out of Disk Utility, and launch Terminal to type the following defaults write command:
defaults write com.apple.DiskUtility DUDebugMenuEnabled 1
Relaunch Disk Utility and look for “Debug” to appear alongside ‘Help’
Click on the new Debug menu and pull down and select “Show every partition” so that a checkmark appears next to it
Now the hidden partitions will displayed alongside mounted visible partitions, but they will appear grey rather than black
Right-click on the greyed out partition to mount and choose “Mount [Drive Name]“ -
Header renderer click handler not working
Hi All
Below is code of my header renderer which copied code from default headerrenderer and created new one, I added textinput with down arrow and close button,
But when i click on close button, I am making filter box invisible, If i put a break point inside griditemrenderer1_mouseOutHandler() function then filter box becomes invisible, but while running in debug mode without break point filter box shows visible only,
Please let me know where i am doing wrong.
<?xml version="1.0" encoding="utf-8"?>
<s:GridItemRenderer minWidth="21" minHeight="21"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
mouseOver="griditemrenderer1_mouseOverHandler(event)"
creationComplete="griditemrenderer1_creationCompleteHandler(event)">
<fx:Declarations>
<s:Label id="labelDisplay"
verticalCenter="1"
textAlign="start"
fontWeight="bold"
verticalAlign="middle"
maxDisplayedLines="1"
showTruncationTip="true" />
</fx:Declarations>
<fx:Script>
<![CDATA[
import com.db.view.components.FilterPopup;
import mx.managers.PopUpManager;
import mx.controls.Menu;
import mx.events.FlexEvent;
import spark.components.gridClasses.IGridVisualElement;
import mx.core.IVisualElement;
import spark.components.DataGrid;
import spark.components.GridColumnHeaderGroup;
import spark.components.gridClasses.GridColumn;
import spark.primitives.supportClasses.GraphicElement;
// chrome color constants and variables
private static const DEFAULT_COLOR_VALUE:uint = 0xCC;
private static const DEFAULT_COLOR:uint = 0xCCCCCC;
private static const DEFAULT_SYMBOL_COLOR:uint = 0x000000;
private static var colorTransform:ColorTransform = new ColorTransform();
* @private
private function dispatchChangeEvent(type:String):void
if (hasEventListener(type))
dispatchEvent(new Event(type));
// maxDisplayedLines
private var _maxDisplayedLines:int = 1;
[Bindable("maxDisplayedLinesChanged")]
[Inspectable(minValue="-1")]
* The value of this property is used to initialize the
* <code>maxDisplayedLines</code> property of this renderer's
* <code>labelDisplay</code> element.
* @copy spark.components.supportClasses.TextBase#maxDisplayedLines
* @default 1
* @langversion 3.0
* @playerversion Flash 10
* @playerversion AIR 1.5
* @productversion Flex 4.5
public function get maxDisplayedLines():int
return _maxDisplayedLines;
* @private
public function set maxDisplayedLines(value:int):void
if (value == _maxDisplayedLines)
return;
_maxDisplayedLines = value;
if (labelDisplay)
labelDisplay.maxDisplayedLines = value;
invalidateSize();
invalidateDisplayList();
dispatchChangeEvent("maxDisplayedLinesChanged");
* @private
* Create and add the sortIndicator to the sortIndicatorGroup and the
* labelDisplay into the labelDisplayGroup.
override public function prepare(hasBeenRecycled:Boolean):void
super.prepare(hasBeenRecycled);
if (labelDisplay && labelDisplayGroup && (labelDisplay.parent != labelDisplayGroup))
labelDisplayGroup.removeAllElements();
labelDisplayGroup.addElement(labelDisplay);
private var chromeColorChanged:Boolean = false;
private var colorized:Boolean = false;
[Bindable]
private var _filterVisibility:Boolean = false;
* @private
* Apply chromeColor style.
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
// Apply chrome color
if (chromeColorChanged)
var chromeColor:uint = getStyle("chromeColor");
if (chromeColor != DEFAULT_COLOR || colorized)
colorTransform.redOffset = ((chromeColor & (0xFF << 16)) >> 16) - DEFAULT_COLOR_VALUE;
colorTransform.greenOffset = ((chromeColor & (0xFF << 8)) >> 8) - DEFAULT_COLOR_VALUE;
colorTransform.blueOffset = (chromeColor & 0xFF) - DEFAULT_COLOR_VALUE;
colorTransform.alphaMultiplier = alpha;
transform.colorTransform = colorTransform;
var exclusions:Array = [labelDisplay];
// Apply inverse colorizing to exclusions
if (exclusions && exclusions.length > 0)
colorTransform.redOffset = -colorTransform.redOffset;
colorTransform.greenOffset = -colorTransform.greenOffset;
colorTransform.blueOffset = -colorTransform.blueOffset;
for (var i:int = 0; i < exclusions.length; i++)
var exclusionObject:Object = exclusions[i];
if (exclusionObject &&
(exclusionObject is DisplayObject ||
exclusionObject is GraphicElement))
colorTransform.alphaMultiplier = exclusionObject.alpha;
exclusionObject.transform.colorTransform = colorTransform;
colorized = true;
chromeColorChanged = false;
super.updateDisplayList(unscaledWidth, unscaledHeight);
* @private
override public function styleChanged(styleProp:String):void
var allStyles:Boolean = !styleProp || styleProp == "styleName";
super.styleChanged(styleProp);
if (allStyles || styleProp == "chromeColor")
chromeColorChanged = true;
invalidateDisplayList();
protected function griditemrenderer1_mouseOverHandler(event:MouseEvent):void
_filterVisibility = true;
protected function griditemrenderer1_mouseOutHandler():void
_filterVisibility = false;
protected function griditemrenderer1_creationCompleteHandler(event:FlexEvent):void
trace(label);
protected function textinput1_clickHandler(event:MouseEvent):void
var filterpopUp:FilterPopup = new FilterPopup();
filterpopUp.filterColumn = label;
PopUpManager.addPopUp(filterpopUp,this,false);
filterpopUp.addEventListener("test",testHandler);
filterpopUp.x = event.stageX - 50;
filterpopUp.y = event.stageY + 10;
protected function testHandler(event:Event):void
owner.dispatchEvent(new Event("test"));
]]>
</fx:Script>
<s:VGroup left="7" right="7" top="5" bottom="5" gap="2" verticalAlign="bottom">
<s:HGroup id="tiFilter" width="100%" gap="3" verticalAlign="middle" visible="{_filterVisibility}">
<s:TextInput width="{labelDisplay.width + 20}" height="16" skinClass="com.db.view.skins.FilterTextInputSkin"
text="{label}" click="textinput1_clickHandler(event)"/>
<s:HGroup id="closeBtn" width="15" height="15" click="griditemrenderer1_mouseOutHandler()"
buttonMode="true" useHandCursor="true" mouseChildren="false" keyDown="griditemrenderer1_mouseOutHandler()">
<s:Image source="@Embed('/assets/images/icon_close.gif')"/>
</s:HGroup>
</s:HGroup>
<s:Group id="labelDisplayGroup" width="100%"/>
<s:Group id="sortIndicatorGroup" includeInLayout="false" />
</s:VGroup>
</s:GridItemRenderer>Hi Sudhir,
Thanks for posting your issue, Kindly find the code snnipet below to Add a new item in Custom list
public override void ItemAdded(SPItemEventProperties properties)
base.ItemAdded(properties);
if (properties.List.Title
== "Test")
Get Properties
string ABC=
properties.ListItem["Column"].ToString();
string DEF=
properties.ListItem["Column"].ToString();
DateTime XYZ=
(DateTime)properties.ListItem["Start Column"];
DateTime WSD=
(DateTime)properties.ListItem["End Column"];
Create sub site
SPWeb web
= properties.Site.AllWebs.Add(name.Replace(" ", string.Empty),
name,
description, 0, SPWebTemplate.WebTemplateSTS, false, false);
web.Update();
Also, browse the below mentioned URL to implementation your custom list step by step. and how you can debug your custom code.
http://www.c-sharpcorner.com/UploadFile/40e97e/create-site-automatically-when-a-list-item-is-added/
http://msdn.microsoft.com/en-us/library/ee231550.aspx
I hope this is helpful to you, mark it as Helpful.
If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS)
Blog : http://sharepoint-community.net/profile/DharmendraSingh -
Strange Error when starting tomcat 5.5.7
Hello,
on WinXP SP2 I am using JavaStudio Enterprise 8, with J2SE 1.5 update 9. I am trying to run the tomcat-servlet-example. The project compile properly, but when i run the project i get the error below. Since i have no clue how to overtake this, i ask assistance on fixing it.
TIA,
Luca
Using CATALINA_BASE: C:\Documents and Settings\luca.C64\.jstudio\Ent8\jakarta-tomcat-5.5.7_base
Using CATALINA_HOME: D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\jakarta-tomcat-5.5.7
Using CATALINA_TMPDIR: C:\Documents and Settings\luca.C64\.jstudio\Ent8\jakarta-tomcat-5.5.7_base\temp
Using JAVA_HOME: C:\Programmi\Java\jdk1.5.0_09
13-ott-2006 18.56.05 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
13-ott-2006 18.56.05 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1297 ms
13-ott-2006 18.56.05 org.apache.tomcat.util.digester.Digester fatalError
GRAVE: Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1580)
at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:370)
at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:97)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:676)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.naming.NamingContext lookup
AVVERTENZA: Unexpected exception resolving reference
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1580)
at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:370)
at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:97)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:676)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans
GRAVE: Exception processing Global JNDI Resources
javax.naming.NamingException: Content is not allowed in prolog.
at org.apache.naming.NamingContext.lookup(NamingContext.java:804)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:676)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
13-ott-2006 18.56.05 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
13-ott-2006 18.56.05 org.apache.tomcat.util.digester.Digester fatalError
GRAVE: Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1580)
at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:370)
at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:97)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:222)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.naming.NamingContext lookup
AVVERTENZA: Unexpected exception resolving reference
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1580)
at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:370)
at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:97)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:222)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.catalina.realm.UserDatabaseRealm start
GRAVE: Exception looking up UserDatabase under key UserDatabase
javax.naming.NamingException: Content is not allowed in prolog.
at org.apache.naming.NamingContext.lookup(NamingContext.java:804)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:222)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.catalina.startup.Catalina start
GRAVE: Catalina.start:
LifecycleException: No UserDatabase component found under key UserDatabase
at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:228)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.catalina.startup.Catalina start
INFO: Server startup in 391 ms
13-ott-2006 18.56.05 org.apache.catalina.core.StandardServer await
GRAVE: StandardServer.await: create[8025]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:346)
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080Hello,
I have set the verbosity of Ant to Debug, and the resulting log after clicking on the Run Main Project button is here below. The same error happens in Debug Maing Project.
It seems to be difficult to get it working, and i cant understand why. After all, i used it for 1 year without problems, and now i m struggling...
See you,
Luca
Adding reference: ant.PropertyHelper
Detected Java version: 1.5 in: C:\Programmi\Java\jdk1.5.0_09\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
+Datatype nbbrowse org.netbeans.modules.ant.browsetask.NbBrowse
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
+Datatype antlib:org.netbeans.modules.ant.browsetask:nbbrowse org.netbeans.modules.ant.browsetask.NbBrowse
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
+Datatype nbjpdaconnect org.netbeans.modules.debugger.jpda.ant.JPDAConnect
+Datatype nbjpdastart org.netbeans.modules.debugger.jpda.ant.JPDAStart
+Datatype nbjpdareload org.netbeans.modules.debugger.jpda.ant.JPDAReload
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
+Datatype antlib:org.netbeans.modules.debugger.jpda.ant:nbjpdaconnect org.netbeans.modules.debugger.jpda.ant.JPDAConnect
+Datatype antlib:org.netbeans.modules.debugger.jpda.ant:nbjpdastart org.netbeans.modules.debugger.jpda.ant.JPDAStart
+Datatype antlib:org.netbeans.modules.debugger.jpda.ant:nbjpdareload org.netbeans.modules.debugger.jpda.ant.JPDAReload
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
+Datatype nbdeploy org.netbeans.modules.j2ee.ant.Deploy
+Datatype nbverify org.netbeans.modules.j2ee.ant.Verify
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
+Datatype antlib:org.netbeans.modules.j2ee.ant:nbdeploy org.netbeans.modules.j2ee.ant.Deploy
+Datatype antlib:org.netbeans.modules.j2ee.ant:nbverify org.netbeans.modules.j2ee.ant.Verify
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-sun-ide.jar!/org/netbeans/modules/j2ee/sun/ide/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-sun-ide.jar!/org/netbeans/modules/j2ee/sun/ide/antlib.xml
+Datatype sun-appserv-deploy org.apache.tools.ant.taskdefs.optional.sun.appserv.DeployTask
+Datatype sun-appserv-undeploy org.apache.tools.ant.taskdefs.optional.sun.appserv.UndeployTask
+Datatype sun-appserv-instance org.apache.tools.ant.taskdefs.optional.sun.appserv.InstanceTask
+Datatype sun-appserv-component org.apache.tools.ant.taskdefs.optional.sun.appserv.ComponentTask
+Datatype sun-appserv-admin org.apache.tools.ant.taskdefs.optional.sun.appserv.AdminTask
+Datatype sun-appserv-input org.apache.tools.ant.taskdefs.Input
+Datatype sun-appserv-jspc org.apache.tools.ant.taskdefs.optional.sun.appserv.SunJspc
+Datatype sun-appserv-update org.apache.tools.ant.taskdefs.optional.sun.appserv.UpdateTask
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-sun-ide.jar!/org/netbeans/modules/j2ee/sun/ide/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-sun-ide.jar!/org/netbeans/modules/j2ee/sun/ide/antlib.xml
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-deploy org.apache.tools.ant.taskdefs.optional.sun.appserv.DeployTask
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-undeploy org.apache.tools.ant.taskdefs.optional.sun.appserv.UndeployTask
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-instance org.apache.tools.ant.taskdefs.optional.sun.appserv.InstanceTask
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-component org.apache.tools.ant.taskdefs.optional.sun.appserv.ComponentTask
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-admin org.apache.tools.ant.taskdefs.optional.sun.appserv.AdminTask
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-input org.apache.tools.ant.taskdefs.Input
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-jspc org.apache.tools.ant.taskdefs.optional.sun.appserv.SunJspc
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-update org.apache.tools.ant.taskdefs.optional.sun.appserv.UpdateTask
Setting ro project property: ant.file -> C:\Documents and Settings\luca.C64\TomcatServletExample1\build.xml
Setting ro project property: ant.version -> Apache Ant version 1.6.2 compiled on July 16 2004
Setting ro project property: ant.home -> D:\Programmi\Sun\jstudio_ent8\ide\ide5\ant
Setting ro project property: forceRedeploy -> false
Setting ro project property: build.compiler.emacs -> true
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\Documents and Settings\luca.C64\TomcatServletExample1\build.xml with URI = file:///C:/Documents%20and%20Settings/luca.C64/TomcatServletExample1/build.xml
Setting ro project property: ant.project.name -> TomcatServletExample
Adding reference: TomcatServletExample
Setting ro project property: ant.file.TomcatServletExample -> C:\Documents and Settings\luca.C64\TomcatServletExample1\build.xml
Project base dir set to: C:\Documents and Settings\luca.C64\TomcatServletExample1
+Target:
Importing file nbproject/build-impl.xml from C:\Documents and Settings\luca.C64\TomcatServletExample1\build.xml
parsing buildfile C:\Documents and Settings\luca.C64\TomcatServletExample1\nbproject\build-impl.xml with URI = file:///C:/Documents%20and%20Settings/luca.C64/TomcatServletExample1/nbproject/build-impl.xml
Setting ro project property: ant.file.TomcatServletExample-impl -> C:\Documents and Settings\luca.C64\TomcatServletExample1\nbproject\build-impl.xml
+Target: default
+Target: -pre-init
+Target: -init-private
+Target: -init-user
+Target: -init-project
+Target: -do-ear-init
+Target: -do-init
+Target: -post-init
+Target: -init-check
+Target: -init-macrodef-property
+Target: -init-macrodef-javac
+Target: -init-macrodef-junit
+Target: -init-macrodef-java
+Target: -init-macrodef-nbjpda
+Target: -init-macrodef-debug
+Target: init
+Target: deps-module-jar
+Target: deps-ear-jar
+Target: deps-jar
+Target: -pre-pre-compile
+Target: -pre-compile
+Target: -do-compile
+Target: -copy-manifest
+Target: -post-compile
+Target: compile
+Target: -pre-compile-single
+Target: -do-compile-single
+Target: -post-compile-single
+Target: compile-single
+Target: compile-jsps
+Target: -do-compile-single-jsp
+Target: compile-single-jsp
+Target: -pre-dist
+Target: -do-dist-without-manifest
+Target: -do-dist-with-manifest
+Target: do-dist
+Target: library-inclusion-in-manifest
+Target: library-inclusion-in-archive
+Target: do-ear-dist
+Target: -post-dist
+Target: dist
+Target: dist-ear
+Target: run
+Target: run-deploy
+Target: verify
+Target: run-display-browser
+Target: run-main
+Target: debug
+Target: debug-display-browser
+Target: debug-single
+Target: -debug-start-debugger
+Target: -debug-start-debuggee-single
+Target: debug-single-main
+Target: -pre-debug-fix
+Target: -do-debug-fix
+Target: debug-fix
+Target: javadoc-build
+Target: javadoc-browse
+Target: javadoc
+Target: -pre-pre-compile-test
+Target: -pre-compile-test
+Target: -do-compile-test
+Target: -post-compile-test
+Target: compile-test
+Target: -pre-compile-test-single
+Target: -do-compile-test-single
+Target: -post-compile-test-single
+Target: compile-test-single
+Target: -pre-test-run
+Target: -do-test-run
+Target: -post-test-run
+Target: test-report
+Target: -test-browse
+Target: test
+Target: -pre-test-run-single
+Target: -do-test-run-single
+Target: -post-test-run-single
+Target: test-single
+Target: -debug-start-debuggee-test
+Target: -debug-start-debugger-test
+Target: debug-test
+Target: -do-debug-fix-test
+Target: debug-fix-test
+Target: deps-clean
+Target: do-clean
+Target: check-clean
+Target: -post-clean
+Target: clean
+Target: clean-ear
Build sequence for target `run' is [-pre-init, -init-private, -init-user, -init-project, -init-macrodef-property, -do-ear-init, -do-init, -post-init, -init-check, -init-macrodef-javac, -init-macrodef-junit, -init-macrodef-java, -init-macrodef-nbjpda, -init-macrodef-debug, init, deps-module-jar, deps-ear-jar, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, library-inclusion-in-archive, library-inclusion-in-manifest, -do-compile, -post-compile, compile, compile-jsps, -do-compile-single-jsp, -pre-dist, -do-dist-with-manifest, -do-dist-without-manifest, do-dist, -post-dist, dist, run-deploy, run-display-browser, run]
Complete build sequence is [-pre-init, -init-private, -init-user, -init-project, -init-macrodef-property, -do-ear-init, -do-init, -post-init, -init-check, -init-macrodef-javac, -init-macrodef-junit, -init-macrodef-java, -init-macrodef-nbjpda, -init-macrodef-debug, init, deps-module-jar, deps-ear-jar, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, library-inclusion-in-archive, library-inclusion-in-manifest, -do-compile, -post-compile, compile, compile-jsps, -do-compile-single-jsp, -pre-dist, -do-dist-with-manifest, -do-dist-without-manifest, do-dist, -post-dist, dist, run-deploy, run-display-browser, run, debug-display-browser, -post-compile-test-single, -pre-test-run, -pre-compile-single, -do-compile-single, -post-compile-single, compile-single, run-main, -pre-pre-compile-test, -pre-compile-test, -do-compile-test, -post-compile-test, compile-test, debug, javadoc-build, compile-single-jsp, -debug-start-debugger-test, -debug-start-debuggee-test, debug-test, -do-test-run, test-report, debug-single, do-clean, check-clean, -pre-test-run-single, javadoc-browse, javadoc, default, -pre-compile-test-single, -do-compile-test-single, compile-test-single, -do-test-run-single, do-ear-dist, -post-test-run-single, -post-test-run, -test-browse, test, dist-ear, deps-clean, -post-clean, clean, -pre-debug-fix, -do-debug-fix, debug-fix, -do-debug-fix-test, -debug-start-debuggee-single, clean-ear, -debug-start-debugger, verify, debug-fix-test, test-single, debug-single-main, ]
-pre-init:
-init-private:
Loading C:\Documents and Settings\luca.C64\TomcatServletExample1\nbproject\private\private.properties
Setting project property: javac.debug -> true
Setting project property: javadoc.preview -> true
Setting project property: j2ee.platform.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\jakarta-tomcat-5.5.7\common\lib\jsp-api.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\jakarta-tomcat-5.5.7\common\lib\servlet-api.jar
Setting project property: j2ee.server.instance -> tomcat55:home=$bundled_home:base=$bundled_base
Setting project property: user.properties.file -> C:\Documents and Settings\luca.C64\.jstudio\Ent8\build.properties
-init-user:
Loading C:\Documents and Settings\luca.C64\.jstudio\Ent8\build.properties
Setting project property: libs.absolutelayout.src ->
Setting project property: libs.absolutelayout.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\ide5\modules\ext\AbsoluteLayout.jar
Setting project property: wsclientuptodate.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\ant\extra\wsclientuptodate.jar
Setting project property: default.javac.target -> 1.5
Setting project property: libs.jstl11.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\config\TagLibraries\JSTL11\standard.jar;D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\config\TagLibraries\JSTL11\jstl.jar
Setting project property: libs.jstl11.src ->
Setting project property: libs.absolutelayout.javadoc ->
Setting project property: libs.PortletBuilder.src ->
Setting project property: copyfiles.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\ant\extra\copyfiles.jar
Setting project property: libs.PortletBuilder.javadoc ->
Setting project property: libs.junit.src ->
Setting project property: default.javac.source -> 1.5
Setting project property: libs.junit.javadoc -> D:\Programmi\Sun\jstudio_ent8\ide\ide5\docs\junit-3.8.1-api.zip
Setting project property: libs.junit.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\ide5\modules\ext\junit-3.8.1.jar
Setting project property: libs.jstl11.javadoc -> D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\docs\jstl-1.1.2-javadoc.zip
Setting project property: jspc.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\ide5\ant\lib\ant.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\jakarta-tomcat-5.5.7\common\lib\jsp-api.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\jakarta-tomcat-5.5.7\common\lib\servlet-api.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\modules\autoload\ext\jasper-compiler-5.5.7.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\modules\autoload\ext\jasper-runtime-5.5.7.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\modules\autoload\ext\commons-el.jar:D:\Programmi\Sun\jstudio_ent8\ide\ide5\modules\ext\commons-logging-1.0.4.jar
Setting project property: libs.PortletBuilder.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\common.jar;D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\container.jar;D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\jdom.jar;D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\portlet.jar;D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\portletappengine.jar;D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\portletcontainercommon.jar;D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\portlettl.jar;D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\psrun.jar
Override ignored for property default.javac.source
Override ignored for property default.javac.target
-init-project:
Loading C:\Documents and Settings\luca.C64\TomcatServletExample1\nbproject\project.properties
Setting project property: javac.deprecation -> true
Setting project property: build.test.results.dir -> build/test/results
Setting project property: javadoc.nonavbar -> false
Setting project property: war.name -> TomcatServletExample.war
Setting project property: run.test.classpath -> :build/web/WEB-INF/classes:D:\Programmi\Sun\jstudio_ent8\ide\ide5\modules\ext\junit-3.8.1.jar:build/test/classes
Setting project property: javac.target -> 1.5
Setting project property: j2ee.server.type -> Tomcat55
Setting project property: client.urlPart ->
Setting project property: display.browser -> true
Setting project property: javadoc.noindex -> false
Setting project property: web.docbase.dir -> web
Setting project property: source.root -> src
Setting project property: build.classes.dir -> build/web/WEB-INF/classes
Setting project property: javadoc.author -> false
Setting project property: test.src.dir -> test
Setting project property: build.dir -> build
Setting project property: build.ear.web.dir -> build/ear-module
Setting project property: resource.dir -> setup
Setting project property: war.ear.name -> TomcatServletExample.war
Setting project property: build.test.classes.dir -> build/test/classes
Setting project property: platform.active -> default_platform
Setting project property: javac.compilerargs ->
Setting project property: javadoc.use -> true
Setting project property: lib.dir -> web/WEB-INF/lib
Setting project property: build.web.excludes -> **/*.java,**/*.form
Setting project property: debug.test.classpath -> :build/web/WEB-INF/classes:D:\Programmi\Sun\jstudio_ent8\ide\ide5\modules\ext\junit-3.8.1.jar:build/test/classes
Setting project property: dist.dir -> dist
Setting project property: build.classes.excludes -> **/*.java,**/*.form
Setting project property: javadoc.splitindex -> true
Setting project property: javadoc.encoding ->
Setting project property: javac.source -> 1.5
Override ignored for property javadoc.preview
Setting project property: debug.classpath -> :build/web/WEB-INF/classes
Setting project property: compile.jsps -> false
Setting project property: build.web.dir -> build/web
Setting project property: runmain.jvmargs ->
Setting project property: conf.dir -> src/conf
Setting project property: build.generated.dir -> build/generated
Setting project property: jar.compress -> false
Setting project property: javac.test.classpath -> :build/web/WEB-INF/classes:D:\Programmi\Sun\jstudio_ent8\ide\ide5\modules\ext\junit-3.8.1.jar
Setting project property: javadoc.private -> false
Override ignored for property javac.debug
Setting project property: war.content.additional ->
Setting project property: jspcompilation.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\ide5\ant\lib\ant.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\jakarta-tomcat-5.5.7\common\lib\jsp-api.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\jakarta-tomcat-5.5.7\common\lib\servlet-api.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\modules\autoload\ext\jasper-compiler-5.5.7.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\modules\autoload\ext\jasper-runtime-5.5.7.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\modules\autoload\ext\commons-el.jar:D:\Programmi\Sun\jstudio_ent8\ide\ide5\modules\ext\commons-logging-1.0.4.jar:
Setting project property: build.ear.classes.dir -> build/ear-module/WEB-INF/classes
Setting project property: dist.javadoc.dir -> dist/javadoc
Setting project property: src.dir -> src
Setting project property: javac.classpath ->
Setting project property: j2ee.platform -> 1.4
Setting project property: javadoc.version -> false
Setting project property: javadoc.windowtitle ->
Setting project property: dist.war -> dist/TomcatServletExample.war
Setting project property: javadoc.notree -> false
Setting project property: dist.ear.war -> dist/TomcatServletExample.war
-init-macrodef-property:
+Datatype http://www.netbeans.org/ns/web-project/1:property org.apache.tools.ant.taskdefs.MacroInstance
-do-ear-init:
Skipped because property 'dist.ear.dir' not set.
-do-init:
Unable to find test
Condition false; not setting have.tests
Condition false; not setting netbeans.home+have.tests
Condition false; not setting no.javadoc.preview
Override ignored for property javac.compilerargs
Property ${no.dependencies} has not been set
Condition false; not setting no.deps
Condition true; setting no.dist.ear.dir to true
Setting project property: no.dist.ear.dir -> true
Override ignored for property build.web.excludes
Condition false; not setting do.compile.jsps
Condition true; setting do.display.browser to true
Setting project property: do.display.browser -> true
Unable to find src\conf\MANIFEST.MF to set property has.custom.manifest
Setting project property: build.meta.inf.dir -> build/web/META-INF
Setting project property: build.classes.dir.real -> build/web/WEB-INF/classes
Setting project property: build.web.dir.real -> build/web
-post-init:
-init-check:
-init-macrodef-javac:
+Datatype http://www.netbeans.org/ns/web-project/2:javac org.apache.tools.ant.taskdefs.MacroInstance
-init-macrodef-junit:
+Datatype http://www.netbeans.org/ns/web-project/2:junit org.apache.tools.ant.taskdefs.MacroInstance
-init-macrodef-java:
Property ${main.class} has not been set
+Datatype http://www.netbeans.org/ns/web-project/1:java org.apache.tools.ant.taskdefs.MacroInstance
-init-macrodef-nbjpda:
Property ${main.class} has not been set
+Datatype http://www.netbeans.org/ns/web-project/1:nbjpdastart org.apache.tools.ant.taskdefs.MacroInstance
+Datatype http://www.netbeans.org/ns/web-project/1:nbjpdareload org.apache.tools.ant.taskdefs.MacroInstance
-init-macrodef-debug:
Property ${main.class} has not been set
Property ${application.args} has not been set
+Datatype http://www.netbeans.org/ns/web-project/1:debug org.apache.tools.ant.taskdefs.MacroInstance
init:
deps-module-jar:
deps-ear-jar:
Skipped because property 'dist.ear.dir' not set.
deps-jar:
-pre-pre-compile:
-pre-compile:
-copy-manifest:
Skipped because property 'has.custom.manifest' not set.
library-inclusion-in-archive:
library-inclusion-in-manifest:
Skipped because property 'dist.ear.dir' not set.
-do-compile:
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
fileset: Setup scanner in dir C:\Documents and Settings\luca.C64\TomcatServletExample1\src with patternSet{ includes: [] excludes: [] }
CookieExample.java omitted as CookieExample.class is up to date.
HelloWorldExample.java omitted as HelloWorldExample.class is up to date.
LocalStrings.properties skipped - don't know how to handle it
LocalStrings_en.properties skipped - don't know how to handle it
LocalStrings_es.properties skipped - don't know how to handle it
LocalStrings_fr.properties skipped - don't know how to handle it
RequestHeaderExample.java omitted as RequestHeaderExample.class is up to date.
RequestInfoExample.java omitted as RequestInfoExample.class is up to date.
RequestParamExample.java omitted as RequestParamExample.class is up to date.
SessionExample.java omitted as SessionExample.class is up to date.
compressionFilters\CompressionFilter.java omitted as compressionFilters/CompressionFilter.class is up to date.
compressionFilters\CompressionFilterTestServlet.java omitted as compressionFilters/CompressionFilterTestServlet.class is up to date.
compressionFilters\CompressionResponseStream.java omitted as compressionFilters/CompressionResponseStream.class is up to date.
compressionFilters\CompressionServletResponseWrapper.java omitted as compressionFilters/CompressionServletResponseWrapper.class is up to date.
filters\ExampleFilter.java omitted as filters/ExampleFilter.class is up to date.
filters\RequestDumperFilter.java omitted as filters/RequestDumperFilter.class is up to date.
filters\SetCharacterEncodingFilter.java omitted as filters/SetCharacterEncodingFilter.class is up to date.
listeners\ContextListener.java omitted as listeners/ContextListener.class is up to date.
listeners\SessionListener.java omitted as listeners/SessionListener.class is up to date.
util\HTMLFilter.java omitted as util/HTMLFilter.class is up to date.
fileset: Setup scanner in dir C:\Documents and Settings\luca.C64\TomcatServletExample1\src with patternSet{ includes: [] excludes: [**/*.java, **/*.form] }
LocalStrings.properties omitted as LocalStrings.properties is up to date.
LocalStrings_en.properties omitted as LocalStrings_en.properties is up to date.
LocalStrings_es.properties omitted as LocalStrings_es.properties is up to date.
LocalStrings_fr.properties omitted as LocalStrings_fr.properties is up to date.
omitted as is up to date.
compressionFilters omitted as compressionFilters is up to date.
filters omitted as filters is up to date.
listeners omitted as listeners is up to date.
util omitted as util is up to date.
fileset: Setup scanner in dir C:\Documents and Settings\luca.C64\TomcatServletExample1\web with patternSet{ includes: [] excludes: [**/*.java, **/*.form] }
META-INF\context.xml omitted as META-INF/context.xml is up to date.
WEB-INF\web.xml omitted as WEB-INF/web.xml is up to date.
cookies.html omitted as cookies.html is up to date.
helloworld.html omitted as helloworld.html is up to date.
images\code.gif omitted as images/code.gif is up to date.
images\execute.gif omitted as images/execute.gif is up to date.
images\return.gif omitted as images/return.gif is up to date.
index.html omitted as index.html is up to date.
reqheaders.html omitted as reqheaders.html is up to date.
reqinfo.html omitted as reqinfo.html is up to date.
reqparams.html omitted as reqparams.html is up to date.
sessions.html omitted as sessions.html is up to date.
omitted as is up to date.
META-INF omitted as META-INF is up to date.
WEB-INF omitted as WEB-INF is up to date.
images omitted as images is up to date.
-post-compile:
compile:
compile-jsps:
Skipped because property 'do.compile.jsps' not set.
-do-compile-single-jsp:
Skipped because property 'jsp.includes' not set.
-pre-dist:
-do-dist-with-manifest:
Skipped because property 'has.custom.manifest' not set.
-do-dist-without-manifest:
Setting project property: dist.jar.dir -> C:\Documents and Settings\luca.C64\TomcatServletExample1\dist
fileset: Setup scanner in dir C:\Documents and Settings\luca.C64\TomcatServletExample1\build\web with patternSet{ includes: [] excludes: [] }
META-INF\context.xml omitted as META-INF/context.xml is up to date.
WEB-INF\classes\CookieExample.class omitted as WEB-INF/classes/CookieExample.class is up to date.
WEB-INF\classes\HelloWorldExample.class omitted as WEB-INF/classes/HelloWorldExample.class is up to date.
WEB-INF\classes\LocalStrings.properties omitted as WEB-INF/classes/LocalStrings.properties is up to date.
WEB-INF\classes\LocalStrings_en.properties omitted as WEB-INF/classes/LocalStrings_en.properties is up to date.
WEB-INF\classes\LocalStrings_es.properties omitted as WEB-INF/classes/LocalStrings_es.properties is up to date.
WEB-INF\classes\LocalStrings_fr.properties omitted as WEB-INF/classes/LocalStrings_fr.properties is up to date.
WEB-INF\classes\RequestHeaderExample.class omitted as WEB-INF/classes/RequestHeaderExample.class is up to date.
WEB-INF\classes\RequestInfoExample.class omitted as WEB-INF/classes/RequestInfoExample.class is up to date.
WEB-INF\classes\RequestParamExample.class omitted as WEB-INF/classes/RequestParamExample.class is up to date.
WEB-INF\classes\SessionExample.class omitted as WEB-INF/classes/SessionExample.class is up to date.
WEB-INF\classes\compressionFilters\CompressionFilter.class omitted as WEB-INF/classes/compressionFilters/CompressionFilter.class is up to date.
WEB-INF\classes\compressionFilters\CompressionFilterTestServlet.class omitted as WEB-INF/classes/compressionFilters/CompressionFilterTestServlet.class is up to date.
WEB-INF\classes\compressionFilters\CompressionResponseStream.class omitted as WEB-INF/classes/compressionFilters/CompressionResponseStream.class is up to date.
WEB-INF\classes\compressionFilters\CompressionServletResponseWrapper.class omitted as WEB-INF/classes/compressionFilters/CompressionServletResponseWrapper.class is up to date.
WEB-INF\classes\filters\ExampleFilter.class omitted as WEB-INF/classes/filters/ExampleFilter.class is up to date.
WEB-INF\classes\filters\RequestDumperFilter.class omitted as WEB-INF/classes/filters/RequestDumperFilter.class is up to date.
WEB-INF\classes\filters\SetCharacterEncodingFilter.class omitted as WEB-INF/classes/filters/SetCharacterEncodingFilter.class is up to date.
WEB-INF\classes\listeners\ContextListener.class omitted as WEB-INF/classes/listeners/ContextListener.class is up to date.
WEB-INF\classes\listeners\SessionListener.class omitted as WEB-INF/classes/listeners/SessionListener.class is up to date.
WEB-INF\classes\util\HTMLFilter.class omitted as WEB-INF/classes/util/HTMLFilter.class is up to date.
WEB-INF\web.xml omitted as WEB-INF/web.xml is up to date.
cookies.html omitted as cookies.html is up to date.
helloworld.html omitted as helloworld.html is up to date.
images\code.gif omitted as images/code.gif is up to date.
images\execute.gif omitted as images/execute.gif is up to date.
images\return.gif omitted as images/return.gif is up to date.
index.html omitted as index.html is up to date.
reqheaders.html omitted as reqheaders.html is up to date.
reqinfo.html omitted as reqinfo.html is up to date.
reqparams.html omitted as reqparams.html is up to date.
sessions.html omitted as sessions.html is up to date.
do-dist:
-post-dist:
dist:
run-deploy:
In-place deployment at C:\Documents and Settings\luca.C64\TomcatServletExample1\build\web
Server returned HTTP response code: 403 for URL: http://localhost:8080/manager/deploy?config=file:/C:/DOCUME~1/luca.C64/IMPOST~1/Temp/context33857.xml&path=/TomcatServletExample1
C:\Documents and Settings\luca.C64\TomcatServletExample1\nbproject\build-impl.xml:355: Deployment failed.
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:85)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.e -
Jar not running is sarge and apache-ant shows error of package not found
Hello,
First of all I am not a java programmer. I work in C/C++/C#.
Currently I am dealing a game written in java (1.5) using netbeans 5.5.0 under windows xp. My target is to compile in my development machine and run in the clients machine. everything works fine in windows xp. I open the netbeans ide, load the necessary class libraries, build the project and run it. it runs without any problem.
The problem begins when I run the same project from linux (fedora). it doest not run. It shows some error.
<error platform="fedora 7">
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.<init>(Window.java:406)
at java.awt.Frame.<init>(Frame.java:402)
at java.awt.Frame.<init>(Frame.java:367)
at javax.swing.JFrame.<init>(JFrame.java:163)
at netbeansapplication.nbApplication.<init>(nbApplication.java:52)
at netbeansapplication.nbApplication$14.run(nbApplication.java:453)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
</error>
Some of these error were resolved when I set the DISPLAY variable (export DISPLAY="127.0.0.1:0") but the other errors were still there.
But when I open this same project in netbeans and resolve the dependencies with class libraries it works ok after compiling.
I can run it from console (java -jar ...)
And again the same source tree shows the following error when I am in windows !!! (by java -jar ... command)
<error platform="WinXPSP2">
Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:468)
at java.lang.Integer.parseInt(Integer.java:497)
at cherrygame.global.readConfigForStickProtection(global.java:2060)
at cherrygame.nbCherryGame.<init>(nbCherryGame.java:243)
at netbeansapplication.nbApplication.<init>(nbApplication.java:46)
at netbeansapplication.nbApplication$14.run(nbApplication.java:453)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
</error>
I see that netbeans uses ant to compile project in the background.
then I tried using ant to compile.
doing only `#ant compile` where build.xml resides does the compilation.
after that I try to run it (by java -jar ...). again the above error shows up.
What would I do?
If I compile it with netbeans in machine A then it runs well in A but not in machine B.
If I compile it with ANT in machine A then it doesn't run in A, no chance for machine B.
the contents of my build xml is here
<code file="build.xml">
<![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<project name="NetBeansApplication" default="default" basedir=".">
<description>Builds, tests, and runs the project NetBeansApplication.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="NetBeansApplication-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
<target name="-post-jar">
<jar update="true" destfile="${dist.jar}">
<zipfileset src="${libs.swing-layout.classpath}"/>
<zipfileset src="${libs.addMoney.classpath}"/>
<zipfileset src="${libs.NormalWindow.classpath}"/>
</jar>
</target>
</project>
]]>
</code>
my directory contents is here. note. I have 2 packages "cgwindow2" and "NormalWindow" for class libraries and my main application is "CherryGame". The game is "game.jar" in the CherryGame folder.
<listing foldername="CherryGame">
D:\src\java\CherryGame\build.xml
D:\src\java\CherryGame\BW.txt
D:\src\java\CherryGame\config.txt
D:\src\java\CherryGame\config.txt.lin
D:\src\java\CherryGame\flopsfile.txt
D:\src\java\CherryGame\game.jar
D:\src\java\CherryGame\LWMoneyfile.txt
D:\src\java\CherryGame\mfile.txt
D:\src\java\CherryGame\mfile2.txt
D:\src\java\CherryGame\mfile3.txt
D:\src\java\CherryGame\TotalRollsTillBigWin.txt
D:\src\java\CherryGame\UserFile.txt
D:\src\java\CherryGame\build\classes\cherrygame\addMoneyFrame.class
D:\src\java\CherryGame\build\classes\cherrygame\addMoneyPanel.class
D:\src\java\CherryGame\build\classes\cherrygame\cardsPanel.class
D:\src\java\CherryGame\build\classes\cherrygame\cardsWindow$1.class
D:\src\java\CherryGame\build\classes\cherrygame\cardsWindow.class
D:\src\java\CherryGame\build\classes\cherrygame\cherryGameBackPanel.class
D:\src\java\CherryGame\build\classes\cherrygame\cherryWindow.class
D:\src\java\CherryGame\build\classes\cherrygame\customBorderCherryGame.class
D:\src\java\CherryGame\build\classes\cherrygame\FixedGlassPane.class
D:\src\java\CherryGame\build\classes\cherrygame\global.class
D:\src\java\CherryGame\build\classes\cherrygame\helpPanelOne.class
D:\src\java\CherryGame\build\classes\cherrygame\imagesPanel.class
D:\src\java\CherryGame\build\classes\cherrygame\messageWindow.class
D:\src\java\CherryGame\build\classes\cherrygame\messageWindow2.class
D:\src\java\CherryGame\build\classes\cherrygame\messageWindow3.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$1.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$10.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$11.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$12.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$13.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$14.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$15.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$16.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$17.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$18.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$19.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$2.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$20.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$21.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$22.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$23.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$24.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$25.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$26.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$27.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$28$1.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$28$2.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$28.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$29.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$3.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$30.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$31.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$32.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$33.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$34.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$35.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$36.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$37.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$38.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$39.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$4.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$40.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$41.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$42.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$43.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$44.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$45.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$46.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$5.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$6.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$7.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$8.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$9.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$MyTask.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame.class
D:\src\java\CherryGame\build\classes\cherrygame\panelMessage.class
D:\src\java\CherryGame\build\classes\cherrygame\panelMessage2.class
D:\src\java\CherryGame\build\classes\cherrygame\panelMessage3.class
D:\src\java\CherryGame\build\classes\lpt\LPT.class
D:\src\java\CherryGame\build\classes\lpt\events\Events.class
D:\src\java\CherryGame\build\classes\lpt\events\LPTEvent.class
D:\src\java\CherryGame\build\classes\lpt\events\LPTEventListener.class
D:\src\java\CherryGame\build\classes\lpt\ieee1284\PPParallelPort.class
D:\src\java\CherryGame\build\classes\netbeansapplication\customBorder.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$1.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$10.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$11.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$12.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$13.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$14.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$2.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$3.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$4.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$5.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$6.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$7.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$8.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$9.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication.class
D:\src\java\CherryGame\dist\NetBeansApplication.jar
D:\src\java\CherryGame\dist\javadoc\package-list
D:\src\java\CherryGame\dist\javadoc\stylesheet.css
D:\src\java\CherryGame\dist\javadoc\resources\inherit.gif
D:\src\java\CherryGame\nbproject\build-impl.xml
D:\src\java\CherryGame\nbproject\genfiles.properties
D:\src\java\CherryGame\nbproject\project.properties
D:\src\java\CherryGame\nbproject\project.xml
D:\src\java\CherryGame\nbproject\private\private.properties
D:\src\java\CherryGame\nbproject\private\private.xml
D:\src\java\CherryGame\src\customBorder.java
D:\src\java\CherryGame\src\nbApplication.form
D:\src\java\CherryGame\src\nbApplication.java
D:\src\java\CherryGame\src\cherrygame\addMoneyFrame.form
D:\src\java\CherryGame\src\cherrygame\addMoneyFrame.java
D:\src\java\CherryGame\src\cherrygame\addMoneyPanel.form
D:\src\java\CherryGame\src\cherrygame\addMoneyPanel.java
D:\src\java\CherryGame\src\cherrygame\cardsPanel.java
D:\src\java\CherryGame\src\cherrygame\cardsWindow.form
D:\src\java\CherryGame\src\cherrygame\cardsWindow.java
D:\src\java\CherryGame\src\cherrygame\cherryGameBackPanel.form
D:\src\java\CherryGame\src\cherrygame\cherryGameBackPanel.java
D:\src\java\CherryGame\src\cherrygame\cherryWindow.java
D:\src\java\CherryGame\src\cherrygame\customBorderCherryGame.java
D:\src\java\CherryGame\src\cherrygame\global.java
D:\src\java\CherryGame\src\cherrygame\helpPanelOne.form
D:\src\java\CherryGame\src\cherrygame\helpPanelOne.java
D:\src\java\CherryGame\src\cherrygame\imagesPanel.java
D:\src\java\CherryGame\src\cherrygame\messageWindow.form
D:\src\java\CherryGame\src\cherrygame\messageWindow.java
D:\src\java\CherryGame\src\cherrygame\messageWindow2.form
D:\src\java\CherryGame\src\cherrygame\messageWindow2.java
D:\src\java\CherryGame\src\cherrygame\messageWindow3.form
D:\src\java\CherryGame\src\cherrygame\messageWindow3.java
D:\src\java\CherryGame\src\cherrygame\nbCherryGame.form
D:\src\java\CherryGame\src\cherrygame\nbCherryGame.java
D:\src\java\CherryGame\src\cherrygame\panelMessage.form
D:\src\java\CherryGame\src\cherrygame\panelMessage.java
D:\src\java\CherryGame\src\cherrygame\panelMessage2.form
D:\src\java\CherryGame\src\cherrygame\panelMessage2.java
D:\src\java\CherryGame\src\cherrygame\panelMessage3.form
D:\src\java\CherryGame\src\cherrygame\panelMessage3.java
D:\src\java\CherryGame\src\lpt\LPT.java
D:\src\java\CherryGame\src\lpt\events\Events.java
D:\src\java\CherryGame\src\lpt\events\LPTEvent.java
D:\src\java\CherryGame\src\lpt\events\LPTEventListener.java
D:\src\java\CherryGame\src\lpt\ieee1284\PPParallelPort.java
</listing>
<listing foldername="NormalWindow">
D:\src\java\NormalWindow\build.xml
D:\src\java\NormalWindow\manifest.mf
D:\src\java\NormalWindow\build\classes\normalwindow\global.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$1.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$10.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$11.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$12.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$13.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$14.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$15.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$16.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$17.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$2.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$3.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$4.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$5.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$6.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$7.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$8.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$9.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow.class
D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$1.class
D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$2.class
D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$3.class
D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$4.class
D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$5.class
D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog.class
D:\src\java\NormalWindow\dist\NormalWindow.jar
D:\src\java\NormalWindow\dist\README.TXT
D:\src\java\NormalWindow\dist\_normalwindow.jar
D:\src\java\NormalWindow\dist\lib\swing-layout-1.0.jar
D:\src\java\NormalWindow\nbproject\build-impl.xml
D:\src\java\NormalWindow\nbproject\genfiles.properties
D:\src\java\NormalWindow\nbproject\project.properties
D:\src\java\NormalWindow\nbproject\project.xml
D:\src\java\NormalWindow\nbproject\private\private.properties
D:\src\java\NormalWindow\nbproject\private\private.xml
D:\src\java\NormalWindow\src\normalwindow\global.java
D:\src\java\NormalWindow\src\normalwindow\NormalWindow.form
D:\src\java\NormalWindow\src\normalwindow\NormalWindow.java
D:\src\java\NormalWindow\src\normalwindow\PasswordDialog.form
D:\src\java\NormalWindow\src\normalwindow\PasswordDialog.java
</listing>
<listing foldername="cgwindow2">
D:\src\java\cgwindow2\build.xml
D:\src\java\cgwindow2\manifest.mf
D:\src\java\cgwindow2\mfile.txt
D:\src\java\cgwindow2\UserFile.txt
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyPanel.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$1.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$10.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$11.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$12.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$13.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$14.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$2.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$3.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$4.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$5.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$6.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$7.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$8.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$9.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow.class
D:\src\java\cgwindow2\build\classes\addmoney\customBorderForAddMoneyWindow.class
D:\src\java\cgwindow2\build\classes\addmoney\global.class
D:\src\java\cgwindow2\dist\cgwindow2.jar
D:\src\java\cgwindow2\dist\README.TXT
D:\src\java\cgwindow2\dist\lib\swing-layout-1.0.jar
D:\src\java\cgwindow2\nbproject\build-impl.xml
D:\src\java\cgwindow2\nbproject\genfiles.properties
D:\src\java\cgwindow2\nbproject\jax-ws.xml
D:\src\java\cgwindow2\nbproject\project.properties
D:\src\java\cgwindow2\nbproject\project.xml
D:\src\java\cgwindow2\nbproject\private\private.properties
D:\src\java\cgwindow2\nbproject\private\private.xml
D:\src\java\cgwindow2\src\addmoney\addMoneyPanel.form
D:\src\java\cgwindow2\src\addmoney\addMoneyPanel.java
D:\src\java\cgwindow2\src\addmoney\addMoneyWindow.form
D:\src\java\cgwindow2\src\addmoney\addMoneyWindow.java
D:\src\java\cgwindow2\src\addmoney\customBorderForAddMoneyWindow.java
D:\src\java\cgwindow2\src\addmoney\global.java
</listing>
About my thread subject, my clients machine is a debian sarge 3.0 and when I compiled it there with ANT It says, "normalwindow" package not found. other 2 errors were due to "normalwindow".
Edited by: mokaddim on Sep 12, 2007 2:08 PMJulio.Faerman wrote:
Hello,
I am trying to run my annotation processor using ant.
I already built the processor, the javax.annotation.processor.Processor file is in the correct place with the correct content.
The jar with the processor is in the classpath (i can see it in ant -v), but it does not process my classes. in fact, i get the warning:
warning: Annotation processing without compilation requested but no processors were found.Do i have to specify -processor or -processorpath or can i just leave it to the default classpath scanning?When -processor is not given, a service loader is used to find the annotation processors (if any). In addition to the class files of the process, to allow your processor to be found as a service, make sure you've also provided the needed META-INF data in the jar file. The general service file format is described in
http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html
That said, I'd recommend setting an explicit processor path separate from your general classpath. -
Can not understand why it is not working, plz help.
I am a student trying to understand flex builder 3, but it is very hard and when something is going wrong I think that I will never undersand how is it working.
Hete is my program and do not see a problem. Maybe someone could help me?
MAIN APLICATION :
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" horizontalAlign="left"
xmlns:omp="components.*" themeColor="#444444"
backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#686868, #111111]"
initialize="klaseServ.send(),mokinysServ.send()"
xmlns:comp="components.*">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
[Bindable] private var klaseArray:ArrayCollection;
[Bindable] private var mokinysArray:ArrayCollection;
// PRIVATE -------------------------------------------------------------------------
private function resultKl(event:ResultEvent):void{
klaseArray=event.result.ROWSET.ROW;
private function resultMo(event:ResultEvent):void{
mokinysArray=event.result.ROWSET.ROW;
// PUBLIC ---------------------------------------------------------------
]]>
</mx:Script>
<mx:HTTPService id="klaseServ"
url="data/vkklase.xml"
result="resultKl(event)" />
<mx:HTTPService id="mokinysServ"
url="data/vkmokinys.xml"
result="resultMo(event)" />
<mx:VBox x="0" y="0" width="100%" verticalGap="0">
<mx:Canvas height="70" width="100%">
<mx:Panel title="{horizontalList.selectedItem.PAVADINIMAS}"
height="70" width="100%" layout="horizontal">
<mx:HorizontalList id="horizontalList"
labelField="PAVADINIMAS"
dataProvider="{klaseArray}"
itemRenderer="icon"
columnCount="10"
columnWidth="30"
rowCount="1"
rowHeight="30"
horizontalScrollPolicy="on" />
</mx:Panel>
</mx:Canvas>
<mx:VBox height="90" width="100%">
<mx:Panel height="90" layout="horizontal" title="Asmuo" width="100%" backgroundAlpha="1.0">
<mx:HorizontalList height="50" width="100%" dataProvider="mokinysArray"/>
</mx:Panel>
</mx:VBox>
<mx:HBox height="15" color="#FFFFFF" width="100%" backgroundColor="#636161">
<mx:Label id="vardasLab" text="Vardas" />
<mx:Label id="pavardeLab" text="Pavardė" />
<mx:Label id="amziusLab" text="Amžius" />
</mx:HBox>
<mx:HBox>
<mx:VBox width="60" verticalGap="0">
<mx:Image source="icons/photoIco.jpg" height="60" width="60"/>
<mx:Image source="icons/photoIco.jpg" height="60" width="60"/>
<mx:Image source="icons/photoIco.jpg" height="60" width="60"/>
<mx:Image source="icons/photoIco.jpg" height="60" width="60"/>
<mx:Image source="icons/photoIco.jpg" height="60" width="60"/>
<mx:Image source="icons/photoIco.jpg" height="60" width="60"/>
</mx:VBox>
<mx:Canvas>
</mx:Canvas>
</mx:HBox>
</mx:VBox>
</mx:Application>
ICON.MXML
<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/02/15/creating-a-simple-image-gallery-with-the-flex-hori zontallist-control/ -->
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
horizontalAlign="center"
verticalAlign="middle">
<mx:Label text="{data.PAVADINIMAS}" />
<mx:Label text="{data.KIEKMOKINIU}" />
</mx:VBox>
data/vkklase.xml
<?xml version="1.0" ?>
- <ROWSET>
- <ROW>
<ID>2</ID>
<PAVADINIMAS>7B</PAVADINIMAS>
<KIEKMOKINIU>1</KIEKMOKINIU>
</ROW>
- <ROW>
<ID>1</ID>
<PAVADINIMAS>1A</PAVADINIMAS>
<KIEKMOKINIU>2</KIEKMOKINIU>
</ROW>
- <ROW>
<ID>3</ID>
<PAVADINIMAS>7C</PAVADINIMAS>
<KIEKMOKINIU>3</KIEKMOKINIU>
</ROW>
</ROWSET>
data/vkmokinys.xml
<?xml version="1.0" ?>
- <ROWSET>
- <ROW>
<ID>2</ID>
<KLASE>1A</KLASE>
<VARDAS>Paulius</VARDAS>
<PAVARDE>Paulauskas</PAVARDE>
<GIMMETAI>2002</GIMMETAI>
<GIMMEN>12</GIMMEN>
<GIMDIEN>20</GIMDIEN>
</ROW>
- <ROW>
<ID>3</ID>
<KLASE>1A</KLASE>
<VARDAS>Saulius</VARDAS>
<PAVARDE>Saulenas</PAVARDE>
<GIMMETAI>2003</GIMMETAI>
<GIMMEN>1</GIMMEN>
<GIMDIEN>12</GIMDIEN>
</ROW>
- <ROW>
<ID>1</ID>
<KLASE>7B</KLASE>
<VARDAS>Antanas</VARDAS>
<PAVARDE>Antanavicius</PAVARDE>
<GIMMETAI>1997</GIMMETAI>
<GIMMEN>2</GIMMEN>
<GIMDIEN>1</GIMDIEN>
</ROW>
- <ROW>
<ID>5</ID>
<KLASE>7C</KLASE>
<VARDAS>Stasys</VARDAS>
<PAVARDE>Stasevicius</PAVARDE>
<GIMMETAI>1997</GIMMETAI>
<GIMMEN>3</GIMMEN>
<GIMDIEN>18</GIMDIEN>
</ROW>
- <ROW>
<ID>6</ID>
<KLASE>7C</KLASE>
<VARDAS>Bronius</VARDAS>
<PAVARDE>Broniavicius</PAVARDE>
<GIMMETAI>1996</GIMMETAI>
<GIMMEN>12</GIMMEN>
<GIMDIEN>30</GIMDIEN>
</ROW>
- <ROW>
<ID>4</ID>
<KLASE>7C</KLASE>
<VARDAS>Mantas</VARDAS>
<PAVARDE>Mantavicius</PAVARDE>
<GIMMETAI>1996</GIMMETAI>
<GIMMEN>11</GIMMEN>
<GIMDIEN>3</GIMDIEN>
</ROW>
</ROWSET>Something wrong with ITEMRENDERER.... I dont know what is wrong, but it is just isnt working when i try to compile.. =(
-
Delphi 3 or Delphi XE gives Invalid class string error
I have Delphi 3 and a runtime error occurs when I RUN this project. No build errors...
The form appears correctly and I put the path to the GroupWise domain directory :
F:\opt\novell\groupwise\mail\dom1
I click on the CONNECT button and the error is :
"Project admin_api.exe raised an exception class EOleSysError with message 'Invalid class string'. Process stopped. Use Step or Run to Continue"
For Delphi XE the error is only "Invalid class string".
What am I doing wrong ?
Thank You
Have downloaded the same GroupWise Administrative Object API code
https://www.novell.com/developer/ndk...bject_api.html
unit App_obj;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, OleAuto, Ole2;
type
TForm1 = class(TForm)
Button1: TButton;
Label6: TLabel;
UserID: TEdit;
Label7: TLabel;
LastName: TEdit;
Label8: TLabel;
FirstName: TEdit;
UserDistinguishedName: TEdit;
Label10: TLabel;
SystemInfo: TGroupBox;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
SystemDescription: TEdit;
SystemDistinguishedName: TEdit;
SystemLastModifiedBy: TEdit;
ConnectedDomainName: TEdit;
SystemObjectID: TEdit;
PostOfficeList: TComboBox;
Label11: TLabel;
Label9: TLabel;
UserContext: TEdit;
Label12: TLabel;
Label13: TLabel;
Label14: TLabel;
Label15: TLabel;
Label16: TLabel;
DomainPath: TEdit;
Button2: TButton;
procedure Initialize(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
vSystem:variant;
vDomain:variant;
const
ADMIN_NAME = 'Admin';
sDOT = '.';
implementation
{$R *.DFM}
procedure TForm1.Initialize(Sender: TObject);
begin
//Initialize controls
DomainPath.Text:='';
SystemDescription.Text:='';
SystemDistinguishedName.Text:='';
SystemLastModifiedBy.Text:='';
ConnectedDomainName.Text:='';
SystemObjectID.Text:='';
UserID.Text:='';
LastName.Text:='';
FirstName.Text:='';
UserDistinguishedName.Text:='';
UserContext.Text:='';
UserID.SetFocus;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
vUsers:variant;
vUser:variant;
stemp:string;
idotpos:integer;
SelectedPO:string;
sAdmin:string;
begin
//Get Selected PostOffice
SelectedPO:=PostOfficeList.Items[PostOfficeList.ItemIndex];
//Get Users Object
vUsers:=vDomain.Users;
//Find Admin user object
vUser:=vUsers.Item(ADMIN_NAME,SelectedPO,Connected DomainName.Text);
If UserContext.Text = '' then begin
//Get Admin Context and use as Default
sAdmin:=vUser.NetID;
idotpos:=Pos(sDOT,sAdmin);
stemp:=Copy(sAdmin,idotpos,256); //Copy everything after first dot include dot
UserContext.Text:=stemp;
end else begin
//Use context string
stemp:=UserContext.Text;
end;
//Make Distinguished name by adding UserID and admin context
stemp:=UserID.Text+stemp;
//Display User distinguished name
UserDistinguishedName.Text:=stemp;
//Add user
vUser:=vUsers.Add(UserID.Text,LastName.Text,stemp,
'',SelectedPO);
//Set User first name
vUser.GivenName:=FirstName.Text;
//Commit User first name to system
vUser.Commit;
end;
procedure TForm1.Button2Click(Sender: TObject);
var
vPostOffice:variant;
vPostOffices:variant;
vPOIterator:variant;
begin
//Get GroupWise Admin Object and connect to it
if(DomainPath.Text = '') then begin
ShowMessage('You must enter a valid Domain Path. Then press Login');
exit;
end;
vSystem:=CreateOleObject('NovellGroupWareAdmin');
vSystem.Connect(DomainPath.Text);
//Get the connected Domain
vDomain:=vSystem.ConnectedDomain;
//List some Domain properties
SystemDescription.Text:=vDomain.Description;
SystemDistinguishedName.Text:=vDomain.Distinguishe dName;
SystemLastModifiedBy.Text:=vDomain.LastModifiedBy;
ConnectedDomainName.Text:=vDomain.Name;
SystemObjectID.Text:=vDomain.ObjectID;
//Initialize controls
UserID.Text:='';
LastName.Text:='';
FirstName.Text:='';
UserDistinguishedName.Text:='';
UserContext.Text:='';
UserID.SetFocus;
//Get list of PostOffices for connected Domain
vPostOffices:=vDomain.PostOffices;
vPOIterator:=vPostOffices.CreateIterator;
vPostOffice:=vPOIterator.Next;
PostOfficeList.Clear;
While( (NOT VarIsNULL(vPostOffice)) And (NOT varisempty(vPostOffice))) do begin
PostOfficeList.Items.Add(vPostOffice.Name);
vPostOffice:=vPOIterator.Next;
end;
//Set index to first item in list
PostOfficeList.ItemIndex:=0;
end;
end.On 9/24/2013 10:46 PM, bperez wrote:
>
> I have Delphi 3 and a runtime error occurs when I RUN this project. No
> build errors...
>
> The form appears correctly and I put the path to the GroupWise domain
> directory :
>
> F:\opt\novell\groupwise\mail\dom1
>
> I click on the CONNECT button and the error is :
>
> "Project admin_api.exe raised an exception class EOleSysError with
> message 'Invalid class string'. Process stopped. Use Step or Run to
> Continue"
>
> For Delphi XE the error is only "Invalid class string".
>
> What am I doing wrong ?
>
> Thank You
>
> Have downloaded the same GroupWise Administrative Object API code
> https://www.novell.com/developer/ndk...bject_api.html
>
> {/************************************************** *************************
>
> ************************************************** **************************/}
> unit App_obj;
>
> interface
>
> uses
> Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
> Dialogs,
> StdCtrls, OleAuto, Ole2;
>
> type
> TForm1 = class(TForm)
> Button1: TButton;
> Label6: TLabel;
> UserID: TEdit;
> Label7: TLabel;
> LastName: TEdit;
> Label8: TLabel;
> FirstName: TEdit;
> UserDistinguishedName: TEdit;
> Label10: TLabel;
> SystemInfo: TGroupBox;
> Label1: TLabel;
> Label2: TLabel;
> Label3: TLabel;
> Label4: TLabel;
> Label5: TLabel;
> SystemDescription: TEdit;
> SystemDistinguishedName: TEdit;
> SystemLastModifiedBy: TEdit;
> ConnectedDomainName: TEdit;
> SystemObjectID: TEdit;
> PostOfficeList: TComboBox;
> Label11: TLabel;
> Label9: TLabel;
> UserContext: TEdit;
> Label12: TLabel;
> Label13: TLabel;
> Label14: TLabel;
> Label15: TLabel;
> Label16: TLabel;
> DomainPath: TEdit;
> Button2: TButton;
> procedure Initialize(Sender: TObject);
> procedure Button1Click(Sender: TObject);
> procedure Button2Click(Sender: TObject);
> private
> { Private declarations }
> public
> { Public declarations }
> end;
>
> var
> Form1: TForm1;
> vSystem:variant;
> vDomain:variant;
>
> const
> ADMIN_NAME = 'Admin';
> sDOT = '.';
>
> implementation
>
> {$R *.DFM}
>
> procedure TForm1.Initialize(Sender: TObject);
> begin
> //Initialize controls
> DomainPath.Text:='';
> SystemDescription.Text:='';
> SystemDistinguishedName.Text:='';
> SystemLastModifiedBy.Text:='';
> ConnectedDomainName.Text:='';
> SystemObjectID.Text:='';
>
> UserID.Text:='';
> LastName.Text:='';
> FirstName.Text:='';
> UserDistinguishedName.Text:='';
> UserContext.Text:='';
> UserID.SetFocus;
>
> end;
>
> procedure TForm1.Button1Click(Sender: TObject);
> var
> vUsers:variant;
> vUser:variant;
> stemp:string;
> idotpos:integer;
> SelectedPO:string;
> sAdmin:string;
> begin
> //Get Selected PostOffice
> SelectedPO:=PostOfficeList.Items[PostOfficeList.ItemIndex];
>
> //Get Users Object
> vUsers:=vDomain.Users;
>
> //Find Admin user object
> vUser:=vUsers.Item(ADMIN_NAME,SelectedPO,Connected DomainName.Text);
>
> If UserContext.Text = '' then begin
>
> //Get Admin Context and use as Default
> sAdmin:=vUser.NetID;
> idotpos:=Pos(sDOT,sAdmin);
> stemp:=Copy(sAdmin,idotpos,256); //Copy everything after first dot
> include dot
> UserContext.Text:=stemp;
>
> end else begin
> //Use context string
> stemp:=UserContext.Text;
> end;
>
> //Make Distinguished name by adding UserID and admin context
> stemp:=UserID.Text+stemp;
>
> //Display User distinguished name
> UserDistinguishedName.Text:=stemp;
>
> //Add user
> vUser:=vUsers.Add(UserID.Text,LastName.Text,stemp,
> '',SelectedPO);
>
> //Set User first name
> vUser.GivenName:=FirstName.Text;
>
> //Commit User first name to system
> vUser.Commit;
> end;
>
>
>
> procedure TForm1.Button2Click(Sender: TObject);
> var
> vPostOffice:variant;
> vPostOffices:variant;
> vPOIterator:variant;
>
> begin
> //Get GroupWise Admin Object and connect to it
> if(DomainPath.Text = '') then begin
> ShowMessage('You must enter a valid Domain Path. Then press
> Login');
> exit;
> end;
> vSystem:=CreateOleObject('NovellGroupWareAdmin');
>
>
> vSystem.Connect(DomainPath.Text);
> //Get the connected Domain
> vDomain:=vSystem.ConnectedDomain;
>
> //List some Domain properties
> SystemDescription.Text:=vDomain.Description;
> SystemDistinguishedName.Text:=vDomain.Distinguishe dName;
> SystemLastModifiedBy.Text:=vDomain.LastModifiedBy;
> ConnectedDomainName.Text:=vDomain.Name;
> SystemObjectID.Text:=vDomain.ObjectID;
>
> //Initialize controls
> UserID.Text:='';
> LastName.Text:='';
> FirstName.Text:='';
> UserDistinguishedName.Text:='';
> UserContext.Text:='';
> UserID.SetFocus;
>
> //Get list of PostOffices for connected Domain
> vPostOffices:=vDomain.PostOffices;
> vPOIterator:=vPostOffices.CreateIterator;
> vPostOffice:=vPOIterator.Next;
> PostOfficeList.Clear;
> While( (NOT VarIsNULL(vPostOffice)) And (NOT
> varisempty(vPostOffice))) do begin
> PostOfficeList.Items.Add(vPostOffice.Name);
> vPostOffice:=vPOIterator.Next;
> end;
>
> //Set index to first item in list
> PostOfficeList.ItemIndex:=0;
> end;
>
> end.
>
>
gw client installed? Novell client installed?
Maybe you are looking for
-
Hello, I have a 2009 Mac Pro 4.1 Mac OSX version 10.6.8 Processor - 2 x 2.26 GHz Quad-Core Intel Xeon Memory - 24GB Graphics Card - ATI Radeon HD 4870 I use After Effects and Premiere Pro daily for my work. I am not too technically minded. I want to
-
I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you
-
Supporting AiR links app:// or with AiRAliases file:///
Hello We are using Strobe Media Playback in our App and it works in all Browsers and on the iPad. But it don't work for our Adobe AiR App. We always get "We are unsable to connect to the contetn you've requested....". As far as we can see, the proble
-
Count of cases closed in last 10
Hi All 1) I have requirement to count the cases closed in the last 10 days. For this I have created the a logical column(if case closed date is equal to case closed date then count(case id)). And created a prompt based on time key(for this prompt I h
-
My internal CD drive keep ejecting any CD or DVD.
This happens after upgrade to Marvickes. I read the different threads about this issue and tried all suggestions. But nothing worked. 1 more thing is that I noticed latest was Nov 13, so any final solution? I have Mac Book Pro 13, late 2011 Thank you