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
>
Similar Messages
-
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
>
-
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] -
Works in Tomcat but not in iPlanet Web server
I have a servlet which first generates a form which has one input field, when user fills in the text field and submits the form it is posted to same servlet. The posted data is processed and redirected to another servlet. Everything works fine on Tomcat3.2 but fails to work on iPlanet web server and throws HTTP Error 500.
Can someone help me with this? What might be the problem?Don't know whey it worked in Tomcat and not in iPlanet, but the reason is because I missed '/' in getRequestDispatcher() methoc
public RequestDispatcher getRequestDispatcher(java.lang.String path)
The pathname must begin with a "/" and is interpreted as relative to the current context root. -
Berkeley Xml 2.4.13 works on Tomcat but not on Glassfish
I recently upgraded my web app to using the latest version of Berkeley Xml from 2.3. The old version worked fine on both glassfish and tomcat java servers.
When I upgraded and made the necessary modifications to my app I could not get it to work on glassfish but had no problems on tomcat.
This error happens in the beginning of start up when I call the XmlManager constructor. I am clueless as to what it is because I can not recreate it on anything else but glassfish v2. I even created a new project and played around with some options.
Here is part of the stack trace:
DB errno:0
The log message is null.
com.sleepycat.dbxml.XmlException: Uncaught exception from C++ API, errcode = INTERNAL_ERROR
at com.sleepycat.dbxml.dbxml_javaJNI.new_XmlManager(Native Method)
at com.sleepycat.dbxml.XmlManager.<init>(XmlManager.java:56)
For now I am going to just use tomcat, but I would really like to know what is going on for both peace of mind and because I like some of the features of glassfish.
Not sure if this matters but I am deploying the web app through netbeans 6 for both glassfish and tomcat.
Thanks in advance for any help.I don't think it is a library path problem. The java.library.path shows the right values. I did have it working fine on the previous version of berkeley xml. I did have a version mismatch problem but I deleted the other database. I did have problems uninstalling the old database and I had to do it manually (the uninstall was hanging). Maybe I didn't clean it up correctly. My confusion is if I didn't clean it up correctly why does it work on everything else but glassfish.
Thanks for your help. -
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}}");
} -
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
FriedholdHi 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 -
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. -
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 -
Get "javascript(void)" error on numerous, but not all websites
I'm getting a "javascript(void)" message in my status bar on numerous, but not all websites, accompanied by an inability to utilize FF on these sites; for instance, my company email. It'll log in and load the inbox, but will not open anything that has a hyperlink (read:anything off the primary top page). My only change in the past forever, has been uninstalling noscript (it was blocking EVERYTHING and I simply wasn't able to understand a lot of the functionality).
I've checked all the blocks and settings til I'm blue in the face, but I do not see what the deal is that's causing my issue.
== URL of affected sites ==
http://Hello Robert.
First of all, and although possibly not related to your problem, I will remind you that the version of Firefox you are using at the moment as been discontinued and is no longer supported. Furthermore, it has known bugs and security problems. I urge you to update to the latest version of Firefox, for maximum stability, performance, security and usability. You can get it for free, as always, at [http://www.getfirefox.com getfirefox.com].
As for your issue, you may be having a problem with some extension or plugin that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal? -
Jsp works in my tomcat but not in school server
Using netbeans 5.5.1 and it has tomcat 5.5.17. My jsp page works fine when I use it on my computer but when I copy it to my school server(tomcat 5.5) it bugs when trying to contact oracle jdbc database.
Whats wrong?
Gives this error:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Exception in JSP: /index.jsp:35
32:
33:
34:
35: <%=db.opentables()%>
36:
37:
38:
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor150.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
root cause
java.security.AccessControlException: access denied (java.net.SocketPermission [MY HOSTNAME HERE] resolve)
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
java.security.AccessController.checkPermission(AccessController.java:427)
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
java.lang.SecurityManager.checkConnect(SecurityManager.java:1031)
java.net.InetAddress.getAllByName0(InetAddress.java:1117)
java.net.InetAddress.getAllByName0(InetAddress.java:1098)
java.net.InetAddress.getAllByName(InetAddress.java:1061)
java.net.InetAddress.getByName(InetAddress.java:958)
java.net.InetSocketAddress.<init>(InetSocketAddress.java:124)
java.net.Socket.<init>(Socket.java:179)
oracle.net.nt.TcpNTAdapter.connect(Unknown Source)
oracle.net.nt.ConnOption.connect(Unknown Source)
oracle.net.nt.ConnStrategy.execute(Unknown Source)
oracle.net.resolver.AddrResolution.resolveAndExecute(Unknown Source)
oracle.net.ns.NSProtocol.establishConnection(Unknown Source)
oracle.net.ns.NSProtocol.connect(Unknown Source)
oracle.jdbc.ttc7.TTC7Protocol.connect(TTC7Protocol.java:1764)
oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:215)
oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:371)
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:551)
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)
java.sql.DriverManager.getConnection(DriverManager.java:525)
java.sql.DriverManager.getConnection(DriverManager.java:171)
MYCLASS.Database.opentables(Database.java:131)
org.apache.jsp.index_jsp._jspService(index_jsp.java:86)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor150.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.
Apache Tomcat/5.5
Edited by: panupanu on Dec 13, 2007 6:04 AMduffymo wrote:
Is the machine that you ran this simple java class on the same one where you're >deploying the web app?Same machine where my sql connections bug. I just copypasted it into a file in tomcat5.5/webapps directory and then compiled it and used it from there. I used it from command line.
duffymo wrote:
how well do you know jsps, tomcat, and web apps? sure it's deployed properly? if you >put in a simple jsp and invoked it via tomcat, would you be able to do it?Dont know jsps well. :) Essentially my jspservlet thingie works normally on my computer through my tomcat and on other computers which have netbeans etc... It compiles .war file and ive copied that .war file to the target server's tomcat webapps directory, then when I access the website of my jspservlet tomcat unpacks it and shows my jsp pages normally if they have no sql components. So at least jsp pages are working... :)
"minor modifications"? sure those are right? you wouldn't be the first programmer to fool >themselves by saying "it's the same code - except for X."
try you "minor modifications" on the command line, too.First I used with main on command line, then removed main etc... and included it into my project. -
Flex Application showing no errors in Eclipse but not executing either
Hello,
I am trying to develop an application in flex/BlazeDS/Java in eclipse and my problem is since my changes in the code are not reflected anymore during runtime of the application. There is no error received from eclipse when I try to clean the project. It is deployed correctly but it seems to be working with the old code and not reflecting the changes. I tried to put the breakpoint too but it says, 'breakpoint cannot be placed here because there is not executable code in this line'
Please advice.
Best Regards,
Jai Kishan ShahHello,
Well, i never re-install the FlexBuilder (stand-alone, or eclipse-plugin) because any error.
Your output folder in Flex Build Path on your Project Properties is correct? Other question, you are working with Java ? Many times the project have a "error" on configuration and the directory to deploy is not listen by web-server.
Exemple:
If i work with Java and my CATALINA_HOME is: C:\tomcat\ - My webapps is localizated on: C:\tomcat\webapps\MYWEBAPP\ but my output folder on FlexProject is: C:\MyProject\Flex\bin-debug, and i run the application, the application dont work...
So.. can you show your configuration? Its more easy to understand your problem and help you.
Regards -
XSLT mapping throws error in XI, but not in XMLSPY
Hi everybody,
I got a really complex XSLT mapping. It works fine in XMLSPY.
But when I execute the mapping in XI, I get the following error:
Error during XSLT Transformation: Could not load stylesheet.com.sap.engine.lib.xml.util.NestedException: Operator or ')' expected.
I asume there is a special character that XI cannot execute.
has anybody an idea of finding this character?
Thanks, regards MarioHi Mario
Check your input data, and also try to see test in Interface mapping test tab,
you will get an idea about the input is correct or not
see the below links..
<u><b>XSLT Mapping</b>[/u
/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
/people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
<u><b>XSLT Mapping with java enhancement</b></u>
/people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
/people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping - Using ABAP XSLT Extensions for XI Mapping
Cheers..
Vasu
<i>** Reward Points if found useful **</i>
Maybe you are looking for
-
Finder default to account folder.
My left pane of choosing my destination in Finder is missing. Whenever I open Finder, it defaults to Connor (my username), and I must click on the Macintosh HD to restore the left pane, but it opens a completely new window. How can I restore the pane
-
How to run at a frequency with labview under linux....
hello i have a probleme with the "wait" VI that's seems to not works...if fact if the "wait"vi is under 2ms the program is running at a very high frequency (about 1000 hz) and over the program is running at 50 hz ... is there anyway to have a better
-
Configure communication api in tomcat
hello friends, i want to configure comm.api in tomcat5.5. please help me Thanks in advance. javax.comm: Error loading javax.comm.properties! null java.io.IOException: javax.comm: platform driver class name = null (Check 'driver' property in javax.com
-
Problem With Conexant HDAudio After Installing x86 Vista SP1
I didn't want to start a new thread, but it seems my problem is very unique. When first installing Vista x86 my Speakers/Headphones worked great. After Vista SP1 installed, my Speakers/Headphones went silent yet the driver was still there and functio
-
Hi everyone, I tried to sign on to my Mail account (which has worked before today) and is not letting me sign on saying that the POP account will not accept the password. It's my alma mater's account and I signed on through the web-based service and