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 Mario
Hi 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>
Similar Messages
-
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] -
XSLT Mapping - Configuration error
Hi there,
I have loaded an XSLT mapping that references 2 other mapping templates (in separate files). When I test the main mapping (in the Interface Mapping test tool) I get the following error:
Transformer configuration exception occurred when loading XSLT POSbankingPacketToWPUFIB.xsl (http://ournamespace, 36cb0f00-1a9b-11d8-96af-e1600a114c15, -1)
The trace in the tool showed the following:
Creating XSLT mapping POSbankingPacketToWPUFIB
URIResolver called with href = EDI_DC40.xsl and base = POSbankingPacketToWPUFIB.xsl
Source resolved. System id = EDI_DC40.xsl
URIResolver called with href = WPUFIB.WPUFIB01.xsl and base = POSbankingPacketToWPUFIB.xsl
Source resolved. System id = WPUFIB.WPUFIB01.xsl
Any ideas on how to resolve this problem would be appreciated. Info below may also be helpful:
- I have tested the XSL mapping in xmlSpy and it produces the required result but in the IR the error above occur. - I am using <xsl:stylesheet version="2.0" .... > in my definition
- I am calling templates from the POSbankingPacketToWPUFIB.xsl that exist in both EDI_DC40.xsl and WPUFIB.WPUFIB01.xsl
- I am using variables, template parameters and <xsl:text disable-output-escaping="yes"> in the referenced xsl stylesheets.
Regards
ChristiaanHi there,
Thank you for your answer. All of those things were okay.
The problem was related to XPath 2.0 syntax which does not seem to be supported by XI. The statement in question was:
<xsl:for-each select="POSbankingPacket/DetailGroup[GroupType ne 'HD']">
I have now switched to XSLT 1.1 and will hopefully find a adequate replacement statement.
Thank you,
Christiaan -
XSLT Mapping: Namespace for prefix 'ns0' has not been declared
Hello, I am working on a synchronous SOAP call and having some trouble with the response message. The web service has its own namespace and I am trying to convert this to my custom data type in PI. PI wants the message to be in format of having ns0 prefix and namespace like we have defined (http://foo for example).
I have an XSLT mapping (see below) which works fine with my test response payload (pulled from SXMB_MONI source) on this online XSLT test site:
http://www.freeformatter.com/xsl-transformer.html
However when I import this archive to PI and test with operation mapping it always says "Namespace for prefix 'ns0' has not been declared."
This is very confusing because when I test it online, I see both prefix and namespace declaration perfectly. Is there a way to see the results in the PI test tool? After this XSLT java error it doesn't give me the output even in Trace Level All mode.
Please advise on this issue or if you know an easier way (such as altering my datatype/message type to match the inbound SOAP message). I tried working with the 3rd party WSDL but the response message types show a different root level node than what PI is receiving so I gave up to make my own matching datatype. I just have to solve this last inbound namespace issue and should be finished.
FYI I have refreshed all PI caches and activated all objects.
Thanks for your ideas!
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ns0="http://foo"
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="/*">
<xsl:element name="ns0:{local-name()}">
<xsl:apply-templates select="@* | node()" />
</xsl:element>
</xsl:template>
<xsl:template match="/">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="@* | node()" />
</xsl:element>
</xsl:template>
</xsl:stylesheet>Some additional info, here is an example payload which goes through the XSLT mapping perfectly, but in PI I get the error about missing ns0 declaration.
XML input:
<bar xmlns='http://irrelevantnamespace'
xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<foo/>
</bar>
XSLT mapped output using test tool and XSL above:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:bar xmlns:ns0="http://foo">
<foo />
</ns0:bar> -
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}}");
} -
Orai18n-mapping.jar in Instant Client, but not in JDBC Driver
Hello,
i searched about my question, but no answer. :(
I downloaded the complete JDBC Driver packages (*ojdbc5.jar* + ojdbc6.jar + orai18n.jar) for Oracle 11g at:
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_111060.html
I downloaded the Basic + JDBC supplement packages of Instant Client of Oracle 11g at:
http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html
There is a mismatch of files between 2 ways of getting the jdbc drivers. In the Instant Client version via JDBC-Supplement, the orai18n-mapping.jar is present, but not in the JDBC way.
Why is the orai18n-mapping.jar present in one way, and not the other? Is it an error? It's all about 11g version of oracle....
Thanks
Bruno Lavoie
Edited by: brlav35 on Mar 4, 2009 3:57 PMWell, in my understanding, Instant client and JDBC drivers are completely different products: JDBC driver is a full-featured set of packages required to run JDBC-compatible program, i.e. it's enough to run a program in any supported Oracle environment. On the other hand, Instant client is a lightweight version, which does not include several JARs and some of them are present in different form, but it's enough for most JDBC-programs. See: orai18n.jar is a required package for correct Oracle object's VARCHARs attributes handling. It contains locale files for different languages. In orai18n-mapping.jar, there's no many of them, but I suppose it would be enough for the same task (probably they do not store locales in that JAR version, but rather build them on the fly if needed with help of DB - but I don't know for sure).
-
Map Widget - Works on Mac but not in Author
OK, I'm a nube when it comes to Dashcode just so that's out there. I managed to build a custom map widget with Google Maps. The widget works perfectly on my Macs but not in Author. In Author the default place holder remains empty. If I click "edit HTML" I get the Google map, but it's just a generic USA, not the one I created w/ places. Also iBooks refuses to import the book to my iPad until I delete this map.
Do I need to do something or insert special code in Dashcode to make this widget "Author compatible" or are map widgets not allowed?jfk0404 - I believe that what you're referring to as the "unattractive cartoon-like figure in the widget" is actually the placeholder image for the widget as it appears inline on the page. Once you click that cartoon image the actual widget takes over full screen and loads the html content displaying a functional full size google map.
To replace the cartoon icon you have a few options. The first thing to do is create a new .png file to represent your widget as the placeholder image enticing your readers to click to open the full screen widget and load its dynamic contents. Perhaps a screen grab of your map would be a good idea?
Easy:
Drag your brand new .png image from the Finder into your open source iBooks Author file dropping it on the cartoon image. Done.
More Complex:
Right click (control-click) on the xxx.wdgt file that downloaded from http://classwidgets.com and choose "Show Package Contents." A Widget file is really just a special folder bundle with a .wdgt extension. In there you will find the Default.png file. Highlight the file and press the space bar to see a preview in the Finder's QuickLook feature. That's your cartoon image. Now replace that file with the one you created above. Done. -
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
>
-
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 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
>
-
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 -
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. -
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?
Maybe you are looking for
-
the card I used to pay for my creative cloud subscription, no problem right? just enter the new card in and taddaaa everything should work right? no nope it wont let me open photoshop because it says i need to renew my subscription well it charged me
-
Can i transfer my itunes match to another apple id?
I recently subscribed to iTunes match but, unfortunately, joined under an account I really don't use. Is it possible to move iTunes Match to my other account?
-
I'm trying to create view with this command "create view MASTER.ACM AS select * from [email protected];" but I got this error "Warning: View created with compilation errors." I have no idea what I have done wrong. Could you help me to solve this prob
-
Hi! I need to define logical system (creating source system fo BW). I found that there is a rule set for naming: SystemName + CLNT + ClientNumber Is it so? Can I create some logical system for one client in one system? Thanks, OLga
-
MUSIC FOLDER MISSING AFTER FINAL CUT PRO X UPDATE
I cant see the music folders that come with Final Cut pro after the most recent update (i.e. special effects, etc). PLEASE HELP!