Showing posts with label solved. Show all posts
Showing posts with label solved. Show all posts

Tuesday, January 3, 2012

Selenium testing Unable to delete file npSkypeChromePlugin.dll

PROBLEM:
Caused by: Unable to delete file C:\Users\ALZA~1.KYI\AppData\Local\Temp\customProfileDir78f2ebd7cf1d4fb8ac2ff0c30a4043ac\Defa
ult\Extensions\lifbcibllhkdhoafpjfnlhfpfgnpldfl\5.6.0.8442_0\npSkypeChromePlugin.dll
at org.apache.tools.ant.taskdefs.Delete.removeDir(Delete.java:594)
at org.apache.tools.ant.taskdefs.Delete.removeDir(Delete.java:587)

SOLUTION:

Remove from Programs and features the Skype Click to Call program.

Friday, December 30, 2011

TortoiseHG clone error SSL: Server certificate verify failed

PROBLEM:
TortoiseHG output:
% hg clone --verbose -- https://yourhost.com/yourproject/yourproject
SSL: Server certificate verify failed

SOLUTION:
Install PyTTY.
Generate key with pyttygen.exe, save private key and public.
Send public key to admin mercurial
Run C:\Program Files\TortoiseHg\Pageant.exe and add private key to it.
Clone the protrack repo from
ssh://hg@yourhost.com/yourproject/yourproject/

Here are two main point:
1. Use Pageant.exe from TortoiseHg, NOT from the PyTTY dir !!!
2. Use "ssh://hg@" instead of http:// or https://

Saturday, October 1, 2011

Solved two mysql+tomcat problems

Solved two mysql+tomcat problems:

1. The web application registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web.
2. The web application appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed.


1. The web application registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web.

PROBLEM:
org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/rest] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web


SOLUTION:
http://stackoverflow.com/questions/3320400/jdbc-driver-unregisted-when-the-web-application-stops

import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Enumeration;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class JdbcListener implements ServletContextListener
{
private static final Logger LOG = Logger.getLogger(JdbcListener.class);

public void contextDestroyed(ServletContextEvent sce)
{
deregisterJdbcDriver();
}

public void contextInitialized(ServletContextEvent sce)
{

}

private void deregisterJdbcDriver()
{
// This manually deregisters JDBC driver, which prevents Tomcat 7 from complaining about memory leaks
Enumeration drivers = DriverManager.getDrivers();
while (drivers.hasMoreElements())
{
Driver driver = drivers.nextElement();
try
{
DriverManager.deregisterDriver(driver);
LOG.info(String.format("Deregistering jdbc driver: %s", driver));
}
catch (SQLException e)
{
LOG.info(String.format("Error deregistering driver %s", driver), e);
}
}
}

}




2. The web application appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed.

PROBLEM:
org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/rest] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed


SOLUTION:
http://bugs.mysql.com/bug.php?id=36565
To upgrage mysql connector jar.
http://dev.mysql.com/downloads/connector/j/

     
mysql
mysql-connector-java
5.1.17

Monday, April 18, 2011

generics are not supported in -source 1.3

PROBLEM
mvn compile test
mvn clean install

generics are not supported in -source 1.3
(use -source 5 or higher to enable generics)


SOLUTION

mvn compile test -Dmaven.compiler.source=1.5 -Dmaven.compiler.target=1.5

Wednesday, March 30, 2011

[SOLVED] java.lang.ClassCastException: javax.naming.Reference cannot be cast to javax.sql.DataSource

PROBLEM:

Caused by: java.lang.ClassCastException: javax.naming.Reference cannot be cast to javax.sql.DataSource


SOLUTION:
Add the jar

commons-dbcp-1.2.1.jar

Monday, February 28, 2011

Axis 403 Forbidden

PROBLEM:
axis thread got an exception: (403)Forbidden


[ERROR] WSRPStarter - --- WSRP1: axis thread got an exception: (403)Forbidden
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (403)Forbidden
faultActor:
faultNode:
faultDetail:
{}:return code: 403
<html><head><title>Apache Tomcat/6.0.26 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 403 - Access to the requested resource has been denied</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>Access to the requested resource has been denied</u></p><p><b>description</b> <u>Access to the specified resource (Access to the requested resource has been denied) has been forbidden.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.26</h3></body></html>
{http://xml.apache.org/axis/}HttpErrorCode:403

(403)Forbidden
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:755)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invokeTransport(AxisClient.java:150)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:289)
at org.apache.axis.client.Call.invokeEngine(Call.java:2838)
at org.apache.axis.client.Call.invoke(Call.java:2824)
at org.apache.axis.client.Call.invoke(Call.java:1815)
at org.exoplatform.services.wsrp.AdminClient.process(AdminClient.java:252)
at org.exoplatform.services.wsrp.producer.impl.WSRPStarter$AxisThread.run(WSRPStarter.java:166)




