Invalid use of '__declspec'
Hi, I am trying to compile a formerly builded project without changing anything. But I get the following error for function declarations in the header file.
int DLLSTDCALL DLLEXPORT Test_InitDevDll (int invertByteOrder);
"test.h"(36,16) Invalid use of '__declspec'.
What can be the reason of this error?
Solved!
Go to Solution.
Try reordering it:
DLLEXPORT int DLLSTDCALL Test_InitDevDll (int invertByteOrder);
I assume you now use CVI 2013 with Clang which is more strict.
/* Nothing past this point should fail if the code is working as intended */
Similar Messages
-
Problem in parsing-invalid use of a parameter entity reference
Hi
I am getting an error in parsing the xml message. The first few lines of DTD are as follows.
<!ENTITY % contractIdentifier "contractRef , branch">
<!ENTITY % ccyDetails "amount , settlementDate , dealRate">
<!ENTITY % schedule "count , schedule">
<!ENTITY % paymentDetails "payIndicator , ourPayAccount , theirAgent ,
theirAgentsAgent , beneficiaryAccount , receiveIndicator , ourReceiveAccount
, suppressCable , suppressConfirmation , pvpIndicator">
<!ENTITY % commonCore "%paymentDetails; , narrative* , abaNumber ,
cleanRiskIndicator , creditLine , directSent , federalFundsFlag , chipsCode
, riskTakingUnit">
I am getting the error as
invalid use of a parameter entity reference line no 5.
Can somebody help me
Thanks
PrashantParameter entity references may not be used within markup in an internal DTD.
To use a DTD with parameter entity reference use a external DTD. -
Trying to use cellular data sim is invalid use different sim why
i tried using my 3g but when i check my cellulat data account it says the sim card is invalid use another sim......
dont understand why????This troubleshooting guide helped me. Had to try up to step 7...
iPhone: Troubleshooting a cellular data connection -
Invalid use of Null: 'CStr' - checkbox UPDATE - what the heck?!
Jeesh...you just think you're beginning to understand things
and then
something "weird" happens! Anyway, what is wrong with this?:
<input <%If
(CStr((rsCustomer.Fields.Item("deletethis").Value)) =
CStr("True")) Then Response.Write("checked=""checked""") :
Response.Write("")%> name="deletethis" type="checkbox"
id="deletethis"
value="1" />
I have this as part of an UPDATE form. If I place a tick in
the checkbox,
and submit it, it updates the record correctly as having a 1
value (True).
If I open the same UPDATE form, for the same record, it
displays a check in
the check box - great.
However, if the "deletethis" in the user record is initially
"False" (0),
the default value for all of my records, and I submit the
update form
without changing the deletethis checkbox, it seems to be
submitting a blank
value which means that when I re-open the UPDATE form for
this record, and
submit the UPDATE again, I get this:
Error Type:
Microsoft VBScript runtime (0x800A005E)
Invalid use of Null: 'CStr'
//edit-customer.asp, line 838
I'm sure this is because it is trying to submit a blank
value, where it
needs to be either 0 or 1. But why is it submitting
"deletethis" as a blank
value?
When I check my SQL database, the deletethis field shows no
value, not even
the word NULL and certainly not a 1 or 0.
Also, if one of my records already has a 1 value, and I
change this in the
UPDATE form, but "unchecking" the deletethis checkbox, again
it submits a
blank value! Nyaarg!
For reference, here is my UPDATE code:
<%
If (CStr(Request("MM_update")) = "editcontactdetails") Then
If (Not MM_abortEdit) Then
' execute the update
Dim MM_editCmd
Set MM_editCmd = Server.CreateObject ("ADODB.Command")
MM_editCmd.ActiveConnection = MM_connNAME_STRING
MM_editCmd.CommandText = "UPDATE dbo.tblCustomers SET
firstnames = ?,
surname = ?, billbusiness = ?, billaddress = ?, billaddress1
= ?,
billaddress2 = ?, billcity = ?, billregion = ?, billcountry =
billpostcode = ?, billtelephoneday = ?, billmobile = ?,
billtelephoneeve =
?, billemail = ?, billlocationinfo = ?, username = ?,
password = ?,
deletethis = ? WHERE customerID = ?"
MM_editCmd.Prepared = true
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param1", 202,
1, 150, Request.Form("firstnames")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param2", 202,
1, 100, Request.Form("surname")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param3", 202,
1, 150, Request.Form("businessname")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param4", 202,
1, 100, Request.Form("billaddress")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param5", 202,
1, 100, Request.Form("billaddress1")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param6", 202,
1, 100, Request.Form("billaddress2")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param7", 202,
1, 100, Request.Form("billcity")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param8", 5,
1, -1, MM_IIF(Request.Form("billregion"),
Request.Form("billregion"), null))
' adDouble
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param9", 202,
1, 100, Request.Form("billcountry")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param10", 202,
1, 75, Request.Form("billpostcode")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param11", 202,
1, 75, Request.Form("billtelephoneday")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param12", 202,
1, 50, Request.Form("billmobile")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param13", 202,
1, 75, Request.Form("billtelephoneeve")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param14", 202,
1, 150, Request.Form("billemail")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param15", 203,
1, 1073741823, Request.Form("billlocationinfo")) '
adLongVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param16", 202,
1, 25, Request.Form("username")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param17", 202,
1, 25, Request.Form("password")) ' adVarWChar
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param18", 5,
1, -1, MM_IIF(Request.Form("deletethis"),
Request.Form("deletethis"), null))
' adDouble
MM_editCmd.Parameters.Append
MM_editCmd.CreateParameter("param19", 5,
1, -1, MM_IIF(Request.Form("MM_recordId"),
Request.Form("MM_recordId"),
null)) ' adDouble
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close
' append the query string to the redirect URL
Dim MM_editRedirectUrl
MM_editRedirectUrl = "index.asp"
If (Request.QueryString <> "") Then
If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0)
Then
MM_editRedirectUrl = MM_editRedirectUrl & "?" &
Request.QueryString
Else
MM_editRedirectUrl = MM_editRedirectUrl & "&" &
Request.QueryString
End If
End If
Response.Redirect(MM_editRedirectUrl)
End If
End If
%>
Please, can someone just tell me what it is, because I can't
find an
explanation in the documentation!
Much appreciated
Nath.Point taken David, ;o) but you must admit that Dreamweaver is
not strictly
marketed as such.
"With Dreamweaver 8, web developers go from start to finish,
creating and
maintaining basic websites to advanced applications that
support best
practices and the latest technologies."
(source:
http://www.adobe.com/uk/products/dreamweaver/)
Oh, and then there's the price tag! :-o
I personally think they could have marketed "Notepad" a
little better! :o)
Nath.
"David Powers" <[email protected]> wrote in message
news:ej25kb$7nv$[email protected]..
> Lionstone wrote:
>> DW offers a helping hand when it comes to database
integration, but you
>> should expect to do the bulk of the work yourself.
Beyond a simple
>> insert/update/delete of a single record in a single
table, it's all up to
>> you.
>
> Hear, hear. If only more people realized that this is
the case, they would
> find Dreamweaver a lot easier to use.
>
> --
> David Powers
> Adobe Community Expert
> Author, "Foundation PHP for Dreamweaver 8" (friends of
ED)
>
http://foundationphp.com/ -
PLS-00330: invalid use of type name or subtype name
I am relatively new to Sql and am in the process of learning, so please bear with me. I am trying to create a trigger for the Invoices table that displays the vendor_name, invoice_number, and payment_total after the payment_total has been increased. I have discovered that I must use a compound trigger due to a mutating-table error and ended up with this:
CREATE OR REPLACE TRIGGER invoices_after_update_payment
FOR UPDATE OF payment_total
ON invoices
COMPOUND TRIGGER
TYPE invoice_numbers_table IS TABLE OF VARCHAR2(50);
TYPE payment_totals_table IS TABLE OF NUMBER;
TYPE vendor_names_table IS TABLE OF VARCHAR2(50);
TYPE summary_payments_table IS TABLE OF NUMBER INDEX BY VARCHAR2(50);
TYPE summary_names_table IS TABLE OF NUMBER INDEX BY VARCHAR2(50);
invoice_numbers invoice_numbers_table;
payment_totals payment_totals_table;
vendor_names vendor_names_table;
payment_summarys summary_payments_table;
name_summarys summary_names_table;
AFTER STATEMENT IS
invoice_number VARCHAR2(50);
payment_total NUMBER;
vendor_name VARCHAR2(50);
BEGIN
SELECT i.invoice_number, i.payment_total, v.vendor_name
BULK COLLECT INTO invoice_numbers, payment_totals, vendor_names
FROM invoices i JOIN vendors v
ON i.vendor_id = v.vendor_id
GROUP BY i.invoice_number;
FOR i IN 1..invoice_numbers.COUNT() LOOP
invoice_number := invoice_numbers(i);
payment_total := payment_totals(i);
vendor_name := vendor_names(i);
summary_payments_table(invoice_number) := payment_total;
summary_names_table(invoice_number) := vendor_name;
END LOOP;
END AFTER STATEMENT;
AFTER EACH ROW IS
temp_payment_total NUMBER;
vendor_name VARCHAR2(50);
BEGIN
temp_payment_total := payment_summarys(:new.invoice_number);
vendor_name := name_summarys(:new.invoice_number);
IF (:new.payment_total > temp_payment_total) THEN
DBMS_OUTPUT.PUT_LINE('Vendor Name: ' || vendor_name || ', Invoice Number: ' || :new.invoice_number || ', Payment Total: ' || :new.payment_total);
END IF;
END AFTER EACH ROW;
END;
/The code that I am using to update the table is:
UPDATE invoices
SET payment_total = 508
WHERE invoice_number = 'QP58872'At this point, I am getting an error report saying:
29/7 PLS-00330: invalid use of type name or subtype name
29/7 PL/SQL: Statement ignored
30/7 PLS-00330: invalid use of type name or subtype name
30/7 PL/SQL: Statement ignoredWhat does the error code entail? I have looked it up but can't seem to pin it. Any help would be greatly appreciated and I am open to any suggestions for improving my current code.
I am using Oracle Database 11g Express Edition on Windows 7. I am not sure if it is relevant, but I am also using Sql Developer. If you need any further information, I will do my best to provide what I can.
Thanks!
Edited by: 927811 on Apr 15, 2012 11:54 PM
Edited by: 927811 on Apr 15, 2012 11:56 PMI took your advice and removed the exception handling. There is no point in it being there. I also checked the timing points and you are correct. So, I changed my AFTER STATEMENT to BEFORE STATEMENT, which I had been thinking about doing anyways. It just seemed logical to me. That brings me to where I am now. I ran my update again and got back this error, It is the same as the one before, but for a different line (?)
Error starting at line 1 in command:
UPDATE invoices
SET payment_total = 510
WHERE invoice_number = 'QP58872'
Error report:
SQL Error: ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at "AP.INVOICES_AFTER_UPDATE_PAYMENT", line 30
ORA-04088: error during execution of trigger 'AP.INVOICES_AFTER_UPDATE_PAYMENT'
06502. 00000 - "PL/SQL: numeric or value error%s"
*Cause:
*Action:Also, to make sure you are clear as to what my code now looks like:
SET SERVEROUTPUT ON;
CREATE OR REPLACE TRIGGER invoices_after_update_payment
FOR UPDATE OF payment_total
ON invoices
COMPOUND TRIGGER
TYPE invoice_numbers_table IS TABLE OF VARCHAR2(50);
TYPE payment_totals_table IS TABLE OF NUMBER;
TYPE vendor_names_table IS TABLE OF VARCHAR2(50);
TYPE summary_payments_table IS TABLE OF NUMBER INDEX BY VARCHAR2(50);
TYPE summary_names_table IS TABLE OF NUMBER INDEX BY VARCHAR2(50);
invoice_numbers invoice_numbers_table;
payment_totals payment_totals_table;
vendor_names vendor_names_table;
payment_summarys summary_payments_table;
name_summarys summary_names_table;
BEFORE STATEMENT IS
invoice_number VARCHAR2(50);
payment_total NUMBER;
vendor_name VARCHAR2(50);
BEGIN
SELECT i.invoice_number, i.payment_total, v.vendor_name
BULK COLLECT INTO invoice_numbers, payment_totals, vendor_names
FROM invoices i JOIN vendors v
ON i.vendor_id = v.vendor_id
GROUP BY i.invoice_number, i.payment_total, v.vendor_name;
FOR i IN 1..invoice_numbers.COUNT() LOOP
invoice_number := invoice_numbers(i);
payment_total := payment_totals(i);
vendor_name := vendor_names(i);
payment_summarys(invoice_number) := payment_total;
name_summarys(invoice_number) := vendor_name;
END LOOP;
END BEFORE STATEMENT;
AFTER EACH ROW IS
temp_payment_total NUMBER;
vendor_name VARCHAR2(50);
BEGIN
temp_payment_total := payment_summarys(:new.invoice_number);
vendor_name := name_summarys(:new.invoice_number);
IF (:new.payment_total > temp_payment_total) THEN
DBMS_OUTPUT.PUT_LINE('Vendor Name: ' || vendor_name || ', Invoice Number: ' || :new.invoice_number || ', Payment Total: ' || :new.payment_total);
END IF;
END AFTER EACH ROW;
END;
/Thanks for the help! -
Error executing database query, invalid use of:
I have a problem ColdfusionMX tutorial when I get to add tags
on top of the code view. And I write the same thing as the
tutorial.
I get an error message that says:
Error executing database query.
error occurred while processing request.
Invalid use of ", ", () in query expression
I need help desperatly,
Geordeslys,The web site you are accessing has experienced an unexpected
error.
Please contact the website administrator.
The following information is meant for the website developer
for debugging purposes.
Error Occurred While Processing Request
Error Executing Database Query.
Invalid use of '.', '!', or '()'. in query expression
'ARTISTS.ARTISTID = ART.ARTISTID AND ART.MEDIAID = MEDIA. MEDIAID'.
The error occurred in
C:\CFusionMX7\wwwroot\CFIDE\gettingstarted\tutorial\TMPhy0vtntf3u.cfm:
line 1
1 : <cfquery name="artwork" datasource="cftutorial">
2 : SELECT FIRSTNAME, LASTNAME, ARTNAME, DESCRIPTION, PRICE,
LARGEIMAGE, ISSOLD, MEDIATYPE
3 : FROM ARTISTS, ART, MEDIA
Dear CF_dev2,
Is that what you mean by complete CF code?
Georgeslys,
SQL SELECT FIRSTNAME, LASTNAME, ARTNAME, DESCRIPTION, PRICE,
LARGEIMAGE, ISSOLD, MEDIATYPE FROM ARTISTS, ART, MEDIA WHERE
ARTISTS.ARTISTID = ART.ARTISTID AND ART.MEDIAID = MEDIA. MEDIAID
DATASOURCE cftutorial
VENDORERRORCODE 3092
SQLSTATE
Resources:
Check the ColdFusion documentation to verify that you are
using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
.NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; IEMB3;
IEMB3)
Remote Address 127.0.0.1
Referrer
Date/Time 03-Sep-07 07:11 PM
Stack Trace (click to expand)
at
cfTMPhy0vtntf3u2ecfm1461475070.runPage(C:\CFusionMX7\wwwroot\CFIDE\gettingstarted\tutoria l\TMPhy0vtntf3u.cfm:1)
at
cfTMPhy0vtntf3u2ecfm1461475070.runPage(C:\CFusionMX7\wwwroot\CFIDE\gettingstarted\tutoria l\TMPhy0vtntf3u.cfm:1)
com.inzoom.adojni.ComException: Invalid use of
'.', '!', or
'()'. in query expression
'ARTISTS.ARTISTID = ART.ARTISTID
AND ART.MEDIAID = MEDIA. MEDIAID'. in Microsoft JET
Database Engine code=3092 Type=1
at com.inzoom.ado.Command.jniExecute(Native Method)
at com.inzoom.ado.Command.execute(Command.java:40)
at com.inzoom.jdbcado.Statement.exec(Statement.java:34)
at com.inzoom.jdbcado.Statement.execute(Statement.java:107)
at
coldfusion.server.j2ee.sql.JRunStatement.execute(JRunStatement.java:212)
at coldfusion.sql.Executive.executeQuery(Executive.java:753)
at coldfusion.sql.Executive.executeQuery(Executive.java:675)
at coldfusion.sql.Executive.executeQuery(Executive.java:636)
at coldfusion.sql.SqlImpl.execute(SqlImpl.java:236)
at
coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:500)
at
cfTMPhy0vtntf3u2ecfm1461475070.runPage(C:\CFusionMX7\wwwroot\CFIDE\gettingstarted\tutoria l\TMPhy0vtntf3u.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
at
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225)
at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at
coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
at
coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
at
coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at
coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at
coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
at coldfusion.CfmServlet.service(CfmServlet.java:107)
at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
at
jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) -
Invalid use of destroyed classloader
Using Apache AXIS, we get the following error after our application has been hot redeployed . There is no problem on the front-end, even as far as functionality, however an error is generated in the log. It seems that the class gets destroyed and does not seem to be rebuilt properly. I am not sure what I really need to do to resolve the problem. If I restart the JBoss server then everything works fine (once again initially until I redeploy then the error occurs again), however I do not want to restart every time I need to redeploy my application.
The following is the error, once again it only appears after we redeploy the application:
10:59:54,415 ERROR [STDERR] java.io.IOException: Invalid use of destroyed classloader, UCL destroyed at:
10:59:54,415 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.findResources(RepositoryClassLoader.java:585)
10:59:54,415 ERROR [STDERR] at java.lang.ClassLoader.getResources(ClassLoader.java:1015)
10:59:54,415 ERROR [STDERR] at org.apache.commons.discovery.jdk.JDK12Hooks.getResources(JDK12Hooks.java:150)
10:59:54,415 ERROR [STDERR] at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResources(DiscoverResources.java:153)
10:59:54,415 ERROR [STDERR] at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResource(DiscoverResources.java:129)
10:59:54,415 ERROR [STDERR] at org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(DiscoverResources.java:116)
10:59:54,415 ERROR [STDERR] at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassNames(DiscoverNamesInFile.java:186)
10:59:54,415 ERROR [STDERR] at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassName(DiscoverNamesInFile.java:170)
10:59:54,415 ERROR [STDERR] at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.hasNext(DiscoverNamesInFile.java:157)
10:59:54,431 ERROR [STDERR] at org.apache.commons.discovery.resource.names.NameDiscoverers$1.getNextIterator(NameDiscoverers.java:143)
10:59:54,431 ERROR [STDERR] at org.apache.commons.discovery.resource.names.NameDiscoverers$1.hasNext(NameDiscoverers.java:126)
10:59:54,431 ERROR [STDERR] at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.getNextResource(ResourceClassDiscoverImpl.java:159)
10:59:54,431 ERROR [STDERR] at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.hasNext(ResourceClassDiscoverImpl.java:147)
10:59:54,431 ERROR [STDERR] at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java:120)
10:59:54,431 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
10:59:54,431 ERROR [STDERR] at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:113)
10:59:54,431 ERROR [STDERR] at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:160)
10:59:54,431 ERROR [STDERR] at org.apache.axis.client.Service.getEngineConfiguration(Service.java:812)
10:59:54,431 ERROR [STDERR] at org.apache.axis.client.Service.getAxisClient(Service.java:103)
10:59:54,431 ERROR [STDERR] at org.apache.axis.client.Service.<init>(Service.java:112)I found the solution: The Apache Discovery file was causing the error. I updated to the most recent commons-discovery-0.4.jar and everything works fine.
-
while I am in one of my sites I can access most pages except one and I get this message.
"samspram" <[email protected]> wrote in
message
news:fifhoq$cr7$[email protected]..
> Hi There
> Thanks for the reply.
> It is a MySQL DB, the fields I am referencing are TEXT
datatypes and I
> have
> tried referencing them both left and right.
> The data stored in the fields are comma separated
strings e.g. 1, 2, 3, 4,
> which I am loading into Session variables at login with
the following
> code:-
> Session("allowedsubmenus") =
> Left(rsLogin.Fields.Item("u_allowed_sub_menus").Value,
> (Len(rsLogin.Fields.Item("u_allowed_sub_menus").Value) -
1))
> Session("allowedtopmenus") =
> Left(rsLogin.Fields.Item("u_allowed_top_menus").Value,
> (Len(rsLogin.Fields.Item("u_allowed_top_menus").Value) -
1))
> Session("allowedempmenus") =
> Left(rsLogin.Fields.Item("u_allowed_emp_menus").Value,
> (Len(rsLogin.Fields.Item("u_allowed_emp_menus").Value) -
1))
> Session("allowedcoys") =
> Left(rsLogin.Fields.Item("u_allowed_companies").Value,
> (Len(rsLogin.Fields.Item("u_allowed_companies").Value) -
1))
>
> If I load the data into a variable before performing the
Left() function
> on
> the field then it goes past the lines OK but when I try
and use the
> Session
> variable it then throws the Invalid Use of Null error
again.
> i.e.
> Dim varNum
> varNum =
(Len(rsLogin.Fields.Item("u_allowed_top_menus").Value) - 1)
> Session("allowedsubmenus") =
> Left(rsLogin.Fields.Item("u_allowed_sub_menus").Value,
varNum)
> Code will execute past the loading of sessions in this
way but when I try
> to
> use the session later i.e. as with the Split() function
I get the same
> error
> again.
>
> Regards
> Brendan
You are referencing the Recordset Column Value multiple
times.
try putting it into a variable first
varValue = rsLogin.Fields.Item("u_allowed_sub_menus").Value
then proceed with your operations using that variable
Session("allowedsubmenus") = Left(varValue , (Len(varValue )
- 1)) -
Checkboxes - invalid use of CStr?
What is wrong with this for a radio group? My field
"vatregistered" is an
INT field in a SQL database and I'm using ASP/VBScript.
<input <%If
(CStr((rsDetails.Fields.Item("vatregistered").Value)) =
CStr("1")) Then Response.Write("checked=""checked""") :
Response.Write("")%>
name="vatregistered" type="radio" value="1" />
Yes
<input <%If
(CStr((rsDetails.Fields.Item("vatregistered").Value)) =
CStr("0")) Then Response.Write("checked=""checked""") :
Response.Write("")%>
name="vatregistered" type="radio" value="0" checked="checked"
/>
No
This produces the following error:
Error Type:
Microsoft VBScript runtime (0x800A005E)
Invalid use of Null: 'CStr'
What gives? I just used the DW wizard to create this, so I'm
puzzled.
Thanks again.
Regards
Nath.Had to ditch it and change to check boxes!
Radio groups - nightmare for an INSERT or UPDATE!
Nath.
"tradmusic.com" <[email protected]> wrote in
message
news:[email protected]...
> I've hand coded it to this:
>
> <input <%If
((rsDetails.Fields.Item("vatregistered").Value) = 1) Then
> Response.Write("checked=""checked""") :
Response.Write("")%>
> name="vatregistered" type="radio" value="1" />
> Yes
> <input <%If
((rsDetails.Fields.Item("vatregistered").Value) = 0) Then
> Response.Write("checked=""checked""") :
Response.Write("")%>
> name="vatregistered" type="radio" value="0" />
> No
>
> But, whilst this doesn't produce an error, when the page
re-loads (this is
> all within an UPDATE page which submits to itself), the
values aren't
> displayed for the checkbox. In other words, they are
both blank where one
> of them should be checked.
>
> Can anyone see what's wrong with the above?
>
> This is a basic UPDATE form with a radio group - Yes or
No. This stores
> to a record in the database.
> When the page initially loads, I'd like the radio group
to display the
> value held in database (either yes/no - my database
field is SQL "bit"
> type).
>
> Hope someone can help. Thanks.
>
> Thanks
> Nath.
>
>
> "tradmusic.com" <[email protected]> wrote
in message
> news:[email protected]...
>> What is wrong with this for a radio group? My field
"vatregistered" is
>> an INT field in a SQL database and I'm using
ASP/VBScript.
>>
>> <input <%If
(CStr((rsDetails.Fields.Item("vatregistered").Value)) =
>> CStr("1")) Then
Response.Write("checked=""checked""") :
>> Response.Write("")%> name="vatregistered"
type="radio" value="1" />
>> Yes
>> <input <%If
(CStr((rsDetails.Fields.Item("vatregistered").Value)) =
>> CStr("0")) Then
Response.Write("checked=""checked""") :
>> Response.Write("")%> name="vatregistered"
type="radio" value="0"
>> checked="checked" />
>> No
>>
>> This produces the following error:
>>
>> Error Type:
>> Microsoft VBScript runtime (0x800A005E)
>> Invalid use of Null: 'CStr'
>>
>> What gives? I just used the DW wizard to create
this, so I'm puzzled.
>> Thanks again.
>>
>> Regards
>> Nath.
>>
>
> -
#ixGetData Error: Invalid use of Null
Hi,
I am running a basic XL Reporter report and I am getting Other Data for the Territory. It pulls through data for a records that have a territory but when it reaches one that is Null it creates the error above.
I presume I need to use the condition in 'Get Other Data' but everything I try it doesn't like.
Does anyone have any idea's of what condition to use to return " " if Null.
I have tries standard SQL but it doesn't seem to work.
thanks
MarkHi Mark,
Hope you could get some ideas from those threads:
XL Reporter-How the Get Other Data works in formula builder?
ADD-ON - XL Reporter - Error: "#ixGetData Error: Invalid use of Null"
Re: Get Other Data
XLR-Get Other Data Error
Thanks,
Gordon -
BUG? Invalid use of an Aggregate Calculation
Please Help:
I am trying to create a mandatory Filter in a BU that is
COUNT_DISTINCT(ID) > 3;
When Mandatory an error pops up:
Invalid use of an Aggregate Calculation
If Optional filter works and can be used in a workbook.
This should be allowed. The filter will require that all rows be based on at least 4 Individuals (required for privacy) and no single individual be retrieved.
Is this expected behavior?
Thanks
A
Platform:
iAS10g (904) Solaris
iDS10g (904) WinJust a follow-up: I did post a TAR.
Yes this feature is documented, AND no it is not important enough to change. (I added the last part of commentary).
I will post a snip of the TAR just in case others run afoul of this "Feature".
==============================================
17-MAY-04 15:45:48 GMT
UPDATE:
~~~~~~~
A:
Unfortunately you cannot use analytic functions in Mandatory conditions, you can see this in the Oracle Discoverer Administrator Administration Guide, I'm copying what is documented and the complete reference:
"When you create a condition based on an analytic function (i.e. a function that computes aggregate values based on a group of rows), you must designate the condition Type as optional. If you choose mandatory, a message is displayed informing you that analytic functions are not allowed in mandatory conditions."
"What restrictions apply to aggregate calculated items?
When creating aggregate calculated items, note that a number of restrictions apply to aggregate calculations. Aggregate calculated items:
cannot be used in a mandatory condition
From:
Oracle® Discoverer Administrator
Administration Guide
10g (9.0.4)
Part No. B10270-01
Chapters:
11. Creating and maintaining conditions, page 11-6
10. Creating and maintaining calculated items,
Section: What restrictions apply to aggregate calculated items?, page 10-4
A way to workaround this, could be creating a view in the database based on the select count distinct, then create a folder in your Bussines Area using that view and create the Mandatory condition based on that Folder.
Let me know if you have any additional questions regarding this.
Best regards.
TECH
STATUS:
~~~~~~~~~~
@CUS (Waiting for Customer)
17-MAY-04 15:45:59 GMT
17-MAY-04 20:00:00 GMT
New info :
We will be unable to use Discoverer, again. This may be the last chance for its Implementation in our Organization. With Apache, Tomcat, php, etc, it is looking bad for Oracle Application Server in general.
Thanks for your help.
A
END OF TAR Communications -
I have tried for over 2 hours to get email on my phone. Shut off and on and tried to pick new password. Keep getting error message. Very frustrated
Since the title of your post says " ... invalid use rid or password ...", I suspect the issue is some illegal mix of blanks and/or special characters (e.g., punctuation) in either your user ID, password, or both.
Be very careful you are following the rules for what constitutes a legal user name and a legal password. -
Cluster-wide invalidation using read-mostly pattern
Hello,
I have a qeustion around the use of the read-mostly Entity Beans pattern with implicit invalidation (through specifying the read-only EJB name in the <invalidation-target> element of the read-write bean's DD).
When an update occurs in the read-write bean, is invalidation propogated to all nodes in a cluster, thereby forcing a ejbLoad() on the next invocation of instance of the read-only bean?
I was reasonably certain that this was the case. It has been a while but my memory is that even in 6.1, invalidation using the CachingHome interface (obiovusly not quite the same thing, but surely close) performed a cluster-wide invalidation. Unfortuantely I don't have a cluster lying around to knock up a quick test case at the moment.
The reason for me raising the question is that if you search for "read-mostly" on dev2dev you will find a recent article from Dmitri Maximovich - "<b>Peak performance tuning of CMP 2.0 Entity beans in WebLogic Server 8.1 and 9.0</b>"http://dev2dev.bea.com/pub/a/2005/11/tuning-cmp-ejbs.html?page=3
This contains the worrying sentence :
<i><b>In contrast to the read-mostly pattern, which doesn't provide mechanisms to notify other nodes in the cluster that data was changed on one of the nodes</b>, when a bean with optimistic concurrency is updated, a notification is broadcast to other cluster members, and the cached bean instances are discarded to prevent optimistic conflicts.</i>
I don't particulary want to use an optimistic concurrency in my current development as the application is guaranteed sole access to the underlying database and for the data we're concerned with there are extremely infrequent updates. My first thoughts were that a read-mostly pattern would be ideal for our requirements. However, I would be extremely concerned by the prospect of stale data existing on some nodes as I was planning on also setting read-timeout-seconds to zero.
Anyone who can shed some light on the subject would be much appreciated.
Thanks
Brendan BuckleyYou are correct. The dev2dev article is not.
The caching home interface triggers an invalidation message across the cluster members. Their cache is marked dirty and the next call to the bean will force an ejbLoad.
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/ -
Revision: 10224
Author: [email protected]
Date: 2009-09-14 05:35:41 -0700 (Mon, 14 Sep 2009)
Log Message:
Fix for seemingly invalid use of 'tar', fixes AIR integration extraction on Snow Leopard.
QE notes: None
Doc notes: None
Bugs: N/A
Reviewer: Gaurav
Tests run: Tested build on Windows.
Is noteworthy for integration: No
Modified Paths:
flex/sdk/trunk/frameworks/build.xml -
Unable to connect to XL Reporter (Invalid use of Null)
I am facing problem to connect to XL reporter (2007B, PL 15). Would appreciate if anybody who encountered similar problem before can give advise on the possible solution. Thank you.
Unable to connect to XL Reporter.
Error! User authentication failed!
Cause: Invalid use of Null.I have done the recommendations on those threads, but now the error changed. Upon connecting the error message is:
There was one or more execution errors!
Source: Microsoft OLE DB Provider for SQL Server
Message: Must declare the scalar variable "@strRow4AllCommonDimensions".
Script: SBOOEM\MSSQL\ixPartnerObjects.sql(5710)
(Logfile: DblUtilExec.Log)
Then, the following error message is displayed:
Unable to connect to XL Reporter.
Error! User authentication failed!
Cause: ExtCode -1
I tried the ConnectionManager.exe but problem persists. If you have any other suggestions please let me know. Thank you.
Maybe you are looking for
-
Photo advancement in active filter no longer behaves as in previous Lightroom versions
MAC Tiger 10.4 with Lightroom V1.3, and discussion involves Lightroom software prior to V1.3 This might be hard to explain, but here it goes. There is a nice "feature" I used in versions prior to V1.3 and now it behaves different and erratic. The ste
-
How to delete recurring cookie in Safari?
I try do delete cookies in Safari 5.1.7 with settings to "Block from 3rd parties and avertizers". Most cookies can be deleted, but there is one named 194] that I delete and 2 seconds later it reappears in the cookies list. I tried to search the mac f
-
Function used to find Query Execution Time
Hi All! Could you please let me know the function name used in finding 'Query Execution Time'? Thanks and Regards, Vikas
-
Log
-
I am trying to troubleshoot a log4j on AS 10g problem. An application that logs as configured in JDeveloper's embedded OC4J does not log properly when deployed to AS 10g. Using Enterprise Manager, I have found that some log messages are actually gett