Unterminated string error
I get unterminated string error and not ideal how to fix it <p><form>
<c:forEach var="year" items="${sessionScope.studentUpdate}">
<input type="button" value="show information" onclick="openNewInsert('PaymentInfor?search=<c:out value="${year.student_id}"/>')">
</c:forEach></p></form>
if I only have <input type="button" value="show information" onClick="openNewInsert('')"> it did not show the Unterminate error , even I just use
<input type="button" value="show information" onClick="openNewInsert('Hello.jsp')">, but when I add PaymentInfor?search=<c:out value="${year.student_id}"/> it get error
...I still don't get it
Similar Messages
-
SIT (nidll) Unterminated String Error
Good day,
I'm trying to build a model DLL in Simulink using NI SIT 4.0. The model builds using GRT and ERT (no auto config) fine (warnings galore but they are expected - unconnected inputs/outputs).
When trying to build using nidll.tlc (either just autocoding or autocoding and linking to a DLL) I get an error which stops the build process:
### TLC code generation complete.
### Generating TLC interface API.
## SIT 4.0 Modifying PMS.c file
Error: Inside: EXPRESSION Line: 8 Column: 76
File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57
Unterminated string
Error: Inside: EXPRESSION Line: 8 Column: 105
File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57
Unterminated string
Error: Inside: EXPRESSION Line: 8 Column: 77
File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57
syntax error
Error: Inside: EXPRESSION Line: 8 Column: 76
File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57
Unterminated string
### Real-Time Workshop build procedure for model: 'PMS' aborted due to an error.
I am confused as to which file it is referring to when it has the error.
nidll_codegen.tlc - At the locations given is either the middle of text or nothing after a comment.
PMS.c - looks incomplete (as expected) with a lot of whitespace and the locations reference nothing or a valid line of code (nothing to do with a string). All strings in this file are terminated. As this is the file being generated I doubt it is this file causing issues
For reference all other C files and headers are created fine (sub units). We are using:
MATLAB 7.4.0 (R2007a)
NI SIT 4.0
MS VC++ 6.0
Any ideas most welcome and received with thanks!
Regards,
RichHi Richard,
I know you have already verified you can built a Generic Real-Time model, however did you run the model without creating a make-file?
In the log, an error message that results is a problem with the simulink model first and fore most. Have you determined what all the warnings are related to?
Are you sure there is not a problem in the Simulink model?
Please can you answer these questions and I will see what I can do for you.
Regards
JamesC
NIUK and Ireland
It only takes a second to rate an answer -
Target="_blank Error unterminated string literal
Hello,
I have used a example from Patrick Wolf and it won't work.
http://www.inside-oracle-apex.com/opening-url-in-new-window/
I need a pop_up window after pushing the button:
Target is a: URL
1- URL Target: http://www.google.nl/" target="_blank -- Don't work (Error unterminated string literal)
2- URL Target: http://www.google.nl/ -- Works
What is wrong(see number 1)?
Thanks at advance.
WalterJari,
It didn't work.
On the rightside from my button I have now the next text : Google')">
With Error- pointer on ' before <a:
Fout: unterminated string literal
Bronbestand: http://apex-o/pls/apex/f?p=160:190:8048856061349970::::FSESSION,FORMID:10752014578,
Regel: 1, Kolom: 20
Broncode:
javascript:redirect('<a href=
when I change 'Optional URL Redirect' field 'URL Target' to
<a href=http://www.google.nl/ target=_blank'></a>
I have the next Error:
Fout: syntax error
Bronbestand: http://apex-o/pls/apex/f?p=160:190:8048856061349970::::FSESSION,FORMID:10752014578,
Regel: 1, Kolom: 66
Broncode:
javascript:redirect('<a href=http://www.google.nl/ target=_blank'></a>')
It still not work. Do you have a solution.
Walter -
When you run Muse 2014 get an error unterminated string constant. Reinstalling does not help. System: Win8.1RU. Help!!!
Is this occurring on launch? Can you post a screenshot? This isn't an error I recall being reported before.
-
Unterminated string literal error every time firefox opens a page.
Every time firefox opens a new page, the error pops up. It says Javascript error at the top of the error window - and the error is "unterminated string literal. It very annoying, some pages have multiple instances of the error window popping up on top of each other. I reloaded the program, no changes. I am ready to give up and go to Chrome (which does not have the error)
This issue can be caused by an extension that isn't working properly.
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
*Do NOT click the Reset button on the Safe Mode start window.
If it works in Safe Mode and in normal mode with all extensions (Firefox/Tools > Add-ons > Extensions) disabled then try to find which extension is causing it by enabling one extension at a time until the problem reappears.
Close and restart Firefox after each change via "Firefox > Exit" (Windows: Firefox/File > Exit; Mac: Firefox > Quit Firefox; Linux: Firefox/File > Quit)
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
Simple javascript error unterminated string
I am getting error message unterminated string.
document.location.href='getname.cfm?buffer=#buffer#';">
Any idea. thankxlooks like you have a doublequote after your semi-colon?
you might also want to enclose the #buffer# variable in a
URLEncodedFormat() function.
location.href =
'getname.cfm?buffer=#URLEncodedFormat(buffer)#'; -
Build a querystring within class file throws js unterminated string literal
Hello all,
I have a page that is partially built from within a method.
String theLink ="FeedFilePusher";//My servlet
itemGeoLink = "<a href='#' onclick=top.alertMe('"+theLink+"')>CLICK</a>";The above works fine.
The problem is that I need to pass a querystring to this servlet.
String theLink ="FeedFilePusher?title=" + itemTitle + "&summary=" + itemDesc + "&link=" + entry.getLink() + "&updated=" + itemDate;
itemGeoLink = "<a href='#' onclick=top.alertMe('"+theLink+"')>CLICK</a>";When I add the querystring values it throws a unterminated string literal error from within firefox.
I tried to encode the ? and the & but that didnt work.
Any ideas on how to do this?
Here is the simple javascript function called alertMe.
function alertMe(url)
document.getElementById('mapframe').src = url;
closeBubble();
}TIA!Check if the resulting link has any ' or accented letters (����). That sometimes causes that error (at least i've seen it like.. 1000000 times writing spanish applications lol)
Also, the URL.encode() method might help. -
Generating javascript from method ...getting unterminated string literal er
Hello all,
I am attempting to generate several links on a jsp that are generated by a method in my class file. Each link has an onmouseover event that will display a popup box that I got from dynamicdrive.com.
sb.append("<a href='#' onclick=openChatWindow('");
sb.append(roomName.getName()+"') onMouseover=showmenu(event,"+getRoomOccupants(connx,roomName.getName())+") onMouseout=delayhidemenu()>");
sb.append(roomName.getName());
sb.append("</a><br><br>");The above code generates an "invalid xml syntax" error, the resultant html code viewed in firefox's js dubug window is:
<p align="left">
69 <h5>Available Chat Rooms</h5><br><a href='#' onclick=openChatWindow('aroom') onMouseover=showmenu(event,<p align=left><b>Empty</b></p>) onMouseout=delayhidemenu()>aroom</a><br><br><a href='#' onclick=openChatWindow('room2') onMouseover=showmenu(event,<p align=left><b>Empty</b></p>) onMouseout=delayhidemenu()>room2</a><br><br>
70 </p>I also tried to add apostrophes within the mouseover event like so:
sb.append("<a href='#' onclick=openChatWindow('");
sb.append(roomName.getName()+"') onMouseover=showmenu(event,'"+getRoomOccupants(connx,roomName.getName())+"') onMouseout=delayhidemenu()>");
sb.append(roomName.getName());
sb.append("</a><br><br>");Now I get an "unterminated string literal" error and the resultant html code is:
<p align="left">
69 <h5>Available Chat Rooms</h5><br><a href='#' onclick=openChatWindow('aroom') onMouseover=showmenu(event,'<p align=left><b>Empty</b></p>') onMouseout=delayhidemenu()>aroom</a><br><br><a href='#' onclick=openChatWindow('room2') onMouseover=showmenu(event,'<p align=left><b>Empty</b></p>') onMouseout=delayhidemenu()>room2</a><br><br>
70 </p>I know this is a syntax error but I cant figure it out.
TIA!Try adding double quotes around the handler bodies. Example
onMouseOver="showmenu(event, '....');"The forum syntax highlighter does not show any single quote mismatches. -
Unterminated String Literal..?
I am receiving an error message "unterminated string literal" in my custom calculation script and not sure why or how to fix it.
There error seems to occur on one of the last two lines on the code below...my code is about 4 times this length, but I can only make it to this point when the error occurs...the problem is not with the particular code, because if I remove some code before it, it works fine....maybe it has to do with the legth of the code? Are there any limits or restrictions that may be affecting this?
if (this.getField("TICKET1").value =="-") {event.value = 0.00}
if (this.getField("TICKET1").value =="GENERAL (2011-2012 Season TIcket)" && this.getField("TYPE1").value == "ADULT") {event.value = 814.00;}
if (this.getField("TICKET1").value =="GENERAL (2011-2012 Season TIcket)" && this.getField("TYPE1").value == "STU/SEN") {event.value = 740.00;}
if (this.getField("TICKET1").value =="GENERAL (2011-2012 Season TIcket)" && this.getField("TYPE1").value == "CHILD") {event.value = 555.00;}
if (this.getField("TICKET1").value =="GENERAL (2011-2012 Season TIcket Early Bird)" && this.getField("TYPE1").value == "ADULT") {event.value = 580.00;}
if (this.getField("TICKET1").value =="GENERAL (2011-2012 Season TIcket Early Bird)" && this.getField("TYPE1").value == "STU/SEN") {event.value = 515.00;}
if (this.getField("TICKET1").value =="GENERAL (2011-2012 Season TIcket Early Bird)" && this.getField("TYPE1").value == "CHILD") {event.value = 366.00;}
if (this.getField("TICKET1").value =="GENERAL (2010-2011 Playoffs - 16 game pack)" && this.getField("TYPE1").value == "ADULT") {event.value = 384.00;}
if (this.getField("TICKET1").value =="GENERAL (2010-2011 Playoffs - 16 game pack)" && this.getField("TYPE1").value == "STU/SEN") {event.value = 352.00;}
if (this.getField("TICKET1").value =="GENERAL (2010-2011 Playoffs - 16 game pack)" && this.getField("TYPE1").value == "CHILD") {event.value = 272.00;}
if (this.getField("TICKET1").value =="GENERAL (2010-2011 Playoffs - Round 1)" && this.getField("TYPE1").value == "ADULT") {event.value = 88.00;}
if (this.getField("TICKET1").value =="GENERAL (2010-2011 Playoffs - Round 1)" && this.getField("TYPE1").value == "STU/SEN") {event.value = 80.00;}
if (this.getField("TICKET1").value =="GENERAL (2010-2011 Playoffs - Round 1)" && this.getField("TYPE1").value == "CHILD") {event.value = 60.00;}
if (this.getField("TICKET1").value =="GENERAL (2010-2011 Playoffs - Round 2)" && this.getField("TYPE1").value == "ADULT") {event.value = 96.00;}
if (this.getField("TICKET1").value =="GENERAL (2010-2011 Playoffs - Round 2)" && this.getField("TYPE1").value == "STU/SEN") {event.value = 88.00;}
if (this.getField("TICKET1").value =="GENERAL (2010-2011 Playoffs - Round 2)" && this.getField("TYPE1").value == "CHILD") {event.value = 68.00;}Just to mention I'm having a similar problem in Acrobat X on Mac of mysterious errors which alternate seemingly randomly between "unterminated string literal", or "missing ) in parenthetical", or "missing } in compound statement", or "missing : after property id".There seems to be some kind of bug here, or at the very least, non-standard behaviour.
They always occur at the end of the code and seem unrelated to what the code actually says.
Here's one example, giving "unterminated string literal" on the this.extractPages... line:
if(isInt(pagesPerRecord)) {
for( var i = 0; i < this.numPages; i+pagesPerRecord ) {
var filename = csvData.getRowAndColumn(i, 'filename') + '.pdf';
var end = i+pagesPerRecord-1;
app.alert(filename);
filename = filename ? filename : 'file-'+((i+pagesPerRecord)/pagesPerRecord)+'.pdf';
this.extractPages({ nStart: i, nEnd: end, icPath: filename });
If I make a minor, cosmetic change so the code reads like this (not defining end as a variable), the error changes to "missing ) in parenthetical":
if(isInt(pagesPerRecord)) {
for( var i = 0; i < this.numPages; i+pagesPerRecord ) {
var filename = csvData.getRowAndColumn(i, 'filename') + '.pdf';
app.alert(filename);
filename = filename ? filename : 'file-'+((i+pagesPerRecord)/pagesPerRecord)+'.pdf';
this.extractPages({ nStart: i, nEnd: i+pagesPerRecord-1, icPath: filename });
If I make a minor, cosmetic change so the code reads like this (using a different form of if logic on the check for a filename), the error changes to "missing } in compound statement":
if(isInt(pagesPerRecord)) {
for( var i = 0; i < this.numPages; i+pagesPerRecord ) {
var filename = csvData.getRowAndColumn(i, 'filename') + '.pdf';
app.alert(filename);
filename = filename || 'file-'+((i+pagesPerRecord)/pagesPerRecord)+'.pdf';
this.extractPages({ nStart: i, nEnd: i+pagesPerRecord-1, icPath: filename });
There have been times where I've had errors like this for valid code, and I've deleted and re-typed all the + signs, and it's worked again. Really don't understand this, as the error messages seem unrelated to the code. The rest of the code that ends with this hasn't changed since an earlier version that worked.
There are definitely definitely no unclosed brackets, parenthesies or quotes. I've checked manually and with text editor tools (and by copying and pasting directly from an earlier version that worked).
I'm sure there's a bug in error reporting or syntax checking that explains the original problem and mine.
Edit: Weirder and weirder, I changed an unrelated line earlier in the code, in the section that is unchanged from an earlier version that worked fine, from:
app.alert("5 - "+pagesPerRecord+" pages per record (isInt=="+isInt(pagesPerRecord)+")");
...to...
app.alert("5 - "+pagesPerRecord+" pages per record");
...on the basis that another time I had this problem, just deleting lines that involved string concaternation seemed to fix it, and the error message changed yet again to "missing : after property id", while still pointing at the same line (the penultimate } ). Odd, very odd. -
Htmlconvertor gives "unterminated string" in generated Javascript?
The code generated by the htmlconvertor.exe program gives the following:
however, IE says "unterminated string or constant on this line, particularly the NAME="VirtualVisIR" [the culprit]. Has anyone else had this problem - what is the solution?
Thanks
<SCRIPT LANGUAGE="JavaScript"><!--
if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 976 HEIGHT = 520 NAME="VirtualVisIR" codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0"><NOEMBED><XMP>');
else if (_ns == true && _ns6 == false) document.writeln('<EMBED
type="application/x-java-applet;version=1.4"
CODE = "VirtualVisIR_Main.class"
ARCHIVE = "virtualvisir.jar"
NAME = "VirtualVisIR"
WIDTH = 976
HEIGHT = 520
scriptable ="true"
scriptable=false
pluginspage="http://java.sun.com/products/plugin/index.html#download"><NOEMBED><XMP>');
//--></SCRIPT>you need to remove all the line breaks after the EMBED tag... in other words it needs to be one long line like the document.writeln is for the OBJECT tag... i guess it's a bug in the htmlconverter...
cheers! -
UTIL-PARAM STRING ERROR when calling a form from OAF Page
Dear Experts,
Can you please suggest, as we are getting the below error when we are calling a form from OAF page.
"UTIL-PARAM STRING ERROR"
We have created a button to call the same and the syntax used is as below.
form:PA:OLNG_MOC_PROJECTS_ENGINEER:STANDARD:PA_PAXCARVW:PROJECT_NUMBER={@ProjectNumber}
Thanks in advance,
SatishHi all,
I have a Personalized Button, my button call a customized form (with a parameter named TAINV_PARAM). Function of customized Form is TAINV_FORM
In OAF page, I have a text, it's values is 'TAINV', it's ID is VALUES_ATTRIBUTE (you can show source code in browser).
In Destination URL of Personalized Button, fill code to call Customized Form:
*javascript: var v_get_value=document.GetElementById(VALUES_ATTRIBUTE).innerHTML;openWindow(top, 'OA.jsp?OAFunc=TAINV_FORM&TAINV_PARAM'+v_get_value,null, {width:750, height:550},false, 'dialog', null);void(0);*
Regards,
TAINV -
ORA-01591: lock held by in-doubt distributed transaction string error
Hi Gurus,
I am getting the error
ORA-01591: lock held by in-doubt distributed transaction string error while running once procedure.
Procedure basically inserts 2 tables and update 1 table.
The order of execution is given below.
However I get the error as table _a locked.
Can you please help me how to handle this ?
Begin
Insert into table_a values (values1, value2); -- (our DB)
Insert into table_b@remote_DB values (value1, value2); --( REMOTE DB)
update table C ; -- (our DB)
commit; -- when I debugged I get exception with the sql error above in this commit.
End;Tina wrote:
Hi Gurus,
I am getting the error
ORA-01591: lock held by in-doubt distributed transaction string error while running once procedure.
Procedure basically inserts 2 tables and update 1 table.
The order of execution is given below.
However I get the error as table _a locked.
Can you please help me how to handle this ?
Begin
Insert into table_a values (values1, value2); -- (our DB)
Insert into table_b@remote_DB values (value1, value2); --( REMOTE DB)
update table C ; -- (our DB)
commit; -- when I debugged I get exception with the sql error above in this commit.
End;
01591, 00000, "lock held by in-doubt distributed transaction %s"
// *Cause: Trying to access resource that is locked by a dead two-phase commit
// transaction that is in prepared state.
// *Action: DBA should query the pending_trans$ and related tables, and attempt
// to repair network connection(s) to coordinator and commit point.
// If timely repair is not possible, DBA should contact DBA at commit
// point if known or end user for correct outcome, or use heuristic
// default if given to issue a heuristic commit or abort command to
// finalize the local portion of the distributed transaction. -
[svn:bz-trunk] 23023: Fix unterminated string literal.
Revision: 23023
Revision: 23023
Author: [email protected]
Date: 2011-10-17 08:00:07 -0700 (Mon, 17 Oct 2011)
Log Message:
Fix unterminated string literal.
Modified Paths:
blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/DeferI nstantiationTest.mxml -
Found abort string ERROR expecting CONNECT
i have a C881GW+7-E-K9 and i tried to connect 3g network but i'm getting allways same error.
"Found abort string ERROR expecting CONNECT"
my config is below.
multilink bundle-name authenticated
chat-script gsm "" "ATDT*99#" TIMEOUT 30 "CONNECT"
license udi pid C881GW+7-E-K9 sn xxxx
controller Cellular 0
interface Cellular0
ip address negotiated
ip nat outside
ip virtual-reassembly in
encapsulation slip
dialer in-band
dialer pool-member 1
dialer idle-timeout 0
async mode interactive
interface FastEthernet0
no ip address
interface FastEthernet1
no ip address
interface FastEthernet2
no ip address
interface FastEthernet3
no ip address
interface FastEthernet4
no ip address
shutdown
duplex auto
speed auto
interface Wlan-GigabitEthernet0
description Internal switch interface connecting to the embedded AP
no ip address
interface wlan-ap0
description Embedded Service module interface to manage the embedded AP
no ip address
shutdown
interface Vlan1
no ip address
interface Dialer1
ip address negotiated
encapsulation ppp
dialer pool 1
dialer idle-timeout 0
dialer string gsm
dialer persistent
ppp authentication chap
ppp ipcp dns request
no cdp enable
ip forward-protocol nd
no ip http server
no ip http secure-server
ip route 0.0.0.0 0.0.0.0 Cellular0
dialer-list 1 protocol ip permit
control-plane
line con 0
exec-timeout 0 0
script dialer gsm
no modem enable
line aux 0
script dialer gsm
line 2
no activation-character
no exec
transport preferred none
transport input all
stopbits 1
line 3
no exec
line vty 0 4
login
transport input allHi,
Since you’re developing Java program, it’s suggested to post on Java forum since they are the best resource for Java issue. We can only provide suggestions from Directory Service side.
Before we go further, please make sure you can use Microsoft tools, such as ADSI-ADAM version, ldp.exe, to connect to ADAM instance without error using "Administrator@domainname".
If you cannot connect ADAM with this user, try to install ADAM on a client machine which is not in any Domain to test. Use local account to test.
Please also check the suggestions below to make sure ADAM settings are correct.
Managing Authentication in ADAM
http://technet.microsoft.com/en-us/library/cc784622.aspx
Thanks.
This posting is provided "AS IS" with no warranties, and confers no rights. -
Unterminated String constant javascript error while handling textarea in ja
hi,
my code is -->
<textarea class = "ipfield" rows="2" cols="80" name = "ruleDesc" id = "ruleDesc" onchange="setIsEdited()"><c:out value="${ruleDesc}" escapeXml="false"/></textarea>
on click of cancel it should be reseated to previously present in ModelAnd View(MAV) object
code is document.getElementById('ruleDesc').value = '<c:out value="${ruleDesc}" escapeXml="false"/>';
but m getting javascript error while setting tht one
i view tht source in IE.
that is because of
it looks like ->
document.getElementById('ruleDesc').value = 'this is the data from database
ok ?'
if there is \n in database it will go to next line because of that *'* after document.getElementById('ruleDesc').value is not completed
can u please help me about that problem.
thanx in advance.Actually seeing as we are talking javascript at this point, the correct escape would be to escape the \n character. ie produce it as the characters \ and n.
I would recommend using [StringUtils.escapeJavascriptString|http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringEscapeUtils.html#escapeJavaScript(java.lang.String)] from the [apache commons|http://commons.apache.org/lang/]
Cheers,
evnafets
Maybe you are looking for
-
Received an update yesterday that turned off Norton before installing itself. Now cannot open Firefox. Get error message.
-
Creating Standby Database from ASM Databse none ASM
I have ASM RAC database running on Solaris 10. I want to take a backup with RMAN and move the Backup to none ASM on other Stand alone server. I want to use this none ASM backup database to create Standby Database for Test purpose. Is it doable? If it
-
Any more word on airport issues?
I am able to connect to the internet and bring up web pages, but streaming content across my network has hiccups, freezes every 30 seconds or so. This does not occur on the ibook, imac g5 , pb g4 and all non apple devices on the network only the mac
-
hai freinds i am new to hr programming , can any one tell what are infosets and how can i use in my programs and what are the advantages regards afzal
-
I am trying to install sample petstore application that comes with the Suns application server(linux version). As mentioned in the petstore1.4/docs i performed the following export $J2EE_HOME=/home/myDirectory/SUNWappserver export PATH=$PATH:home/myD