Asher Tarnopolski

Ranch Hand
+ Follow
since Jul 28, 2001
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Asher Tarnopolski

this time i have a kind of theoretical question. one of sw developers working for a pretty big company told me today, that they don't use war files for their application deployments. their sw architects believe, that war files are evil, since deployment of un-wared classes is not secure enough in terms of a damage that can be caused by their operations group employees, playing with servers. as far as i understood, their solution is to pack the application into jar and add it to the empty webapp style tree's WEB-INF/lib folder. they are also used to edit server.xml to add the app's context pass there to enable it on the path they use. i was really puzzled by this explanation, i never seen anything like this before. personally i believe that the whole "operations folks problem" sounds like a paranoia, but still, it's hard for me to decide what are the pros and cons of such solution. what do you think? bizarre or brilliant?

11 years ago

my jms broker (activemq) is installed on server "JMSBROKER".

the connector settings are as following:

<transportConnector name="zTransport" uri="tcp://localhost:61616" discoveryUri="multicast://zNet"/>

<networkConnector name="zJMSNetwork" uri="multicast://zNet" dynamicOnly="true"/>

i have 3 other machines at the same subnet, running the clients that should connect to the broker on JMSBROKER. all clients are run totally in the same way: 3 instances of the same application are running by tomcat containers installed on all of the machines. the clients are using the following discovery uri to find a broker: discovery:(multicast://zNet)?initialReconnectDelay=100
now to the problem itself.
while 2 machines are successfully connecting to the broker, the third one just doesn't make it.
QueueConnection.start() method never returns, there are no exceptions or errors thrown.
when i run netstat command on each of the clients machines i see that those connected show the following:
Proto Local Address Foreign Address State
TCP client_machine's_ip:port JMSBROKER_ip:61616 ESTABLISHED

but on the machine that makes troubles i see the following:
TCP client_machine's_ip:port SYN_SENT

i can't figure out where that (which sometimes turns into is coming from.
when tomcat is down, there is no connection to port 61616, so there is no additional process working with the same port running on this machine.
i guess that multicast broadcast mistakenly returns a wrong ip or something.

has anyone ever seen such behavior and have an idea where should i look for a solution?

thank you!
thanks ulf.
i've read somewhere that jmf doesn't support mp3 anymore due to some kind of licensing problems. i guess this was a wrong info.
15 years ago
hi folks,

i've never used sound/media related java solutions before.
i need to chop an mp3 file into several smaller mp3 files.
no gui is needed, i just need to create several small mp3 files of predefined time length or predefined size from a bigger source file.
each of the newly created files should stay a valid mp3 file, since they will be played separately, as stand alone files.

is there any ready api from sun or third party libs that do this job?

15 years ago
hi, a question for those of you working with oracle tools.

i try to connect to oracle's db from jdeveloper.
a thin connection works fine, but i have to use an oci connection which i fail to set.
i've edited jdev.conf file as described here:
and added AddNativeCodePath pointing to oracle installation directory.
but an attempt to test a connection returns an error saying "The procedure entry point kpufhndl0 could not be located in the dynamic link library OCI.dll".
any thoughts?
thanks a lot!
hi gurus,

we have an application that calls some stored procedures (oracle9i). those procedures are using different tables and are not related.
everything worked fine for a long time but today we've noticed a strange behavior:
when one stored procedure is triggered, other procedures executed while the first one is still running are blocked and wait, until that first procedure is ending. this happens with all procedures, their execution is not concurrent anymore.
from the java point of view: a callablestatement.execute() method is called, but the logs in pl/sql show that a stored procedure function is not triggered, this until any other stored procedure is running. no exceptions are thrown, all procedures are executed in a queue. we have cases when a stored procedure is running for hours, the waiting ones are not throwing time outs.
nothing has been changed on db level... there is always a chance for an issue with a new jar or something, but we can't figure it out. maybe someone here have already seen such thing? any ideas are welcomed!
thank you for your time.
hey folks,
i am writing my first jsp page in jdev. when i add a scriptlet and type a piece of java code into it, the ide doesn't automatically add @page import directives, but just complains that it can't recognize the type of the classes i use. this happens for both jdk and my own libraries. i guess there is some settings i have to activate, but i fail to find them.
i try to make a simple call to a stateless session bean business method from a servlet. when i make a jndi lookup on initialcontext object - everything works just fine. but when i try to inject an @EJB annotation, the code fails with a nullpointerexception - the remote reference seems to be null. here is the code:

thanks for you time
hey bear,
i don't. as you guessed i've found this problem in much more complicated code than the one shown here. but then i wrote the simplest example
you can see in my post, and the problem exists there too, as shown.
18 years ago
hey folks. this is something i've never seen before.
there are 2 jsps.
first one :

zzz.jsp has only one line:

now, when the application runs, the content of the included file is copied to a wrong place. the result looks like this:

i've got this stuff running on tc4.1.31. didn't test it on tc5 yet.
any ideas what can be a reason for such thing?
18 years ago

by the way, request.setContentType() placed in the included file works just fine. the data delivered in request is ok. but the static data is displayed right only if the page attribute is placed in the file itself, and not in the included one.
[ March 22, 2006: Message edited by: Asher Tarnopolski ]
18 years ago
i ran into the same problem couple of days ago and i didn't find any explanation for such a behavior. why setting content type and character set has an influence only if done in the jsp file itself, and not in another included jsp file?
18 years ago
ok folks,

i've found a solution. just in case you are searching this forum and need help with the same problem:;en-us;Q320731
after i googled this, i found out that this is probably another ie bug. still, i post this, just in case anyone has found the solution...
i have a page that includes some iframes. when the pages in those iframes are loaded, they update the main page data. everything is javascript driven.
i don't have any problem in firefox, and everything looks to work fine in ie too. but there is one thing in ie, that makes me crazy:
after all of the pages are loaded and the script seems to be done with its work, the status bar displays DONE, but the green loading bar continues to be in "loading" state, slowly adding the green boxes to itself. this lasts forever.
any thoughts?
Thanks for your reply.
This didn't help
Yeh, in case I wasn't clear in my first post, IE doesn't add
scrollbars while I drag the mouse. The iframe content just "moves" inside the iframe in the direction opposite to the mouse movement direction...