Weblogic 6.1 sp1 Application Server MDB does not consume messages
I have the following situation:
WebLogic Application Server 6.1 sp1. A deployed mdb does nothing - just sits idle
even when the JMS queue it points to has many messages waiting to be consumed.
When the application server is bounced (i.e., shutdown and restarted), the mdb
starts processing the messages. JMS server has a JDBC backing store.
Any ideas?
Thanks,
Prakash
Tobin is right, my apoplication is called "portal", I am not using WLPortal. Anyway,
I managed to resolve my problem,I had sax2 , xp and xt parsers placed in the WEB-INF\lib
directory of my application in addition to my own jar file. I removed the parsers
, and now my application is running fine.
It is strange though, since my application used to load and work flawlessly on
weblogic 6 as well as weblogic 6.1 sp1 with the parsers in the lib directory....
Anyhow, thanks a lot for the help.
Regards,
Lalitha
"Tobin Paterson" <[email protected]> wrote:
>
Having applied WLS 6.1 sp2 upgrade today I am seeing the same fault.
I am not using
WL Portal. Also I think the original poster's application just happens
to be called
"portal" and is not using WL Portal.
cheers,
Tobin.
"BEA Support" <[email protected]> wrote:
Hello,
Only WLCS and/or WLPS 3.5 sp 2 support WLS 6.1 sp 2
WL Portal 4.0 support only WLS 6.1 sp 1.
Regards,
Developer Relations Engineer
BEA Support
"Lalitha" <[email protected]> a écrit dans le message de news:
[email protected]..
Hi
For some reason, my application 'portal' does not run on weblogic
6.1
sp2,
It used to run fine on 6.1 sp1 .
I am attaching the weblogic.log file with this msg.
Thanks,
Regards,
Lalitha
Similar Messages
-
Application Server Control does not ask for password
Hi all-
I just installed App Server (as part of Collaboration Suite) and am working on security. For some reason, the App Server Control for the apps tier does not ask for a username/password. Anyone know how to fix that glaring hole? Infrastructure does ask for user/pass, just not apps.
Thanks!
RobI had to clear authenticated sessions AND cookies (in Firefox). Clearing only one or the other isn't enough.
Rob -
Oracle 10g AS 10.1.3 cluster : Topic MDB does not receive messages
Dear experts,
We have the latest Oracle 10g AS 10.1.3 cluster, which consists of two nodes.
Background: Our application is a J2EE app extensively using JMS for communicating notifications between cluster nodes. It does work fine in standalone OC4J, clustered WebLogic and clustered SAP WebAS.
Application is deployed without any errors to Oracle AS. It works fine with 1 cluster node, it 'half' works when second node is added.
The cluster does recognize both nodes - we can administer and see them fine from the console.
The problem application experiences is this:
1. The application MDBs do not seem to receive any messages sent from another node. Only messages submitted from the same JVM are ever seen. This leads to incosistency in server caches.
2. JNDI tree updates made from one node are also not visible on the other and vice versa.
We tried it on a single physical server with 2 App Server instances and on 2 physical servers.
I followed standard instructions on how to configure clustered environment - basically all we could do after we installed two instances was we turned on the PEER clustering for our application.
Firewalls are also turned off on both servers.
I would really appreciate any piece of advice because we're really stuck at this point!
Thank you!
-Yuri Sokolovski
SCEAHi Peter,
Can you just install 10.1.3 on top of another AS installation?You can't install an Oracle Application Server on top of another version. The 10.1.3 install needs to have its own Oracle Home. However, you can configure a 10.1.3 install to use OHS 10.1.2 and to use OID 10.1.2 as its identity management store.
Can you install 10.1.3 standalone?Absolutely. You can download it from:
http://www.oracle.com/technology/software/products/ias/htdocs/utilsoft.html
Serouj -
Hi,
I am migrating my ejb application from weblogic to oracle 9i application server.What changes are needed to be made in code and what configuration changes are required.
In my application i use a couple of session beans wherin a session bean calls the method of the other session bean which acceses the database.I am using a jdbc thin driver for the database connection. is it possible for a session bean to call a method of another session bean which access the database??This concept works well in weblogic where the current application is running.
The problem is that while migrating the application to the orion server, it gives an OrionCMTException ...
memory leak..etc.
Could any one clarify.
Thanks in advance!!!Hi Avi and Harrison,
Cease Fire avi!!!!.First of all let me clear the issue of posting the same problem twice.Well, when i mentioned the problem the first time , i found the title session bean deployment was not right and few people would look into it as it was a common problem so i thought it would be appropriate if i mentioned the title correctly , so i posted the query again with the change in title.
Now coming to the answer for ur questions.
The platform used is MS Windows NT.
The (OC4J) version is 1.0.2.2.1.
I am not using JDeveloper.
The database is oracle 8i and i am using the thin driver.
The beans to be deployed are stateless session beans.
The client involved is a web client i.e a jsp application.
The first session bean is as follows.
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import java.sql.Timestamp;
import java.rmi.RemoteException;
import java.util.Date;
import javax.ejb.*;
import javax.naming.*;
import initcontext;
import PrintMessage;
import JB_B2B_ERROR_PARSER;
* @stereotype SessionBean
* @homeInterface DB_UTILITYHome
* @remoteInterface DB_UTILITYRemote
public class DB_UTILITY implements SessionBean
private SessionContext context;
private ResultSet rs = null;
private Statement stmt = null;
private Connection con = null;
private PrintMessage print = null;
public DB_UTILITY()
rs = null;
stmt = null;
con = null;
print = new PrintMessage();
public Connection getConnection()throws RemoteException
InitialContext initctx = null;
Connection con = null;
try
initctx = initcontext.getContext();
javax.sql.DataSource ds =
(javax.sql.DataSource)initctx.lookup("java:comp/env/jdbc/ePool");
con = ds.getConnection();
//(javax.sql.DataSource)initctx.lookup("java:comp/env/jdbc/ePool");
catch(NamingException namingexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", namingexception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("AppError",
"Epool-10001", "DB_UTILITY.getConnection"));
catch(SQLException sqlexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", sqlexception);
throw new
epoolException(JB_B2B_ERROR_PARSER.getErrorMessage("DBError",
JB_B2B_ERROR_PARSER.getSQLCode(sqlexception),
"DB_UTILITY.getConnection"));
catch(Exception exception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", exception);
throw new
epoolException(JB_B2B_ERROR_PARSER.getErrorMessage("EpoolError",
"Epool10005", "DB_UTILITY.getConnection"));
return con;
public String getDate()throws RemoteException
String Date=null;
try
con=getConnection();
stmt=con.createStatement();
rs=stmt.executeQuery("SELECT
TO_CHAR(SYSDATE,'YYYY-MM-DD HH:MI:SS') FROM DUAL");
while(rs.next())
Date=rs.getString(1);
stmt.close();
con.close();
catch(SQLException sqlexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", sqlexception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("DBError",
JB_B2B_ERROR_PARSER.getSQLCode(sqlexception), "DB_UTILITY.getDate"));
catch(Exception exception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", exception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("epoolError",
"Epool10005", "DB_UTILITY.getDate"));
finally
try
if(con != null && !con.isClosed())
con.close();
catch(Exception exception2)
stmt = null;
con = null;
return Date;
public void setSessionContext(SessionContext context)
this.context = context;
public void ejbActivate()
public void ejbPassivate()
public void ejbCreate()
public void ejbRemove()
Also the xml files are as follows.
web.xml
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<!-- A friendly name for this web application, this name can be used in visual development environments, for instance -->
<display-name>AddressBook Web Application</display-name>
<!-- A human-readable description of this web application -->
<description>Web module that contains an HTML welcome page, and 4 JSP's.</description>
<!-- The file(s) to show when no file is specified, i.e. only the directory is specified. -->
<welcome-file-list>
<welcome-file>B2B_COUNTRY_CODE.jsp</welcome-file>
</welcome-file-list>
<ejb-ref>
<ejb-ref-name>SB_B2B_COUNTRY_CODEHome</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>SB_B2B_COUNTRY_CODEHome</home
<remote>SB_B2B_COUNTRY_CODERemote</remote>
</ejb-ref></web-app>
Application.xml
<?xml version="1.0"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
<application>
<display-name>Country Code</display-name>
<module>
<ejb>epool_CountryCode-ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>epool_CountryCode-web.war</web-uri>
<context-root>/epool_CountryCode-web</context-root>
</web>
</module>
</application>
ejb-jar.xml:
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
<ejb-jar>
<description>epool_CountryCode</description>
<enterprise-beans>
<session>
<display-name>CountryCode Session
Bean</display-name>
<ejb-name>SB_B2B_COUNTRY_CODERemote</ejb-name>
<home>SB_B2B_COUNTRY_CODEHome</home>
<remote>SB_B2B_COUNTRY_CODERemote</remote>
<ejb-class>SB_B2B_COUNTRY_CODE</ejb-class>
<session-type>Stateless</session-type>
<ejb-ref>
<description>EJB Epool DButility</description>
<ejb-ref-name>DB_UTILITYRemote</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>DB_UTILITYHome</home>
<remote>DB_UTILITYRemote</remote>
</ejb-ref>
<ejb-ref>
<description>EJB Entity Bean</description>
<ejb-ref-name>EB_B2B_COUNTRY_CODERemote</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>EB_B2B_COUNTRY_CODEHome</home>
<remote>EB_B2B_COUNTRY_CODERemote</remote>
</ejb-ref>
</session>
<session>
<display-name>DbUtility Session Bean</display-name>
<ejb-name>DB_UTILITYRemote</ejb-name>
<home>DB_UTILITYHome</home>
<remote>DB_UTILITYRemote</remote>
<ejb-class>DB_UTILITY</ejb-class>
<session-type>Stateless</session-type>
</session>
<entity>
<ejb-name>EB_B2B_COUNTRY_CODERemote</ejb-name>
<home>EB_B2B_COUNTRY_CODEHome</home>
<remote>EB_B2B_COUNTRY_CODERemote</remote>
<ejb-class>EB_B2B_COUNTRY_CODE</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>EB_B2B_COUNTRY_CODEPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-field>
<field-name>country_code_desc</field-name>
</cmp-field>
<cmp-field>
<field-name>phone_format_flag</field-name>
</cmp-field>
<cmp-field>
<field-name>country_code</field-name>
</cmp-field>
<cmp-field>
<field-name>active_date</field-name>
</cmp-field>
<cmp-field>
<field-name>date_created</field-name>
</cmp-field>
<cmp-field>
<field-name>active_flag</field-name>
</cmp-field>
<cmp-field>
<field-name>country_phone_code</field-name>
</cmp-field>
<cmp-field>
<field-name>country_tax_percent</field-name>
</cmp-field>
<cmp-field>
<field-name>sort_order</field-name>
</cmp-field>
<cmp-field>
<field-name>date_modified</field-name>
</cmp-field>
<cmp-field>
<field-name>user_created</field-name>
</cmp-field>
<cmp-field>
<field-name>user_modified</field-name>
</cmp-field>
<resource-ref>
<description></description>
<res-ref-name>jdbc/ePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>EB_B2B_COUNTRY_CODERemote</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<security-role>
<description>Users</description>
<role-name>users</role-name>
</security-role>
</assembly-descriptor>
</ejb-jar>
The session bean which uses the above session bean is as follows.
import javax.ejb.SessionContext;
import javax.ejb.SessionBean;
import java.sql.*;
import javax.naming.Context;
import java.sql.Timestamp;
import java.util.Vector;
import initcontext;
import DB_UTILITYHome;
import DB_UTILITYRemote;
import EB_B2B_COUNTRY_CODEHome;
import EB_B2B_COUNTRY_CODERemote;
import EB_B2B_COUNTRY_CODEPK;
* @stereotype SessionBean
* @homeInterface SB_B2B_COUNTRY_CODEHome
* @remoteInterface SB_B2B_COUNTRY_CODERemote
public class SB_B2B_COUNTRY_CODE implements SessionBean
private SessionContext context;
* Sets the context of the bean
* @param context The Bean's Context
public Vector selectCountryCode(String query,String
countquery, String pagenos) throws Exception
Context ctx = initcontext.getContext();
Connection con=null;
Vector records=new Vector();
int pageno=Integer.parseInt(pagenos);
int min=(pageno-1)*10;
int max=pageno*10;
int counter=0;
boolean recordsfound=false;
try
DB_UTILITYHome home =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
DB_UTILITYRemote remote =
(DB_UTILITYRemote)home.create();
con=remote.getConnection();
Statement stmt = con.createStatement();
ResultSet rscount =
stmt.executeQuery(countquery);
while(rscount.next())
int temp=rscount.getInt(1);
int pagecount=temp;
pagecount=pagecount/10;
if((temp%10)>0)
pagecount=pagecount+1;
records.addElement(""+pagecount);
ResultSet rs = stmt.executeQuery(query);
while(rs.next())
counter++;
if(counter>min && counter<=max)
String row[]=new String[8];
recordsfound=true;
row[0]=rs.getString(1);
row[1]=rs.getString(2);
row[2]=rs.getString(3);
row[3]=rs.getString(4);
row[4]=rs.getString(5);
row[5]=rs.getString(6);
row[6]=rs.getString(7);
row[7]=rs.getString(8);
records.addElement(row);
con.close();
catch(Exception e)
System.out.println("Error in selecting Country
Code "+e);
throw new Exception("Error in selecting Country
Code "+e);
return(records);
public void insertCountryCode(String country_code, String
country_code_desc, String country_phone_code, String
phone_format_flag,String active_flag, String sort_order,String
country_tax_percent)throws Exception
Context ctx = initcontext.getContext();
Double Sort_Order=null;
Double cntry_tax_prct=null;
if(sort_order!=null && sort_order.length()>0)
Sort_Order=new Double(sort_order);
if(country_tax_percent!=null &&
country_tax_percent.length()>0)
cntry_tax_prct=new Double(country_tax_percent);
String user_created=null;
Timestamp date_created=null;
Timestamp active_date=null;
String user_modified=null;
Timestamp date_modified=null;
try
DB_UTILITYHome dbhome =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
DB_UTILITYRemote dbremote =
(DB_UTILITYRemote)dbhome.create();
user_created=dbremote.getUser();
date_created=Timestamp.valueOf(dbremote.getDate());
active_date=date_created;
EB_B2B_COUNTRY_CODEHome home =
(EB_B2B_COUNTRY_CODEHome)ctx.lookup("java:comp/env/EB_B2B_COUNTRY_CODER
emote");
EB_B2B_COUNTRY_CODERemote remote =
(EB_B2B_COUNTRY_CODERemote)home.create(country_code, country_code_desc,
country_phone_code,active_flag, phone_format_flag,user_created,
date_created, active_date, Sort_Order, user_modified,
date_modified,cntry_tax_prct);
catch(Exception e)
System.out.println("Error in Creating COUNTRY
Code "+e);
throw new Exception("Error in Creating COUNTRY
Code "+e);
public void setSessionContext(SessionContext context)
this.context = context;
public void ejbActivate()
public void ejbPassivate()
public void ejbCreate()
public void ejbRemove()
The jsp client which acces the beans is as follows.
<BODY >
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<%@ page import="initcontext" %>
<%@ page import = "java.util.*" %>
<%@ page import="DB_UTILITYHome"%>
<%@ page import="DB_UTILITYRemote"%>
<%@ page import="javax.naming.*"%>
<%Connection con=null; %>
<script src="search_getvalues.js">
</script>
<form name=frm1>
<%! int intCount,intI,intRowCount,intJ;
String strtname=new String();
String strhidden=new String("txthdn");
Statement st;
ResultSet rs;
ResultSetMetaData rmeta;
....%>
<%
try
Context ctx = initcontext.getContext();
DB_UTILITYHome dbhome =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
DB_UTILITYRemote dbremote = (DB_UTILITYRemote)dbhome.create();
con=dbremote.getConnection();
st=con.createStatement();
rs=st.executeQuery(strsqlquery);
rmeta=rs.getMetaData();
intCount=rmeta.getColumnCount();
....... %>
</form>
</BODY>
</HTML>
The resulting exception generated is as follows:
D:\oc4j\j2ee\home>java -jar orion.jar
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e.ear... done.
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e\epool_CountryCode-web.war... done.
Auto-deploying epool_CountryCode (New server version detected)...
Auto-deploying epool_CountryCode-ejb.jar (No previous deployment
found)... done.
Error deploying
file:/D:/oc4j/j2ee/home/demo/messagelogger/messagelogger-ejb.jar homes:
No javax.jms.Destination found a
t the specified destination-location (jms/theTopic) for
MessageDrivenBean com.evermind.logger.MessageLogger
Oracle9iAS (1.0.2.2.1) Containers for J2EE initialized
Auto-deploying epool countryCode example (New server version
detected)...
************************1
************************2
COUNT QUERY :SELECT COUNT(COUNTRY_CODE) FROM BAP_COUNTRY_CODE
QUERY :SELECT
COUNTRY_CODE,COUNTRY_CODE_DESC,COUNTRY_PHONE_CODE,PHONE_FORMAT_FLAG,COU
NTRY_TAX_PERCENT ,SORT_ORDER,ACTIVE
FLAG,ACTIVEDATE FROM BAP_COUNTRY_CODE order by COUNTRY_CODE
Error in selecting Country Code java.rmi.RemoteException: Error
(de-)serializing object: com.evermind.sql.OrionCMTConnec
tion; nested exception is:
java.io.NotSerializableException:
com.evermind.sql.OrionCMTConnection
JB:Error in selecting country cd java.lang.Exception: Error in
selecting Country Code java.rmi.RemoteException: Error (d
e-)serializing object: com.evermind.sql.OrionCMTConnection; nested
exception is:
java.io.NotSerializableException:
com.evermind.sql.OrionCMTConnection
Error in Selecting Records
OrionCMTConnection not closed, check your code!
LogicalDriverManagerXAConnection not closed, check your code!
(Use -Djdbc.connection.debug=true to find out where the leaked
connection was created)
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e.ear... Error unpacking: IO Error:
The system cannot find the path specified
Error updating application epool_CountryCode: Unable to find/read
assembly info for D:\oc4j\j2ee\home\applications\epool_C
ountryCode\build\epool_CountryCode (META-INF/application.xml)
But if the DBUTILITY session bean is changed to a simple bean and accessed the code works fine and i am able to retrieve the data.Is the problem there because u one session bean cannot access a database connection method from another one or could it be because of the driver???
I hope i am clear.Please revert back in case any more references are needed.
Thanks in advance!!!!!! -
CF8 Application Server Service Will NOT Start
I ran into this error:
java.lang.OutOfMemoryError: Java heap space
and after researching it it seemed that I should up the max heap size on the Java/JVM page, so I increased my max heap size to 1044MB from 512, via the CF Administrator, I also added maxPermSize= 256m. Then I restarted the server, but the Application Server service will not start.
I opened home/runtim/bin/jvm.config and set the heap size to 1024, restart, service still wont start.
Set the max heap size to 512 and removed maxPermSize, restarted server, service still won't start.
Set the entire java.args equal to: -server -Xmx256m -Dsun.io.useCanonCaches=false -xx:MaxPermsize=128m -XX:+UseParallelGC -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib -Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/../lib,{appli cation.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/flex/jars,{application. home}/../wwwroot/WEB-INF/cfform/jars
Restarted, still the services will not start.
Does anyone have any ideas?
The error I get when trying to start the services is:
Windows could not start the ColdFusion 8 Application Server on Local Computer. For more information, review the System Even Log. If this is a non-Microsoft service, contact the service vendor, and refore to service-specific error code 2.
Thanks!Once you have ColdFusion running again this will bring you back to your initial problem:
java.lang.OutOfMemoryError: Java heap space
Suggest take a copy of your working JVM.CONFIG (so you have a backup) then add some debugging to the JVM Arguments eg:
# Arguments to VM
java.args=-server -Xmx512m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -verbose:gc -Xloggc:cfjvmGC.log -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib -Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/../lib,{appli cation.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/flex/jars,{application. home}/../wwwroot/WEB-INF/cfform/jars
Once ColdFusion is restarted again a log file will be created called \ColdFusion8\runtime\bin\cfjvmgc.log. Open the log file and you will be able to see how the New, Tenure and Permanent memory spaces are working. Given you now know which buffer is filling (excluding New made up of Eden and a couple Survivor spaces - because those fill and empty all the time) you can make adjustments to JVM.CONFIG knowing which value you intend to alter. Likely you want to alter either Xmx or MaxPermSize. When you think the Java heap space is resolved turn logging off by removing the bolded details.
HTH, Carl. -
Getting error 462 - The remote server machine does not exist or is unavailable
I have several modules that read and write data to and from Excel 2010 worksheets. I am noticing that the Excel process does not end aven though Excel is not running on my PC. It is like an orphan process. If I try running the Access module again I get the
message "error 462 - The remote server machine does not exist or is unavailable". Here is the code I am running. When I click the Debug button on the message box the line "rowNum = objXLAppln.Range("A" & Rows.Count).End(xlUp).Row"
is highlighted.
Option Compare Database
Option Explicit
Function ImportImportanceScores()
Dim RecSet As DAO.Recordset
Dim objXLAppln As Excel.Application
Set objXLAppln = New Excel.Application
Dim objWBook As Excel.Workbook
Dim rowNum As Variant
Dim i As Integer
Dim j As Integer
Dim StrPathFile As String, strFile As String, strPath As String
Dim strBrowseMsg As String, strInitialDirectory As String, strFilter As String
'show dialogue box
strBrowseMsg = "Select the EXCEL file:"
'set directory to load files from
strInitialDirectory = "C:\Bridge_CIP_Part-A_B\"
'run strFilter function
strFilter = ahtAddFilterItem(strFilter, "Excel Files (*.xlsx)", "*.xlsx")
StrPathFile = ahtCommonFileOpenSave(InitialDir:=strInitialDirectory, _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:=strBrowseMsg, _
Flags:=ahtOFN_HIDEREADONLY)
If StrPathFile = "" Then
MsgBox "No file was selected.", vbOK, "No Selection"
Exit Function
End If
'Set Excel application object. Critical for macro to run properly. Do not change.
'Open workbook and worksheet to load data.
With objXLAppln
Set objWBook = objXLAppln.Workbooks.Open(StrPathFile)
objXLAppln.Visible = True
End With
Set RecSet = CurrentDb.OpenRecordset("Importance_Scores")
'Copy data from Excel cells to Access fields
objXLAppln.Sheets("Importance_Scores").Select
rowNum = objXLAppln.Range("A" & Rows.Count).End(xlUp).Row
objXLAppln.Range("A6").Select
'Add records to table from Excel
With RecSet
For i = 0 To rowNum - 6
RecSet.AddNew
RecSet.Fields("CIP_ID").value = objXLAppln.ActiveCell.Offset(i, 0).value
RecSet.Fields("Target_Timeframe_for_Construction").value = objXLAppln.ActiveCell.Offset(i, 2).value
RecSet.Fields("ImportanceFactor_TI-1").value = objXLAppln.ActiveCell.Offset(i, 21).value
RecSet.Fields("ImportanceFactor_TI-2").value = objXLAppln.ActiveCell.Offset(i, 22).value
RecSet.Fields("ImportanceFactor_TI-3").value = objXLAppln.ActiveCell.Offset(i, 23).value
RecSet.Fields("ImportanceFactor_TI-4").value = objXLAppln.ActiveCell.Offset(i, 24).value
RecSet.Fields("ProjectRank").value = objXLAppln.ActiveCell.Offset(i, 33).value
RecSet.Update
Next i
End With
'Close everything
RecSet.Close
objWBook.Close SaveChanges:=False
objXLAppln.Quit
Set RecSet = Nothing
Set objWBook = Nothing
Set objXLAppln = Nothing
End FunctionIn the line
rowNum = objXLAppln.Range("A" & Rows.Count).End(xlUp).Row
Rows does not refer to objXLAppln or to objWBook. Change it to
rowNum = objXLAppln.Range("A" & objWBook.Sheets("Importance_Scores").Rows.Count).End(xlUp).Row
Regards, Hans Vogelaar (http://www.eileenslounge.com) -
I am trying to email from my iphone and the message comes up it is rejected by server, it does not allow relaying. I am receiving emails ok. How do I fix this
What's the model number of your Lexmark printer?
-
System keeps looking for a 'server' that does not exist. Is says the old name of my Airport Extreme. Clicking it away (4x) finally gets through.
Other weirdness to report: my neighbor upstairs appears to have a Linksys router network on channel 6. My AEBS is on channel 1 so there shouldn't be interference... but according to iStumbler sometimes the signal leaps to 64000 (keep in mind my own Airport never tops 60)! Is that potentially the problem?
Might it be possible that your neighbor just acquired a 802.11n (pre-N) wireless router recently?
802.11n effectively increases capacity by doubling the number of Wi-Fi radios and increasing the number of antennas used to push signals out of those radios. 802.11n splits a data frame into multiple pieces. It then transmits these pieces in parallel using multiple radios that are attached to multiple antennas. These antennas blast out signals from virtually the same vantage point – scattering the signals everywhere.
You may find the following ZDNet article interesting: http://blogs.zdnet.com/Ou/?p=247
Even if he did not, and you are on good terms, you might want to ask if he can temporarily turn off his wireless, or, at least, reduce the signal strength to see if that will help in your situation. -
RA-20102: Application collection PLSQL_OBJECT_SOURCE does not exist
Hi,
I have written a trigger and it was working fine before in APEX. I have amended update statement inside the trigger and trying to compile. It was throwing me error as below and not being to save the trigger. Also i have taken out the update satement, it is not being compile. I have done many excercise that drop the trigger and re-create the trigger with new name, and same name. It gives me the same error.
RA-20102: Application collection PLSQL_OBJECT_SOURCE does not exist
I have no idea to move further. I have already search similar thread in this forum and tried their suggest. I have no luck to get compile.
Please help me.
Thank you,
- ThilipHi Scott,
Thanks for your help.
Currently am using APEX 3.1 and XE 10.2..0.1.0 DB.
Please find below is my actual trigger. This trigger is working fine without any issue
create or replace trigger "OPNS_STOCK_INBOUND_TRN_TRG"
BEFORE
insert on "OPNS_STOCK_INBOUND_TRN"
for each row
declare
l_open_stock number(13,3);
l_close_stock number(13,3);
l_trn_id number ;
l_max_id number ;
l_max_id1 number ;
begin
if inserting then
if :NEW.OUTBOUND_TRN_GAGES <> 0 then
-- Get the last record of ID in opns_stock_inbound_trn table
select nvl(max(trn_id),-1) into l_max_id from opns_mixing_inbound_trn;
select nvl(max(trn_id),-1) into l_max_id1 from opns_stock_inbound_trn;
-- There is no record, get -1 then Openning stock always zero
if l_max_id < 0 then
l_open_stock := 0;
else
-- Get the openning stock as previous record's closing stock
select nvl(close_stock,0) into l_open_stock from opns_mixing_inbound_trn where trn_id = l_max_id;
end if ;
-- There is no record, get -1 then Openning stock always zero
if l_max_id1 < 0 then
:NEW.open_stock := 0;
else
-- Get the openning stock as previous record's closing stock
select nvl(close_stock,0) into :NEW.open_stock from opns_stock_inbound_trn where trn_id = l_max_id1;
end if ;
-- calculate inbound gages for stock
l_close_stock := l_open_stock + :NEW.outbound_trn_gages ;
-- Deducting outgoing gages in open stock and update as close stock
:NEW.close_stock := :NEW.open_stock - :NEW.outbound_trn_gages ;
-- Get the trn_id from table to update the opns_mixing_inbound table
select max(trn_id) into l_trn_id from opns_mixing_inbound_trn;
:NEW.OUT_MIX_TRN_ID := l_trn_id ;
-- trn_id=1 for Inbound in overall
update opns_overall_trn set trn_date=:NEW.trn_date, open_stock=:NEW.open_stock,
close_stock=:NEW.close_stock, remarks='OPNS_STOCK_INBOUND_TRN_TRG', update_date=sysdate
where trn_id=1;
end if ;
end if;
end;
I am trying to add below insert statement to the above trigger.
-- inserting a entry in transaction table for mixing
insert into opns_mixing_inbound_trn (trn_id, trn_date, open_stock, inbound_trn_gages, outbound_trn_gages, close_stock)
values (opns_mixing_inbound_trn_seq.nextval, trn_date, l_open_stock, 0, :NEW.outbound_trn_gages, l_close_stock);
I am firing this trigger when i insert a record in OPNS_STOCK_INBOUND_TRN table, the trigger should update OPNS_OVERALL_TRN table and insert another record to OPNS_MIXING_INBOUND_TRN table.
Please update me the right solution.
Thank you,
Regards
- Thilip -
How do i delploy on hosted server which does not support crystal. Is RAS ?
have to put a solution on a public hosted server. it does not support crystal . cannot add to GAC
if i use RAS(or cr 2008 server) on another server . Web app works on public server but points to my RAS server. Do I still need components on the public server. if I do this will not work,
any ideas
Johnmany thanks. there is some tendancy to cloud hosts. all you get is ftp access and .net ompersonation.
just drop the webisite in. so no MSI use which also rules out merged modules
thanks
john -
C# error when connecting to ldap server that does not exist
When using Novell.Directory.Ldap.dll and making a connect to an ldap
server which does not exists i'm getting the following error:
Connection.freeWriteSemaphore(-2): semaphore not owned by any thread
Im using this to connect: conn.Connect(ldapHost, ldapPort);
This error is not catched by LdapException. Can anyone tell me if this is
a bug or do I have to do something different.Hi. I'm using version 2.1.11 of the NDK for CSharp. I'm getting this
same error message:
Code:
Connection.freeWriteSemaphore(-2): semaphore not owned by any thread
at Novell.Directory.Ldap.Connection.freeWriteSemaphor e(Int32 msgId)
at Novell.Directory.Ldap.Connection.connect(String host, Int32 port, Int32 semaphoreId)
at Novell.Directory.Ldap.LdapConnection.Connect(Strin g host, Int32 port)
at TestLDAP.Program.Main(String[] args) in D:\Documents and Settings\tjbuege\my documents\visual studio 2010\Projects\TestLDAP\TestLDAP\Program.cs:line 20
This occurs when I try to bind to a server that does not exist. Here
is my sample source code that generates that error:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Novell.Directory.Ldap;
namespace TestLDAP
class Program
static void Main(string[] args)
LdapConnection conn = null;
string host = "server.does.not.exist.com";
int port = 389;
try
conn = new LdapConnection();
conn.Connect(host, port);
catch (Exception ex)
Console.WriteLine(ex.Message);
Console.WriteLine(ex.StackTrace);
if (conn != null)
conn.Disconnect();
Is there a fix for this? It makes this library useless for me.
Thanks,
Tim
tjbuege
tjbuege's Profile: http://forums.novell.com/member.php?userid=108957
View this thread: http://forums.novell.com/showthread.php?t=365082 -
Hi All,
I am trying to execute a stored procedure and store its result in an excel.
My query to execute stored proc and store sresults in excel
INSERT INTO
openrowset('Microsoft.ACE.OLEDB.15.0',
'Excel 8.0;Database=C:\TC\DataAnalysisFiles\DataAnalysisResult.xls;OLE DB Services=-4','select * from [Sheet1$]')
EXEC UspUnitTest_Test_CheckDuplicateModelNumberSerialNumber
I am getting error
The requested operation could not be performed because OLE DB provider "Microsoft.ACE.OLEDB.15.0" for linked server "(null)" does not support the required transaction interface.
I have enabled below things by running scripts
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Ad Hoc Distributed Queries', 1;
GO
RECONFIGURE;
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.15.0', N'AllowInProcess', 1
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.15.0', N'DynamicParameters', 1
GO
Please help and let me know if this can be resolved
Supriya Thigalebecause OLE DB provider "Microsoft.ACE.OLEDB.15.0" for linked server "(null)" does not support the
required transaction interface.
Hello,
When you insert data from SQL Server into a linked server, then a distributed transaction should be started and here it seems this fails.
See
Distributed Transactions (Database Engine) for more Details +
Distributed Queries
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Oracle/wh/runtime/server/Util does not exist - while creating runtime repos
While running OWB Runtime Assistant, at about 60% completed, getting an error.
Here is the last few lines from the log file:
oracle.wh.util.DebugUtility: [processSPAWN]: wholeLine =..\..\..\jdk\jre\bin\javaw -classpath ../../lib/int/rtpplatform.jar;../../lib/int/rtpcommon.jar;../../../jdbc/lib/ojdbc14.jar;../../../lib/xmlparserv2.jar;../../../sqlj/lib/runtime12.jar;../../../jdk/jre/lib/rt.jar oracle.wh.runtime.platform.service.install.ServiceInstaller %host %port %serviceName %user %password
Mon Feb 06 11:58:00 CST 2006
oracle.wh.util.DebugUtility: after executing the output
Mon Feb 06 11:58:00 CST 2006
oracle.wh.util.DebugUtility: Runtime Platform Property Load Beginning...
Mon Feb 06 11:58:00 CST 2006
oracle.wh.util.DebugUtility: java.sql.SQLException: ORA-29540: class oracle/wh/runtime/server/Util does not exist
Mon Feb 06 11:58:00 CST 2006
oracle.wh.util.DebugUtility: [processSPAWN]: A spawned program error. Exception = java.lang.Exception: Error : java.sql.SQLException: ORA-29540: class oracle/wh/runtime/server/Util does not exist
Mon Feb 06 11:58:00 CST 2006
oracle.wh.util.DebugUtility: [processSPAWN]: Get the error, stop processing...
Mon Feb 06 11:59:47 CST 2006
oracle.wh.util.DebugUtility: Assistant operation is unsuccessful ...
=========================================
The database version is 9.2.0.4 on XP
OWB version is 10.1.0.2 on the same XP host.
I'd prefer NOT to change (upgrade or degrade) the versions of db and owb, as the same version combination works just fine in production, and I'm trying to create the same environment on my local PC.
Thanks for your help.
vrI did that and my output is all good:
All PL/SQL packages and functions are valid
Platform properties have been loaded correctly
Platform location has been seeded correctly
NLS messages have been loaded correctly
The platform service is available
PL/SQL procedure successfully completed. -
TS3899 Rejected by server because does not allow relaying ?
Was not able to send an email or respond to an email. Popped up saying "rejected by server because does not allow relaying".
What quite often fixes it so to try going into Settings > Mail, Contacts, Calendars > select the account > account name , tap on SMTP (under the 'Outgoing Mail Server' heading) and then tap on your Primary Server and try entering your email account and password and see if you can send emails from the account
-
Biztalk Server 2013 does not support Windows Server 2012 R2
is there any document or statement from MS that States "Biztalk Server 2013 does not support Windows Server 2012 R2"
Hi Mohit,
I haven't come across any document, but there is a blog from Microsoft about it.
http://blogs.msdn.com/b/biztalknotes/archive/2013/10/29/biztalk-2013-compatibility-with-latest-platforms-of-microsoft.aspx
Maheshkumar S Tiwari|User Page|Blog|BizTalk
Server : How Map Works on Port Level
Maybe you are looking for
-
SRM 4.0 (with SRM Server 5.0) ---- XI 3.0-------R/3
Hello Friends Iam also working in SRM. I want to integrate SRM and XI for sending a PO from SRM to third party system through XI. I already have a PO created in SRM and I want to send it through XI to Third party system and then want to create corres
-
Charts get corrupted using CFReportBuilder 10 in Windows 8.1
Reports that we created that contain Charts, using Windows Vista to author, stop working and error "resource unreadable" when we open and save the report using Win 8.1 64bit. Everything else in the reports will work fine, but the charts become corru
-
Is it ok if I never got my email confirmation for an online order
Is it ok if I never got my email confirmation for an online order? When I log into the site with my order number and zip, it shows the date I have printed out, but I never did get the email confirmation after 24 hours like it said I would. Its been a
-
Problem downloading Ipod software during restore
Hello everyone, My iPod has had a flakey connection to iTunes, so I decided to restore my mini to factory settings. All seemed to be going well until I hit the "Restore" button, which brings up a pop-up message "There was a problem downloading the iP
-
Here's the full error message(s). Please explain in simple terms, I'm not an expert PC person. Thanks! ----------- Payload: AdobeColorCommonSetCMYK CC 5.0.0.0 {C4196275-B11A-40A1-8727-3C145C8F7D95} ----------- ERROR: DF012: Unable to find file(Seq 1