Can't set class cfol error
hey
i could really use some help here. Basically I am trying to get a sript working that monitors where an application is open and if it isn't then for it to copy a folder (that countains many files and subfolders) over to a hidden mounted volume...here is what I have:
-- insert your existing code here on idle tell application "System Events" to ¬ set exists_ to exists process "name of app to watch" if exists_ is false then tell application "Finder" duplicate folder "path:to:source:" to folder "path:to:destination:" end tell return -- quit script end if return 10 -- checks every 10 seconds to see if app has been quit end idle
any ideas? it gives me the following error:
"can't set <<class cfol>> "/Volumes/VantageGaming/Batman Arkham Aslyum/SaveData/6a38a6200000001 of appliation "Finder" to <<class cfol>> "Users?VantageGaming/Library/Application Support/Feral Interactive/Batman Arkham Aslyum/SaveData/6a38a6200000001" of application "Finder".
i would realy appreciate any help...i'm would consider myself a novice!
peace will
hey
EDIT: sorry here is the code that i have tried....we are gettting close but applescript for me is so frustrating! thanks for taking the time to play with the code...
i'm using this code:
on idle
set source to "/Users/VantageGaming/Library/Application Support/Feral Interactive/Batman Arkham
Asylum/SaveData/6a38a62600000001" as POSIX file
set destination to "/Volumes/VantageGaming/Batman Arkham Asylum/SaveData/6a38a62600000001" as POSIX file
tell application "System Events" to ¬
set exists_ to exists process "Batman Arkham Asylum"
if exists_ is false then
tell application "Finder" to duplicate "/Users/VantageGaming/Library/Application Support/Feral Interactive/Batman Arkham Asylum/SaveData/6a38a62600000001" to "/Volumes/VantageGaming/Batman Arkham Asylum/SaveData/6a38a62600000001"
return
end if
return 10
end idle
it is still returning me a Can't make "/Users/VantageGaming/Library/Application Support/Feral Interactive/Batman Arkham Asylum/SaveData/6a38a62600000001" into type item
i'm trying to research about type item failures but can't find anything relevant yet....
uhhh
peace will
peace will
Similar Messages
-
How can i set a global error page for all error cod
how can i set a global error page for all error code?
i don't want to leave a long list in the web.xml file.could any one help me?
thanksIf u have a common Error JSP named as ErrorPage.jsp
You need to have the following piece of code in the JSP as :
<%@ page isErrorPage ="true"%>
This makes it as the Common Error Page for the Application. Now all you need to do is from other JSP's throw the Exception to teh container. The container will redirect to this Page and process accordingly.
Thanks and regards,
Pazhanikanthan. P -
How can i set class path in ubuntu JAVA_HOME ?
how can i set class path in ubuntu <JAVA_HOME>?
Note that on *nix
environment variable names are case sensitive.
Also, you are again being vague; is it [this it|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html] or [that it|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/java.html] -
"Can't set object server" Error during SLD Initialization
Hi,
During System Installation at SLD configuration, problems occured and
we skipped the step for later execution. After Installation and SPS13
Application, we tried again but the following error occurs.
Can't set object server
com.sap.engine.interfaces.cross.ObjectReferenceImpl incompatible with
com.sap.engine.services.applocking.LogicalLockingFactory
Here I'm attaching the defaulttrace.log section produced during the error
Defaulttrace.log
tion#administrators#SAP-J2EE-Engine#administrators#
#1.#001125BDBC10007600000028001420FA000443E69BC669DF#1200557641853#com.sap.lcr.webui.Admin#sap.com/com.sap.lcr#com.sap.lcr.webui.Admin#Administrator#6330##bporprod_BPP_1663750#Administrator#22947de0c4d411dccb66001125bdbc10#SAPEngine_Application_Thread[impl:3]_13##0#0#Error#1#/Applications/SLD#Plain###Can't set object server#
#1.#001125BDBC10007600000029001420FA000443E69BC66ACD#1200557641853#com.sap.lcr.webui.Admin#sap.com/com.sap.lcr#com.sap.lcr.webui.Admin#Administrator#6330##bporprod_BPP_1663750#Administrator#22947de0c4d411dccb66001125bdbc10#SAPEngine_Application_Thread[impl:3]_13##0#0#Error##Plain###Thrown:
java.lang.ClassCastException: com.sap.engine.interfaces.cross.ObjectReferenceImpl incompatible with com.sap.engine.services.applocking.LogicalLockingFactory
at com.sap.rprof.dbprofiles.JDBCProfileLock.<init>(JDBCProfileLock.java:52)
at com.sap.rprof.dbprofiles.JDBCProfileFactory.newProfileLock(JDBCProfileFactory.java:41)
at com.sap.rprof.dbprofiles.RemoteProfile.getRemoteProfileFromFactoryForUpdate(RemoteProfile.java:230)
at com.sap.lcr.start.EnvManager.getWriteableEnv(EnvManager.java:512)
at com.sap.lcr.webui.Admin.actionInitialSetup(Admin.java:877)
at com.sap.lcr.webui.Admin.doGet(Admin.java:231)
at com.sap.lcr.webui.Admin.doPost(Admin.java:61)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:215)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
#1.#001125BDBC10005F000092B3001420FA000443E69BE47659#1200557643822#com.sap.engine.services.security.roles.SecurityRoleImpl#sap.com/irj#com.sap.engine.services.security.roles.SecurityRoleImpl#Guest#6332####6047b4f0c44211dc8975001125bdbc10#Thread[Thread-53,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error#1#/System/Security/Audit/J2EE#Java###: Authorization check for caller assignment to J2EE security role [ : ].#3#ACCESS.ERROR#SAP-J2EE-Engine#administrators#
does anyone faced the problem, and please a solution purpose
regardsdefo an autorisation issue
#1.#001125BDBC10005F000092B3001420FA000443E69BE47659#1200557643822#com.sap.engine.services.security.roles.SecurityRoleImpl#sap.com/irj#com.sap.engine.services.security.roles.SecurityRoleImpl#Guest#6332####6047b4f0c44211dc8975001125bdbc10#Thread[Thread-53,5,SAPEngine_Application_Threadimpl:3]_Group##0#0#Error#1#/System/Security/Audit/J2EE#Java###: Authorization check for caller assignment to J2EE security role : .#3#ACCESS.ERROR#SAP-J2EE-Engine#administrators#
Where you assign the role depends on how you have setup your ume configuration - to the ABAP stack or have it managed in the Java stack
If its just a java stack configuration for user management page of the java stack
http://<servername>:50000/useradmin and give the user as many roles and permissions from there
otherwise its PFCG in the abap stack of your system -
Can't make «class ctnr» of alias - error message in script
I'm trying to take Apple's own "Add To File Names" script from a few years back and get it to work in 10.6.x but keep getting this error:
Can’t make «class ctnr» of alias "Macintosh HD:Library:Scripts:add to names.scpt" into type text.
I'm not an AppleScript expert by any stretch of the imagination. I'll paste the entire script unedited from Apple:
Add Prefix-Suffix to File Names
This script is designed to add a prefix or suffix to files in the front window of the desktop.
If no folder windows are open, the script will effect items on the desktop.
Copyright © 2001 Apple Computer, Inc.
You may incorporate this Apple sample code into your program(s) without
restriction. This Apple sample code has been provided "AS IS" and the
responsibility for its operation is yours. You are not permitted to
redistribute this Apple sample code as "Apple sample code" after having
made changes. If you're going to redistribute the code, we require
that you make it clear that the code was descended from Apple sample
code, but that you've made changes.
-- The following line is disabled due to a Menu Manager bug
--set the source_folder to (choose folder with prompt "Pick the folder containing the files to rename:")
try
tell application "Finder" to set the source_folder to (folder of the front window) as alias
on error -- no open folder windows
set the source_folder to path to desktop folder as alias
end try
set the prefixorsuffix to ""
repeat
display dialog "Enter the prefix or suffix to use:" default answer the prefixorsuffix buttons {"Cancel", "Prefix", "Suffix"}
copy the result as list to {the prefixorsuffix, the button_pressed}
if the prefixorsuffix is not "" then exit repeat
end repeat
set the item_list to list folder source_folder without invisibles
set source_folder to source_folder as string
repeat with i from 1 to number of items in the item_list
set this_item to item i of the item_list
set this_item to (source_folder & this_item) as alias
set this_info to info for this_item
set the current_name to the name of this_info
if folder of this_info is false and ¬
alias of this_info is false then
if the button_pressed is "Prefix" then
set the newfilename to the (the prefixorsuffix & the current_name) as string
else
set the newfilename to the (the current_name & the prefixorsuffix) as string
end if
my setitem_name(thisitem, the newfilename)
end if
end repeat
beep 2
on setitem_name(thisitem, newitemname)
tell application "Finder"
--activate
set the parentcontainerpath to (the container of this_item) as text
if not (exists item (the parentcontainerpath & newitemname)) then
try
set the name of this_item to newitemname
on error the error_message number the error_number
if the error_number is -59 then
set the error_message to "This name contains improper characters, such as a colon (:)."
else --the suggested name is too long
set the error_message to error_message -- "The name is more than 31 characters long."
end if
--beep
tell me to display dialog the error_message default answer newitemname buttons {"Cancel", "Skip", "OK"} default button 3
copy the result as list to {newitemname, button_pressed}
if the button_pressed is "Skip" then return 0
my setitem_name(thisitem, newitemname)
end try
else --the name already exists
--beep
tell me to display dialog "This name is already taken, please rename." default answer newitemname buttons {"Cancel", "Skip", "OK"} default button 3
copy the result as list to {newitemname, button_pressed}
if the button_pressed is "Skip" then return 0
my setitem_name(thisitem, newitemname)
end if
end tell
end setitemnameAny idea how to fix that?
Try replacing the following three lines:
else
*set the newfilename to the (the current_name & the prefixorsuffix) as string*
*end if*
with these ones:
else
*set name_extension to the name extension of this_info*
*set P to offset of name_extension in current_name*
*if P > 0 then*
*set current_name to text 1 through (P - 2) of current_name*
*set name_extension to "." & name_extension*
else
*set name_extension to ""*
*end if*
*set the newfilename to the (the current_name & the prefixorsuffix & name_extension) as string*
*end if* -
ERROR: Can't find class Startadmin
Hello,
why do I get this error message:
Can't find class Startadmin
I want to start my class Startadmin.java with "java Startadmin"!
The file is in the current path, so I tried "java -classpath .: Startadmin" too, but I sill get this error!
What can I do?Can you please post the solution, I'm having similar problem.
I set the classpath before compiling the program
export CLASSPATH=/usr/java/lib/classes.zip:/oracle/product/8.1.6/demo/lib/classes111.zip
When I try to run the program at the command prompt
$ java JdbcTest
I am getting error message "Can't find class JdbcTest"
When tried
$ java -classpath . JdbcTest
I was getting different error message
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver at JdbcTest.main(Compiled Code)
Any help is appreiated
Thanks
SJ -
Hi there,
I have added an external library (jtom) to my project. I get this runtime error when running my midlet:
Error: Can't find Class jtom.service.JTOMException.
When I extract the contents of the library(jtom), I can see that the class (jtom.service.JTOMException) exists. I can also see this class in myProject>>Build>>compiled folder.
I'm using Netbeans Mobility 5.5
Please Assist,
PheksCan you please post the solution, I'm having similar problem.
I set the classpath before compiling the program
export CLASSPATH=/usr/java/lib/classes.zip:/oracle/product/8.1.6/demo/lib/classes111.zip
When I try to run the program at the command prompt
$ java JdbcTest
I am getting error message "Can't find class JdbcTest"
When tried
$ java -classpath . JdbcTest
I was getting different error message
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver at JdbcTest.main(Compiled Code)
Any help is appreiated
Thanks
SJ -
HELP - 'Can't find class' error
I have just bought a new computer with Windows XP and downloaded and installed the new versions of the jdk, jre, etc.
I have written the Hello World program to check that everything works. It compiles fine, but when I try to run I get an error - Can't find class helloworld - and then it exits.
I know that the path variable is set correctly and I used to have to set the classpath as well, but have been told that this is not necessary.
I really need to get this working as have some important programming to do.
Thanks for any help,
OllyTry this;-
prompt>set CLASSPATH=
.......> return key
prompt>java helloWorld
Hello World!
prompt>
AMAZING!
This works fine. Thanx.
Is there any way to set it so that I dont have to do
the set classpath stuff each time I run a program
though?
CheersWell, set a system variable
CLASSPATH=.;<java_home>\jre\lib\rt.jar
regardws, Thomas -
i have win xp as my OS and jdk1.1.8 installed. I have my class path set correctly. I have changed the environment variable to c:\jdk1.1.8\bin
When I compile my java programs using javac at the command prompt, the program compiles successfully and the class file is made but when I run it I get the erro "can't find class filename"
I there some other way to set the class path in XP .
I don't understand where I am going wrong.
Please help...to run a java file you would type c:\jdk1.1.8\bin\java ClassName
leave it at that, i think the error your getting is caused when you type the .class extention ie. c:\jdk1.1.8\bin\java ClassName.class -
Can we set the Option "Show add-in user interface errors" with VBA?
Does anyone know if the advanced Option "Show add-in user interface errors" can be set with VBA in Project Pro 2013?
\Spiro Theopoulos, Montreal, QC (Canada)Spiro,
Sorry but as far as I know that option is not available through VBA.
John -
Port 993 error message, now can't set up MacMail for GMail account.
I've been using MacMail for years without a problem. Recently a little exclamation point came up with an error message indicating that the server couldn't connect with the 993 port for my Gmail account. After trying to update my software, restart the program, etc etc I deleted the account, thinking I'd just recreate a MacMail connection to my Gmail account. Not I'm receiving an error message that the server imap.gmail.com is not responding, and I can not set up a MacMail account linked to my Gmail.
I've seen lots of people with this problem, but no sufficient answers to correct it. I am not using a portable device, I am using my iMac to try to make this happen.
Please help! Any incite is much appreciated.
Thank you.
EmilyHi Emily,
For port 993, is SSL checked & authentication = Password?
Could this be it?
Gmail send but not receive...
Here are two steps that have come in handy in related situations
1) login to gmail on your computer or device via a web browser
2) once logged in successfully, go to this URL to unlock:
https://www.google.com/accounts/DisplayUnlockCaptch -
Error -10006 can't set object or data to object or data
Hi
Tripped up again by a silly error, I am trying to update an item in a record list but keep getting error -10006
Code below simplified but still produces the error, all help gratefully received.
set filePath to "/Users/Ours/Documents/Text File.txt"
set recordList to every paragraph of (read filePath) -- get all records
set AppleScript's text item delimiters to ","
set (text item 1 of item 1 of recordList) to "Ninth"
message is :
tell current application
read "/Users/Ours/Documents/Text File.txt"
--> "First,Second,Third
Result:
error "Can’t set text item 1 of \"First,Second,Third\" to \"Ninth\"." number -10006 from text item 1 of "First,Second,Third"You can't set text items directly like that. first convert the text to a list of text items, alter the list, then convert it back to text:
set filePath to "/Users/Ours/Documents/Text File.txt"
set recordList to every paragraph of (read filePath) -- get all records
set {oldTID, AppleScript's text item delimiters} to {my text item delimiters, ","}
set tempList to text items of recordList
set item 1 of tempList to "Ninth"
set recordList to tempList as text
set AppleScript's text item delimiters to oldTID -
how can i set up facetime (iphone 5s) if everytime i try it shows "an error occurred during activation"?
Try here > http://support.apple.com/kb/TS4268
-
iCloud says "you can't sing in because of a server error" running Windows Vista x32 service pack 2. Can't set it up on my PC any ideas?
I have used the solution below to fix mine and others that have run into this issue.
Start --> Programs --> Accessories (Right Click on Command Prompt) --> Run as Administrator
then type in: "Netsh winsock reset" (-without the quotes-)
Hit enter, restart PC, iCloud For PC should now connect without any server errors
(This solutions will work in some instances when trying to fix errors associated when you are unable to connect to iTunes also.) -
Can not set remote error true in reporting service's properties's advanced
can not set remote error true in reporting service's properties's advanced
美斯: 唔理幾多個皇上啦, 個波呢家係皇上果度!!!Hello,
Based on the limited information, I am not very clearly about you issue. In order to solve the problem more efficiently, I need to clarify some information. Are you get some error messages when you set EnableRemoteErrors to true? Or do you mean that it doesn’t
throw error message to us, but the property is useless? And could you tell me the edition of your SQL Server?
It is benefit for us to do further analysis. Thank you for your understanding.
The following document may help you:
http://technet.microsoft.com/en-us/library/aa337165(v=sql.110).aspx
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
Any Report for CUP to find Pending Approvals.
HI, Are we having any Standard report in CUP for finding CUP access request is pending with who's approval. From Search Request we are able to see in which stage it is pending and who approved but it won't tell who's approvals are pending. Is t
-
Unable to Disconnect (Eject) Network Drive (Share) 10.4.8
Help, please. Background: We are running a MacMini in our office that has SAMBA running to share files across both mac and pc space. Works fine, never have a problem with it. Problem: However, since the update to 10.4.8, I have now seen (about 4-5 ti
-
Posting a Goods Movement in SAP Retail Store
In SAP Retail Store, under Inventory Management>Goods Movement>Other Movement, when entering articles and quantities, if you want to use multiple Bus. trans. or Reason for Movmt. values, you have to post them separately. This requires you to post, e
-
I've never encounted this problem, and am struggling to master PS CS5 from CS3, so any help you can give me is greatly appreciated. I am trying to do a tile photomural of a wedding portrait from a 60 year old photo. The photo itself (and it is the o
-
How to post GI for delivery?
Hello I need to post GI for delivery ref to Sales order (that referencies production order). I tried MIGO_GI - Other (MIGO) but it doesnt allow 601 MT I just need to generate testing data Thanks , I know you will help me this bloody hot day!