Runtime error using net_rim_api.jar
Hi. I was trying to use net_rim_api.jar in a web mobile application to use RadioInfo class. However whe I run the application to obtain MNC, MCC and LAC, I see the following error:
javax.faces.el.EvaluationException: java.lang.UnsatisfiedLinkError: net.rim.device.api.system.RadioInfo.getCurrentNetworkIndex()I
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1535)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:965)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:346)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: java.lang.UnsatisfiedLinkError: net.rim.device.api.system.RadioInfo.getCurrentNetworkIndex()I
at net.rim.device.api.system.RadioInfo.getCurrentNetworkIndex(Native Method)
at ct.view.BlackBerry.<init>(BlackBerry.java:44)
at ct.view.UpdateOrder.addRowLogDetail(UpdateOrder.java:203)
at ct.view.UpdateOrder.changeDetailStatus(UpdateOrder.java:65)
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 com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
... 44 more
I am running Jdeveloper 11.1.2.0.0
What's is wrong in my application?
Edited by: Jairo Cortes on Jul 16, 2011 5:41 PM
Thanks Vinod,
Really, I never tried this application with previous versions of JDeveloper. I've reading that release 11.1.1.4 has the adf mobile client doing more easy obtain deep integration with the capabilities of the mobile device. I believe this is my issue.
However, with the new release (11.1.2), I see an integration of adf mobile client has been integrated into a new product called Oracle ADF Mobile. For this reason, I did proofs with JDeveloper new release.
What's release you suggest me?
Any help will be grateful.
Jairo
Similar Messages
-
RUNTIME Error using OWB 1.2.5.0.0
I recieve the following error:
MICROSOFT VISUAL C++ RUNTIME LIBRARY
RUNTIME ERROR!
PROGRAM C:\JDK1.1.8\BIN\JAVA.EXE
ABNORMAL PROGRAM TERMINATION
This occurs when I'm using the capture wizard and specifing which MSACCESS I want.
I used OWB this morning to sucessfully load oracle tables from a MS ACCESS database.
I was trying to move on to the next database to convert.
What do I need to check?
Thanks!Hi,
I figured out the solution.
Make the project use 1.4.1 and also replace the tools.jar file under %JDEV_INSTALL%\jdk\lib
In addition to this I have also changed the "SetJavaHome" environment variable in jdev.conf to use JDK 1.4.1
And everything is working fine and as I wanted.
FYI:
Replace tools.jar on OC4J Standalone(I used OC4J 903) with tools.jar of JDK 1.4.1 and then app can be deployed on OC4J as well.
Hope this helps someone.
Regards,
Narinder -
Runtime Error using JDBC Driver in NetBeans IDE 6.9.1
Hello,
I receive a compiler error which reads as follows;
java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
java.sql.SQLSyntaxErrorException: Schema 'DEMO' does not exist
Heres the main body of code i am trying to execute.
public class Main {
@param args the command line arguments
public static void main(String[] args) {
// TODO code application logic here
try{
Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
}catch(ClassNotFoundException e){
System.out.println(e);
try{
Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/SimpleDBDemo", "demo", "demo");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM DEMO.Table1");
while (rs.next()) {
String s = rs.getString("Name");
float n = rs.getFloat("Age");
System.out.println(s " " n);
}catch(SQLException e){
System.err.println(e);
I am using NetBeans IDE and have created a database under: Services->Databases-> Java DB->SimpleDBDemo.
I have a database connection in which theres a simple table (called "TABLE1") created which contains the names and ages of two people. I am trying to access the data of these two people.
From what i can figure out i am getting a runtime error. I have downloaded a folder called "Microsoft SQL Driver 2005 JDBC Driver" which contains the "sqljdbc.jar" executable file. I copied the jar file to the library in "Program files->Sun->javadb" and then added the file to the project libraries section i.e. "Project->properties->add JAR/Folder->sqljdbc.jar" in netbeans.
I am still getting the same runtime error. Have i the sqljdbc.jar file added in the wrong place?
Any help would be greatly appreciated.Microsoft SQL Driver 2005 JDBC Driver is not the Derby driver.
You need the correct JDBC driver for the database you are using, you can't simply grab the first one you find. -
Runtime error using range table in select query
I have to select tcodes from table tstc, based on the entries in ust12,
the entries in ust12-von and ust12-bis, these contains wild charcters also, and i have to selct all the tcodes from von to bis.
so ia m preparing a range table for the entries in ust12, and querying table tstc, then i am getting a runtime error with following description.
'If the problem occurred because an excessively large table was used
in an IN itab construct, you can use FOR ALL ENTRIES instead.'
but how can i use FOR ALL ENTRIES here, because if von = A* and bis = AB*,then i ahve to read all the entries from AAAA till ABZZ (may be something like this),
is there any way to write this query, with out runtime error.
there are total 15000 entries in ust12, i am preparing range table for 3000 entries each and querying tstc.
Thanks in advance
Best Regards
Amarender Reddy BHi,
first write a select on ust12 based on ust12-von and ust12-bis.
eg: select von bis from ust12 into table gt_ust12
where von LIKE 'A%'
and bis LIKE 'AB%'.
now write another select for tstc for all entries in gt_ust12...
Hope it helps
Regards,
Pavan -
Runtime Error Using BAPI SALESORDER CHANGE
Hi,
I was trying to use the BAPI_SALESORDER_CHANGE to change 'Material Group 1' field. When executing the program, it kept on failing with this runtime error 'CALL_FUNCTION_CONFLICT_LENG'. Below is my codes and also the error analysis found in ST22.
Kindly please let me know my program errors.
Thanks much.
CODES :-
DATA: l_vbeln TYPE bapivbeln-vbeln,
l_hx LIKE bapisdhead1x,
l_r TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE,
l_i TYPE STANDARD TABLE OF bapisditem WITH HEADER LINE,
l_ix TYPE STANDARD TABLE OF bapisditemx WITH HEADER LINE,
l_success(1) TYPE c VALUE 'Y'.
l_vbeln = '0000707671'.
l_hx-updateflag = 'U'.
l_i-itm_number = '000010'.
l_i-prc_group1 = 'Y'.
APPEND l_i.
l_ix-itm_number = '000010'.
l_ix-updateflag = 'U'.
l_ix-prc_group1 = 'X'.
APPEND l_ix.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = l_vbeln
ORDER_HEADER_IN =
order_header_inx = l_hx
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
NO_STATUS_BUF_INIT = ' '
TABLES
return = l_r
order_item_in = l_i
order_item_inx = l_ix
PARTNERS =
PARTNERCHANGES =
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
SCHEDULE_LINES =
SCHEDULE_LINESX =
ORDER_TEXT =
ORDER_KEYS =
CONDITIONS_IN =
CONDITIONS_INX =
EXTENSIONIN =
NFMETALLITMS =
LOOP AT l_r.
IF l_r-type <> 'S'.
l_success = 'N'.
EXIT.
ENDIF.
CLEAR l_r.
ENDLOOP.
IF l_success = 'Y'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
WRITE: / 'Update successful'.
ELSE.
WRITE: / 'Update fail'.
ENDIF.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was
not caught and
therefore caused a runtime error.
The reason for the exception is:
The call to the function module "BAPI_SALESORDER_CHANGE" is incorrect:
In the function module interface, you can specify only
fields of a specific type and length under "ORDER_HEADER_INX".
Although the currently specified field
"L_HX" is the correct type, its length is incorrect.Thanks ALL. Here is the amended program that works fine :-
DATA: l_vbeln TYPE bapivbeln-vbeln,
l_hx TYPE bapisdh1x,
l_r TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE,
l_i TYPE STANDARD TABLE OF bapisditm WITH HEADER LINE,
l_ix TYPE STANDARD TABLE OF bapisditmx WITH HEADER LINE,
l_success(1) TYPE c VALUE 'Y'.
l_vbeln = '0000707671'.
l_hx-updateflag = 'U'.
l_i-itm_number = '000010'.
l_i-prc_group1 = 'Y'.
APPEND l_i.
l_ix-itm_number = '000010'.
l_ix-updateflag = 'U'.
l_ix-prc_group1 = 'X'.
APPEND l_ix.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = l_vbeln
ORDER_HEADER_IN =
order_header_inx = l_hx
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
NO_STATUS_BUF_INIT = ' '
TABLES
return = l_r
order_item_in = l_i
order_item_inx = l_ix
PARTNERS =
PARTNERCHANGES =
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
SCHEDULE_LINES =
SCHEDULE_LINESX =
ORDER_TEXT =
ORDER_KEYS =
CONDITIONS_IN =
CONDITIONS_INX =
EXTENSIONIN =
NFMETALLITMS =
LOOP AT l_r.
IF l_r-type <> 'S'.
l_success = 'N'.
EXIT.
ENDIF.
CLEAR l_r.
ENDLOOP.
IF l_success = 'Y'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
WRITE: / 'Update successful'.
ELSE.
WRITE: / 'Update fail'.
ENDIF. -
ALV list -Runtime error using the Spreadsheet button(CTRL+SHIFT+F7)
Hi,
We are on ECC6.0.When ever I try to use the button 'Spreadsheet' (CTRLSHIFTF7) it gives me the following runtime error.It works fine if I use the export button.Also it works for ALV grid.Issue is only with ALV list.
Can you pelase advise waht could be the issue.
Thanks
Venkat
Runtime Errors GETWA_NOT_ASSIGNED
Date and Time 08.06.2009 16:02:22
Short text
Field symbol has not yet been assigned.
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_SALV_BS_TT_RESULT_TABLE====CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
You attempted to access an unassigned field symbol
(data segment 32781).
This error may occur if
- You address a typed field symbol before it has been set with
ASSIGN
- You address a field symbol that pointed to the line of an
internal table that was deleted
- You address a field symbol that was previously reset using
UNASSIGN or that pointed to a local field that no
longer exists
- You address a global function interface, although the
respective function module is not active - that is, is
not in the list of active calls. The list of active calls
can be taken from this short dump.
Trigger Location of Runtime Error
Program CL_SALV_BS_TT_RESULT_TABLE====CP
Include CL_SALV_BS_TT_RESULT_TABLE====CM00L
Row 165
Module type (METHOD)
Module Name GET_CELL_VALUE
Source Code Extract
Line
SourceCde
135
call method cl_alv_xslt_transform=>get_days_since_1900
136
exporting
137
i_date = l_date
138
receiving
139
e_num = attribute01.
140
141
elseif ls_attribute-s_dfies-inttype eq cl_abap_typedescr=>typekind_time. "Time
142
data:
143
l_time type t.
144
145
l_time = <l_data>.
146
147
call method cl_alv_xslt_transform=>get_isotime_from_inttime
148
exporting
149
i_value = l_time
150
receiving
151
e_value = value.
152
153
*... fill attribute01 with percent value of actual day
154
call method cl_alv_xslt_transform=>get_percent_of_act_day
155
exporting
156
i_time = l_time
157
receiving
158
e_num = attribute01.
159
160
elseif ls_attribute-s_dfies-inttype ca if_salv_bs_log_exp_operand=>c_numeric and
161
ls_attribute-s_dfies-convexit is initial.
162
case ls_attribute-s_dfies-reference_field_type.
163
when if_salv_bs_c_data=>reffieldtype_curr.
164
*... get iso value for currency value
>>>>>
call method cl_alv_xslt_transform=>get_isonum_from_intnum
166
exporting
167
i_value = <l_data>
168
i_currency = <l_reference>
169
i_decimals = ls_attribute-s_dfies-decimals
170
importing
171
e_value = l_isovalue.
172
173
when if_salv_bs_c_data=>reffieldtype_quan.
174
*... get iso value for quantity value
175
call method cl_alv_xslt_transform=>get_isonum_from_intnum
176
exporting
177
i_value = <l_data>
178
i_unit = <l_reference>
179
i_decimals = ls_attribute-s_dfies-decimals
180
importing
181
e_value = l_isovalue.
182
183
when others.
184
*... get iso value for valueHi Pinaki,
Thanks for your reply.
below is my code.
data: t_fieldcat type slis_t_fieldcat_alv,
w_fieldcat like line of t_fieldcat,
w_layout type slis_layout_alv,
t_sort type slis_t_sortinfo_alv,
w_sort like line of t_sort,
t_events type slis_t_event,
w_events like line of t_events.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_structure_name = 'ZSD_ORDERS'
i_bypassing_buffer = 'X'
changing
ct_fieldcat = t_fieldcat.
data: l_lines_fieldcat type i.
describe table t_fieldcat lines l_lines_fieldcat.
clear: w_fieldcat.:
w_fieldcat-col_pos = l_lines_fieldcat + 1.
w_fieldcat-datatype = 'QUAN'.
w_fieldcat-just = ' '.
w_fieldcat-do_sum = ' '.
w_fieldcat-fieldname = 'ZZSCLQTY'.
w_fieldcat-tabname = 'T_DATA'.
w_fieldcat-qfieldname = 'VRKME'.
w_fieldcat-seltext_s = text-a01.
w_fieldcat-seltext_m = text-a01.
w_fieldcat-seltext_l = text-a01.
append w_fieldcat to t_fieldcat.
Modify column headings
loop at t_fieldcat into w_fieldcat.
case w_fieldcat-fieldname.
when 'MATNR'.
w_fieldcat-no_zero = 'X'.
when 'ZZPRICECHECK'.
w_fieldcat-reptext_ddic = text-l01.
when 'KZWI5'.
w_fieldcat-reptext_ddic = text-l02.
when 'VBELN'.
w_fieldcat-hotspot = 'X'.
when 'BMENG'.
w_fieldcat-do_sum = 'X'.
when 'COUNTER'.
w_fieldcat-do_sum = 'X'.
w_fieldcat-reptext_ddic = text-l03.
when 'OBJDE'.
w_fieldcat-reptext_ddic = 'Obj ID'.
endcase.
modify t_fieldcat from w_fieldcat.
endloop.
Format output options
clear w_layout.
w_layout-colwidth_optimize = 'X'.
w_layout-zebra = 'X'.
w_layout-get_selinfos = 'X'.
w_layout-detail_initial_lines = 'X'.
w_layout-group_change_edit = 'X'.
Specify list processing events
w_events-name = 'TOP_OF_PAGE'.
w_events-form = 'TOP_OF_PAGE'.
append w_events to t_events.
Fit Add List Variant from Selection Screen "003
clear: w_variant.
w_variant-report = sy-repid.
w_variant-variant = sp_vari.
end Fit02
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = w_repid
is_layout = w_layout
it_sort = t_sort
i_callback_user_command = 'USER_COMMAND'
is_variant = w_variant
i_save = 'A'
it_fieldcat = t_fieldcat[]
it_events = t_events[]
tables
t_outtab = t_data.
endform. -
C++ Runtime error using LiveCycle Designer
I have been using Adobe Pro 9 for some time, my system is running XP Professional and Service Pack 3. Each time I edit a form which I am adding tables to the form crashes with the runtime error. We had a system upgrade for some unrelated software on the weekend and everything worked fine up to that point.
I continue to save each time I add a section in the table, I have edited the form 5 times now with the same result. The file ends up being corrupt with 0bytes.
Can anyone offer advice on this.
Christine..Hi Christine,
This is a typical problem in LiveCycle Designer ES (8.2). I have faced this issue several times. Though I do not know the actual reason for this. There are many things responsible for this behaviour.
- Is the form opened for several hours in LiveCycle Designer?
- Have you made repeated copy paste operation of the fields as well as of the Javascript?
- Have you saved the form repeatedly for small changes without doing the "Save As" operation?
- Have you long lines of JavaScript?
Few Suggestions might Help...
- Do not open the LiveCycle Designer for longer duration like more than 4 hours. Save changes. Close it and reopen it.
- Instead of doing the "save" operation do the "Save As" operation. It will also help in reducing the size of the form.
- Avoid Copy pasting of the fields or JavaScript always. While you do it, if you see the XMl Source you will some designer id would be added exponentially.
- Use events intelligently.
Thanks,
Bibhu. -
Runtime error using Migration Workbench 1.2.4.3.0 for MS-Access
Hi
I am having problems migrating an Access 2 database across to Oracle 8i release 8.1.5 on Windows NT SP5 using OMWB 1.2.4.3.0.
During the generation of the source model, the Migration routine halts with the following message :
Microsoft Visual C++ Runtime Library
Runtime Error
Program C:\Program Files\Oracle\jre\1.1.7\bin\jrew.exe
Abnormal Program Termination
Can anyone help with this one ? Is it related to DAO, and if so, how do I resolve it ?Access 2000 databases are not supported. Only 2.0, 95 and 97 are supported. You can downgrade the 2000 database to Access 97 if you are not using any 2000 specific features and then use the Workbench. Note that you must have DAO 3.5 installed on the machine where the Workbench is running.
-
Error Using imported .JAR in user-defined function
Hi All,
I am trying to use jar files provided to me in user defined function as follows:
DataEncryption temp = new DataEncryption();
String ret = new String();
ret = temp.getEncryptedData(a);
return ret;
All jar files working perfectly in java software, But when i am trying to test the mappings by using above user-defined function.
I am catching the error and put in target field then, I am getting following message in target field:
"An error occured in getEncryptedData method : java.lang.SecurityException: The provider SunJCE may not be signed by a trusted party"
Please help in finding the error.
RegardsRohan
Check if the XI Server JRE is the same as the client machine on which you have compiled your JAR.
1.4 has had this issue and i remember seeing it in a few forums.The problem should not occure in 1.5 -
Runtime error using utl_file package
Hi Friends,
This is the procedure for reading sample data from flat file , but it won't work.
create or replace procedure test_utl_file
is
ftype utl_file.file_type;
ch varchar2(200);
begin
ftype := utl_file.FOPEN('C:\oracle\temp','data.txt,R');
utl_file.get_line(ftype,ch);
dbms_output.put_line(ch);
end;
This code is compiled succesfully , but at runtime it shows an error msg
ORA-29280: invalid directory path
ORA-06512: at "SYS.UTL_FILE", line 33
ORA-06512: at "SYS.UTL_FILE", line 436
ORA-06512: at "SCOTT.TEST_UTL_FILE", line 7
ORA-06512: at line 1
I had entered the directory entry in int.ora file
utl_file_dir=C:\oracle\temp
& i used another way also,
by using alter set utl_file_dir=C:\oracle\temp scope=spfile;
Can anyone help me to resolve this problem.
Rgrds,
AnandWhat database version are you using?
The UTL_FILE_DIR parameter has been deprecated by oracle in favour of direcory objects because of it's security problems.
The correct thing to do is to create a directory object e.g.:
CREATE OR REPLACE DIRECTORY mydir AS 'c:\myfiles';
Note: This does not create the directory on the file system. You have to do that yourself and ensure that oracle has permission to read/write to that file system directory.
Then, grant permission to the users who require access e.g....
GRANT READ,WRITE ON DIRECTORY mydir TO myuser;
Then use that directory object inside your FOPEN statement e.g.
fh := UTL_FILE.FOPEN('MYDIR', 'myfile.txt', 'r');
Note: You MUST specify the directory object name in quotes and in UPPER case for this to work as it is a string that is referring to a database object name which will have been stored in uppercase by default. -
Different errors using standard.jar
I've been trying to use the standard.jar (JSTL1.0) but I keep getting different errors. I presume, it's JSP1.2 and Servlet2.3 compliant.
Here is the problem description:
I've a web-module. I kept this jar under WEB-INF/lib. When I use the taglib usiing
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
I get "Unable to open taglibrary http://java.sun.com/jstl/fmt : Could not locate TLD http://java.sun.com/jstl/fmt".
And when I use the taglib using a local fmt.tld, as in,
<%@ taglib prefix="fmt" uri="/tld/fmt.tld" %>
I get, "com.sun.portal.providers.jsp.jasper3.jasper.compiler.CompileException: ......./HarnessPortletContent.jsp(47,65) Unable to load class null".
Tried both Tomcat3.0 and Sun App Server 7.0I know that the JSTL 1.0 jars work in AppServer 7.1. The TLD scanning mechanism is included in 7.1 where you only need to place the jar files that include your TLD's in the web application's WEB-INF/lib directory.
You can either upgrade to AppServer 7.1 or do the mappings yourself manually as follows:
1) unjar the JSTL implementation jar file
2) copy the TLD's to your WEB-INF directory
3) rejar the JSTL implementation jar file and place it in your WEB-INF/lib directory
4) modify your web.xml file to point to the JSTL TLD's like:
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>
I'd recommend upgrading since the above steps are tedious and you can avoid them by using a container like AppServer 7.1 or Tomcat 4.x that implements TLD scanning.
Thanks,
Justyna -
Access Denied Socket Permission Error using 3rdParty jar in webstart
Hi,
I am trying to create a multisocket in my application, and this app is downloaded through webstart,
Following are the things I ve done,
1. I use two jnlp file, one mail jnlp file (say a.jnlp) and the other an extension jnlp file (a_ext.jnlp) which contains the third party jars.
2. I used <security><allpermission/><security/> in both the jnlp files.
3. If I try to create a multisocket in my code that is downloaded through main jnlp i.e. a.jnlp file, then it is working fine.
4. But the problem is, the third party jar which is downloaded throught "a_ext.jnlp" file is trying to create a multisocket
and i am getting the following error,
+java.security.AccessControlException: access denied (java.net.SocketPermission 228.0.0.4 connect,accept,resolve)+
+ at java.security.AccessControlContext.checkPermission(Unknown Source)+
+ at java.security.AccessController.checkPermission(Unknown Source)+
+ at java.lang.SecurityManager.checkPermission(Unknown Source)+
+ at java.lang.SecurityManager.checkMulticast(Unknown Source)+
+ at java.net.MulticastSocket.joinGroup(Unknown Source)+
+ at inria.net.MulticastSession.initialize(MulticastSession.java:143)+
+ at inria.net.lrmp.LrmpImpl.<init>(LrmpImpl.java:105)+
+ at inria.net.lrmp.LrmpImpl.<init>(LrmpImpl.java:89)+
+ at inria.net.lrmp.Lrmp.<init>(Lrmp.java:194)+Please help me.
Note that I dont want to create any policy file, I want some configurations to be done in jnlp files or in the jars, because i cannot create a policy file and copy it manually in each client deployment.>
And sorry that jnlp is a valid jnlp only, ..>
How do you know? Did you validate it, or are you just guessing?
>
..and it was a typing mistake, ..>So don't retype these things, instead copy/paste them.
>
it is </security> not <security/>>it is also <all-permissions/>, not <allpermission/>
>
and when i start through webstart it is asking for confirmation also, so i think this <security> tag is working fine.>Stop thinking and start validating.
>
But the problem is with security for the 3rdParty jar downloaded through jnlp extension. >So it will be most important to validate that. Note that if this 3rd party extension is signed by the people that supplied it, you should get a second security prompt.
>
... I hope JNLP doesnt check or give permission for the jars downloaded via extension jnlp?>What does that mean?
OTOH, I just noticed you assigned the princely sum of 1 entire duke star for this question. It is obviously of only minor importance to you, so my time is better spent elsewhere.
Good luck with it. -
Runtime error using jdk 1.4.1 in jdev
Hi,
I am using jdev 9032. My project uses jdk 1.3.1 the default that comes with jdeveloper. Now i have to make this application work on 1.4.1_05.
But when I run the app in jdev by changing the jdk to 1.4.1 or when I deploy in OC4J (standalone) 903 with JAVA_HOME=C:\JDK1.4.1, I get following error in both the case:
Auto-deploying file:/D:/temp/projects/Myproject/classes/ (No previous deployment found)... MyProjectServices_StatelessSessionBeanWrapper16.java:6: cannot access java.rmi.NoSuchObjectException
bad class file: D:\Utilities\java\jdk\j2sdk1.4.1_05\jre\lib\rt.jar(java/rmi/NoSuchObjectException.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import java.rmi.NoSuchObjectException;
^
1 error
Error compiling D:\temp\projects\Myproject\classes: Syntax error in source
Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
But when I compile my source using JDK 1.4.1 it is fine, and only gives me error while deploying.
Please let me know how to get this app deployed on OC4J with JDK 1.4.1
THANKS in advance
NarinderHi,
I figured out the solution.
Make the project use 1.4.1 and also replace the tools.jar file under %JDEV_INSTALL%\jdk\lib
In addition to this I have also changed the "SetJavaHome" environment variable in jdev.conf to use JDK 1.4.1
And everything is working fine and as I wanted.
FYI:
Replace tools.jar on OC4J Standalone(I used OC4J 903) with tools.jar of JDK 1.4.1 and then app can be deployed on OC4J as well.
Hope this helps someone.
Regards,
Narinder -
JDBC runtime error using data source (Oracle 9i server & Oracle 8i client)
Hi,
Wud someone help me with this? Why am I getting this run-time error?
D:\shilpa\javaprogs>java -classpath %classpath%;.; CreateMovieTables
javax.naming.NoInitialContextException: Need to specify class name in environmen
t or system property, or as an applet parameter, or in an application resource f
ile: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
40)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.jav
a:280)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at CreateMovieTables.initialize(CreateMovieTables.java:18)
at CreateMovieTables.main(CreateMovieTables.java:101)
This is how I have created the data source:
public void initialize() throws SQLException, NamingException
Context initialContext = new InitialContext();
DataSource dataSource = null;
dataSource = (DataSource) initialContext.lookup("jdbc/Oracle");
connection = dataSource.getConnection();
I have set the classpath to: C:\j2sdk1.4.2_08\jre\lib where the jndi.properties file exists.
Here's the jndi file:
datasource.name=jdbc_1
datasource.url=jdbc:oracle:thin:@10.119.5.98:1521:sea77db0
datasource.classname=oracle.jdbc.driver.OracleDriver
datasource.username=tr1
datasource.password=tr1
What am I doing wrong? Cud someone help me with this? It's working fine when I don't use the data source. Maybe I am doing something wrong.
Regards,
Shipf1After reading your posts, I noticed that my eyes were bleeding...
Wud someone help me with this?
Cud someone help me with this?
Thanks. It worked. BUt, IF i wanna ...
I don't[b] wanna...
what shud i do then?
Thought I should return the favor encapsulating the essence of this writing style:
So, IF i cud, I wud, but If i don't wanna shud i anyway?
Just funnin around... Good luck on your problem though.
Darn it, my eyes are bleeding again! -
The following code segment will execute properly unless it is compiled with the -KPIC option in which case it will segfault.
// compiled with
// CC: Sun WorkShop 6 update 1 C++ 5.2 Patch 109508-07 2001/12/13
#include <string>
class A {
public:
A(const std::string& name) : _name(name) {}
const std::string& name() const { return _name; }
private:
A(const A&);
const A& operator=(const A& rhs);
std::string _name;
class B {
public:
static const A& get();
const A& B::get()
static A a(std::string("Test String"));
return a;
std::string str1 = B::get().name();
std::string str2 = B::get().name();
int main() {
std::cout << str1 << std::endl;
std::cout << str2 << std::endl;
==========================
Here's the stack
==========================
=>[1] __rwstd::__string_ref<char,std::char_traits<char>,std::allocator<char> >::__unSafeRemoveReference(this = 0x29f40), line 255 in "string_ref"
[2] __rwstd::__string_ref<char,std::char_traits<char>,std::allocator<char> >::__removeReference(this = 0x29f40), line 246 in "string_ref"
[3] std::basic_string<char,std::char_traits<char>,std::allocator<char> >::__unLink(this = 0xefffe9b0), line 863 in "string"
[4] std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string(this = 0xefffe9b0), line 283 in "string"
[5] B::get(), line 22 in "CC_bug2.c"
[6] __SLIP.INIT_B(0xffffffff, 0x64c00, 0x0, 0x64c28, 0xef723138, 0x490f8), at 0x29508
[7] __STATIC_CONSTRUCTOR(), line 26 in "CC_bug2.c"
[8] 0x4b440(0x0, 0x4a8cc, 0xef7255a0, 0xef723138, 0x0, 0x0), at 0x4b43f
KevinThe stacktrace shows the program died when trying to destruct string "Test String" before returning from B::get().
Please try to use patch 109508-06 and see if the crash still occurs.
- Rose
Maybe you are looking for
-
Need help setting up my Wireless
Since the phone operators have failed to connect my call within 45 minutes of calling tech support and online chat requires that I know my father's email (seriously, who makes a tech support where getting support is more frustrating than dealing with
-
[SOLVED] Blue Screen Of Death help? Info included
Hello everyone, First of all, I'm new to this forum and I am probably posting this on the wrong section, sorry about that. :( Lately I've been having a lot of Blue Screens (some were the same problem repeatedly), I've managed to solve some as I alrea
-
Not Upgrading to 10.5 until Stacks can be disabled
It has been chronicled elsewhere...and having tried it at work... -Icons in dock are useless and changing -Can't quickly browse into subfolders -finding the right app/doc in grid or fan requires more mousing than from the old list view. Definitely Ap
-
Infotype operation on infotype 0008
Dear Freinds, While using the HR_INFOTYPE_OPERATION for the infotype 0008 , i have one specific problem being encountered . the scenario is when iam having multiple Wage types for an employee..then i couldnt upload all the wages types . O
-
System connection test in EP: SSO configurated error
hi experts, i get a problem in EP conncet SRM . i don't know too much is this area, please give some advices. what i have done: 1 download Certification file from EP (*.der) 2 import certification firle into SRM system thorugh TCode: STRUSTSSO2