Cannot generate webhelp, using a conditional compilation expression
Background
- RoboHelp 7 HTML (I know it's old)
- Windows 7
- Project still has conditional text - webhelp update / generated successfully about 4 months ago.
- Other projects of mine who have conditional text are still working fine - which means that I can generate webhelp successfully, using an expression of conditional compilation for all my other projects.
Problem
When I try to generate webhelp for this specific project, RoboHelp crashes during the progress "update files" message. The only way out is to entirely close HR. Successfully, I can generate webhelp for this specific project if I don't use ANY conditional compilation expression.
What I tried
- As stated above, I can generate webhelp for this project if I do not use a conditional compilation expression.
- I tried the following in different combinations: removed all conditions and conditional text tags, removed the .pss file, which is deleted the file .cpd, looked at table formatting, created new conditions with new names. Result is always the same: HR crashes if I use a conditional compilation expression.
Things I noticed
- The project root file has many temporary files in Robohelp after the failure of the generate. If I generate thereafter with no expression of conditional compilation, temporary files are gone. This is probably normal behavior HR.
- After I deleted all the conditions and conditional text on every topic references, I added a new condition. I did NOT mark any conditional text. I have added a conditional compilation expression. Generate crashes.
Any ideas would be appreciated!
Hello! I had the same problem. It turns out that it was a problem with one subject! Talk about a needle in a Hay stack! Specifically, it was a problem with a cell that had a condition applied (the last cell of a table).
Note: The way in which this table was split and merged and had conditions applied (on certain columns, others not)... I'm not surprised, that there was a problem.
Action taken:
- Created a new project. (you wanted to see if it was a problem with my project might be corrupted or if it was something with the files and/or conditions).
- Imported from all subjects, recreated WebHelp SSL, tried to regenerate, he hooked (good news: not my bad news of project.: I have to dig further).
- Created another new project.
- Import a file that had all my conditions in there so that I can recreate my WebHelp SSL (with conditions having been imported into the new project).
- I generated the WebHelp unconditionally excluded. Worked.
- I generated the WebHelp with the same exclusions defined as I had in my original draft. Worked.
- I imported the 5 themes of my original topic and regenerated. Worked.
- I continued to repeat topics 5 both importers and regeneration until it didn't work.
- Remove the last 5 years (generated after the deletion, just to make sure it was ok), then imported one at a time until the generation has failed and the project was not admissible.
- Once I identified the subject that created the issue (did not know what the problem would be even), I have started another project and imported the topic problem ONLY. Then, I removed 3/4 of the subject and regenerated. Worked. Any new topic (replacing the stripped down in the topic) and this time I deleted less content. Regenerated. Did not work. This helped me to identify the specific area that was causing the problem which, in my case, was the construction tag closing after the table tag.
If it's the same problem, you may save time and find this string to identify: " ?rh-cbt_end> "
I hope this helps! Good luck
-c
Tags: Adobe
Similar Questions
-
RH6 HTML - cannot generate WebHelp
I use RoboHelp HTML - RH6. I recently cancelled generating WebHelp, after that I started and forgot to move from the skin. Now, when I try to generate WebHelp, the screen seems to hang for a while but never starts generating. I tried to re-opening and closing the project. I was also able to generate FlashHelp after, but still cannot generate WebHelp. Any ideas?
Thanks in advance.
Try to create a new page layout.
See www.grainge.org for creating tips and RoboHelp
-
remove the conditional compilation expressions
I created a RH7 project, and it has expanded to become the sole source of our company for the documentation of the user. It's a good thing. However, as I added information to different audiences, I'm done with a number of conditional compilation expressions I need is no longer. I would like to delete, so I don't have to search a long list on the general screen of WebHelp.
I searched the forum and didn't see any information on the removal of the conditional compilation expressions (tags, yes; expressions, no). Can someone tell me how to proceed?
Thanks for your help!Thank you! It did exactly what I had, so I'll mark this message as answered. Appreciate the quick response and all the information you have made available through the forum, as well as on your site!
-
Tag available for conditional compilation expressions
I am part of a team working on a project to version control that encompasses the content in many industries with a lot of content shared between them. This means that we use conditional tags a little. I'm new to the Group and have been playing with the tags in the image previewed topic and then experimenting with expressions different tags to see what is made invisible and what remains.
But here, all the expressions of tag that I defined in the preview window all messing are still present and I can't delete them. All new expressions really crowd out the standard set that we use to test legitimate and I know just going to annoy my co-workers.
Please, any help you can provide in defeating useless clutter, I created would be greatly appreciated.Hi all
I hope that Colum will forgive my intrusion in the thread. In my view, expressions that are created are added to the ProjectName.PSS file. An easy way to get this is to right click on any topic, choose the Properties section, click the file tab. Now click on the open folder button. Bingo! You are now in the region. If your subject is located in a folder, you will need to navigate up the tree one or twice of it originally. There you should find the PSS file.
Edit the PSS file using Windows Notepad. My expressions have been added at the bottom of the file.
-
RoboHelp 2015 - batch generate with conditional compilation tags broken?
Hello everyone.
My company has recently upgraded to Technical Communication Suite 2015 and today we try to generate online help for the first time with RoboHelp 2015. We have been batch generating (rhcl.exe) for about a year with no problems... and today I have problems in conditional tag of major works. I'll try to be as detailed as possible, in the hope that the community can tell me if I'm doing something wrong.
System: RoboHelp 2015 on Windows 7 64 bit. WebHelp layout. Upgraded project of HR 11 a week ago.
Setting up a project
In most of the topics, we have a 'See also' section at the end, with a few links. This section is tagged with the 'Online' CBT (so that we can exclude the PDF output).
There are 4-5 CBT by module.
My conditional compilation expression is: NOT print AND NO risk AND NO WIP. The expression is named Test. This conditional compilation expression is stored in a WebHelp SSL called VALUE. The 'Online' tag appears correctly under tags available and it is certainly not excluded.
The problem
I use the following command;
"C:\Program Files (x 86) \Adobe\Adobe RoboHelp 2015\RoboHTML\rhcl.exe ' 'D:\technical_documentation\my_project\my_project.xpj'-l 'Test' o 'D:\help_builds\my_master\mergedProjects\my_project '.
In the output, all the content that is tagged with Online is not visible, even if the tag was not excluded!
I tried a few other scenarios and the results are even more confusing to me. I scored some random text with some other tags ('link', 'afds' and 'value') - labeled content 'link' and 'afds' is not visible, but the content labeled 'Value' is... Although none of these tags have been excluded!
If I generate RoboHelp, not with the lot, everything works fine, without changes in the SSL settings.
Am I right in thinking this is a new bug? Perhaps rhcl.exe support incorrectly the improvements in tag conditional compilation in HR 2015? I will record a bug if this is the case, but I would like some opinions firstly thank you!
Adobe have studied this problem and managed to reproduce it.
I suggest that report you it as a bug so that Adobe can contact you if they need more information.
Please follow this link.
http://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform&product=38
See www.grainge.org for creating tips and RoboHelp
-
Conditional compilation tags or phrases in the table of contents
Hi all
I meet another problem with my conversion, this time with the tags and conditional compilation expressions.
Everything seems to go well in my subjects, but not in my table of contents.Some of my topic titles have words with conditional text applied in the source FrameMaker document.
These subject titles also appear in the table of contents that are automatically generated when I connect my framework book in Robohelp.
I put the conditional compilation expression in the Webhelp settings dialog box and then save and build.
These topic titles appear to pick up the correct conditional compilation expression in the subjects themselves, but the title of the table of contents displays several conditions (including the condition that I set myself to 'Exclude').
Thus, for example, if the title of my topic is
"Conventions in this documentonline help."
WHERE
-----
document > should appear in PDF format only
and
online help > must only appear in WebhelpI can get the Webhelp topic to use the title "Conventions in this online help.
but the corresponding TOC header looks like this:
"Conventions in this documentonline help.Any ideas?
Thank you.
WhatConditional compilation tags are not imported to the table of contents of the FrameMaker content. However, you can follow another approach to achieve this. We can manage the conditional compilation expression in FrameMaker itself and import the content of filterted in RoboHelp. In order to achieve this, set the conditional compilation expression in FrameMaker. Enable the setting in RoboHelp to 'apply FrameMaker text building conditional Expression '. [File->-> import-> Edit (FrameMaker settings)-> other settings of project settings]
This way of RoboHelp will import only the content filtered with conditional tags build resolved according to the expression applied in FrameMaker.
MILIN
-
Cannot set Expression of conditional compilation
HI -.
I want to set a different couple build conditional Expressions to generate the output printing and .chm, but set the button is dimmed. This feature didn't work for me but a few days ago now.
In my project I used the conditional build tags for print and in each of the topics where I've used it, the Red hatchings in the section show - but when I open the conditional build tags pod, there is nothing there. Weird.
Hmm... and now HR crashed for the 2nd time in 2 days - Ugh...
Any suggestions?
Thanks, LeisaHi Leisa.
Is this the same project with which you are having problems with yesterday? If so, try to recreate the build tags exactly as they were for example (respect breakage) and you will be OK.
-
Which file in RoboHelp 11 is used to store settings for conditional compilation tags
We share a RoboHelp 11 project between two authors and have noticed that the conditional compilation tags defined by an author are not detected by the second author that accesses this project through version control. I think that the file containing the details of the tags conditional build has not been added to version control, and thus the second author cannot see these details. Does anyone know what this file is called, so I can add it to version control?
Thank you very much.
The PSS file gets overwritten if you put it in the source code control, you will get very strange results. You can copy the PSS file between computers, so I would go that route.
Also have the other author define the same expressions in the preview. Once you have done that, the project will remember them.
-
Hello
So according to the documentation:
Conditional Directives of Compilation using survey
The directive of inquiry is used to check the compilation environment. The directive of inquiry is of the form:
inquiry_directive ::= $$
id
A directive of inquiry can be preset as described in 'predefined help investigation with Conditional Compilation Directives' or be defined by the user. The following describes the order of the processing flow during conditional compilation is trying to solve a directive of inquiry:
- The
id
is used as a guideline for investigation in the form$$
id
for the search key. - Re-encoding algorithm is as follows: the string in the
PLSQL_CCFLAGS
initialization parameter is scanned from right to left, the search withid
for a matching name (case sensitive); if it's recognized. The predefined survey guidelines are sought after; Done if found. - Si le
$$
id
cannot be resolved to a value, then thePLW-6003
warning message is sent if the original text is not wrapped. The literalNULL
is substituted as the value for undefined investigation guidelines. Note that if the PL/SQL code is wrapped, then the warning message is disabled so that the directive of inquiry not defined is not revealed.
I take this means, if you $IF $$xxx.00 = $5 THEN... $END but have not set a $$xxx.00 with "alter session set plsql_ccflags" then you should expect an error.
But I am unable to make this trigger, a warning, or an error, either by
ALTER session set plsql_warnings = ' error: 06003. "
or
ALTER session set plsql_warnings = ' enable: all ';
test configuration:
SCOTT@ORCL> alter session set plsql_ccflags = ''; Session altered. SCOTT@ORCL> alter session set plsql_warnings = 'enable:all', 'error:06003'; Session altered. BEGIN $IF $$DEBUGON $THEN dbms_output.put_line('debug is on'); $ELSIF NOT $$DEBUGON $THEN dbms_output.put_line('debug is NOT on'); $ELSE dbms_output.put_line('debug is neither on nor off - DEBUGON IS NOT SET!'); $END END; / show errors debug is neither on nor off - DEBUGON IS NOT SET! PL/SQL procedure successfully completed. No errors. SCOTT@ORCL>
Miss me something; It is late after all; Thank you
Jason
The compiler warnings do not seem to work for anonymous blocks, only for named objects:
dev1 > alter session set plsql_ccflags = ";
Modified session.
dev1 > alter session set plsql_warnings = ' enable: all ';
dev1 > create or replace procedure p as
2 start
$3 $IF $DEBUGON $THEN
4 dbms_output.put_line ('debug is on ');
5 $ELSIF $ $DEBUGON $THEN NO
6 dbms_output.put_line ("' debugging is NOT on");
7 $END
8 dbms_output.put_line (' ' in the procedure ');
9 end;
10.SP2-0804: Procedure created with compilation warnings
dev1 > view the error
P: PROCEDURAL errorsLINE/COL ERROR
-------- -----------------------------------------------------------------
3/8 PLW-06003: directive of unknown inquiry ' $$DEBUGON '
5/15 PLW-06003: directive of unknown inquiry ' $$DEBUGON 'John
- The
-
I need help with RoboHelp 10 conditional compilation tag option
I need assistance with the option of conditional compilation tag. I want to apply CBT to the contents of a field. I looked at the help topics and believes that I applied the function correctly. However, it does not work as you wish. In the 2nd sentence below, I want the text highlighted in blue to appear only to the printed output and printed in purple text to appear only to the .htm / output online. Help, please.
There are common tasks for managing files and folders in the browser
in the grid of BBS files viewer. For more information on these common tasks see help
and support in the successful business. click on the links below.
Hello
With the help of marking is a two part process.
First part
You create and apply tags for the information you want to order.
Second part
You create a create an Expression that is used when you generate your output. The Expression of build usually reads something like: NO Tag1 (or whatever the name of your tag)
Then when generate you and use the Expression to build, the information containing the tag is not included in the build.
See you soon... Rick
-
I use TCS2, Windows XP.
After you have created a book in FM and coding with conditional compilation tags, I imported HR. When I generate, I output the value tag:
NOT NoOUtput AND NOT internal AND NOT printed - I want to generate my external, webhelp online help. And it works like a charm. Except that:
- In the table of contents, I can still see the stars for the things that are "internal" - when I click on it, they're not going anywhere... but I don't want them to appear in the table of contents!
It seems to exclude from the index and search. I don't know that miss me just a step, or something...
Browsing the forums I found this... http://forums.Adobe.com/message/751847#751847 -I don't know if it is still applicable, because it seems to allude to RH6 (which is a bit far from the 8 HR that I use)...Any help is appreciated!
TIA,
Adriana
@Daggins - that's what I was talking about! I knew it was there somewhere ;>)
@adrianaharper - if it doesn't work properly in PDF files that you create on the FM band; what the TOC looks like FM? You're just pulling in HR when you import/link right? If the faulty internal topics are appearing in the table of contents of the FM, then expect them to appear in HR too. You must kill them, FM or kill them in HR.
-
Conditional compilation tags do not work for printed documents
Hi all
I'm working on the huge aid project, a unique project for several clients. I use conditional compilation tag features to determine what topics, links, images, text, etc. should be included or excluded the CHM for the appropriate client file.
When I tried to generate printed documentation (DOC and PDF) for a conditional build tag, I was upset by the fact that conditional construction used in TOC label do not work... The output document contains all the themes of the project help, despite the good create a conditional Expression defined for this schema of the source.
"Nobody knows how the correct subjects can automatically participate in the layout of chapter (see page 'Printed Documentation' Setup Assistant ' Presentation of the Document Print') in accordance with the conditional Build Expression in the 'print general Document' Wizard page"Printed Documentation"settings defined)?
If it works? I think Yes, because this is the absurd, if I need to compare subjects with the table of contents and manually select them :(
Please, help me...
OlgaYou do not apply the tag the right way. Applying to the table of contents only excludes the topic to the table of contents online.
Apply the tag to the section in the project manager, and it will work as you want.
No bug.
-
Cannot control the use of database storage
Hello
I've just updated the vCenter Server from 5.5U1 to 5.5U2b. In 'Health Service', there are new warning message:
"Cannot control the use of database storage. See VMware KB 2078305 for more details".
I use MS SQL 2008 R2 SP1 Express, which is supported by this version of vCenter. There are also a lot of free space on the disk of the server (63 GB free). Ko 2078305 does not explain this particular warning message and the data of events for task and retention policy are also defined.
So, what should be the problem? What are the conditions to trigger this alert?
Thank you
David
Thank you so much Jogits you are right, I used google and find the solution on the blog below
I put in sql db permission:
use master
go
grant VIEW SERVER STATE to [vpxuser]
go
GRANT VIEW ANY DEFINITION to [vpxuser]
go
and after
Restart the Vcenter, and is now GREEN
-
Cannot generate any form in oracle r12
Dear gurus,
Suddenly, we cannot generate any 'standard or made-to-measure' form with following error message:
frmcmp_batch Module=$AU_TOP/forms/US/INVGIPDP.fmb Userid = apps/apps compile_all = Yes module_type = batch form only = no output_file=$INV_TOP/12.0.0/forms/US/test.fmx
10.1 forms (form of the compiler) Version 10.1.2.3.0 (Production)
10.1 forms (form compiler): Release-Production
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
PL/SQL Version 10.1.0.5.0 (Production)
Oracle V10.1.2.3.0 - Production procedure generator
Oracle 10.1.2.0.0 graphic virtual system Version (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle tools integration Version 10.1.2.0.2 (Production)
Common tools Oracle area Version 10.1.2.0.2
Oracle CORE Production 10.1.0.5.0
Compilation of specifications package APP_CUSTOM...
No compilation errors.Compilation of specifications package IPDP_TREE...
No compilation errors.Compilation of specifications package DATA_SET_CTRL...
No compilation errors.Compilation of RESULTS package specifications...
No compilation errors.Compilation of specifications package APP_CUSTOM...
No compilation errors.Compilation of the package APP_CUSTOM body...
Compile error on the APP_CUSTOM package body:
PL/SQL ERROR 302 to line 24, column 19
component 'Disabled PERSON' must be declared
PL/SQL ERROR on line 24, column 5 0
Declaration ignored
PL/SQL ERROR on line 30, column 5 201
identifier ' APP_WINDOW. CLOSE_FIRST_WINDOW' must be declared
PL/SQL ERROR on line 30, column 5 0
Declaration ignored
PL/SQL ERROR 201 to line 43, column 5
identifier ' APP_WINDOW. SET_WINDOW_POSITION' must be declared
PL/SQL ERROR at line 43, column 5 0
Declaration ignored
PL/SQL ERROR 201 at line 46, column 3
identifier ' APP_WINDOW. SET_TITLE' must be declared
PL/SQL ERROR at line 46, column 3 0
Declaration ignoredCompilation of specifications package IPDP_TREE...
No compilation errors.Compilation of the package IPDP_TREE body...
Compile error on the IPDP_TREE package body:
PL/SQL ERROR at line 43, column 26 201
identifier ' APPTREE. COLLAPSED_NODE' must be declared
PL/SQL ERROR 0 to line 43, column 3
Declaration ignored
PL/SQL ERROR on line 50, column 26 201
identifier ' APPTREE. TREE_NAME' must be declared
PL/SQL ERROR 0 in line 50, column 3
Declaration ignored
PL/SQL ERROR at line 103, column 39 201
identifier ' APPTREE. TRIGGER_NODE_USER_VALUE' must be declared
PL/SQL ERROR at line 96, column 3 0
Ignored SQL statement
PL/SQL ERROR on line 109 column 18 201
identifier ' APPTREE. TRIGGER_NODE_TYPE' must be declared
PL/SQL ERROR on line 109 column 3 0
Declaration ignored
PL/SQL ERROR on line 117, column 13 201
identifier ' APPTREE. TRIGGER_NODE_LOW_VALUE' must be declared
PL/SQL ERROR on line 117, column 5 0
Declaration ignored
PL/SQL ERROR on line 144, column 20 201
identifier ' APPTREE. TRIGGER_NODE_HIGH_VALUE' must be declared
PL/SQL ERROR on line 144, column 5 0
Declaration ignored
PL/SQL ERROR on line 148, column 26 201
identifier ' APPTREE. TREE_NAME' must be declared
PL/SQL ERROR on line 148, column 3 0
Declaration ignored
PL/SQL ERROR 201 to 159, column 6 line
identifier ' APPTREE. TRIGGER_NODE_TYPE' must be declared
PL/SQL ERROR on line 159, column 3 0
Declaration ignored
PL/SQL ERROR 201 at line 184, column 6
identifier ' APPTREE. TRIGGER_NODE_TYPE' must be declared
PL/SQL ERROR at line 184, column 3 0
Declaration ignored
PL/SQL ERROR at line 264, column 15 201
identifier ' APPTREE. FIND_TREE_NODE' must be declared
PL/SQL ERROR on line 264, column 2 0
Declaration ignored
PL/SQL ERROR on line 272, column 28 201
identifier ' APPTREE. TREE_NAME' must be declared
PL/SQL ERROR on line 272, column 5 0
Declaration ignored
PL/SQL ERROR 201 at line 275, column 16
identifier ' APPTREE. FIND_TREE_NODE' must be declared
PL/SQL ERROR at line 275, column 3 0
Declaration ignored
PL/SQL ERROR line 282, column 28 201
identifier ' APPTREE. TREE_NAME' must be declared
PL/SQL ERROR on line 282, column 5 0
Declaration ignored
PL/SQL ERROR 201 at line 290, column 6
identifier ' APPTREE. ACTION "must be declared
PL/SQL ERROR on line 290, column 3 0
Declaration ignoredCompilation of specifications package DATA_SET_CTRL...
No compilation errors.Compilation of the package DATA_SET_CTRL body...
Compile error on the DATA_SET_CTRL package body:
PL/SQL ERROR on line 30, column 7 201
identifier ' APPTREE. NEW_VIEW_BY' must be declared
PL/SQL ERROR on line 30, column 7 0
Declaration ignored
PL/SQL ERROR 201 to line 43, column 7
identifier ' APP_ITEM_PROPERTY. SET_PROPERTY' must be declared
PL/SQL ERROR at line 43, column 7 0
Declaration ignored
PL/SQL ERROR 201 at line 46, column 7
identifier ' APP_ITEM_PROPERTY. SET_PROPERTY' must be declared
PL/SQL ERROR at line 46, column 7 0
Declaration ignored
PL/SQL ERROR on line 97, column 14 201
identifier ' APP_FORM. QUIETCOMMIT' must be declared
PL/SQL ERROR on line 97, column 11 0
Declaration ignoredCompilation of RESULTS package specifications...
No compilation errors.Package body compiling the RESULTS...
No compilation errors.
Compilation errors are produced.
Form not created--------------------------------------------------------------------
DB version: 11.2.0.3
Apps version: 12.1.3
Operating system: hp - ux B.11.31 U ia64
Kindly advice.
Kind regards
Ahmed
Ahmed,
It's something should be set by your development team.
If CUSTOM.pll has been changed, you can simply determine what has changed (unless it is documented), and you will need to contact your developers to see what has changed. If you have any other instance on the same level of Group of patches, then you could replace the CUSTOM.pll file and see if it helps.
Forms must be compiled successfully on the layer node client (using Forms builder) before moving them to the server and compile again.
Thank you
Hussein
-
RESTful service cannot insert data using PL/SQL.
Hi all
Spin: stand-alone 2.01 AL on OEL 4.8 in box a. VM
Database Oracle 10.2.0.4 with Apex 4.2.0.00.27 on OEL4.8 in the VM B box.
Measure of oracle.example.hr performed without problem Restful services.
Cannot insert data using AL 2.0.1 but works on 1.1.4 AL.
who uses the following table (under scheme: scott):
and procedure (scott diagram) below:create table json_demo ( title varchar2(20), description varchar2(1000) ); grant all on json_demo to apex_public_user;
and execution in sqldeveloper 3.2.20.09 when it connects directly to box B as scott:CREATE OR REPLACE PROCEDURE post( p_url IN VARCHAR2, p_message IN VARCHAR2, p_response OUT VARCHAR2) IS l_end_loop BOOLEAN := false; l_http_req utl_http.req; l_http_resp utl_http.resp; l_buffer CLOB; l_data VARCHAR2(20000); C_USER_AGENT CONSTANT VARCHAR2(4000) := 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)'; BEGIN -- source: http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/ -- Ask UTL_HTTP not to raise an exception for 4xx and 5xx status codes, -- rather than just returning the text of the error page. utl_http.set_response_error_check(false); -- Begin the post request l_http_req := utl_http.begin_request (p_url, 'POST', utl_http.HTTP_VERSION_1_1); -- Set the HTTP request headers utl_http.set_header(l_http_req, 'User-Agent', C_USER_AGENT); utl_http.set_header(l_http_req, 'content-type', 'application/json;charset=UTF-8'); utl_http.set_header(l_http_req, 'content-length', LENGTH(p_message)); -- Write the data to the body of the HTTP request utl_http.write_text(l_http_req, p_message); -- Process the request and get the response. l_http_resp := utl_http.get_response (l_http_req); dbms_output.put_line ('status code: ' || l_http_resp.status_code); dbms_output.put_line ('reason phrase: ' || l_http_resp.reason_phrase); LOOP EXIT WHEN l_end_loop; BEGIN utl_http.read_line(l_http_resp, l_buffer, true); IF(l_buffer IS NOT NULL AND (LENGTH(l_buffer)>0)) THEN l_data := l_data||l_buffer; END IF; EXCEPTION WHEN utl_http.end_of_body THEN l_end_loop := true; END; END LOOP; dbms_output.put_line(l_data); p_response:= l_data; -- Look for client-side error and report it. IF (l_http_resp.status_code >= 400) AND (l_http_resp.status_code <= 499) THEN dbms_output.put_line('Check the URL.'); utl_http.end_response(l_http_resp); -- Look for server-side error and report it. elsif (l_http_resp.status_code >= 500) AND (l_http_resp.status_code <= 599) THEN dbms_output.put_line('Check if the Web site is up.'); utl_http.end_response(l_http_resp); RETURN; END IF; utl_http.end_response (l_http_resp); EXCEPTION WHEN OTHERS THEN dbms_output.put_line (sqlerrm); raise; END;
leading to:SET serveroutput ON DECLARE l_url VARCHAR2(200) :='http://MY_IP:8585/apex/demo'; l_json VARCHAR2(20000) := '{"title":"thetitle","description":"thedescription"}'; l_response VARCHAR2(30000); BEGIN post( p_url => l_url, p_message =>l_json, p_response => l_response); END;
Installation using 2.0.1anonymous block completed status code: 200 reason phrase: OK with data inserted.
and execution in sqldeveloper 3.2.20.09 when it connects directly to box B as scott:Workspace : wsdemo RESTful Service Module: demo/ URI Template: test Method: POST Source Type: PL/SQL
leading to:SET serveroutput ON DECLARE l_url VARCHAR2(200) :='http://MY_IP:8585//apex/wsdemo/demo/test'; l_json VARCHAR2(20000) := '{"title":"thetitle","description":"thedescription"}'; l_response VARCHAR2(30000); BEGIN post( p_url => l_url, p_message =>l_json, p_response => l_response); END;
Please notify.status code: 500 reason phrase: Internal Server Error Listener's log: Request Path passes syntax validation Mapping request to database pool: PoolMap [_poolName=apex, _regex=null, _workspaceIdentifier=WSDEMO, _failed=false, _lastUpdate=1364313600000, _template=/wsdemo/, _type=BASE_PATH] Applied database connection info Attempting to process with PL/SQL Gateway Not processed as PL/SQL Gateway request Attempting to process as a RESTful Service demo/test matches: demo/test score: 0 Choosing: oracle.dbtools.rt.resource.templates.jdbc.JDBCResourceTemplateDispatcher as current candidate with score: Score [handle=JDBCURITemplate [scopeId=null, templateId=2648625079503782|2797815111031405, uriTemplate=demo/test], score=0, scope=SecurityConfig [constraint=none, realm=NONE, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true] Determining if request can be dispatched as a Tenanted RESTful Service Request path has one path segment, continuing processing Tenant Principal already established, cannot dispatch Chose oracle.dbtools.rt.resource.templates.jdbc.JDBCResourceTemplateDispatcher as the final candidate with score: Score [handle=JDBCURITemplate [scopeId=null, templateId=2648625079503782|2797815111031405, uriTemplate=demo/test], score=0, scope=SecurityConfig [constraint=none, realm=NONE, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true] for: POST demo/test demo/test is a public resource Using generator: oracle.dbtools.rt.plsql.AnonymousBlockGenerator Performing JDBC request as: SCOTT Mar 28, 2013 1:29:28 PM oracle.dbtools.common.jdbc.JDBCCallImpl execute INFO: Error occurred during execution of: [CALL, begin insert into scott.json_demo values(/*in:title*/?,/*in:description*/?); end;, [title, in, class oracle.dbtools.common.stmt.UnknownParameterType], [description, in, class oracle.dbtools.common.stmt.UnknownParameterType]]with values: [thetitle, thedescription] Mar 28, 2013 1:29:28 PM oracle.dbtools.common.jdbc.JDBCCallImpl execute INFO: ORA-06550: line 1, column 6: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe The symbol "" was ignored. ORA-06550: line 2, column 74: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-id java.sql.SQLException: ORA-06550: line 1, column 6: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe The symbol "" was ignored. ORA-06550: line 2, column 74: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-id at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396) at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879) at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:505) at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:223) at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531) at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:205) at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1043) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1336) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3612) at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3713) at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4755) at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1378) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at oracle.ucp.jdbc.proxy.StatementProxyFactory.invoke(StatementProxyFactory.java:242) at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:124) at oracle.ucp.jdbc.proxy.CallableStatementProxyFactory.invoke(CallableStatementProxyFactory.java:101) at $Proxy46.execute(Unknown Source) at oracle.dbtools.common.jdbc.JDBCCallImpl.execute(JDBCCallImpl.java:44) at oracle.dbtools.rt.plsql.AnonymousBlockGenerator.generate(AnonymousBlockGenerator.java:176) at oracle.dbtools.rt.resource.templates.v2.ResourceTemplatesDispatcher$HttpResourceGenerator.response(ResourceTemplatesDispatcher.java:309) at oracle.dbtools.rt.web.RequestDispatchers.dispatch(RequestDispatchers.java:88) at oracle.dbtools.rt.web.HttpEndpointBase.restfulServices(HttpEndpointBase.java:412) at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:162) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.doFilter(ServletAdapter.java:1059) at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.invokeFilterChain(ServletAdapter.java:999) at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:434) at oracle.dbtools.standalone.SecureServletAdapter.doService(SecureServletAdapter.java:65) at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:379) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapterChain.java:196) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:662) Error during evaluation of resource template: ORA-06550: line 1, column 6: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe The symbol "" was ignored. ORA-06550: line 2, column 74: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-id
Concerning
ZackZack.L wrote:
Hi Andy,.Sorry, I forgot to post the Source that is used by the AL1.1.4 and the AL2.0.1.
Source
begin insert into scott.json_demo values(:title,:description); end;
It is a failure during insertion?
Yes, he failed in the insert using AL2.0.1.If the above statement produces the following error message:
The symbol "" was ignored. ORA-06550: line 2, column 74: PLS-00103: Encountered the symbol "" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with
That gives me to think that a character is not printable (notice how there is anything between the quotation marks - "") worked his way in your PL/SQL Manager. Note how the error is reported to correspond to a column 74 on line 2, line 2 of the block above has 58 characters, so a pure assumption somehow, there is extra space on line 2, which confuses the PL/SQL compiler, I suggest retype PL/SQL Manager manually and see if that solves the problem.
Maybe you are looking for
-
Links are not displayed in Firefox desktop but appears in Firefox Android
Hello If you look at the top right of my website http://homeworkriches.com , you will see an announcement about a 'Kindle reading App free. When I look at my site on my desktop Firefox version 38.0.1 (windows 8.1) I do not see the banner displayed ju
-
My wife is a new user and today after 10 minutes to workout on an exercise bike (bike inside) I forgot to get out, and it was 3 hours 16 minutes before it was turned off. As a result he has recorded 3335 active kilojoules instead of about 210. Is any
-
can I use my cell phone 4G that has a hot spot built for up to 5 devices with a lenovo laptop that only has the WiFi features and not this map of Gobi 3000?
-
Remote laptop MacBook Air desktop client
Y at - it a remote for my laptop to Mackbook air desktop client. My office has a windows server that I would like to be able to connect remotely to
-
How to get rid of the Couponarific ads
Please can someone help, I picked up a virus/malware on my laptop. Each page I'll on that I get "Couponorific announcements" and lines double words if you click you take to the pages of spam. Oh, I'm so tired of yo the pages covered with these pop up