SOLUTION:
Provide correct role-name "admin"




user authentication
/services/*
/services2/*
POST
GET


admin


NONE




BASIC
exo-domain



a simple user role
admin

Sunday, February 6, 2011

Восстановил флешку pqi i812

Не могу отформатировать флешку и удалить с неё файлы. Также не могу записать на неё файлы.

Проблема решилась обновлением прошивки флешки.


Сайт флешки

Сайт с программами восстановления

Wednesday, December 1, 2010

RepositoryCreationSynchronizer - Waiting to be released by the coordinator

PROBLEM:
2010-12-01 17:54:24,684 [main] INFO exo.jcr.component.core.RepositoryCreationSynchronizer - Waiting to be released by the coordinator
Tomcat HANGS

SOLUTION:
commented out the RPCService component within
cl***-multi***-1.0-Alpha07-SNAPSHOT.jar#uzip/conf/portal/configuration.xml

Tuesday, November 30, 2010

PROBLEM bad argument for IP_MULTICAST_IF: address not bound to any interface (SOLVED)

PROBLEM
 
Caused by: java.lang.RuntimeException: Cannot initialize the Channel needed for the RPCServiceImpl
at org.exoplatform.services.rpc.impl.RPCServiceImpl.start(RPCServiceImpl.java:714) ~[exo.kernel.component.common-2.3.0-CR1-SNAPSHOT.jar:2.3.0-CR1-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_19]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_19]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_19]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_19]
at org.picocontainer.defaults.LifecycleVisitor.traverse(LifecycleVisitor.java:75) ~[picocontainer-1.1.jar:1.1]
... 35 common frames omitted
Caused by: org.jgroups.ChannelException: failed to start protocol stack
at org.jgroups.JChannel.startStack(JChannel.java:1617) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
at org.jgroups.JChannel.connect(JChannel.java:366) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
at org.exoplatform.services.rpc.impl.RPCServiceImpl$3.run(RPCServiceImpl.java:704) ~[exo.kernel.component.common-2.3.0-CR1-SNAPSHOT.jar:2.3.0-CR1-SNAPSHOT]
at org.exoplatform.services.rpc.impl.RPCServiceImpl$3.run(RPCServiceImpl.java:698) ~[exo.kernel.component.common-2.3.0-CR1-SNAPSHOT.jar:2.3.0-CR1-SNAPSHOT]
at java.security.AccessController.doPrivileged(Native Method) [na:1.6.0_19]
at org.exoplatform.services.rpc.impl.RPCServiceImpl.start(RPCServiceImpl.java:697) ~[exo.kernel.component.common-2.3.0-CR1-SNAPSHOT.jar:2.3.0-CR1-SNAPSHOT]
... 40 common frames omitted
Caused by: java.lang.Exception: problem creating sockets (bind_addr=alexey-i7-pc/127.0.1.1, mcast_addr=228.10.10.10:45588)
at org.jgroups.protocols.UDP.start(UDP.java:389) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
at org.jgroups.stack.Configurator.startProtocolStack(Configurator.java:121) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:402) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
at org.jgroups.JChannel.startStack(JChannel.java:1614) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
... 45 common frames omitted
Caused by: java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method) ~[na:1.6.0_19]
at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:299) ~[na:1.6.0_19]
at java.net.MulticastSocket.setInterface(MulticastSocket.java:424) ~[na:1.6.0_19]
at org.jgroups.protocols.UDP.createSockets(UDP.java:527) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
at org.jgroups.protocols.UDP.start(UDP.java:385) ~[jgroups-2.6.13.GA.jar:2.6.13.GA]
... 48 common frames omitted



SOLUTION
to add jgroups-*jar

Monday, November 15, 2010

Ubuntu 10.10 прошивка dir-320

Сначала устанавливаем недостающие пакеты:
sudo apt-get install build-essential gcc libncurses5-dev ncurses-term zlib1g-dev gawk flex vsftpd
Потом ставим как написано тут:
http://habrahabr.ru/blogs/linux/102547/

Только в качестве ftp сервера я использовал vsftpd
Как использовать написано тут:

Если не получается перепрошить dir-320 смотрите тут:

Sunday, November 14, 2010

Как перепрошить dir-320

В первый раз у меня получилось легко прошить роутер с оригинальной до новой trx OpenWRT Backfire, но потом столкнулся с трудностью что не могу попасть на роутер в первые секунды старта для ещё одной перешивки trx OpenWRT Kamikadze. Т.е. он вообще не пингуется секунд 10.
Я нашёл очень хорошее, а главное работающее решение!

1. Скачиваете прошивку с сайта [1] или собранную вручную .trx [2], [3], [4]
2. Выставляете на компьютере статический адрес (например 192.168.0.10)
Лучше подключиться к роутеру dir-320 через свитч,
чтобы не падал интерфейс при выключении питания.
Если шить через Windows есть решение
REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters] "DisableDHCPMediaSense"=dword:00000001
3. Запустить три консоли для загрузки прошивки с командой
atftp --no-source-port-checking -p -l firmware.bin 192.168.0.1
но Enter не нажимать!
Для Windows ищите батник [5]
4. На выключенном роутере нажать ресет кнопку и держать.
5. Включить питание и держать кнопку ресет секунд 20
6. Отпустить ресет.
7. Попробуйте быстренько пингануть, он должен отзываться с ttl=100 (пинг пусть продолжается) Если не получилось, то попробуйте сделать ресет 30/30/30
8. Резко выдернуть питание и всунуть обратно. (это самая важная часть!)
9. Пинг должен продолжаться (!) (пункт 7).
10. Быстро нажать Enter для запуска команд прошивки в трёх ранее открытых консолях (пункт 3)
(этот пункт должен быть запущен мгновенно после пункта 8)

Для дополнительной информации смотрите [6], [7]

Как запустить консоль восстановления на dir-320

1. Нажать ресет кнопку и держать
2. Включить питание
3. Подождать пока начнёт мигать индикатор подключённого LAN порта (около 15 секунд)
4. Отпустить ресет.
5. Прописать статический адрес на компьютере. (например 192.168.0.10)
6. Зайти на адрес http://192.168.0.1

Загрузить прошивку. (загружаются только .bin, другие прошивки .trx не загружаются, даже не пытайтесь переименовывать)

Как скопировать образ флешки а потом его восстановить

Скопировать:
sudo dd if=/dev/sdb of=./backup bs=64k
Восстановить:
sudo dd if=./backup of=/dev/sdb bs=64k

Thursday, October 28, 2010

Ubuntu 10.10 custom clock format

Step 1. Press "ALt+F2"

Step 2. Run: gconf-editor

Step 3. Navigate to "Apps -> Panel -> Applets -> Clock_Screen* -> Prefs"

Step 4. Double-click on the 'Format' value. Change it to 'custom'.

Step 5. Double click on the 'Custom Format' field and paste in the code from one of the styles below.

%Y-%m-%d %H:%M:%S %a w%W
%Y-%m-%d %H:%M:%S %a
%Y-%m-%d %H:%M
%m/%d/%Y %H:%M:%S %a w%W

Tuesday, October 12, 2010

Ubuntu 10.10 Проблема с индикатором раскладки клавиатуры

http://ubuntuforums.org/showthread.php?p=9953780

Remove all system folders within the your home folder and reinstall Ubuntu. :)

Friday, September 3, 2010

wikbook maven plugin errors

If you have the error
org.xml.sax.SAXParseException
or the error
[Fatal Error] :4:8: The content of elements must consist of well-formed character data or markup.
org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.



try to check the {code} section.

It should be as:
{code}
bla-bla
{code}

Wednesday, July 28, 2010

[SOLVED] Ubuntu + Chrome + YouTube HTML5 = doesn't work

1. Install the latest Chrome browser.
2. sudo apt-get install chromium-codecs-ffmpeg-extra

Friday, May 7, 2010

JBoss How to change password

UPD:

Hi Alexey,
we upgraded account management system and now users can change their password simply in their profile page.
Help pages are:
http://www.jboss.org/help/userprofile.html
and
http://www.jboss.org/help/lostpassword.html




The change password system on JBoss is fails!


How to change your JBoss password after hacker attack on JBoss:

1. Use http://www.jboss.org/contact.html to reset your old password.

and login with the new password at https://www.jboss.org/index.html

Cannot proceed to login, your account has not been activated yet. Please click here (https://www.jboss.org/index.html?module=user&op=resendActivation) to receive your activation email again.

3. An activation e-mail has been sent to your e-mail address. You must first click on the activation link in the e-mail in order to become an active member of the website. If you did not receive this e-mail, please check to make sure that your spam filter did not block the e-mail.
If the problem persists, please click here to contact the administrator

e-mail received with the activation link
example link is
https://www.jboss.com/index.html?module=user&op=activate&i=a8e6046e836e53b65a109c1f&u=350142

4. Account successfully activated!
Login to access your account.


How to change your JBoss re-activated password:

You are now logged out!

Logging you in, please wait!

Write your new Password (type a new password twice to change it)
And click at "Save changes"


Wednesday, May 5, 2010

[SOLVED] java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be successfully initialized.

PROBLEM:
Caused by: java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be successfully initialized.


Caused by: java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be successfully initialized. See also http://www.slf4j.org/codes.html#unsuccessfulInit
<------>at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:276)
<------>at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)


SOLUTION:
To add the dependency



org.slf4j
slf4j-log4j12
test

Friday, April 16, 2010

HttpRetryException: cannot retry due to server authentication

PROBLEM:



Caused by: java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1134)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1937)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1865)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:593)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
... 7 more




SOLUTION:


((BindingProvider)port).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "root");
((BindingProvider)port).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "exo");