D2kWutil error at runtime, but not in Forms Developer
Hi,
I need 'Form on top as SDI' (C/S 6.0.8.) and it works on my WNT machine stabil, also at runtime:
W-N-F-I Trigger
OnTop.Window_On_Top('WINDOW1');
On my WXP machine the same code
The runtime start with usesdi=NO is OK, but not with usesdi=YES :
there is a error: 'FRM 06503: PL/SQL Function returned without value.'
Here is a debug-log from the error run:
<00> SetDebug: Logging to File chk-debug-new.log
<99> Win_API(init): Searching For DLL (D2KWUT60.DLL)
<99> Win_API(init): Preload location not set
<99> Win_API(init): DLL loaded from D2KWUTIL60_PATH (d:\orawork\d2kwut60\)
<99> Win_API(init): DLL Found and Loaded
<99> PreLoad: Args: (None)
<99> DLLVersion: Args: <No Arguments>
<99> Register_Function_Call: Ftn="d2kwutil_Version", DLL Count=1, Initial Reg
<99> DLLVersion: Result: Version=D2KWUT60.DLL Version 6.0.6.0 Production
<99> Play_Wav: Args: FileName="SystemStart", Asynchronous=TRUE, RaiseExceptions=FALSE
<99> Register_Function_Call: Ftn="d2kwutil_PlaySound", DLL Count=1, Initial Reg
<99> Play_WAV: Result: RC=1
<99> Get_Parent_Window: Args: Window_Handle =198416, Recursive=TRUE, RaiseExceptions=FALSE
<99> Register_Function_Call: Ftn="d2kwutil_ParentWin", DLL Count=1, Initial Reg
<99> Get_Parent_Window: Result: RC=0
<99> Add_Error: Get_Parent_Window: Unable to obtain parent window handle
<99> Get_Parent_Window: Args: Window_Handle =329460, Recursive=TRUE, RaiseExceptions=FALSE
<99> Get_Parent_Window: Result: RC=0
<99> Add_Error: Get_Parent_Window: Unable to obtain parent window handle
<99> Get_Parent_Window: Args: Window_Handle =329460, Recursive=TRUE, RaiseExceptions=FALSE
<99> Get_Parent_Window: Result: RC=0
<99> Add_Error: Get_Parent_Window: Unable to obtain parent window handle
The ok debug:
<00> SetDebug: Logging to File chk-debug-new.log
<99> Win_API(init): Searching For DLL (D2KWUT60.DLL)
<99> Win_API(init): Preload location not set
<99> Win_API(init): DLL loaded from D2KWUTIL60_PATH (d:\orawork\d2kwut60\)
<99> Win_API(init): DLL Found and Loaded
<99> PreLoad: Args: (None)
<99> DLLVersion: Args: <No Arguments>
<99> Register_Function_Call: Ftn="d2kwutil_Version", DLL Count=1, Initial Reg
<99> DLLVersion: Result: Version=D2KWUT60.DLL Version 6.0.6.0 Production
<99> Play_Wav: Args: FileName="SystemStart", Asynchronous=TRUE, RaiseExceptions=FALSE
<99> Register_Function_Call: Ftn="d2kwutil_PlaySound", DLL Count=1, Initial Reg
<99> Play_WAV: Result: RC=1
<99> Get_Parent_Window: Args: Window_Handle =526002, Recursive=TRUE, RaiseExceptions=FALSE
<99> Register_Function_Call: Ftn="d2kwutil_ParentWin", DLL Count=1, Initial Reg
<99> Get_Parent_Window: Result: RC=198372
What is wrong?
Best Regards
Friedhold
Hi Duncan,
thank you for the tip:
I've modified the OnTop Package and it works fine
in SDI-mode (the Form is permanent on top!):
PROCEDURE Window_On_Top (Window_Name IN WINDOW) is
hWnd PLS_INTEGER;
hParent PLS_INTEGER;
iRC PLS_INTEGER;
BEGIN
hWnd := to_number(get_window_property(Window_Name,WINDOW_HANDLE));
------- hParent := win_api_utility.get_parent_window(hWnd,TRUE,FALSE);
------- if hParent <> 0 then
------- hWnd := hParent;
------- end if;
iRC := i_SetwindowPos(fh_SetWindowPos,hwnd,-1,0,0,0,0,19);
END;
Best Regards
Friedhold
Similar Messages
-
Error in RunTime but not in IDE?
with the following code snippet from ReadFromOra
Dim ConOra As OracleConnection = New OracleConnection()
ConOra.ConnectionString = "User Id=USER;Password=PASSWORD;Data
Source=orcl9i;"
Dim Sql As String = "select * from CCO_MOTD order by ID "
Dim cmd As OracleCommand = New OracleCommand(Sql)
cmd.Connection = ConOra
cmd.CommandType = CommandType.Text
' Execute command, create OracleDataReader object
Dim reader As OracleDataReader = cmd.ExecuteReader()
While (reader.Read())
Message(reader.GetDecimal(12)) = reader.GetString(0)
MaxMessage = reader.GetDecimal(12)
Console.WriteLine("MSG: " + Message(MaxMessage))
End While
cmd.Dispose()
and the exception text:
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an
object.
at MOTD.Module1.ReadFromOra() in C:\Documents and Settings\wellss\My
Documents\Visual Studio Projects\WindowsApplication2\Module1.vb:line 33
at MOTD.FrmMOTD.FrmMOTD_Load(Object sender, EventArgs e) in C:\Documents
and Settings\wellss\My Documents\Visual Studio
Projects\WindowsApplication2\FORMMOTD.vb:line 143
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
Everyone runs happy and fine in the IDE. When I create the install files, or run the .exe, it throws a 'Object reference not set to an instance of an object' error at the While(reader.Read()). This happens on other systems as well as my own. I've checked to make sure that reader isn't 'Nothing' before the read.
An interesting note, when running the exe file on a coworkers machine, who's setup is the same as mine (same version of .NET framework, same version of VS.NET and same version of Oracle's ODP.NET) - things run just fine when running the .exe file.
Where do I go from here, is this a known issue, help ?
Thanks much in advance...
Stu
(posted this in the microsoft.public.dotnet.languages.vb newsgroup, posting here as well per one of the suggestions).Arnold,
I checked the security settings and confirmed that they are not turned off. Are there other settings that would cause this?
thanks!
Stu -
SpryHiddenRegion error in IE7 but not FireFox
Here is a copy of the code and the errors I get. Does anyone
have any ideas why this would happen in IE only?
<div spry:region='dsPages' class="SpryHiddenRegion"
style="height:350px; overflow:auto;">
<div spry:state='loading'>Loading data...</div>
<div spry:state='error'>Failed to load
data.</div>
<table spry:state='ready' class="mylist">
<tr id="top">
<th onClick="dsPages.sort('id');">ID</th>
<th onClick="dsPages.sort('name');">NAME</th>
</tr>
<tbody spry:repeatchildren='dsPages'
spry:choose="choose">
<tr spry:when="{id} == selectedID"
class="SelectedLastClass" id="{ds_RowID}"
onClick="dsPages.setCurrentRow('{ds_RowID}');pagesSelect({id});"
spry:hover='HoverClass' spry:select='SelectedClass'>
<td>{id} </td>
<td>{name} </td>
</tr>
<tr spry:default="default" id="{ds_RowID}"
onClick="dsPages.setCurrentRow('{ds_RowID}');pagesSelect({id});"
spry:hover='HoverClass' spry:select='SelectedClass'>
<td>{id} </td>
<td>{name} </td>
</tr>
</tbody>
</table>
</div>
ERROR:
expected ':'
and
Spry.Data.updateRegion(spryregion1) caught an exception:
[object Error]
Thanks for your help.
Jimi have reduced the code to the following:
<script type="text/javascript">
dsPages = new
Spry.Data.XMLDataSet('views/pages/getdata_pages.cfm',
'/dataset/row', {useCache: false});
</script>
<div spry:region='dsPages' class="SpryHiddenRegion"
style="height:350px; overflow:auto;">
<div spry:state='loading'>Loading data...</div>
<div spry:state='error'>Failed to load
data.</div>
<table spry:state='ready' class="mylist">
</table>
</div>
and i get the following error in IE but not FireFox:
Spry.Data.updateRegion(spryregion1) caught an exception:
[object Error] -
Connect by prior working in sql but not in forms 10g hierarchical tree
Hello Friends,
I have the following connect by prior example which is working in sql command prompt but not in Forms 10g hierarchical tree item type. Can you please let me know why ?
configuration: Forms 10g patchset 10.1.2.0.2 and oracle 11g database on windows 7
SQL> SELECT 1 InitialState,
2 level Depth,
3 labeller NodeLabel,
4 NULL NodeIcon,
5 to_char(reportno) NodeValue
6 FROM reports where formname = 'billinin.fmx' or reportno > 9999
7 start with reportno > 9999
8 CONNECT BY PRIOR reportno = labelno
9 /
INITIALSTATE DEPTH NODELABEL N NODEVALUE
1 1 FIRST 10000
1 2 report1 UD Label 1
1 2 report2 UD Label 2
1 2 report3 UD Label 3
1 1 SECOND 10001
1 1 THIRD 10002
If I write this command in forms hierarchical tree, then it is working, why not the above code ?
SQL> SELECT 1 InitialState,
2 level Depth,
3 labeller NodeLabel,
4 NULL NodeIcon,
5 to_char(reportno) NodeValue
6 FROM reports
7 start with reportno > 9999
8 CONNECT BY PRIOR reportno = labelnoThanks Room,
This command worked ! I will put the sample working code here. It will help you to filter the records in a tree in sql command prompt as well as in forms hierarchical tree 10g.
SELECT 1 InitialState,
level Depth,
labeller NodeLabel,
NULL NodeIcon,
to_char(reportno) NodeValue
FROM reports
start with reportno > 9999
CONNECT BY PRIOR reportno = labelno
AND FORMNAME = :reports.testitem -
Error in Solaris but not in Windows
I have an application that is reading from a database, cleaning the results of all html tags, and writing to a new database. It all works fine on a Windows machine with jdk1.3. However, it throws the error I have attached to the message on the Solaris box. It has to do with the html cleaning. When I take it out, it works on both machines. Why though. Here is the code for the html cleaning and the error: 5 Dukes to whoever can help.
Code:
* Removes the html formatting for a string and stores it in a file
* @return java.lang.String
* @param htmlText java.lang.String
* @param outputText java.lang.String
public static String removeHtml(String htmlText) throws IOException
String returnValue = "";
EditorKit kit = new HTMLEditorKit();
Document doc = kit.createDefaultDocument();
// The Document class does not yet handle charset's properly.
doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
try
// Create a reader on the HTML content.
Reader rd = new StringReader(htmlText);
// Parse the HTML.
kit.read(rd, doc, 0);
//Write the cleaned text to file
//writeOutputFile(doc, outputFile);
//Set returnValue to cleaned text
returnValue = doc.getText(0, doc.getLength()).toString();
catch (Exception e)
e.printStackTrace();
return returnValue;
}Error:
java.lang.NoClassDefFoundError: sun/awt/motif/MToolkit
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:142)
at java.awt.Toolkit$2.run(Toolkit.java:533)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:524)
at java.awt.Toolkit.getEventQueue(Toolkit.java:1179)
at java.awt.EventQueue.isDispatchThread(EventQueue.java:534)
at javax.swing.text.StyleContext.reclaim(StyleContext.java(Compiled Code))
at javax.swing.text.StyleContext.reclaim(StyleContext.java(Compiled Code))
at javax.swing.text.AbstractDocument$AbstractElement.finalize(AbstractDocument.java(Compiled Code))
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java(Compiled Code))
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java(Compiled CHere is the code where I am calling the html cleaner method. This works fine in a Windows env but fails in Solaris. If I comment out the call to removeHtml(value).trim it will work. It will even work if I make a different call removeHtml("string to strip") from the main method. Why would it work in one place but not the other in Solaris, and why would it always work in Windows? Does anybody have any ideas?
while (rs.next ()) {
for (int i = 1; i <= columnCount; ++i) {
String value = rs.getString (i);
if (rs.wasNull ()){
value = "<null>";
String columnName = rsmd.getColumnName(i).trim();
if(clean&&(columnName.equalsIgnoreCase("DESC")
||columnName.equalsIgnoreCase("HEADER")
||columnName.equalsIgnoreCase("TEXT")))
//Clean the text
//value = removeHtml(value).trim(); //remove html markup
value = value.replace('\n', ','); //remove new lines
value = value.replace('\r', ','); //remove carriage returns
value = replaceString(value, "&mdash", "-"); //remove dash markup
outputBuffer.append (value.trim());
outputBuffer.append ("||");
outputBuffer.append ("{{NEWLINE}}");
} -
Insert BLOB error in IAS but not in JDeveloper
Hi
Our application have a Servlet who executes an INSERT using a PrepareStatement (created by the Transaction of an ApplciationModule)
In Jdeveloper (10.1.2) this works OK
But when deploy it in the IAS (904) we have an error:
java.sql.SQLException: Io exception: Connection reset
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:345)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2094)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1986)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2697)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:457)
at com.asorco.sgie.controller.servlets.general.Archivo.uploadFile(Archivo.java:176)
at com.asorco.sgie.controller.servlets.general.Archivo.doPost(Archivo.java:118)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:733)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.ja
va:192)
at java.lang.Thread.run(Thread.java:534)
In the IAS, Im using the jars used in JDeveloper (classes12.jar, classes12dms.jar, nls_classes12.jar).
Any knows the reason?
Thank you!The effect to use <jsp:forward> or RequestDispatcher.forward is different between
BEA and Tomcat (even Websphere). Weblogic stores the output in a buffer, before
the buffer reaches the limit, you can call those forward methods without obvious
problems. Tomcat (and Websphere I ever tested) is not so tolerable. If you have
send out something via Servlet writer or JSPWriter, or have something like HTML
tags/text before forwards, chances are big to encounter the exceptions you have.
So I use more include methods to assemble my JSPs and servlets, for the purpose
of portability.
"Aidan Monroe" <[email protected]> wrote:
>
>I have a .war file that runs perfectly in WebLogic 7.0. Today I tried
>to run that
>same .war in Tomcat 4.0.6. Unfortunately, it did not run. I get the following
>error:
>
>java.lang.IllegalStateException: Cannot forward after response has been
>committed
>
>Now, I know what this error means, but I don't know why I would get it
>when I
>run in Tomcat but not WebLogic. Does WebLogic do something to "insulate"
>me from
>this error that perhaps Tomcat does not do?
>
>Aidan
>
-
Error In Tomcat But Not In WebLogic
I have a .war file that runs perfectly in WebLogic 7.0. Today I tried to run that
same .war in Tomcat 4.0.6. Unfortunately, it did not run. I get the following
error:
java.lang.IllegalStateException: Cannot forward after response has been committed
Now, I know what this error means, but I don't know why I would get it when I
run in Tomcat but not WebLogic. Does WebLogic do something to "insulate" me from
this error that perhaps Tomcat does not do?
Aidan
The effect to use <jsp:forward> or RequestDispatcher.forward is different between
BEA and Tomcat (even Websphere). Weblogic stores the output in a buffer, before
the buffer reaches the limit, you can call those forward methods without obvious
problems. Tomcat (and Websphere I ever tested) is not so tolerable. If you have
send out something via Servlet writer or JSPWriter, or have something like HTML
tags/text before forwards, chances are big to encounter the exceptions you have.
So I use more include methods to assemble my JSPs and servlets, for the purpose
of portability.
"Aidan Monroe" <[email protected]> wrote:
>
>I have a .war file that runs perfectly in WebLogic 7.0. Today I tried
>to run that
>same .war in Tomcat 4.0.6. Unfortunately, it did not run. I get the following
>error:
>
>java.lang.IllegalStateException: Cannot forward after response has been
>committed
>
>Now, I know what this error means, but I don't know why I would get it
>when I
>run in Tomcat but not WebLogic. Does WebLogic do something to "insulate"
>me from
>this error that perhaps Tomcat does not do?
>
>Aidan
>
-
Search for coding possible thru Toad, but not thru Forms Builder
Hi all,
I am searching for a particular word 'instalment' which is used in forms. when I search using 'Find and Replace PL/SQL' there are no matches. But in Toad, when i search in 'Find in Files', its displaying the code containing the above word in a particular .fmb file. why this is happening?? I am in urgent need of that code.
Pls help me.. its urgent!!
Edited by: user13106173 on Dec 6, 2010 3:05 AMWhen I open that file in Quick view from ToadWhich file are you referring too when you say "that file"? I assume you mean the Forms Module (.fmb), but I hate to assume things so could you please confirm this for me? ;-)
How can we see attached library details?There is no way to view the PL/SQL code of an attached library except by opening the library in the Forms Builder. If your form has an attached library, the Object List Report will indicate there are attached libraries in the "Attached PL/SQL Libraries" section of the report.
* Attached PL/SQL Libraries
* Name MY_LIB_NAME
- Comments
* PL/SQL Library Location MY_LIB_NAME
* Name RP2RRO
- Comments
* PL/SQL Library Location rp2rro
But through forms builder, I cant see the below details. Don't quote me on this, but believe TOAD's quick view displays all of the code in the .fmb, even the code of an attached library, whereas Forms Builder will allow you to see the signature of the program units in the attached library, but not the code.
Also the ct_message display item used here is not created in this particular form. It is in some other form. How this happens?Is the CT_MESSAGE display item a Subclassed item? Meaning, it was included in your form file through an Object Library or by copying the item to the form and choosing to subclass (create a reference to) the item rather than copy of the item in your form. Oracle Forms implements inheritence through the use of subclasses. By subclassing an item (be it a Visual widget [like a button] or a Program Unit) Forms stores a refernce to the object rather than the actual object. This allows you to share and reuse code and objects.
Check the Object List Report of your form and see if there are any attached libraries. If there are attached libraries, open these libraries in Forms Builder to find your code. It is also also possible to subclass objects in your form file through the use of Object Libraries. Check your Object List Report to see if there is an Object Groups sections:
* Object Groups
* Name CALENDAR
- Subclass Information
- Comments
* Object Group Children
* Name WHEN-NEW-FORM-INSTANCE
- Subclass Information
* Real Object Pointed to by the Object Group Child
* Name WHEN-WINDOW-ACTIVATED
- Subclass Information
* Real Object Pointed to by the Object Group Child
.....If the CT_MESSAGE item was added to your form thorugh an object library, it will be listed in this section of the object list report.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
How to use HOST call DOS continuous running problem but NOT hold Forms scre
In my Forms, I have a Button a start a MP3 recorder program to record voice, I use HOST command to init the program successfully. However, since the MP3 recorder program in continuous running, the HOST command hold my Forms screen until the MP3 program stop.
I have try to use Open_form to open another form to start this MP3 program. It still hold the whole Forms system.
Is there any solution to start a continuous running DOS program but NOT hold the Forms screen?
Thank You !You didn't provide your host-command, so i simply guess its something like
HOST('"c:\Program Files\mp3.exe" someoptions');instead of calling the program directly, you could use a commadn batch along with the start-command, for this should launch the program asynchronously:
HOST('cmd /c start "c:\Program Files\mp3.exe" someoptions');hope this helps. -
Spool Error - Spool created but not opening/displaying. Message no SP01R042
Dear All,
In the ECC Production System, for SD documents Spool is created but not opening/displaying.
Message no SP01R042
When we check the short dump for the user,
The dump is -
- POSTING_ILLEGAL_STATEMENT
- Statement "CALL SCREEN" is not allowed in this form.
Please help. Perfect answers will be definitely rewarded.
Thanks & Regards,
SameerHi Sri,
Try to setup the printer at OS LEVEL.
then,
If on Windows---use method C.
if not,
use method U and map to your printer queue at OS level.
Hope this resloves this issue.
Reward Pts if useful
Regards,
Malti -
Oracle 9i on XP Pro error: Java Runtime Environment not Found
I run the universal installer and get this message: Java Runtime Environment not found at c:/doc...blah blah blah...local settings/temp/OraInstall/jre/bin/jrew.exe
I've installed Java 1.4 more than once with success, but the universal installer keeps trying to locate jrew.exe at the above location (which doesn't exist in the temp directory)
Q: why does it look here and/or how can I fix it?
Thanks in advance,
-BrentFor windows installations you are not in need to install Java prior to installing Oracle , remove all Java installed , clean registry and environment variables , restart machine then start reinstallation
-
0x8004005 / Error: Configuration file is not well-formed XML
Hello,
I am getting a complete headache from this! I uninstalled Visual Studio 2013 Ultimate and installed in on another hard drive. Since then nothing works! It seems to be an error with IIS...
The following happens:
When I want to create ASP.NET Empty Web Application:
When I ceate an ASP.NET MVC 4 Web Application
When I open an existing project:
similar to first screenshot, can only upload 2 images...
I already tried the following:
Reinstalling Visual Studio Ultimate 2013
Reinstalling IIS Express 8
Thanks!Hi,
In order to resolve your problem. You should give us some information:
First, is there any error occur when you install the VS or do you can successfully install the VS? You can use
http://aka.ms/vscollect to gather the latest installation logs. After using it, you will find vslogs.cab from %temp% folder. Please upload the file to
https://Onedrive.live.com/ and share the link here.
Second, the error may related to .NET FrameWork. You can use the tool in the link to check the .NET Framework Setup:
http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx
If there are something wrong, you should repair the .NET framework.
At last, there is a blog related to the error, you can follow up to handle your issue:
http://blogs.msdn.com/b/acoat/archive/2013/04/23/iisexpress-configuration-file-is-not-well-formed-xml.aspx
Best Wishes!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey. -
Error "ACL found but not expected on..." when doing repair permissions.
I am getting an error on Disk Utility, Repair permissions. I was having some problems with permissions and sought and received help through forum regarding changing my userid password through Lion Repair (Control R, etc.) After finishing that ordeal, rebooting, etc. everything seems fine and works well, perhaps slightly slow. I decided to go into Disk Utility again and I repeatedly get the following errors...
"ACL found but not expected on “usr/sbin/system_profiler”
Repaired “usr/sbin/system_profiler”
ACL found but not expected on “usr/sbin/systemsetup”
Repaired “usr/sbin/systemsetup”
ACL found but not expected on “usr/sbin/traceroute”
Repaired “usr/sbin/traceroute”
After about a 20-25 minute repair process, I clear the report ,exit disk utility, reboot the computer and I still get the same report. Disk verify shows the hard drive to be functioning well. What is the source of these errors and is there a solution.
Thanks,I had those too.
I used ACLr8 just now. Didn't know if it would work for Lion or not. Ran Disk Utility again and it didn't show any problems at all... after having several of the ACL's... which bugged me, even though they are not supposed to mean anything. :-) -
MySQL error on localhost, but not remote!!
I am getting an error of:
Warning: mysql_free_result() expects parameter 1 to be resource, null given in /Users.... line 848
But I am only getting this on my dev machine. It doesn't show on the remote site. I have taken the remote DB and put it inplace of my local one just in case I had inadvertantly deleted something, but still no joy.
I have closed the recordset using:
mysql_free_result($rs_reg_domain);
But have had to use the following to hide the error:
//if (is_resource($rs_reg_domain)) mysql_free_result($rs_reg_domain);
and finally this is the recordset:
mysql_select_db($database_conn_mrs, $conn_mrs);
$query_rs_domain = "SELECT * FROM tbl_settings WHERE fld_settingsNAME = 'domain'";
$rs_domain = mysql_query($query_rs_domain, $conn_mrs) or die(mysql_error());
$row_rs_domain = mysql_fetch_assoc($rs_domain);
$totalRows_rs_domain = mysql_num_rows($rs_domain);
'domain' has a value.
What's wrong?
ThanksThe reason you get an error locally, but not on the remote server is almost certainly because the remote server has the PHP display_errors configuration setting turned off. The error still occurs, but it's not displayed. Most hosting companies turn off the display of errors for security reasons.
Looking at the code you have given here, it looks as though the error is caused by using the wrong variable name for the recordset. The recordset is $rs_domain, but you're passing $rs_reg_domain to mysql_free_result(). -
Errors on device but not simulator
I just signed up for the Developer Program and got everything set up to run the app i built on the device. However, I get a slew of messages and I think all of which is because I imported CoreGraphics but for some reason it cant find IOKitLib.h. So I imported IOKit.framework and still I get 31 or so errors all because it can't find that header. Am I doing something wrong? The only extra framework I used for the app besides the 2 that XCode generates as a template is CoreGraphics. It worked perfectly in the simulator though...
Thanks for your time!
(This is the output...)
ProcessPCH /var/folders/iS/iS-IYh1HEr44h3EFimOTHU+TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/GatekeeperPrefix-eoehntoumyrlgzdynxfeqwyjxvlr/GatekeeperPrefix.pch.gch Gatekeeper_Prefix.pch normal armv6 objective-c com.apple.compilers.gcc.4_0
cd /Users/derek/Desktop/Gatekeeper/Gatekeeper
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0 -x objective-c-header -arch armv6 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=2.0 -gdwarf-2 -mthumb -iquote /Users/derek/Desktop/Gatekeeper/Gatekeeper/build/Gatekeeper.build/Release-iphon eos/Gatekeeper.build/Gatekeeper-generated-files.hmap -I/Users/derek/Desktop/Gatekeeper/Gatekeeper/build/Gatekeeper.build/Release-iph oneos/Gatekeeper.build/Gatekeeper-own-target-headers.hmap -I/Users/derek/Desktop/Gatekeeper/Gatekeeper/build/Gatekeeper.build/Release-iph oneos/Gatekeeper.build/Gatekeeper-all-target-headers.hmap -iquote /Users/derek/Desktop/Gatekeeper/Gatekeeper/build/Gatekeeper.build/Release-iphon eos/Gatekeeper.build/Gatekeeper-project-headers.hmap -F/Users/derek/Desktop/Gatekeeper/Gatekeeper/build/Release-iphoneos -F/Library/Frameworks -F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/ Library/Frameworks -F/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Framework s -I/Users/derek/Desktop/Gatekeeper/Gatekeeper/build/Release-iphoneos/include -I/Users/derek/Desktop/Gatekeeper/Gatekeeper/build/Gatekeeper.build/Release-iph oneos/Gatekeeper.build/DerivedSources -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk -c /Users/derek/Desktop/Gatekeeper/Gatekeeper/Gatekeeper_Prefix.pch -o /var/folders/iS/iS-IYh1HEr44h3EFimOTHU+TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/GatekeeperPrefix-eoehntoumyrlgzdynxfeqwyjxvlr/GatekeeperPrefix.pch.gch
In file included from /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Headers/CoreGraphics.h:22,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIColor.h:9,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIInterface.h:10,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIView.h:10,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIActivityIndicatorView.h:8,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIKit.h:10,
from /Users/derek/Desktop/Gatekeeper/Gatekeeper/Gatekeeper_Prefix.pch:7:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGDisplayConfiguration.h:11:28: error: IOKit/IOKitLib.h: No such file or directory
In file included from /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Headers/CoreGraphics.h:22,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIColor.h:9,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIInterface.h:10,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIView.h:10,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIActivityIndicatorView.h:8,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIKit.h:10,
from /Users/derek/Desktop/Gatekeeper/Gatekeeper/Gatekeeper_Prefix.pch:7:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGDisplayConfiguration.h:328: error: syntax error before 'CGDisplayIOServicePort'
In file included from /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Headers/CGEventSource.h:12,
from /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Headers/CGEvent.h:15,
from /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Headers/CoreGraphics.h:25,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIColor.h:9,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIInterface.h:10,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIView.h:10,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIActivityIndicatorView.h:8,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIKit.h:10,
from /Users/derek/Desktop/Gatekeeper/Gatekeeper/Gatekeeper_Prefix.pch:7:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:13:39: error: IOKit/hidsystem/IOLLEvent.h: No such file or directory
In file included from /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Headers/CGEventSource.h:12,
from /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Headers/CGEvent.h:15,
from /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Headers/CoreGraphics.h:25,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIColor.h:9,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIInterface.h:10,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIView.h:10,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIActivityIndicatorView.h:8,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIKit.h:10,
from /Users/derek/Desktop/Gatekeeper/Gatekeeper/Gatekeeper_Prefix.pch:7:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:52: error: 'NX_ALPHASHIFTMASK' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:53: error: 'NX_SHIFTMASK' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:54: error: 'NX_CONTROLMASK' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:55: error: 'NX_ALTERNATEMASK' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:56: error: 'NX_COMMANDMASK' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:59: error: 'NX_HELPMASK' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:60: error: 'NX_SECONDARYFNMASK' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:63: error: 'NX_NUMERICPADMASK' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:67: error: 'NX_NONCOALSESCEDMASK' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:86: error: 'NX_NULLEVENT' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:88: error: 'NX_LMOUSEDOWN' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:89: error: 'NX_LMOUSEUP' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:90: error: 'NX_RMOUSEDOWN' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:91: error: 'NX_RMOUSEUP' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:92: error: 'NX_MOUSEMOVED' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:93: error: 'NX_LMOUSEDRAGGED' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:94: error: 'NX_RMOUSEDRAGGED' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:97: error: 'NX_KEYDOWN' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:98: error: 'NX_KEYUP' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:99: error: 'NX_FLAGSCHANGED' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:102: error: 'NX_SCROLLWHEELMOVED' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:103: error: 'NX_TABLETPOINTER' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:104: error: 'NX_TABLETPROXIMITY' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:105: error: 'NX_OMOUSEDOWN' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:106: error: 'NX_OMOUSEUP' undeclared here (not in a function)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEventTypes.h:107: error: 'NX_OMOUSEDRAGGED' undeclared here (not in a function)
In file included from /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Headers/CoreGraphics.h:25,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIColor.h:9,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIInterface.h:10,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIView.h:10,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIActivityIndicatorView.h:8,
from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/UIKit.framework/Headers/UIKit.h:10,
from /Users/derek/Desktop/Gatekeeper/Gatekeeper/Gatekeeper_Prefix.pch:7:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/C oreGraphics.framework/Headers/CGEvent.h:17:39: error: CoreServices/CoreServices.h: No such file or directory
/Users/derek/Desktop/Gatekeeper/Gatekeeper/Gatekeeper_Prefix.pch:8:52: error: ApplicationServices/ApplicationServices.h: No such file or directoryIt's possible that when you added the extra framework it got added the wrong way, so that the simulator version is referenced OK but the device version isn't. It's happened to me a couple of times.
With XCode closed, use Finder to locate your .xcodeproj file. Before you do anything else, make a copy of it in case you make a mess of it with your changes.
Now do "Show Package Contents" on your .xcodeproj file. One of the files inside it is called 'project.pbxproj'. Edit that by double-clicking it.
There are two things to check for. The first is in the PBXFileReference section. Look for the line that mentions CoreGraphics.framework (or whatever framework you added). It should end like this:
path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT;
If there is something more elaborate (a lot of ../../ stuff, for instance), edit it to look like my example.
The other thing is in the XCBuildConfiguration section. Some of the entries will have extraneous muck that looks like this:
FRAMEWORKSEARCHPATHS = (
"$(inherited)",
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk/System/Library/Frameworks,
Remove it altogether.
Save the file after making your changes, and you should find that everything then compiles OK. If it doesn't, go back to your original version and look for other solutions.
Maybe you are looking for
-
I have an ipod nano and would like to sync it to a new computer but when I try to do it, it tells me that i will loose all my music and pictutes in my nano to be replaced with what I have on itunes. can anybody help?
-
Hi Experts I have made config for automatic clearing of GR/IR account with selection criteria EBELN(Purchase order) and DMBTR(Amount in LC). After this i have used F.13 transaction for automatic clearing, system has proposed approx 1000 documents to
-
Custom Installer with Inno Setup (reduce size of Run-Time and VISA RT)
Hi, we are using Inno Setup to install our Application. Up to now i include the full LabView 2009 SP1 Run-Time and the full VISA-RT (that are 302 MB). I have also made an installer using the internal tools of LV and the setup is only 163 MB. The LV r
-
Light Table: zooming option?
Simple question: is it possible to zoom the slides on the Light Table in KN3? As it is now, these miniature slides are way too small to easily manipulate them. Would appreciate something like in iViewMediaPro...or at least like in M$ Powerpoint. iMac
-
Unable to install MIDP 2.0 app on Nokia 6600
Hi, I created a simple app using MIDP 2.0 & sent the jar file to my Nokia 6600 via bluetooth. Upon trying to install the same, i get the following error... """Unable to install. Invalid version""" Can someone please explain where am I going wrong? I